/* ============================================================
   SELF-HOSTED FONTS  (WOFF2 only — modern browsers)
   This block is already in place at the top of style.css.
   It matches the files exactly as downloaded from gwfh.mranftl.com
   (v20, latin). Expects these 7 files in /public_html/fonts/ :
     manrope-v20-latin-regular.woff2  (= weight 400)
     manrope-v20-latin-500.woff2
     manrope-v20-latin-600.woff2
     manrope-v20-latin-700.woff2
     inter-v20-latin-regular.woff2    (= weight 400)
     inter-v20-latin-500.woff2
     inter-v20-latin-600.woff2

   font-display: swap  → text shows immediately in the fallback
   font, then swaps to the real one when it loads.
   Absolute paths (/fonts/...) resolve from any page depth.
   ============================================================ */

/* ---- Manrope (headings) ---- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-v20-latin-700.woff2') format('woff2');
}

/* ---- Inter (body) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* ============================================================
   DESIGN TOKENS + COMPONENTS  (from the GEO component library)
   ============================================================ */

/* ============================================================
   GEO Content Strategy — Design Tokens
   Lift this :root + media-query block into your global stylesheet.
   Every component below reads from these variables, so this block
   alone re-themes the entire site for light and dark.
   ============================================================ */
:root {
  --bg-page:        #FAFAF8;
  --bg-surface:     #FFFFFF;
  --bg-callout:     #F3F7F3;
  --text-primary:   #1F2937;
  --text-body:      #374151;
  --text-muted:     #6B7280;
  --text-faint:     #9CA3AF;
  --accent:         #2F6F6F;
  --accent-soft:    #8BA888;
  --accent-soft-ink:#5A7A57;  /* readable sage for small labels on light */
  --border:         #E5E7EB;
  --bg-code:        #F4F6F4;   /* code surface: cooler than callout so code reads as an artifact */
  --code-border:    #DDE3DD;

  /* Stronger callout green — used for the hero and emphasis callouts (reads as a deliberate surface, unlike the near-invisible --bg-callout). */
  --bg-callout-strong:#E7F0EA;

  /* Warm second accent (muted amber / terracotta) — used sparingly: hero rule, "context" section icons, card top-edge, dark-bar accents. */
  --warm:            #C2703D;
  --warm-soft:       #E8C9AE;
  --warm-ink:        #9A571F;  /* readable amber for small text on light */
  --bg-warm-soft:    #FBF1E8;  /* faint amber wash — warm counterpart to --bg-callout-strong */

  /* Inverted bar palette (charcoal-green) — site header + footer. */
  --bar-bg:          #1F2A26;
  --bar-bg-2:        #26322D;  /* slightly lifted panel for dropdowns */
  --bar-ink:         #EAF0EC;
  --bar-ink-muted:   #9DB0A6;
  --bar-border:      #34423B;
  --bar-accent:      #7FBFA8;  /* brightened teal for links on dark */

  --container:      1200px;
  --content:        1100px;  /* wide desktop content edge (matches footer inner) */
  --reading:        760px;   /* comfortable line length for running prose */
  --radius-md:      8px;
  --radius-lg:      12px;
  --font-head:      'Manrope', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:        #1A1C1A;
    --bg-surface:     #232624;
    --bg-callout:     #1E2620;
    --text-primary:   #F3F4F0;
    --text-body:      #C9CDC7;
    --text-muted:     #8B918A;
    --text-faint:     #70756E;
    --accent:         #5FA3A3;
    --accent-soft:    #9BBF98;
    --accent-soft-ink:#9BBF98;
    --border:         #353834;
    --bg-code:        #1C211D;
    --code-border:    #2C322D;

    /* Stronger callout green — lifted above the dark callout so it still reads. */
    --bg-callout-strong:#28332C;

    /* Warm accent brightened for dark surfaces. */
    --warm:            #D98C54;
    --warm-soft:       #6E4A2C;
    --warm-ink:        #E8B188;
    --bg-warm-soft:    #2E2A24;  /* faint amber wash, dark */

    /* Inverted bars: in dark mode the page is already near-black, so the bars
       go LIGHTER than the page (not darker) to stay distinct. */
    --bar-bg:          #2A2F2C;
    --bar-bg-2:        #333936;
    --bar-ink:         #EAF0EC;
    --bar-ink-muted:   #9DB0A6;
    --bar-border:      #3E443F;
    --bar-accent:      #7FBFA8;
  }
}

/* ---- Page scaffold (demo only; your site supplies its own) ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.page    { max-width: var(--container); margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
/* .reading is the wide desktop content column (matches footer inner). */
.reading { max-width: var(--content); }
/* Running prose stays narrow for comfortable line length, even inside a wide column. */
.qa, .why p, .why .last, .section-sub,
.steps .step-text, .faq__answer, .nl__copy,
.text-block__body { max-width: var(--reading); }
.demo-label {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
  margin: 3.5rem 0 1rem;
}
.demo-label:first-of-type { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
:target, [id] { scroll-margin-top: 1.5rem; }

/* ---- Shared motion: gentle fade-up for sections, fade-in for figures ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up  { opacity: 0; transform: translateY(8px); animation: fadeUp .5s ease forwards; }
  .fade-in  { opacity: 0; animation: fadeIn .6s ease .15s forwards; }
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding: 1rem 0 0; }
.hero__crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero__crumbs a { color: var(--text-muted); text-decoration: none; }
.hero__crumbs a:hover { color: var(--accent); }
.hero__crumbs .sep { margin: 0 8px; color: var(--text-faint); }
.hero__crumbs .here { color: var(--text-body); }
.hero__cat {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 0.85rem;
}
.hero__title {
  font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.2;
  color: var(--text-primary); margin: 0 0 1rem; max-width: var(--reading);
}
/* Amber accent rule under the title — the one spot the warm accent meets the green. */
.hero__title::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--warm); margin-top: 0.95rem;
}
.hero__summary {
  font-size: 18px; line-height: 1.6; color: var(--text-body);
  margin: 0 0 1.75rem; max-width: 680px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 14px; color: var(--text-muted);
  padding-top: 1.25rem; border-top: 0.5px solid var(--border);
}
.hero__meta span.item { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta i { font-size: 16px; color: var(--accent-soft); }
.hero__meta .dot { margin: 0 14px; color: var(--border); }
.hero__figure { margin: 2rem 0 0; }
.hero__figbox {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
}
.hero__figlabel {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-soft-ink);
  margin: 0 0 1.25rem;
}
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.hero__cell { background: var(--bg-callout); border-radius: var(--radius-md); padding: 0.9rem 0.85rem; }
.hero__cell i { font-size: 20px; color: var(--accent); }
.hero__cell h4 { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text-primary); margin: 8px 0 2px; }
.hero__cell p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.45; }
.hero__figcap { font-size: 12px; color: var(--text-faint); margin: 1rem 0 0; text-align: center; }

/* ============================================================
   2. QUICK ANSWER  (question-led)
   ============================================================ */
.qa {
  background: var(--bg-callout-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.qa__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 0.9rem; }
.qa__eyebrow i { font-size: 17px; color: var(--accent); }
.qa__eyebrow span {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent);
}
.qa__q {
  font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.35;
  color: var(--text-primary); margin: 0 0 0.65rem;
}
.qa__a { font-size: 18px; line-height: 1.55; color: var(--text-primary); font-weight: 500; margin: 0 0 0.85rem; }
.qa__detail { font-size: 16px; line-height: 1.65; color: var(--text-body); margin: 0; }

/* ============================================================
   3. TABLE OF CONTENTS  (desktop rail — numbered editorial index)
   ============================================================ */
.toc { max-width: 300px; }
.toc__label {
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-ink); margin: 0 0 1rem;
  display: flex; align-items: center; gap: 8px;
}
.toc__label::before {
  content: ""; width: 18px; height: 2px; background: var(--warm); flex-shrink: 0;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; counter-reset: toc; }

/* Count only top-level items (any <li> whose link isn't a .sub). */
.toc li { border-bottom: none; }
.toc li:has(a:not(.sub)) { counter-increment: toc; }

/* Top-level items: amber mono numeral + title, hairline divider between. */
.toc a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px; line-height: 1.4; color: var(--text-body);
  text-decoration: none; padding: 9px 2px;
  border-bottom: 0.5px solid var(--border);
  transition: color .15s ease;
}
.toc a:not(.sub)::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--warm); min-width: 18px; flex-shrink: 0;
}
.toc a:hover { color: var(--accent); }

/* Sub-items: no numeral, indented, muted, no divider. */
.toc a.sub {
  font-size: 13px; color: var(--text-muted);
  padding: 6px 2px 6px 32px; border-bottom: none;
}

/* Active item: title goes primary + bold; numeral stays amber. */
.toc a.active { color: var(--text-primary); font-weight: 600; }

/* ---- 3b. TOC mobile disclosure ---- */
.toc-m { max-width: 340px; margin-top: 1.5rem; }
.toc-m__card { background: var(--bg-page); border: 0.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.toc-m__btn {
  width: 100%; background: transparent; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
}
.toc-m__btn .lhs { display: inline-flex; align-items: center; gap: 9px; }
.toc-m__btn .lhs i { font-size: 18px; color: var(--accent); }
.toc-m__btn .lhs span { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text-primary); }
.toc-m__chev { font-size: 18px; color: var(--text-muted); transition: transform .25s ease; }
.toc-m__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.toc-m__panel nav { padding: 2px 8px 10px; }
.toc-m__panel ul { list-style: none; margin: 0; padding: 0; }
.toc-m__panel a { display: block; font-size: 15px; line-height: 1.4; color: var(--text-body); text-decoration: none; padding: 11px 12px; border-radius: 6px; }
.toc-m__panel a.sub { font-size: 14px; color: var(--text-muted); padding-left: 28px; }
.toc-m__panel a:active { background: var(--bg-callout); }
/* Production: rail on desktop, disclosure on mobile — never both. */
.toc-m { display: none; }
@media (max-width: 899px) {
  .toc   { display: none; }
  .toc-m { display: block; }
}

/* ============================================================
   4. WHY IT MATTERS
   ============================================================ */
.section-head { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0.45rem; }
.section-head.gap { margin-bottom: 0.85rem; }
.section-head i.teal { font-size: 18px; color: var(--warm); }
.section-head i.sage { font-size: 18px; color: var(--warm); }
.section-head i.warm { font-size: 18px; color: var(--warm); }
.section-head h2 {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin: 0; line-height: 1.25;
}
.section-sub { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 1.5rem; }
/* More generous vertical rhythm between sections so the page breathes. */
.section-top { border-top: 0.5px solid var(--border); padding-top: 2.75rem; margin-top: 1rem; }

/* Section band — colored backdrop framing a component, with the tiles/table floating on top. */
.section-band { border-radius: var(--radius-lg); padding: 1.5rem; }
.section-band--green { background: var(--bg-callout-strong); }
.section-band--amber { background: var(--bg-warm-soft); }

.why p { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 0 0 1.1rem; }
.why p.last { margin-bottom: 1.5rem; }
.why__shifts { background: var(--bg-callout-strong); border-left: 3px solid var(--accent-soft); padding: 1.1rem 1.4rem; }
.why__shifts .cap {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-soft-ink); margin: 0 0 0.7rem;
}
.why__shifts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.why__shifts li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.why__shifts li i { font-size: 16px; color: var(--accent-soft); margin-top: 3px; flex-shrink: 0; }
.why__shifts li b { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   5. KEY CONCEPTS
   ============================================================ */
.concepts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin: 0; }
.concept {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-top: 2px solid var(--warm-soft);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: border-color .15s ease, transform .15s ease;
}
.concept:hover { border-color: var(--accent-soft); border-top-color: var(--warm); transform: translateY(-2px); }
.concept dt { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--accent); margin: 0 0 0.4rem; }
.concept dd { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ============================================================
   6. HOW IT WORKS
   ============================================================ */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; padding-left: 56px; padding-bottom: 1.75rem; min-height: 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps .spine { position: absolute; left: 13px; top: 30px; bottom: -6px; width: 2px; background: var(--border); }
.steps .num {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-callout); border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
/* Hovering anywhere on a step (bubble, title, or text) fills that step's bubble. */
.steps li:hover .num { background: var(--accent); color: var(--bg-surface); }
.steps h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 0 0 0.35rem; line-height: 1.3; }
.steps p { font-size: 15px; line-height: 1.65; color: var(--text-body); margin: 0; }
/* optional per-step graphic — wraps text + graphic side by side when present */
.steps .step-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.steps .step-text { flex: 1; min-width: 0; }
.steps .step-graphic {
  width: 120px; flex-shrink: 0; aspect-ratio: 1 / 1; object-fit: contain;
  border: 0.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-callout);
}
.steps .step-graphic.fade-in { opacity: 0; animation: fadeIn .6s ease forwards; }
.steps .step-graphic--ph { display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.steps .step-graphic--ph i { font-size: 22px; }
@media (max-width: 560px) {
  .steps .step-row { flex-direction: column; gap: 0.85rem; }
  .steps .step-graphic { width: 100%; max-width: 200px; aspect-ratio: 16 / 9; }
}

/* ============================================================
   7. COMPARISON TABLE  (2–5 items; desktop table → mobile cards)
   Author once as a <table>. Cells carry data-label="<dimension>"
   and data-item="<column name>" so the same markup reflows into
   stacked cards on narrow screens — no horizontal scroll, no
   duplicate markup. Set --cmp-cols to the number of items compared.
   ============================================================ */
.cmp { --cmp-cols: 2; }
.cmp__wrap { border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); }
.cmp table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp thead tr { background: var(--bg-callout); }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-bottom: 0.5px solid var(--border); vertical-align: top; }
.cmp th.dim, .cmp td.dim {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}
.cmp thead th.item { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--accent); }
.cmp tbody td { color: var(--text-body); }
.cmp tbody tr:last-child td { border-bottom: none; }
/* Desktop: hovering a cell bolds its text. (Table is hidden < 720px, so this is desktop-only.) */
.cmp tbody td:hover { font-weight: 700; }
/* yes / no / partial cells */
.cmp .v { display: inline-flex; align-items: center; gap: 7px; }
.cmp .v i { font-size: 16px; flex-shrink: 0; }
.cmp .v.yes i { color: var(--accent); }
.cmp .v.no i { color: var(--text-faint); }
.cmp .v.partial i { color: var(--accent-soft); }
.cmp .v.no { color: var(--text-muted); }

@media (max-width: 720px) {
  .cmp__wrap { border: none; border-radius: 0; background: transparent; overflow: visible; }
  .cmp table, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody { display: flex; flex-direction: column; gap: 14px; }
  /* each item becomes a card; we transpose by repeating the table per item via .cmp--stacked */
}

/* Stacked card structure (used at narrow widths via the .cmp__cards block) */
.cmp__cards { display: none; flex-direction: column; gap: 14px; }
.cmp__card { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cmp__card-head { background: var(--bg-callout); padding: 12px 16px; border-bottom: 0.5px solid var(--border); }
.cmp__card-head span { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--accent); }
.cmp__card dl { margin: 0; padding: 6px 16px 10px; }
.cmp__card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 0.5px solid var(--border); }
.cmp__card .row:last-child { border-bottom: none; }
.cmp__card dt { color: var(--text-muted); font-size: 13px; }
.cmp__card dd { margin: 0; color: var(--text-body); font-size: 14px; text-align: right; }
@media (max-width: 720px) {
  .cmp__wrap { display: none; }
  .cmp__cards { display: flex; }
}

/* ============================================================
   8. REAL-WORLD EXAMPLES  (before / after / why scenarios)
   ============================================================ */
.examples { display: flex; flex-direction: column; gap: 16px; }
.example { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.example__head { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.example__icon {
  width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--bg-callout);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.example__icon i { font-size: 17px; color: var(--accent); }
.example__head h3 { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0; line-height: 1.3; }
.example__ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 0.9rem;
}
.example__pane { background: var(--bg-surface); padding: 0.85rem 1rem; }
.example__pane .lab {
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 0.4rem;
}
.example__pane.before .lab { color: var(--text-muted); }
.example__pane.after  .lab { color: var(--accent-soft-ink); }
.example__pane p { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0; }
/* optional screenshot slot — renders only if an .example__shot is present */
.example__shot {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border: 0.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-callout); margin-bottom: 0.7rem;
}
.example__shot.fade-in { opacity: 0; animation: fadeIn .6s ease forwards; }
/* placeholder box (swap for a real <img class="example__shot"> later) */
.example__shot--ph {
  display: flex; align-items: center; justify-content: center; color: var(--text-faint);
}
.example__shot--ph i { font-size: 22px; }
.example__why {
  font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0;
}
.example__why b { font-weight: 600; color: var(--text-body); }

/* When an example includes screenshots, drop the divider/box lines so the
   images read cleanly — the before/after labels carry the structure.
   Text-only examples keep their dividing lines (left as-is). */
.example__ba:has(.example__shot) {
  gap: 1.5rem; background: transparent; border: none; border-radius: 0; overflow: visible;
}
.example__ba:has(.example__shot) .example__pane { padding: 0; }
.example__shot { border: none; }
@media (max-width: 520px) {
  .example__ba { grid-template-columns: 1fr; }
}

/* ============================================================
   9. ACTION CHECKLIST  (real checkboxes; progress persists)
   Each item is <input type="checkbox" id> + <label for>.
   Progress is saved to localStorage under data-ck-key on the list.
   ============================================================ */
.ck__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ck__item { position: relative; }
.ck__item input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck__item label {
  display: flex; gap: 14px; background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.15rem; cursor: pointer;
  transition: border-color .15s ease;
}
.ck__item label:hover { border-color: var(--accent-soft); }
.ck__box {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border);
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.ck__box i { font-size: 15px; color: var(--bg-surface); opacity: 0; transition: opacity .15s ease; }
.ck__body { flex: 1; }
.ck__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ck__title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text-primary); transition: color .15s ease; }
.ck__tag { font-size: 11px; font-weight: 600; color: var(--accent-soft-ink); background: var(--bg-callout); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ck__desc { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0.3rem 0 0; }
.ck__item input:checked + label { border-color: var(--accent-soft); }
.ck__item input:checked + label .ck__box { background: var(--accent); border-color: var(--accent); }
.ck__item input:checked + label .ck__box i { opacity: 1; }
.ck__item input:checked + label .ck__title { color: var(--text-muted); text-decoration: line-through; }
.ck__item input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   10. CONTINUE LEARNING  (uniform related-guide cards)
   ============================================================ */
.cl__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cl__card {
  display: block; text-decoration: none;
  background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem; transition: border-color .15s ease, transform .15s ease;
}
.cl__card:hover, .cl__card:focus-visible { border-color: var(--accent-soft); transform: translateY(-2px); outline: none; }
.cl__card:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.cl__cat {
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-soft-ink);
}
.cl__card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0.5rem 0 0.4rem; line-height: 1.35; }
.cl__card p { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0 0 0.85rem; }
.cl__go { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cl__go i { font-size: 15px; transition: transform .15s ease; }
.cl__card:hover .cl__go i { transform: translateX(3px); }

/* ============================================================
   11. MULTIMEDIA / INTERACTIVE BLOCK
   Variant A: responsive 16:9 video embed.
   Variant B: titled panel hosting an inline interactive tool.
   ============================================================ */
.mm { margin: 0; }
.mm + .mm { margin-top: 2.5rem; }
.mm__video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-callout); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.mm__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mm__cap { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0.75rem 0 0; }
.mm__cap i { font-size: 15px; color: var(--accent-soft); margin-top: 2px; flex-shrink: 0; }
.mm__cap b { font-weight: 600; color: var(--text-body); }

.mm__tool { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mm__bar { display: flex; align-items: center; gap: 9px; padding: 11px 16px; background: var(--bg-callout); border-bottom: 0.5px solid var(--border); }
.mm__bar i { font-size: 16px; color: var(--accent); }
.mm__bar .name { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mm__bar .tag { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.mm__body { padding: 1.25rem 1.35rem; }
.mm__body label { display: block; font-size: 14px; color: var(--text-body); margin-bottom: 8px; }
.mm__body input[type="text"] {
  width: 100%; box-sizing: border-box; font-size: 15px; padding: 10px 12px;
  border: 0.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-page); color: var(--text-primary); font-family: inherit;
}
.mm__body input[type="text"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.mm__verdict { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius-md); background: var(--bg-callout); }
.mm__verdict i { font-size: 18px; margin-top: 1px; flex-shrink: 0; color: var(--accent-soft); }
.mm__verdict p { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0; }

/* ============================================================
   12. FAQ  (native details accordion; schema auto-generated from DOM)
   ============================================================ */
.faq { border: none; border-radius: 0; overflow: visible; background: transparent; }
.faq__item { border-bottom: 0.5px solid var(--border); }
.faq__item:first-child { border-top: 0.5px solid var(--border); }
.faq__item:last-child { border-bottom: 0.5px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 1.05rem 0;
  font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--text-primary);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-md); }
.faq__ico { font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform .2s ease; }
.faq__item[open] .faq__ico { transform: rotate(180deg); }
.faq__answer { padding: 0 0 1.15rem; font-size: 15px; line-height: 1.65; color: var(--text-body); }

/* ============================================================
   13. NEWSLETTER  (calm inline band on callout fill)
   Real <form>: set action to your provider endpoint so it works
   without JS; inline validation layers on top.
   ============================================================ */
.nl { background: transparent; border: none; border-radius: 0; padding: 0; }
.nl__head { display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem; }
.nl__head i { font-size: 18px; color: var(--accent); }
.nl__head h2 { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--text-primary); margin: 0; line-height: 1.3; }
.nl__copy { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0 0 1.25rem; max-width: 520px; }
.nl__form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl__form input[type="email"] {
  flex: 1; min-width: 220px; box-sizing: border-box; font-size: 15px; padding: 11px 13px;
  border: 0.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-surface); color: var(--text-primary); font-family: inherit;
}
.nl__form input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.nl__form button {
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: #fff;
  background: var(--accent); border: none; border-radius: var(--radius-md);
  padding: 11px 22px; cursor: pointer; white-space: nowrap; transition: opacity .15s ease;
}
.nl__form button:hover { opacity: 0.88; }
.nl__form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nl__msg { font-size: 13px; line-height: 1.5; margin: 0.7rem 0 0; min-height: 1.1em; }

/* ============================================================
   14. FOOTER  (full-width; brand + two link columns + meta row)
   ============================================================ */
.ft { padding: 1.25rem 1.75rem 1.75rem; margin-top: 2rem; background: var(--bar-bg); }
.ft__inner { max-width: 1100px; margin: 0 auto; border-top: 3px solid var(--warm); padding-top: 1.75rem; }
.ft__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.ft__brand-name { display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; }
.ft__brand-name i { font-size: 20px; color: var(--warm); }
.ft__brand-name span { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--bar-ink); }
.ft__blurb { font-size: 14px; line-height: 1.6; color: var(--bar-ink-muted); margin: 0; max-width: 300px; }
.ft__coltitle { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bar-ink-muted); margin: 0 0 0.85rem; }
.ft__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.ft-link { font-size: 14px; color: var(--bar-ink); text-decoration: none; transition: color .15s ease; }
.ft-link:hover, .ft-link:focus-visible { color: var(--warm-soft); outline: none; }
.ft__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 1.5rem; border-top: 0.5px solid var(--bar-border); }
.ft__copy { font-size: 13px; color: var(--bar-ink-muted); margin: 0; }
.ft__metalinks { display: flex; gap: 1.25rem; }
.ft-meta { font-size: 13px; color: var(--bar-ink-muted); text-decoration: none; transition: color .15s ease; }
.ft-meta:hover, .ft-meta:focus-visible { color: var(--bar-ink); outline: none; }
@media (max-width: 680px) {
  .ft__cols { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .ft__brand { grid-column: 1 / -1; }
}

/* ============================================================
   15. TEXT BLOCK  (plain prose section: heading + subhead + body)
   No card, no fill — sits directly on the page. Uses the shared
   .section-head treatment so heading hierarchy stays consistent.
   ============================================================ */
.text-block__sub {
  font-size: 17px; line-height: 1.6; color: var(--text-muted);
  margin: 0 0 1.25rem; max-width: var(--reading);
}
.text-block__body p { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 0 0 1.1rem; }
.text-block__body p:last-child { margin-bottom: 0; }

/* ============================================================
   15. CODE EXAMPLE  (read-only)
   Header bar (icon + title + language tag + copy) over a
   monospace code surface. Display-only: not editable.
   - Uses <pre><code> so whitespace + line breaks are preserved
     and it's announced as code by assistive tech.
   - Author HTML/XML/Markdown samples with &lt; &gt; &amp; entities
     so the browser renders them as text, not live markup.
   - Copy button is progressive enhancement: with no JS / no
     Clipboard API it removes itself; code stays selectable.
   ============================================================ */
.code {
  background: var(--bg-code); border: 0.5px solid var(--code-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.code__head {
  display: flex; align-items: center; gap: 10px;
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  border-bottom: 0.5px solid var(--code-border); background: var(--bg-surface);
}
.code__head > i { font-size: 17px; color: var(--accent); flex-shrink: 0; }
.code__title {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--text-primary); line-height: 1.3; margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.code__lang {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-soft-ink);
  background: var(--bg-callout); border: 0.5px solid var(--code-border);
  border-radius: 999px; padding: 2px 9px; flex-shrink: 0;
}
.code__copy {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: transparent; border: 0.5px solid var(--border); border-radius: var(--radius-md);
  padding: 5px 10px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.code__copy i { font-size: 15px; }
.code__copy:hover { color: var(--accent); border-color: var(--accent); }
.code__copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.code__copy.is-done { color: var(--accent-soft-ink); border-color: var(--accent-soft); }
.code__body {
  margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.code__body code {
  display: block; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  color: var(--text-body); white-space: pre; tab-size: 2;
}
.code__cap { font-size: 12px; color: var(--text-faint); margin: 0.75rem 0 0; line-height: 1.5; }
@media (max-width: 560px) {
    .code + .code { margin-top: 1rem; }
  .code__body code { font-size: 12.5px; }
  .code__copy span { display: none; }   /* icon-only on narrow screens */
}

/* ---- Responsive: collapse to single column under 1024px ---- */
@media (max-width: 1024px) {
  .hero__title { font-size: 28px; }
  .hero__summary { font-size: 17px; }
  .section-head h2 { font-size: 19px; }
  .why p { font-size: 16px; }
  .text-block__sub { font-size: 16px; }
  .text-block__body p { font-size: 16px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   SITE HEADER + DROPDOWN NAVIGATION
   Desktop (>=900px): six top items, click-to-open dropdowns.
   Mobile  (<900px):  hamburger reveals the six landing links only.
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) 0; z-index: 100;
  font-family: var(--font-body); font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header { border-bottom: 0.5px solid var(--bar-border); background: var(--bar-bg); position: relative; }
/* Sticky nav on desktop only */
@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}
.site-header__inner {
  max-width: var(--content); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  color: var(--bar-ink); text-decoration: none;
}
.site-header__brand i { color: var(--warm); font-size: 20px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-top__link {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--bar-ink-muted); text-decoration: none; padding: 0.4rem 0.5rem;
  border-radius: 6px; transition: color .15s ease; position: relative;
}
.nav-top__link:hover { color: var(--bar-ink); }
/* Amber underline accent wipes in on hover / active. */
.nav-top__link::after {
  content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.02rem;
  height: 2px; background: var(--warm); border-radius: 0;
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav-top__link:hover::after, .nav-item.open .nav-top__link::after { transform: scaleX(1); }
.nav-top__toggle {
  background: none; border: none; cursor: pointer; padding: 0.4rem 0.35rem;
  color: var(--bar-ink-muted); display: inline-flex; align-items: center;
  border-radius: 6px; transition: color .15s ease, transform .15s ease;
}
.nav-top__toggle:hover { color: var(--bar-ink); }
.nav-item.open .nav-top__toggle { color: var(--warm); transform: rotate(180deg); }
.nav-top__link:focus-visible, .nav-top__toggle:focus-visible {
  outline: 2px solid var(--bar-accent); outline-offset: 2px;
}

/* Dropdown panel — lifted dark panel on the dark bar */
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  min-width: 280px; background: var(--bar-bg-2);
  border: 0.5px solid var(--bar-border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-item.open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 6px;
  font-family: var(--font-body); font-size: 14px; line-height: 1.4;
  color: var(--bar-ink-muted); text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.nav-panel a:hover { background: rgba(255,255,255,0.05); color: var(--bar-accent); }
.nav-panel a:focus-visible { outline: 2px solid var(--bar-accent); outline-offset: -2px; }
.nav-panel__overview { border-bottom: 0.5px solid var(--bar-border); margin-bottom: 0.35rem; padding-bottom: 0.35rem; }
.nav-panel__overview a { font-weight: 600; color: var(--bar-accent); display: flex; align-items: center; gap: 7px; }

/* Hamburger hidden on desktop */
.site-header__burger { display: none; background: none; border: none; cursor: pointer; color: var(--bar-ink); padding: 0.3rem; }
.site-header__burger i { font-size: 24px; }

/* ---- Mobile (<900px) ---- */
@media (max-width: 899px) {
  .site-header__burger { display: inline-flex; }
  .site-header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: var(--bar-bg-2); border-bottom: 0.5px solid var(--bar-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  }
  .site-header.nav-open .site-header__nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem; }
  .nav-item { display: block; }
  /* On mobile the top link goes to the landing page; the toggle + panel are hidden. */
  .nav-top__link {
    display: block; padding: 0.85rem 0.7rem; font-size: 16px; font-weight: 600;
    border-radius: 8px; color: var(--bar-ink);
  }
  .nav-top__link:hover { background: rgba(255,255,255,0.05); }
  .nav-top__link::after { display: none; }   /* no underline accent in stacked mobile list */
  .nav-top__toggle, .nav-panel { display: none !important; }
}

/* ============================================================
   SECTION LANDING PAGES — list of sub-topics under a section
   ============================================================ */
.landing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.85rem; }
.landing-list a {
  display: block; padding: 1rem 1.15rem; border: 0.5px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-surface);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.landing-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.landing-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.landing-list .ll__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--text-primary); display: block; }
.landing-list .ll__arrow { color: var(--accent); font-size: 14px; }

/* ---- Icon-independent nav controls (work even if the icon font fails) ---- */
/* CSS-drawn caret for the dropdown toggle */
.nav-caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-left: 1px;
}
/* CSS-drawn hamburger (three bars) */
.burger-bars, .burger-bars::before, .burger-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.burger-bars { position: relative; }
.burger-bars::before, .burger-bars::after { content: ""; position: absolute; left: 0; }
.burger-bars::before { top: -6px; }
.burger-bars::after  { top: 6px; }
.site-header__burger { line-height: 0; color: var(--text-primary); }
