/* ==========================================================
   Critters and Companions Mod — main stylesheet
   Light palette "Sky meadow":
   Primary   #2E7FB8 sky blue        Secondary #4E9F6A leaf green
   Accent    #F2A541 honey           Background #F8FBFE cloud white
   Card      #FFFFFF                 Text      #1F2A37 slate ink
   Button    #2E7FB8                 Border    #DDE7F0
   Success   #2E9E5B  Warning #D98E1F  Error #D64545
   ========================================================== */
:root {
  --primary: #216869;
  --primary-dark: #144E52;
  --primary-soft: #DDF3F0;
  --secondary: #7A9E3A;
  --secondary-dark: #587628;
  --secondary-soft: #EDF6DD;
  --accent: #FFB703;
  --accent-dark: #B86E00;
  --accent-soft: #FFF4CC;
  --bg: #F6FAF7;
  --bg-tint: #EAF3EE;
  --card: #FFFFFF;
  --text: #17312D;
  --text-muted: #5B6F69;
  --button: #216869;
  --border: #D5E4DE;
  --success: #2E9E5B;
  --warning: #D98E1F;
  --error: #D64545;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --leaf: 28px 8px 28px 8px;         /* signature "leaf" corner for imagery */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31,42,55,.05), 0 8px 24px -12px rgba(31,42,55,.18);
  --shadow-lift: 0 2px 4px rgba(31,42,55,.06), 0 18px 36px -16px rgba(31,42,55,.28);
  --header-h: 72px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-head); line-height: 1.2; color: var(--text); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-code); font-size: .88em; }
code { background: var(--bg-tint); padding: .1em .4em; border-radius: 6px; }
kbd { display: inline-block; background: var(--card); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 6px; padding: 0 .45em; font-size: .82em; line-height: 1.6; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: none; margin-bottom: 40px; }
.section-head p { max-width: 720px; color: var(--text-muted); font-size: 1.08rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 640px; }
.center { text-align: center; }
.small-note { font-size: .9rem; color: var(--text-muted); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ic { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--button); color: #fff; box-shadow: 0 6px 16px -8px rgba(33,104,105,.45); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #2b1a03; }
.btn-accent:hover { background: #E3922C; color: #2b1d05; }
.btn-ghost { background: transparent; color: var(--primary-dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--card); }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; white-space: nowrap; }
.btn-lg { padding: 1.05em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,251,254,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(31,42,55,.4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; line-height: 1; white-space: nowrap; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.logo-mark { flex: 0 0 auto; display: inline-flex; line-height: 0; }
.logo-mark img { width: 38px; height: 38px; min-width: 38px; border-radius: 11px; box-shadow: 0 4px 10px -6px rgba(31,42,55,.5); }
.logo-text { display: inline-block; letter-spacing: -.01em; padding-top: 1px; }
.logo-amp { color: var(--accent-dark); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .96rem; }
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.main-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
.menu-toggle { flex: 0 0 auto; display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Image frames + skeleton ---------- */
.img-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--leaf); background: var(--bg-tint); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: none; }
.img-frame.loaded img { opacity: 1; }
.skeleton::before { display: none !important; content: none !important; }
.skeleton.loaded::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.no-js .img-frame img { opacity: 1; }

/* ---------- Hero (centered stack + wide showcase) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; background:
  radial-gradient(60% 50% at 15% 0%, rgba(33,104,105,.11), transparent 70%),
  radial-gradient(50% 45% at 90% 10%, rgba(255,183,3,.14), transparent 70%),
  radial-gradient(60% 40% at 50% 100%, rgba(122,158,58,.11), transparent 70%); }
.hero-center { text-align: center; max-width: 1000px; }
.tagline { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary-dark); background: var(--card); border: 1px solid var(--border); padding: 6px 14px 6px 10px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 22px; box-shadow: 0 4px 14px -10px rgba(31,42,55,.35); }
.tagline .ic { color: var(--secondary); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 14px; color: var(--text); }
.hero-sub { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.08rem, .95rem + .7vw, 1.45rem); color: var(--primary-dark); line-height: 1.35; margin: 0 auto 18px; max-width: 34ch; }
.hero-desc { font-size: 1.06rem; color: var(--text-muted); max-width: 62ch; margin: 0 auto; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 26px; }
.hero-facts { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; font-size: .92rem; }
.hero-facts .meta-k { color: var(--text-muted); }
.hero-facts .meta-v { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.hero-media { margin-top: clamp(36px, 5vw, 56px); max-width: 1080px; }
.hero-visual { margin: 0; position: relative; }
.hero-visual .img-frame { border-radius: 28px 28px 0 0; box-shadow: 0 -2px 0 rgba(255,255,255,.6), 0 30px 60px -30px rgba(31,42,55,.45); border: 6px solid var(--card); border-bottom: 0; }
.badges { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-wrap: nowrap; gap: 8px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px -14px rgba(31,42,55,.45); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; border-radius: 999px; padding: 6px 12px; color: var(--text); }
.badge .ic { color: var(--secondary); }
.meta-k, .meta-v { font-size: inherit; }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { width: 16px; height: 16px; fill: #D6DDE5; }
.star.on { fill: var(--accent); }
.star.half { fill: var(--accent); opacity: .5; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--card); border-block: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-grid > div { padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; border-left: 1px solid var(--border); }
.trust-grid > div:first-child { border-left: 0; }
.trust-grid strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--primary-dark); }
.trust-grid span { font-size: .9rem; color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 1.18rem; color: var(--text); }
.expert-note { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); box-shadow: var(--shadow); }
.expert-note h3 { display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }
.expert-note > p:first-of-type { font-size: 1.02rem; }
.expert-by { color: var(--text-muted); font-size: .9rem; }
.quick-facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--border); }
.quick-facts li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .95rem; }
.quick-facts li span:first-child { color: var(--text-muted); }
.quick-facts li span:last-child { font-weight: 600; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px 4px 14px 4px; background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 14px; }
.feature:nth-child(3n+2) .feature-icon { background: var(--secondary-soft); color: var(--secondary-dark); }
.feature:nth-child(3n) .feature-icon { background: var(--accent-soft); color: var(--accent-dark); }
.feature-icon .ic { width: 24px; height: 24px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--bg-tint); font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { font-weight: 600; }
.data-table.compact th, .data-table.compact td { padding: 10px 14px; }
.data-table.wide { min-width: 980px; }
.data-table tr.highlight { background: var(--primary-soft); }
.rating-num { font-weight: 600; margin-left: 6px; font-size: .9rem; }
.pill { display: inline-block; font-size: .82rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; margin: 2px 2px 2px 0; }
.pill.ok { background: #E1F3E7; color: #1E6B40; }
.pill.no { background: #FBE5E5; color: #9C2B2B; text-decoration: line-through; }
.pill.warn { background: #FCEFD9; color: #85520A; }

/* ---------- Download ---------- */
.download-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.download-card, .security-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.download-card { border-top: 5px solid var(--primary); }
.download-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.download-head img { border-radius: 14px; }
.download-head h3 { margin: 0; font-size: 1.35rem; }
.download-head p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 24px; }
.spec-list > div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-list dt { font-size: .82rem; color: var(--text-muted); }
.spec-list dd { margin: 0; font-weight: 600; font-size: .96rem; }
.download-actions { display: grid; gap: 12px; }
.security-card h3 { display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }
.security-card h4 { margin-top: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: .96rem; }
.check-list .ic { color: var(--success); margin-top: 4px; }
pre.code { background: #F1F6FB; color: #1F2A37; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.7; margin: 0 0 1em; }
pre.code code { background: none; padding: 0; color: inherit; }
pre.code .c { color: #6B7C8F; }

/* ---------- Tabs ---------- */
.tab-list { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--bg-tint); border-radius: 999px; width: fit-content; margin-bottom: 24px; }
.tab-list button { font: 600 .95rem var(--font-head); border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--text-muted); }
.tab-list button[aria-selected="true"] { background: var(--card); color: var(--primary-dark); box-shadow: var(--shadow); }
.tab-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font: 600 .95rem var(--font-head); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--border); }

/* ---------- How to use ---------- */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; font-size: .96rem; }
.use-card ol, .use-card ul { padding-left: 1.2em; margin: 0; }
.use-card li { margin-bottom: .55em; }
.shortcut-box { margin-top: 32px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.shortcut-box > p { color: var(--text-muted); }
.shortcut-box .table-wrap { border: 0; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 14px; }
.process li { counter-increment: p; display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.process li::before { content: counter(p); grid-row: span 2; font: 700 2rem/1 var(--font-head); color: var(--secondary); align-self: center; justify-self: center; }
.process h3 { margin: 0; }
.process p { margin: 0; color: var(--text-muted); }

/* ---------- Pros / cons ---------- */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.pc h3 { display: flex; align-items: center; gap: 10px; }
.pc.pros h3 .ic { color: var(--success); } .pc.cons h3 .ic { color: var(--error); }
.pc.pros { border-top: 4px solid var(--success); } .pc.cons { border-top: 4px solid var(--error); }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--border); position: relative; }
.pc li:last-child { border-bottom: 0; }
.pc li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; }
.pc.pros li::before { background: var(--success); } .pc.cons li::before { background: var(--error); }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.uc-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary-soft); color: var(--secondary-dark); }
.uc-icon .ic { width: 22px; height: 22px; }
.uc h3 { margin-bottom: .25em; font-size: 1.08rem; }
.uc p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item { margin: 0; }
.gallery-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--leaf); }
.gallery-btn .img-frame { transition: transform .3s, box-shadow .3s; }
.gallery-btn:hover .img-frame { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.gallery-item figcaption { padding: 10px 2px 0; display: flex; flex-direction: column; font-size: .9rem; color: var(--text-muted); }
.gallery-item figcaption strong { color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }

/* ---------- Troubleshooting + security ---------- */
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.note-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.note-card ul { padding-left: 1.2em; margin: 0; } .note-card li { margin-bottom: .5em; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.sec-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sec-card h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.sec-card h3 .ic { color: var(--primary); }
.sec-card p { margin: 0; font-size: .95rem; color: var(--text-muted); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.review header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review header h3 { font-size: 1rem; margin: 0; }
.review header p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font: 700 1.05rem var(--font-head); flex: none; }
.review-badge { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; font-weight: 600; color: var(--success); background: #E1F3E7; padding: 3px 9px; border-radius: 999px; }
.review-badge .ic { width: 14px; height: 14px; }
.review h4 { margin: 4px 0 0; font-size: 1.02rem; }
.review p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.faq-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.faq-icon { width: 38px; height: 38px; border-radius: 12px 4px 12px 4px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.faq-icon .ic { width: 20px; height: 20px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; font-size: 1rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item[open] { border-color: #B9DCD6; }
.faq-item p { padding: 0 18px 18px; margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-grid.three { grid-template-columns: repeat(3, 1fr); }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.post-card-img { border-radius: 0; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3, .post-card .h3 { font-size: 1.06rem; margin: 0; line-height: 1.35; }
.post-card h3 a, .post-card .h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover, .post-card .h3 a:hover { color: var(--primary-dark); }
.post-card p { margin: 0; color: var(--text-muted); font-size: .93rem; }
.post-cat { align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--secondary-dark); background: var(--secondary-soft); padding: 3px 10px; border-radius: 999px; }
.post-meta { margin-top: auto; font-size: .85rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0; }
.contact-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.contact-list .ic { color: var(--primary); }
.map-placeholder { aspect-ratio: 16 / 9; border-radius: var(--leaf); border: 1px solid var(--border); display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(46,127,184,.08) 38px 40px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(46,127,184,.08) 38px 40px), linear-gradient(135deg, #E6F1FA, #E8F4EC); }
.map-placeholder .ic { width: 42px; height: 42px; color: var(--error); }
.map-placeholder a { font-weight: 600; background: var(--card); padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(46,127,184,.18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.form-msg { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--success); } .form-msg.err { color: var(--error); }

/* ---------- Newsletter + footer ---------- */
.newsletter-band { background: linear-gradient(120deg, var(--primary-soft), var(--secondary-soft)); color: var(--text); padding: 52px 0; border-top: 1px solid var(--border); }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter-band h2 { color: var(--text); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.newsletter-band p { margin: 0; color: var(--text-muted); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1 1 220px; min-width: 0; }
.newsletter-band .form-msg { flex-basis: 100%; }
.site-footer { background: #EEF4FA; color: var(--text-muted); border-top: 1px solid var(--border); padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer h3 { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary-dark); text-decoration: underline; }
.logo-footer { color: var(--text) !important; margin-bottom: 14px; }
.social { display: flex !important; gap: 10px; margin-top: 16px !important; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); }
.social a:hover { background: var(--primary-soft); border-color: var(--primary); }
.social svg { width: 18px; height: 18px; fill: var(--primary-dark); }
.footer-bottom { position: relative; margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; }
.footer-bottom .copyright a { color: var(--primary-dark); font-weight: 600; }
.footer-disclaimer { max-width: 640px; }

/* ---------- Sticky CTA, back to top ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lift); transform: translateY(140%); transition: transform .35s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta div { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-cta strong { font-family: var(--font-head); font-size: .95rem; }
.sticky-cta span { font-size: .8rem; color: var(--text-muted); }
.back-to-top { position: fixed; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; fill: var(--primary-dark); }

/* ---------- Modal, cookie, lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(31,42,55,.45); display: grid; place-items: center; padding: 20px; animation: fade .25s ease; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: var(--card); border-radius: 22px; overflow: hidden; max-width: 460px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); animation: pop .3s ease; }
.modal-card > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.modal-body { padding: 24px 26px 26px; }
.modal-body h2 { font-size: 1.35rem; }
.modal-body p { color: var(--text-muted); font-size: .96rem; }
.modal-body .newsletter-form .btn { flex: 1 1 100%; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.cookie-banner { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 250; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lift); font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner div { display: flex; gap: 8px; justify-content: flex-end; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20,28,38,.9); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; grid-column: 2; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 16px; }
.lightbox figcaption { color: #E3F2E8; margin-top: 12px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }
.lightbox-nav { background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox-nav.prev { grid-column: 1; } .lightbox-nav.next { grid-column: 3; }

/* ---------- Page hero, breadcrumbs ---------- */
.page-hero { padding: 48px 0 32px; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.page-hero p { color: var(--text-muted); max-width: 60ch; font-size: 1.08rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #A9B7C6; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-dark); text-decoration: underline; }
.blog-search { margin: 24px 0 16px; max-width: 520px; }
.blog-search input { border-radius: 999px; padding: 14px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; text-decoration: none; font: 500 .9rem var(--font-body); border: 1px solid var(--border); background: var(--card); padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { text-align: center; padding: 40px 0; color: var(--text-muted); }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0 20px; }
.legal .small-note a { margin-right: 10px; }

/* ---------- Post page ---------- */
.post-hero { padding: 40px 0 0; background: linear-gradient(180deg, var(--bg-tint) 0, var(--bg-tint) 62%, var(--bg) 62%); }
.post-hero-inner { max-width: 900px; }
.post-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); margin: 14px 0 12px; }
.post-standfirst { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; color: var(--text-muted); margin-bottom: 32px; }
.post-byline .avatar { width: 34px; height: 34px; font-size: .9rem; background: var(--primary-soft); color: var(--primary-dark); }
.post-feature { margin: 0; }
.post-feature .img-frame { border-radius: 36px 10px 36px 10px; box-shadow: var(--shadow-lift); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.post-content { font-size: 1.08rem; max-width: 72ch; }
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content .table-wrap { margin: 0 0 1.4em; }
.post-figure { margin: 32px 0; }
.post-figure .img-frame { box-shadow: var(--shadow); }
.post-figure figcaption { font-size: .9rem; color: var(--text-muted); margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--accent); }
.callout { background: var(--secondary-soft); border-left: 4px solid var(--secondary); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em; font-size: 1rem; }
.callout.warn { background: var(--accent-soft); border-left-color: var(--warning); }
.post-faq { margin-top: 40px; }
.post-cta { margin-top: 40px; background: linear-gradient(120deg, var(--primary-soft), var(--secondary-soft)); color: var(--text); border: 1px solid var(--border); border-radius: 22px 6px 22px 6px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.post-cta h2 { color: var(--text); font-size: 1.3rem; margin: 0 0 4px; }
.post-cta p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.post-sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.side-card h2 { font-size: 1.02rem; margin-bottom: 12px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc ol { padding-left: 1.2em; margin: 0; font-size: .93rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--primary-dark); font-weight: 600; }
.side-download { background: var(--primary-soft); border-color: #B9DCD6; }
.side-download p { font-size: .92rem; color: var(--text-muted); }
.side-links { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.side-links li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { text-decoration: none; color: var(--text); }
.side-links a:hover { color: var(--primary-dark); }
.related h2 { margin-bottom: 24px; }

/* ---------- Reveal (single, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Layout safety: grid/flex children may shrink ---------- */
.download-grid > *, .contact-grid > *, .about-grid > *, .post-layout > *, .newsletter-inner > *, .footer-grid > *, .hero-grid > *,
.feature-grid > *, .use-grid > *, .uc-grid > *, .review-grid > *, .faq-grid > *, .post-grid > *, .sec-grid > *, .ts-grid > *, .pc-grid > *, .gallery > * { min-width: 0; }
a[href^="mailto:"], .contact-list span { overflow-wrap: anywhere; }
.btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 10px; }
  .header-inner { gap: 16px; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .use-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px -20px rgba(31,42,55,.3); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; margin: 0; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .about-grid, .download-grid, .contact-grid, .newsletter-inner, .post-layout { grid-template-columns: 1fr; }
  .expert-note, .toc { position: static; }
  .feature-grid, .uc-grid, .review-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid > div:nth-child(4) { border-left: 0; }
  .trust-grid > div:nth-child(n+4) { border-top: 1px solid var(--border); }
  .post-grid, .post-grid.three { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .back-to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .post-sidebar { order: 2; }
}
@media (max-width: 760px) {
  .hero-visual .img-frame { border-width: 4px; border-radius: 20px 20px 0 0; }
  .badges { position: static; transform: none; flex-wrap: wrap; justify-content: center; white-space: normal; border-radius: 0 0 16px 16px; border-top: 0; margin: 0; box-shadow: none; background: var(--card); padding: 8px 10px 10px; gap: 2px 4px; }
  .badge { padding: 4px 8px; font-size: .82rem; }
  .hero-media { padding: 0 12px; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .logo { gap: 9px; font-size: 1.02rem; }
  .logo-mark img { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }
  .footer-bottom::before { left: 18px; right: 18px; }
  .hero-facts li { flex: 1 1 calc(50% - 10px); justify-content: center; flex-direction: column; gap: 2px; padding: 8px 10px; }
  .hero-sub { max-width: none; }
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .feature-grid, .uc-grid, .review-grid, .pc-grid, .ts-grid, .sec-grid, .use-grid, .post-grid, .post-grid.three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div { border-left: 0 !important; border-top: 1px solid var(--border); }
  .trust-grid > div:nth-child(-n+2) { border-top: 0; }
  .trust-grid > div:last-child { grid-column: 1 / -1; }
  .trust-grid > div { padding: 14px 10px; }
  .trust-grid strong { font-size: 1.25rem; }
  .spec-list { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .tab-list { width: 100%; border-radius: 16px; }
  .tab-list button { flex: 1 1 auto; padding: 10px 12px; }
  .tab-panel, .download-card, .security-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process li { grid-template-columns: 44px 1fr; padding: 18px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-nav { position: absolute; bottom: 24px; }
  .lightbox-nav.prev { left: 30%; } .lightbox-nav.next { right: 30%; }
  .lightbox figure { grid-column: 1; }
  .cookie-banner { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 700px) {
  .table-wrap.stack { border: 0; background: none; overflow: visible; border-radius: 0; }
  .table-wrap.stack table, .table-wrap.stack tbody, .table-wrap.stack tr, .table-wrap.stack th, .table-wrap.stack td { display: block; width: 100%; }
  .table-wrap.stack .data-table.wide { min-width: 0; }
  .table-wrap.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap.stack tbody tr { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; padding: 4px 0; }
  .table-wrap.stack tbody tr.highlight { background: var(--primary-soft); border-color: #B9DCD6; }
  .table-wrap.stack tbody tr > * { border-bottom: 1px dashed var(--border); }
  .table-wrap.stack tbody tr > *:last-child { border-bottom: 0; }
  .table-wrap.stack .row-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 12px 16px 10px; background: none; }
  .table-wrap.stack td[data-label] { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
  .table-wrap.stack td[data-label]::before { content: attr(data-label); font-weight: 600; font-size: .84rem; color: var(--text-muted); }
  .shortcut-box { padding: 20px; }
}
@media (max-width: 1000px) {
  .table-wrap.stack-wide { border: 0; background: none; overflow: visible; border-radius: 0; }
  .table-wrap.stack-wide table, .table-wrap.stack-wide tbody, .table-wrap.stack-wide tr, .table-wrap.stack-wide th, .table-wrap.stack-wide td { display: block; width: 100%; }
  .table-wrap.stack-wide .data-table.wide { min-width: 0; }
  .table-wrap.stack-wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap.stack-wide tbody tr { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; padding: 4px 0; }
  .table-wrap.stack-wide tbody tr.highlight { background: var(--primary-soft); border-color: #B9DCD6; }
  .table-wrap.stack-wide tbody tr > * { border-bottom: 1px dashed var(--border); }
  .table-wrap.stack-wide tbody tr > *:last-child { border-bottom: 0; }
  .table-wrap.stack-wide .row-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 12px 16px 10px; background: none; }
  .table-wrap.stack-wide td[data-label] { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
  .table-wrap.stack-wide td[data-label]::before { content: attr(data-label); font-weight: 600; font-size: .84rem; color: var(--text-muted); }
}
@media (max-width: 359px) {
  .logo { font-size: .92rem; gap: 8px; }
  .logo-mark img { width: 32px; height: 32px; min-width: 32px; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .sticky-cta, .back-to-top, .newsletter-band, .site-footer, .post-sidebar, .cookie-banner { display: none !important; }
}


/* ===== 2026-09-28 layout/cache hardening ===== */
/* Guard against stale/partial stylesheets making inline SVGs explode to viewport size. */
svg { max-width: 100%; }
.ic,
.btn svg,
.tagline svg,
.hero-facts svg,
.feature-card svg,
.security-card svg,
.check-list svg,
.uc-icon svg,
.social svg,
.back-to-top svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn svg, .back-to-top svg { width: 20px; height: 20px; }

/* Header/nav hardening. Keeps desktop navigation horizontal and removes default list bullets. */
.site-header { width: 100%; }
.header-inner { width: 100%; min-width: 0; }
.main-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li { list-style: none !important; margin: 0; padding: 0; }
.logo, .header-cta, .menu-toggle { flex-shrink: 0; }
.logo img { object-fit: cover; }

/* Global overflow protection for long URLs/code/content. */
html, body { max-width: 100%; overflow-x: clip; }
main, section, .container { min-width: 0; }
pre, .table-wrap { max-width: 100%; }

/* Promotional overlays removed site-wide. Hide defensively in case stale HTML is served. */
.sticky-cta, #exit-modal, .cookie-banner { display: none !important; visibility: hidden !important; pointer-events: none !important; }

@media (min-width: 961px) {
  .header-inner { display: flex !important; align-items: center !important; }
  .main-nav { position: static !important; inset: auto !important; margin-left: auto !important; padding: 0 !important; opacity: 1 !important; visibility: visible !important; transform: none !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .main-nav ul { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 4px !important; }
  .menu-toggle { display: none !important; }
}

@media (max-width: 960px) {
  .header-inner { display: flex; }
  .main-nav ul { display: flex; flex-direction: column; }
  .main-nav:not(.open) { pointer-events: none; }
  .main-nav.open { pointer-events: auto; }
}

@media (max-width: 640px) {
  .logo-text { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  h1 { overflow-wrap: anywhere; }
}


/* ===== 2026-09-28 v3: full layout recovery + woodland theme ===== */
html, body { width: 100%; min-height: 100%; }
body { background: var(--bg) !important; color: var(--text) !important; }
.container { width: min(100% - 40px, var(--container)) !important; max-width: var(--container) !important; margin-inline: auto !important; padding-inline: 0 !important; }

/* Inline SVGs are icons on this site. Never let an unstyled icon expand into the page. */
svg { display: inline-block; width: 1em; height: 1em; max-width: 100%; max-height: 100%; vertical-align: -.12em; overflow: visible; }
svg.ic, .ic { width: 1.15em !important; height: 1.15em !important; }

.site-header { background: rgba(246,250,247,.94) !important; border-bottom: 1px solid var(--border) !important; }
.header-inner { display: flex !important; align-items: center !important; min-height: var(--header-h) !important; height: auto !important; gap: 20px !important; }
.logo { display: inline-flex !important; align-items: center !important; gap: 10px !important; text-decoration: none !important; }
.logo-mark img { width: 40px !important; height: 40px !important; min-width: 40px !important; object-fit: cover !important; }
.main-nav { margin-left: auto !important; }
.main-nav ul { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 4px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.main-nav a { display: block !important; padding: 9px 13px !important; border-radius: 999px !important; text-decoration: none !important; }
.header-cta { flex: 0 0 auto !important; }

.hero { padding-top: clamp(48px, 6vw, 82px) !important; }
.hero-center { margin-inline: auto !important; }
.hero-media { margin-top: 38px !important; }
.hero-visual { max-width: 1040px !important; margin: 0 auto !important; }
.hero-visual .img-frame { min-height: 280px; border: 6px solid #fff; box-shadow: var(--shadow-lift); }
.hero-visual .img-frame img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.section { padding-block: clamp(58px, 6vw, 88px) !important; }
.section-head { margin-bottom: 34px !important; }
.feature-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 20px !important; }
.feature { display: block !important; background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: 18px !important; padding: 26px !important; box-shadow: 0 10px 30px -24px rgba(23,49,45,.35); }
.feature-icon { display: inline-grid !important; place-items: center !important; width: 48px !important; height: 48px !important; margin-bottom: 14px !important; }
.feature-icon svg { width: 24px !important; height: 24px !important; }

.download-grid { display: grid !important; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr) !important; gap: 24px !important; align-items: stretch !important; }
.download-card, .security-card { display: block !important; background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: 18px !important; padding: 28px !important; box-shadow: var(--shadow) !important; }
.download-card { border-top: 5px solid var(--primary) !important; }
.download-head { display: flex !important; align-items: center !important; gap: 16px !important; }
.download-head img { width: 64px !important; height: 64px !important; object-fit: cover !important; flex: 0 0 64px !important; }
.spec-list { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 1px !important; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); }
.spec-list > div { background: var(--card) !important; padding: 14px 16px !important; min-width: 0; }
.download-actions { display: grid !important; gap: 12px !important; }

.btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; border-radius: 999px !important; text-decoration: none !important; }
.btn-primary { background: var(--primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark) !important; color: #fff !important; }
.btn-secondary { background: var(--secondary) !important; color: #fff !important; }
.btn-accent { background: var(--accent) !important; color: #352500 !important; }

/* Cards/grids used throughout guides and support pages. */
.about-grid, .contact-grid, .newsletter-inner, .post-layout, .use-grid, .uc-grid, .review-grid, .faq-grid, .post-grid, .sec-grid, .ts-grid, .pc-grid, .gallery { min-width: 0; }
.feature, .download-card, .security-card, .side-card, .review-card, .use-card, .uc-card, .post-card, .faq-card { min-width: 0; }

/* Desktop must stay desktop even if stale mobile rules are cached before this block. */
@media (min-width: 961px) {
  .menu-toggle { display: none !important; }
  .main-nav { position: static !important; inset: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .main-nav ul { display: flex !important; flex-direction: row !important; }
}
@media (max-width: 960px) {
  .container { width: min(100% - 32px, var(--container)) !important; }
  .menu-toggle { display: flex !important; margin-left: auto !important; }
  .header-cta { display: none !important; }
  .main-nav { position: fixed !important; left: 0 !important; right: 0 !important; top: var(--header-h) !important; margin: 0 !important; padding: 12px 16px 18px !important; background: var(--bg) !important; border-bottom: 1px solid var(--border) !important; transform: translateY(-8px) !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  .main-nav.open { transform: none !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
  .main-nav ul { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .download-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)) !important; }
  .logo-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .feature-grid { grid-template-columns: 1fr !important; }
  .spec-list { grid-template-columns: 1fr !important; }
  .download-card, .security-card, .feature { padding: 20px !important; }
}

/* Image reliability hotfix: images must never depend on JS-added classes to become visible. */
.img-frame img, .hero-visual img, .gallery-grid img, .post-card-img img, .download-head img { opacity: 1 !important; visibility: visible !important; display: block !important; }
.img-frame::before, .skeleton::before { display: none !important; content: none !important; animation: none !important; }
