/* =================================================================
   Who Claims the Kid.com — house style (Red Goggles portfolio)
   Source of truth for styles. Above-the-fold rules are mirrored into
   the inline <style> block in index.html <head> (see build.md →
   "Critical-CSS inlining"). Keep both copies in sync.
   ================================================================= */

:root {
  /* Surfaces */
  --paper:      #f6f8f7;   /* page background (also favicon flatten color) */
  --surface:    #ffffff;
  --surface-2:  #eef2f0;   /* sunken / inset */
  --line:       #e0e6e3;
  --line-2:     #cfd8d4;

  /* Ink */
  --ink:        #1b211f;
  --ink-2:      #515b56;
  --ink-3:      #7c857f;

  /* Brand + accents (low chroma, calm) */
  --accent:     #2d6c64;   /* teal — brand, links, .com TLD, primary */
  --accent-700: #235650;
  --accent-weak:#e6efed;
  --pa:         #3f6d99;   /* Parent A — muted blue */
  --pa-weak:    #eaf0f7;
  --pb:         #9c6b4a;   /* Parent B — muted terracotta */
  --pb-weak:    #f4ece5;
  --positive:   #2f7d5b;   /* recommended / household gain */
  --positive-weak:#e6f1ea;
  --warn:       #8a6d28;   /* caution (8332 needed) — amber, never red */
  --warn-weak:  #f3eedd;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --r-sm: 7px;
  --r:    12px;
  --r-lg: 18px;
  --shadow:    0 1px 2px rgba(20,40,35,.05), 0 6px 20px -8px rgba(20,40,35,.12);
  --shadow-lg: 0 2px 4px rgba(20,40,35,.06), 0 18px 48px -16px rgba(20,40,35,.20);

  --maxw: 1180px;
  --content: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-700); }
strong { font-weight: 600; }
small { font-size: .82em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .55em; margin: 0;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: color-mix(in srgb, var(--paper) 82%, #fff);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; display: block; flex: none; box-shadow: var(--shadow); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav__cta {
  background: var(--accent); color: #fff !important; padding: 8px 15px;
  border-radius: var(--r-sm); font-weight: 600;
}
.site-nav__cta:hover { background: var(--accent-700); }

/* ---------- Layout shell (content + sidebar rail) ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; align-items: start; }
.col-main { min-width: 0; }
.col-rail { position: sticky; top: 84px; }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); margin: 16px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 1.18rem; color: var(--ink-2); margin: 18px 0 0; max-width: 38ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: .84rem; color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* Hero visual — the "fork" decision, simple geometry only */
.hero__art { display: flex; justify-content: center; }
.forkcard {
  width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px 24px 22px;
}
.forkcard__top { display: flex; justify-content: space-between; gap: 14px; }
.forkpar { flex: 1; border-radius: var(--r); padding: 13px 12px; text-align: center; }
.forkpar small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.forkpar b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.forkpar--a { background: var(--pa-weak); color: var(--pa); }
.forkpar--b { background: var(--pb-weak); color: var(--pb); }
.forksvg { display: block; width: 100%; height: 64px; margin: 4px 0; }
.forkchild { text-align: center; }
.forkchild .pill {
  display: inline-flex; align-items: center; gap: 7px; background: var(--accent-weak); color: var(--accent-700);
  padding: 7px 14px; border-radius: 100px; font-size: .8rem; font-weight: 600;
}
.forkchild .pill b { font-weight: 700; }
.forkcard__q { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 16px 0 0; font-size: .96rem; }

/* ---------- Section frames ---------- */
.section { padding: 26px 0; }
.section__head { max-width: var(--content); margin: 0 0 22px; }
.section__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 10px; }
.section__head p { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.calc__bar { display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--surface), color-mix(in srgb, var(--accent-weak) 40%, var(--surface))); }
.calc__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-weak); }
.calc__bar h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; }
.calc__bar .tag { margin-left: auto; font-size: .74rem; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }

.calc__body { padding: 22px; }
.field { margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-3); }

.control {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 12px; transition: border-color .12s, box-shadow .12s;
}
.control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); background: var(--surface); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c857f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; cursor: pointer; }

.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .98rem; }
.money .control { padding-left: 24px; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button {
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink-2);
  border: 0; background: transparent; padding: 8px 14px; border-radius: 5px; cursor: pointer; transition: .12s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* two parent columns */
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 18px; background: var(--surface); position: relative; }
.pcard--a { border-top: 3px solid var(--pa); }
.pcard--b { border-top: 3px solid var(--pb); }
.pcard__name { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.pcard__chip { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 700; font-family: var(--serif); }
.pcard--a .pcard__chip { background: var(--pa); }
.pcard--b .pcard__chip { background: var(--pb); }
.pcard__name b { font-size: .98rem; }
.pcard__name .role { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* custody slider */
.custody { margin: 4px 0 2px; }
.custody__nums { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 9px; }
.custody__nums b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; display: block; line-height: 1; }
.custody__nums .a { color: var(--pa); text-align: left; }
.custody__nums .b { color: var(--pb); text-align: right; }
.custody__nums small { color: var(--ink-3); font-weight: 600; letter-spacing: .03em; }
input[type=range].range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px; margin: 6px 0;
  background: linear-gradient(to right, var(--pa) 0 var(--p,50%), var(--pb) var(--p,50%) 100%);
  cursor: pointer;
}
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); cursor: grab; margin-top: 0; }
input[type=range].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); cursor: grab; }
.custody__note { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }

.calc__note { font-size: .8rem; color: var(--ink-3); margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); }

/* ---------- Ad slots ----------
   Unfilled behavior (ad_slots.md → "Unfilled slot behavior"; CLAUDE.md "no
   debug placeholders on the live domain"): each slot reserves its height so
   layout stays stable, but renders NOTHING visible until AdSense actually
   fills it. The "Advertisement" label shows only on a real fill, gated by the
   data-ad-status="filled" attribute Google sets on the <ins>. */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 26px auto; width: 100%;
}
.ad-slot-label {
  display: none;                 /* revealed only when the slot is actually filled */
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 6px; font-weight: 600;
}
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
/* Reserve the tallest expected unit per position so the page doesn't shift on fill. */
.ad-slot--top      { min-height: 90px;  max-width: 728px; }
.ad-slot--mid      { min-height: 90px;  max-width: 728px; }
.ad-slot--prefaq   { min-height: 90px;  max-width: 728px; }
.ad-slot--sidebar  { min-height: 600px; max-width: 300px; }

/* pre-result: between inputs and results, deliberately calm + bounded (300×250 MREC) */
.ad-slot--mrec,
.ad-slot--preresult { min-height: 250px; max-width: 300px; }

/* mobile sticky anchor */
.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, #fff); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: none;
  box-shadow: 0 -6px 20px -12px rgba(20,40,35,.4);
}
.ad-anchor[data-open="true"] { display: flex; align-items: center; justify-content: center; }
.ad-anchor .adsbygoogle { display: block; width: 320px; min-height: 50px; margin: 0; }
.ad-anchor .ad-slot-label { display: none; margin: 0; }
.ad-anchor:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-anchor__close {
  position: absolute; top: -11px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid var(--paper); font-size: 14px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}

/* ---------- Results ---------- */
.results { scroll-margin-top: 80px; }
.verdict {
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 18px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); display: flex; gap: 18px; align-items: flex-start;
}
.verdict__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 1.3rem; }
.verdict--rec { border-color: color-mix(in srgb, var(--positive) 40%, var(--line)); background: linear-gradient(var(--surface), var(--positive-weak)); }
.verdict--rec .verdict__icon { background: var(--positive); color: #fff; }
.verdict--keep .verdict__icon { background: var(--accent); color: #fff; }
.verdict__body h3 { font-family: var(--serif); font-size: 1.35rem; }
.verdict__body p { margin: 6px 0 0; color: var(--ink-2); }
.verdict__body .gap { font-weight: 700; color: var(--positive); }

.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scn {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px;
  position: relative; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.scn--win { border-color: color-mix(in srgb, var(--positive) 55%, var(--line)); box-shadow: 0 0 0 1px var(--positive), var(--shadow); }
.scn__badge {
  position: absolute; top: -11px; left: 18px; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px; color: #fff; background: var(--positive);
}
.scn__head { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.scn__head b { color: var(--ink); }
.scn__total { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; margin: 6px 0 2px; letter-spacing: -.02em; }
.scn__sub { font-size: .8rem; color: var(--ink-3); }
.scn__lines { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ln { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; align-items: baseline; }
.ln span:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.ln span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.ln .who { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.ln .who--a { background: var(--pa-weak); color: var(--pa); }
.ln .who--b { background: var(--pb-weak); color: var(--pb); }
.ln--muted span:last-child { color: var(--ink-3); font-weight: 500; }
.ln--zero span { color: var(--ink-3); }

/* 8332 verdict card */
.f8332 {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.f8332__head { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.f8332__head .badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.badge--need { background: var(--warn-weak); color: var(--warn); }
.badge--no { background: var(--accent-weak); color: var(--accent-700); }
.f8332__head h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.f8332__head h3 .form { font-family: var(--mono); font-size: .92em; }
.f8332__split { display: grid; grid-template-columns: 1fr 1fr; }
.f8332__col { padding: 16px 20px; }
.f8332__col + .f8332__col { border-left: 1px solid var(--line); }
.f8332__col h4 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px; }
.f8332__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.f8332__col li { font-size: .88rem; display: flex; gap: 9px; align-items: flex-start; color: var(--ink); }
.f8332__col li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 2px; background-size: 11px; background-position: center; background-repeat: no-repeat; }
.f8332__col--moves li::before { background-color: var(--positive-weak); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%232f7d5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.5l2.5 2.5L10 3.5'/%3E%3C/svg%3E"); }
.f8332__col--stays li::before { background-color: var(--surface-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%237c857f' stroke-width='2' stroke-linecap='round' d='M3 6h6'/%3E%3C/svg%3E"); }
.f8332__col li small { display: block; color: var(--ink-3); font-size: .82em; }
.f8332__foot { padding: 13px 20px; background: var(--surface-2); font-size: .82rem; color: var(--ink-2); }

/* ---------- Long-form explainer ---------- */
.prose { max-width: var(--content); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 38px 0 12px; }
.prose h3 { font-size: 1.22rem; margin: 28px 0 8px; }
.prose p { color: var(--ink); margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; color: var(--ink); }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-weak);
  padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 18px 0; color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--warn); background: var(--warn-weak); }

table.facts { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: .92rem; }
table.facts th, table.facts td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.facts thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
table.facts tbody tr:last-child td { border-bottom: 0; }
table.facts td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.transfers-yes { color: var(--positive); font-weight: 700; }
.transfers-no { color: var(--warn); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.3;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::after { content: ""; position: absolute; right: 4px; top: 22px; width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%232d6c64' stroke-width='2' stroke-linecap='round' d='M7 1v12M1 7h12'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(135deg); }
.faq__a { padding: 0 40px 20px 0; color: var(--ink-2); font-size: .98rem; }
.faq__a p { margin: 0 0 .7em; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5ccc8; margin-top: 56px; padding: 52px 0 30px; }
.site-footer a { color: #dfe5e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__brand .brandbadge { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.footer__brand .name { font-family: var(--serif); font-size: 1.12rem; color: #fff; }
.footer__brand .name .brand__tld { color: #7fc3ba; }
.footer__brand p { color: #99a39e; font-size: .9rem; margin-top: 8px; max-width: 30ch; }
.footer__col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8b9590; margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col li { font-size: .92rem; }
.footer__col .ext { color: #8b9590; font-size: .76em; }
.footer__divider { border: 0; border-top: 1px solid #2c3733; margin: 32px 0 22px; }
.footer__legal { font-size: .82rem; color: #8b9590; max-width: 70ch; line-height: 1.65; }
.footer__legal strong { color: #c5ccc8; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 20px; font-size: .82rem; color: #8b9590; }
.footer__bottom button { background: none; border: 0; color: #dfe5e2; font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Privacy modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(15,25,22,.55); z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim[data-open="true"] { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); max-width: 620px; width: 100%; max-height: 86vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.2rem; }
.modal__close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--ink-2); }
.modal__close:hover { background: var(--surface-2); }
.modal__body { padding: 22px 24px; overflow-y: auto; font-size: .94rem; color: var(--ink-2); }
.modal__body h3 { font-family: var(--sans); font-size: .98rem; font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.modal__body .lead { background: var(--accent-weak); border-radius: var(--r); padding: 13px 16px; color: var(--ink); }
.modal__body ul { padding-left: 1.2em; }
.modal__body li { margin-bottom: .4em; }
.modal__foot { padding: 14px 24px; border-top: 1px solid var(--line); text-align: right; }
.prefs-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.prefs-link:hover { color: var(--accent-700); }
.btn { font: inherit; font-weight: 600; border-radius: var(--r-sm); padding: 10px 18px; cursor: pointer; border: 1px solid transparent; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .col-rail { display: none; }       /* sidebar (300x600) is desktop-only per ad_slots.md */
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__art { order: -1; max-width: 320px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .parents { grid-template-columns: 1fr; }
  .scenarios { grid-template-columns: 1fr; }
  .f8332__split { grid-template-columns: 1fr; }
  .f8332__col + .f8332__col { border-left: 0; border-top: 1px solid var(--line); }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding: 32px 0 18px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
