/* ==========================================================================
   Zen Browser guide — stylesheet
   Design seed: S07 App Showcase (light theme)
   Palette: coral #F47152 · ink #1B2232 · amber #E9A23B on cream #FFF9F4
   ========================================================================== */

/* ---------- Fonts (self-hosted Poppins) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --clay: #F47152;
  --clay-dark: #C64B31;
  --clay-2: #FF987E;
  --clay-soft: #FFE2D8;
  --clay-xs: #FFF0EA;
  --ink: #1B2232;
  --ink-2: #454F64;
  --mute: #6B7385;
  --amber: #E9A23B;
  --amber-soft: #FBEACB;
  --sage: #4F8574;
  --sage-soft: #DCEBE5;
  --sky: #4A6BD8;
  --sky-soft: #DFE6FB;
  --cream: #FFF9F6;
  --sand: #F9EEE9;
  --sand-2: #F2E6DB;
  --white: #FFFFFF;
  --line: #EEDDD5;
  --line-2: #E0D3C7;
  --shadow-sm: 0 2px 8px rgba(60, 35, 20, .06);
  --shadow: 0 14px 40px -18px rgba(60, 35, 20, .28);
  --shadow-lg: 0 30px 70px -30px rgba(60, 35, 20, .35);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --header-h: 74px;
  --shell: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: "Poppins", Arial, sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .75rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
code { font-family: "Poppins", Arial, sans-serif; font-size: .92em; background: var(--sand); border: 1px solid var(--line); padding: .1em .45em; border-radius: 6px; color: var(--ink); word-break: break-word; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.shell-wide { max-width: var(--shell); }
.section { padding-block: 96px; position: relative; }
.section-tight { padding-block: 72px; }
.band-sand { background: var(--sand); }
.band-white { background: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.muted { color: var(--mute); }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; }
.ico-lg { width: 30px; height: 30px; }
.icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--clay-xs); color: var(--clay); flex: none; transition: transform .3s ease; }
.icon-tile.t-amber { background: var(--amber-soft); color: #A86A0C; }
.icon-tile.t-sage { background: var(--sage-soft); color: var(--sage); }
.icon-tile.t-sky { background: var(--sky-soft); color: var(--sky); }
.icon-tile.t-ink { background: #E6E8EE; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; text-align: center; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 12px 26px -12px rgba(244, 113, 82, .65); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-lg { min-height: 58px; padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--clay); }
.text-link .ico { transition: transform .2s ease; }
.text-link:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
#site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-h); background: rgba(255, 249, 244, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease; }
#site-header.is-scrolled { background: rgba(255, 255, 255, .96); border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(60, 35, 20, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 4px; padding: 5px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s ease, color .2s ease; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.nav a.is-active { background: #fff; color: var(--clay); box-shadow: var(--shadow-sm); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .ico-close { display: none; }
.menu-open .menu-toggle .ico-open { display: none; }
.menu-open .menu-toggle .ico-close { display: block; }
.mobile-panel { display: none; }

/* ---------- Hero (S07: visual-heavy showcase) ---------- */
.hero { position: relative; padding: 34px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: 4%; width: 68%; height: 92%; background: linear-gradient(140deg, #FCE7DD 0%, #F9DCCD 55%, #FBEACB 100%); border-radius: 60px 0 0 60px; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; }
.hero-copy { position: relative; z-index: 2; padding-block: 20px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy h1 .accent { color: var(--clay); }
.hero-copy .lead { max-width: 500px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-note { font-size: .86rem; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.chip .ico { color: var(--clay); width: 18px; height: 18px; }
.hero-visual { position: relative; margin-right: -60px; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(110, 50, 25, .10)); }
.hero-caption { position: absolute; left: 6%; bottom: 2%; font-size: .74rem; color: var(--mute); background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 999px; }

/* ---------- About (S07: layered collage + explanation cards) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.collage { position: relative; padding: 0 0 90px 0; }
.collage-main { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.collage-sub { position: absolute; right: -24px; bottom: 0; width: 52%; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.collage-badge { position: absolute; left: -18px; top: 40px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 230px; }
.collage-badge strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.collage-badge span { font-size: .78rem; color: var(--mute); }
.explain-list { display: grid; gap: 14px; margin-top: 26px; }
.explain { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.explain:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--clay-soft); }
.explain h3 { font-size: 1.02rem; margin-bottom: 4px; }
.explain p { margin: 0; font-size: .93rem; }
.explain .icon-tile { width: 46px; height: 46px; border-radius: 13px; }

/* ---------- Features (S07: alternating full-width rows) ---------- */
.feature-rows { display: grid; gap: 30px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 26px; border-radius: var(--radius-xl); transition: background .3s ease; }
.feature-row:hover { background: rgba(255, 255, 255, .7); }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease; }
.feature-row:hover .feature-media { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-row:hover .icon-tile { transform: rotate(-6deg); }
.feature-text .icon-tile { margin-bottom: 18px; display: inline-grid; vertical-align: middle; }
.feature-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; margin-bottom: 12px; }
.feature-num { font-size: .8rem; font-weight: 600; color: var(--mute); letter-spacing: .1em; margin-left: 12px; vertical-align: middle; }
.tick-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.tick-list .ico { color: var(--sage); width: 20px; height: 20px; margin-top: 3px; }

/* ---------- How it works (S07: visual 3-step walkthrough) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-media { background: var(--sand); }
.step-body { padding: 26px 26px 30px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-num { font-size: 3rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--clay); letter-spacing: -.04em; }
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; font-size: .95rem; }
.steps-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; font-size: .9rem; color: var(--mute); }

/* ---------- Compatibility ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.platform { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.platform:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--clay-soft); }
.platform h3 { margin: 6px 0 0; }
.platform p { font-size: .92rem; margin: 0; }
.platform .status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: #2F6656; align-self: flex-start; }
.platform .status .ico { width: 15px; height: 15px; }
.platform.is-off { background: transparent; border-style: dashed; }
.platform.is-off .status { background: #ECE6E0; color: var(--ink-2); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.mini-tags span { font-size: .76rem; padding: 4px 10px; border-radius: 8px; background: var(--sand); color: var(--ink-2); font-weight: 500; }
.req-strip { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.req { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; }
.req + .req { border-left: 1px solid var(--line); }
.req .ico { color: var(--clay); margin-top: 2px; }
.req strong { display: block; color: var(--ink); font-size: .95rem; }
.req span { font-size: .88rem; }

/* ---------- Use cases (mosaic) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.case { grid-column: span 2; position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.case:nth-child(1), .case:nth-child(5) { grid-column: span 3; }
.case:nth-child(2) { grid-column: span 3; }
.case:nth-child(3), .case:nth-child(4) { grid-column: span 3; }
.case:nth-child(6) { grid-column: span 3; }
.case::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tint, var(--clay-xs)); opacity: .8; transition: transform .4s ease; }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case:hover::after { transform: scale(1.25); }
.case > * { position: relative; z-index: 1; }
.case h3 { margin: 16px 0 6px; }
.case p { margin: 0; font-size: .94rem; max-width: 46ch; }

/* ---------- Benefits ---------- */
.benefit-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.benefit-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.benefit { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--amber-soft); }
.benefit h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.benefit p { margin: 0; font-size: .92rem; }
.benefit .icon-tile { width: 48px; height: 48px; border-radius: 14px; }

/* ---------- Installation (OS tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; margin-bottom: 30px; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.tab-btn .ico { width: 18px; height: 18px; }
.tab-btn[aria-selected="true"] { background: var(--clay); color: #fff; }
.tab-btn:not([aria-selected="true"]):hover { background: var(--sand); color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tab-panel[hidden] { display: none; }
.install-step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.install-step .n { position: absolute; top: 18px; right: 20px; font-weight: 700; font-size: .85rem; color: var(--clay); background: var(--clay-xs); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.install-step h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.install-step p { font-size: .92rem; margin: 0 0 8px; }
.install-step p:last-child { margin-bottom: 0; }
.tab-foot { margin-top: 20px; font-size: .88rem; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; }
.tab-foot .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--clay); }

/* ---------- Download ---------- */
.download-band { position: relative; border-radius: var(--radius-xl); background: linear-gradient(135deg, #FDEDE5 0%, #FBE2D6 50%, #FCEFD8 100%); border: 1px solid var(--clay-soft); padding: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; overflow: hidden; }
.download-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .45); left: -140px; bottom: -200px; }
.download-copy { position: relative; }
.download-meta { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.download-meta li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.download-meta .ico { color: var(--clay); margin-top: 2px; }
.download-visual { position: relative; }
.download-visual img { width: 100%; }
.dl-note { margin-top: 16px; font-size: .84rem; color: var(--ink-2); max-width: 520px; }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.safe { padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sage); transition: transform .25s ease, box-shadow .25s ease; }
.safe:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.safe .ico { color: var(--sage); width: 30px; height: 30px; }
.safe h3 { font-size: 1rem; margin: 14px 0 6px; }
.safe p { margin: 0; font-size: .88rem; }

/* ---------- Pros & cons ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pc { border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.pc:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pc h3 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 18px; }
.pc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pc li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.pc li .mk { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; margin-top: 1px; }
.pc li .mk .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.pc.pros { border-top: 5px solid var(--sage); }
.pc.pros .mk { background: var(--sage-soft); color: #2F6656; }
.pc.pros h3 .icon-tile { background: var(--sage-soft); color: #2F6656; }
.pc.cons { border-top: 5px solid var(--clay); background: #FFFCFA; }
.pc.cons .mk { background: var(--clay-xs); color: var(--clay-dark); border-radius: 50%; }
.pc.cons h3 .icon-tile { background: var(--clay-xs); color: var(--clay-dark); }

/* ---------- Release info ---------- */
.release-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: start; }
.release-cards { display: grid; gap: 14px; }
.rel { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.rel h3 { font-size: 1rem; margin-bottom: 4px; }
.rel p { margin: 0; font-size: .92rem; }
.snapshot { border-radius: var(--radius-lg); background: var(--ink); color: #DCE1EA; padding: 32px; }
.snapshot h3 { color: #fff; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.snapshot dl { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: .92rem; }
.snapshot dt { color: #A5AEC0; }
.snapshot dd { margin: 0; color: #fff; font-weight: 500; word-break: break-word; }
.snapshot p { font-size: .86rem; color: #B9C1D0; margin: 18px 0 0; }

/* ---------- Troubleshooting ---------- */
.trouble-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trouble { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: border-color .25s ease, box-shadow .25s ease; }
.trouble:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.trouble header { display: flex; gap: 12px; align-items: center; }
.trouble h3 { margin: 0; font-size: 1.02rem; }
.trouble p { margin: 0; font-size: .9rem; }
.trouble .fix { font-size: .9rem; padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.trouble .fix strong { color: var(--ink); }

/* ---------- Blog cards (image-led) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; color: inherit; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .cat { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--clay); }
.post-card h3 { font-size: 1.12rem; margin: 0; color: var(--ink); }
.post-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.post-card .text-link { margin-top: auto; padding-top: 6px; }
.post-card.featured { grid-column: span 2; flex-direction: row; }
.post-card.featured { align-items: center; }
.post-card.featured .thumb { flex: 1.2; aspect-ratio: 16 / 9; align-self: center; margin: 18px 0 18px 18px; border-radius: 20px; }
.post-card.featured .body { flex: 1; padding: 32px; justify-content: center; }
.post-card.featured h3 { font-size: 1.45rem; }

/* ---------- FAQ (S07: rounded accordion cards) ---------- */
.faq-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.faq-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 18px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .25s ease, box-shadow .25s ease; }
.faq-item.is-open { border-color: var(--clay-soft); box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: left; cursor: pointer; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.45; border-radius: 20px; }
.faq-q .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--clay); transition: background .25s ease, color .25s ease, transform .3s ease; }
.faq-q .pm .v { transition: opacity .2s ease; }
.faq-item.is-open .pm { background: var(--clay); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .pm .v { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 20px; margin: 0; font-size: .94rem; }

/* ---------- Footer (S07: visual brand strip + columns) ---------- */
#site-footer { background: var(--white); border-top: 1px solid var(--line); }
.brand-strip { background: linear-gradient(120deg, #FDEDE5, #FCEFD8); border-bottom: 1px solid var(--line); }
.brand-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 34px; flex-wrap: wrap; }
.brand-strip p { margin: 4px 0 0; font-size: .95rem; }
.brand-strip .brand { font-size: 1.3rem; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 54px 40px; }
.footer-cols h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-cols a { color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.footer-cols a:hover { color: var(--clay); }
.footer-about p { font-size: .92rem; max-width: 360px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--mute); }
.footer-bottom a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: var(--clay); }
.footer-bottom .disclaimer-line { text-align: right; }
#site-footer a { text-decoration: none; }

/* ---------- Scroll-to-top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--clay); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(244, 113, 82, .75); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--clay-dark); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 54px 0 46px; background: linear-gradient(180deg, var(--cream), var(--sand)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--mute); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--clay); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--clay-soft); }
.prose a:hover { text-decoration-color: var(--clay); }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid #F1D49F; margin: 1.6rem 0; }
.callout .ico { color: #A86A0C; margin-top: 3px; }
.callout p { margin: 0; font-size: .96rem; }
.cmd { display: block; background: var(--ink); color: #FFE2B0; padding: 14px 18px; border-radius: 14px; font-family: "Poppins", Arial, sans-serif; font-size: .92rem; overflow-x: auto; white-space: pre; margin: 0 0 1.2rem; }
.content-wrap { padding-block: 60px 90px; }
.contact-card { display: inline-flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 10px 0 26px; }
.contact-card strong { display: block; color: var(--ink); font-size: 1.1rem; word-break: break-all; }
.contact-card span { font-size: .86rem; color: var(--mute); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.info-box { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-box h3 { font-size: 1rem; margin: 12px 0 6px; }
.info-box p { margin: 0; font-size: .92rem; }

/* Blog listing */
.blog-list { padding-block: 60px 90px; }
.blog-list .post-grid { gap: 28px; }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 50px 90px; align-items: start; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; color: var(--mute); margin-top: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 17px; height: 17px; color: var(--clay); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 34px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-box { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.side-box h2, .side-box h3 { font-size: 1.02rem; margin-bottom: 12px; }
.side-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side-box li a { color: var(--ink-2); font-size: .92rem; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.side-box li a:hover { color: var(--clay); }
.side-box li a .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--clay); }
.side-cta { background: linear-gradient(140deg, #FDEDE5, #FCEFD8); border-color: var(--clay-soft); }
.side-cta p { font-size: .9rem; }
.related { padding-block: 70px 90px; border-top: 1px solid var(--line); background: var(--sand); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 10px; font-size: .86rem; }
  .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-visual { margin-right: 0; }
}
@media (max-width: 1040px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { display: block; position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(60, 35, 20, .4); padding: 14px 24px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .menu-open .mobile-panel { opacity: 1; visibility: visible; transform: none; }
  .mobile-panel a { display: block; padding: 13px 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
  .mobile-panel a.is-active { color: var(--clay); }
  .mobile-panel .btn { margin-top: 16px; width: 100%; border-bottom: 0; color: #fff; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero::before { width: 100%; right: 0; top: 46%; height: 54%; border-radius: 40px 40px 0 0; }
  .hero-copy { text-align: left; }
  .hero-visual { margin-right: 0; }
  .about-grid, .benefit-wrap, .release-grid { grid-template-columns: 1fr; gap: 44px; }
  .benefit-aside { position: static; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-band { grid-template-columns: 1fr; padding: 40px; }
  .download-visual { max-width: 520px; }
  .trouble-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.featured { grid-column: span 2; }
  .tab-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 820px) {
  .section { padding-block: 72px; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 12px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq-wrap, .pc-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .case, .case:nth-child(n) { grid-column: span 1; }
  .req-strip { grid-template-columns: 1fr; }
  .req + .req { border-left: 0; border-top: 1px solid var(--line); }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .shell { padding-inline: 18px; }
  .section { padding-block: 60px; }
  .hero { padding: 22px 0 40px; }
  .hero-copy { padding-block: 6px; }
  .hero-copy .lead { margin-bottom: 20px; }
  .hero-actions { margin-bottom: 18px; }
  .hero-actions .btn { width: 100%; }
  .chip { font-size: .8rem; padding: 6px 12px; }
  .brand { font-size: 1.02rem; }
  .brand img { width: 34px; height: 34px; }
  .collage { padding-bottom: 60px; }
  .collage-sub { right: -6px; width: 58%; }
  .collage-badge { left: -4px; top: 14px; padding: 10px 12px; }
  .platforms, .mosaic, .benefit-list, .trouble-grid, .post-grid, .tab-panel, .safety-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; flex-direction: column; }
  .post-card.featured .thumb { aspect-ratio: 16 / 9; margin: 0; border-radius: 0; align-self: stretch; flex: none; }
  .post-card.featured .body { padding: 22px 24px 26px; }
  .download-band { padding: 28px 22px; border-radius: 28px; }
  .download-band .btn { width: 100%; }
  .tabs { border-radius: 20px; width: 100%; }
  .tab-btn { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 10px; }
  .pc { padding: 24px; }
  .snapshot { padding: 24px; }
  .snapshot dl { grid-template-columns: 1fr; gap: 2px; }
  .snapshot dd { margin-bottom: 10px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .disclaimer-line { text-align: left; }
  .brand-strip-inner .btn { width: 100%; }
  .contact-card { display: flex; }
  .faq-q { padding: 16px; font-size: .95rem; }
  .faq-a p { padding: 0 16px 18px; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 14px; }
  .tab-btn { flex-basis: 100%; }
  h1 { font-size: 1.9rem; }
}
.faq-h { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
@media (max-width: 640px) { .to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; } }
.cmd code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }


/* Custom identity: exact concentric-ring mark supplied for this site. */
.brand img { border-radius: 0; object-fit: contain; flex-shrink: 0; }
.header-cta .btn-primary, .mobile-panel .btn-primary {
  color: #192333; /* updated download-button label for strong contrast with coral */
  font-weight: 700;
}
.header-cta .btn-primary:hover, .mobile-panel .btn-primary:hover { color: #ffffff; }
.btn-primary { color: #1B2232; font-weight: 700; }
.btn-primary:hover { color: #ffffff; }
.hero-visual { margin-right: 0; }
.hero-visual img { border-radius: 26px; box-shadow: 0 24px 62px -35px rgba(29,34,50,.35); filter: none; }
.hero-caption { bottom: 0; left: 4%; font-size: .72rem; }
.collage-main img { width: 100%; height: auto; }
.feature-media img, .download-visual img, .article-cover img, .post-card .thumb img {
  image-rendering: auto; object-position: center center;
}
.feature-media img { width: 100%; height: auto; }
.post-card .thumb img, .article-cover img { object-fit: cover; }
.related .post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 670px) {
  .related .post-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-right: 0; }
  .hero-visual img { border-radius: 18px; }
}

/* Site-wide 1140px content grid with responsive gutters. */
:root { --shell: 1140px; }
.shell, .shell-wide { width: 100%; max-width: 1140px; margin-inline: auto; }
.hero-visual { min-width: 0; margin-right: 0; }
.hero-visual img { width: 100%; height: auto; object-fit: contain; }
/* Section eyebrow headings are now the sole semantic H2 headings. */
h2.section-title-compact {
  display: block; width: 100%; margin: 0 0 20px;
  font-size: clamp(1.75rem, 2.9vw, 2.4rem);
  line-height: 1.25; letter-spacing: -.025em; font-weight: 700;
  text-transform: none; color: var(--ink);
}
h2.section-title-compact::before { display: none; }
.section-head h2.section-title-compact { margin-bottom: 18px; }
.section-head .lead { margin: 0; }
@media (max-width: 640px) {
  h2.section-title-compact { font-size: 1.75rem; }
  .hero-visual img { border-radius: 16px; }
}

/* Compact buttons keep the desktop hero actions on one deliberate row. */
@media (min-width: 1041px) {
  .hero-actions .btn-lg { padding-inline: 18px; font-size: .94rem; min-height: 56px; }
}


/* Revision 3: proportionate hero and branded footer — maintain 1140px shell. */
@media (min-width: 1041px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 42px; }
  .hero-visual { width: 100%; max-width: 420px; justify-self: end; margin-inline: 0; }
}
@media (min-width: 641px) and (max-width: 1040px) {
  .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hero-visual { width: min(100%, 390px); margin-inline: auto; }
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px; color: var(--ink);
  font-size: 1.08rem; font-weight: 700; line-height: 1.3;
}
.footer-brand:hover { color: var(--clay-dark); }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-brand strong { display: block; font-weight: 700; color: var(--ink); }
.footer-brand small { display: block; color: var(--mute); font-size: .76rem; font-weight: 500; margin-top: 3px; }
@media (max-width: 640px) { .footer-brand img { width: 44px; height: 44px; } }


/* Revision 4: larger transparent imagery, without boxes or background washes. */
.hero::before { content: none !important; display: none !important; }
.hero-copy h1::before, .hero-copy h1::after { content: none !important; }
.hero-visual, .collage-main, .collage-sub, .feature-media,
.step-media, .download-visual, .post-card .thumb, .article-cover {
    background: transparent !important;
    box-shadow: none !important;
}
.hero-visual img, .collage-main img, .collage-sub img,
.feature-media img, .step-media img, .download-visual img,
.post-card .thumb img, .article-cover img {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: contain;
}
.hero { overflow: hidden; }
.hero-visual { width: 100%; max-width: 620px; justify-self: end; margin: 0; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 22px 21px rgba(27,34,50,.12)); }
.collage-main, .collage-sub, .feature-media, .article-cover { border: none !important; overflow: visible; }
.feature-row { gap: 34px; padding-inline: 0; }
.feature-row:hover .feature-media { box-shadow: none !important; }
.feature-media img { width: 100%; height: auto; max-height: 440px; }
.step-media { padding: 22px 16px 0; }
.step-media img { width: 100%; height: auto; max-height: 245px; }
.download-visual img { width: 100%; height: auto; }
.post-card .thumb { display: grid; place-items: center; padding: 12px 16px 4px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: contain !important; }
.post-card.featured .thumb { margin: 12px 0 12px 12px; }
.article-cover { display: flex; justify-content: center; align-items: center; margin-inline: auto; }
.article-cover img { width: min(100%, 900px); height: auto; aspect-ratio: auto; max-height: 480px; object-fit: contain !important; }
@media (min-width: 1041px) {
    .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; }
    .hero-visual { max-width: 620px; width: 100%; justify-self: end; margin: 0; }
}
@media (min-width: 641px) and (max-width: 1040px) {
    .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
    .hero-visual { max-width: 100%; width: 100%; margin: 0 auto; }
    .hero-visual img { max-width: 100%; width: 100%; }
    .feature-media img { max-height: none; }
    .article-cover img { max-height: none; }
    .post-card.featured .thumb { margin: 0; }
}

/* Revision 5: meet readable small-text contrast without changing brand-mark coral. */
:root { --clay-text: #B6432A; }
a:not(.btn):not(.brand):not(.footer-brand) { color: var(--clay-text); }
a:not(.btn):not(.brand):not(.footer-brand):hover { color: #91311D; }
.eyebrow, .text-link, .nav a.is-active, .mobile-panel a.is-active { color: var(--clay-text); }
/* Maintain the intended neutral navigation, cards and footer link colours. */
.nav a:not(.btn), .mobile-panel a:not(.btn), .post-card:not(.btn), .post-card .body,
.footer-cols a:not(.btn), .footer-bottom a:not(.btn), .side-box a:not(.btn),
.breadcrumb a:not(.btn) { color: var(--ink-2); }
.nav a.is-active, .mobile-panel a.is-active { color: var(--clay-text); }
.post-card .text-link { color: var(--clay-text); }
.download-copy .btn-source { margin: 12px 0 0 10px; white-space: normal; }
@media (max-width: 640px) { .download-copy .btn-source { margin: 12px 0 0; } }
/* Remove a hidden reveal dependency if scripts are unavailable. */
.no-js .faq-a { grid-template-rows: 1fr; }

@media (hover: hover) {
  .nav a:not(.btn):hover, .mobile-panel a:not(.btn):hover,
  .footer-cols a:not(.btn):hover, .footer-bottom a:not(.btn):hover,
  .side-box a:not(.btn):hover, .breadcrumb a:not(.btn):hover { color: var(--clay-text); }
}

/* When scripts are disabled, the mobile navigation stays accessible rather than blank. */
@media (max-width: 1040px) {
  .no-js .menu-toggle { display: none; }
  .no-js .mobile-panel { display: block; visibility: visible; opacity: 1; transform: none; position: static; max-height: none; box-shadow: none; }
}
