/* ==========================================================================
   Mental Age Test — design system
   Single stylesheet, no external deps, light + dark, mobile first.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;

  --bg:        #fbfaf7;
  --bg-soft:   #f3f1ea;
  --surface:   #ffffff;
  --surface-2: #f7f5f0;
  --border:    #e3ded2;
  --border-strong: #cdc6b4;

  --text:      #1c1a17;
  --text-soft: #56514a;
  --text-mute: #7d766c;

  --accent:      #2f6f5e;
  --accent-soft: #e3efe9;
  --accent-text: #1f4d41;
  --accent-ink:  #ffffff;

  --gold:      #b4802a;
  --gold-soft: #fbf1dd;

  --danger:      #a63d2f;
  --danger-soft: #fbeae7;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28,26,23,.05), 0 1px 3px rgba(28,26,23,.04);
  --shadow:    0 4px 6px -1px rgba(28,26,23,.06), 0 10px 24px -8px rgba(28,26,23,.10);
  --shadow-lg: 0 12px 40px -12px rgba(28,26,23,.22);

  --wrap: 1120px;
  --prose: 720px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #14161a;
    --bg-soft:   #191c21;
    --surface:   #1d2026;
    --surface-2: #23272e;
    --border:    #313641;
    --border-strong: #454c59;

    --text:      #edefF2;
    --text-soft: #b6bcc7;
    --text-mute: #8d94a1;

    --accent:      #63c3a6;
    --accent-soft: #1c3a33;
    --accent-text: #8fd9c1;
    --accent-ink:  #0d1a16;

    --gold:      #e0ae5a;
    --gold-soft: #33291a;

    --danger:      #e58a7c;
    --danger-soft: #38211e;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 4px 6px -1px rgba(0,0,0,.4), 0 10px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 40px -12px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --bg:#14161a; --bg-soft:#191c21; --surface:#1d2026; --surface-2:#23272e;
  --border:#313641; --border-strong:#454c59;
  --text:#edeff2; --text-soft:#b6bcc7; --text-mute:#8d94a1;
  --accent:#63c3a6; --accent-soft:#1c3a33; --accent-text:#8fd9c1; --accent-ink:#0d1a16;
  --gold:#e0ae5a; --gold-soft:#33291a; --danger:#e58a7c; --danger-soft:#38211e;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 4px 6px -1px rgba(0,0,0,.4), 0 10px 24px -8px rgba(0,0,0,.5);
  --shadow-lg:0 12px 40px -12px rgba(0,0,0,.7);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { text-wrap: pretty; }

a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: var(--prose); }
.center { text-align: center; }
.visually-hidden {
  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(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: -.03em; font-size: 1.06rem;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold)));
  color: var(--accent-ink);
  display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-pill); font-size: .93rem;
  font-weight: 550; color: var(--text-soft); text-decoration: none;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--text-soft); flex: none;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 12px 14px; border-radius: var(--radius); font-size: 1rem; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 38px; height: 38px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); color: var(--text-soft);
  }
  .header-inner .theme-toggle { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(38px, 6vw, 76px) 0 8px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 auto 0; height: 460px; z-index: -1;
  background:
    radial-gradient(58% 70% at 18% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(50% 60% at 88% 12%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 72%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-text);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.26rem); color: var(--text-soft); max-width: 66ch; }
.hero .lede strong { color: var(--text); font-weight: 650; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; padding: 0; list-style: none;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .87rem; font-weight: 550; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.trust-row li svg { color: var(--accent); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Sections & cards ---------- */
section { scroll-margin-top: 82px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 68ch; margin-bottom: 34px; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.icon-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 14px; font-size: 1.15rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .97rem; }

/* Key-fact callout — designed to be quotable by AI assistants */
.keyfact {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 26px 0;
}
.keyfact p { color: var(--accent-text); font-weight: 550; }
.keyfact strong { font-weight: 750; }

.note {
  border: 1px dashed var(--border-strong); background: var(--surface-2);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
  font-size: .95rem; color: var(--text-soft);
}
.note strong { color: var(--text); }

/* ---------- Long-form article ---------- */
.article { max-width: var(--prose); }
.article h2 { margin-top: 52px; margin-bottom: 14px; }
.article h3 { margin-top: 34px; margin-bottom: 10px; }
.article p  { margin-bottom: 17px; color: var(--text-soft); }
.article p strong, .article li strong { color: var(--text); font-weight: 650; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-soft); }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--accent); }
.article > :first-child { margin-top: 0; }

.answer-first {
  font-size: 1.08rem; color: var(--text); font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px;
}

blockquote {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 24px 0;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--text-soft); font-style: italic;
}
cite { display: block; font-style: normal; font-size: .85rem; color: var(--text-mute); margin-top: 8px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 480px; }
caption { text-align: left; padding: 14px 18px 0; font-size: .87rem; color: var(--text-mute); }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- Quiz ---------- */
.quiz-shell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: 34px; scroll-margin-top: 80px;
}
.quiz-bar { padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.quiz-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .85rem; font-weight: 650; color: var(--text-soft); }
.quiz-dim { color: var(--accent-text); }
.progress { height: 7px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--gold))); border-radius: inherit; transition: width .3s cubic-bezier(.4,0,.2,1); }

.quiz-body { padding: clamp(24px, 4vw, 40px); }
.q-index { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; }
.q-text { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; }

.options { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 1rem; line-height: 1.45; color: var(--text);
  transition: border-color .14s, background .14s, transform .1s;
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option:active { transform: scale(.995); }
.option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.option-key {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); font-size: .8rem; font-weight: 700; color: var(--text-mute);
}
.option:hover .option-key, .option[aria-pressed="true"] .option-key {
  border-color: var(--accent); background: var(--accent); color: var(--accent-ink);
}

.quiz-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.quiz-foot .hint { font-size: .85rem; color: var(--text-mute); margin-left: auto; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600;
  color: var(--text-soft); padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border);
}
.btn-back:hover { background: var(--surface-2); color: var(--text); }
.btn-back[hidden] { display: none; }

/* Age input step */
.age-field { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 6px; }
.age-field input {
  width: 130px; padding: 13px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 1.05rem; font-weight: 600;
}
.age-field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Result ---------- */
.result { display: none; }
.result.show { display: block; animation: rise .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-hero { text-align: center; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.result-label { font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.result-age {
  font-size: clamp(4rem, 2rem + 13vw, 7.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -.05em; margin: 6px 0 2px;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--gold) 70%, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-unit { font-size: 1rem; font-weight: 650; color: var(--text-soft); letter-spacing: .02em; }
.result-archetype { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); font-weight: 750; margin-top: 16px; }
.result-tagline { color: var(--text-soft); max-width: 54ch; margin: 8px auto 0; }
.result-delta {
  display: inline-block; margin-top: 18px; padding: 9px 20px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .95rem;
}
.result-delta b { color: var(--accent-text); }

.result-section { padding: clamp(24px, 4vw, 38px); border-top: 1px solid var(--border); }
.result-section > h3 { margin-bottom: 6px; }
.result-section > h3 + p { color: var(--text-soft); font-size: .95rem; margin-bottom: 20px; }

/* Dimension bars */
.dims { display: grid; gap: 16px; }
.dim-row { display: grid; grid-template-columns: minmax(140px, 1.1fr) 2.4fr auto; gap: 14px; align-items: center; }
.dim-name { font-weight: 650; font-size: .95rem; }
.dim-name small { display: block; font-weight: 450; color: var(--text-mute); font-size: .8rem; }
.dim-track { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); position: relative; overflow: hidden; }
/* Width is written inline by the scoring script so the bar is correct even if
   animation never runs; the keyframe only scales it into view. */
.dim-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--gold)), var(--accent));
  transform-origin: left center;
  animation: growbar .85s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes growbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dim-val { font-variant-numeric: tabular-nums; font-weight: 750; font-size: .95rem; min-width: 3.4ch; text-align: right; color: var(--accent-text); }
@media (max-width: 560px) {
  .dim-row { grid-template-columns: 1fr auto; }
  .dim-track { grid-column: 1 / -1; }
}

.two-col { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel ul { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: .95rem; }
.panel li { margin-bottom: 7px; }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); font-weight: 600; font-size: .93rem; text-decoration: none;
}
.share-btn:hover { background: var(--surface-2); border-color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: var(--prose); }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  padding: 17px 52px 17px 22px; font-weight: 650; cursor: pointer; position: relative;
  list-style: none; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); border-color: var(--accent); }
.faq summary:hover { background: var(--surface-2); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-soft); }
.faq .faq-body p { margin-bottom: 12px; }
.faq .faq-body > :last-child { margin-bottom: 0; }
.faq .faq-body ul { padding-left: 20px; margin-bottom: 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; counter-increment: step;
}
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--text-soft); font-size: .97rem; }

/* ---------- Related / cluster links ---------- */
.link-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.link-card {
  display: block; text-decoration: none; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card strong { display: block; font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.link-card span { color: var(--text-soft); font-size: .93rem; }
.link-card::after { content: " →"; color: var(--accent); font-weight: 700; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .86rem; color: var(--text-mute); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: var(--border-strong); }
.crumbs a { color: var(--text-mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }

/* ---------- Byline / E-E-A-T ---------- */
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .88rem; color: var(--text-mute);
  padding: 14px 0; border-block: 1px solid var(--border); margin: 24px 0 30px;
}
.byline strong { color: var(--text-soft); font-weight: 650; }
.badge-review {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: var(--gold);
  padding: 4px 12px; border-radius: var(--radius-pill); font-weight: 700; font-size: .78rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--gold)));
  color: var(--accent-ink); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 52px); text-align: center; margin: 20px 0;
}
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 88%, transparent); max-width: 52ch; margin: 12px auto 0; }
.cta-band .btn {
  background: var(--accent-ink); color: var(--accent); margin-top: 24px; box-shadow: var(--shadow-lg);
}
.cta-band .btn:hover { background: color-mix(in srgb, var(--accent-ink) 92%, var(--accent)); }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 650; font-size: .95rem; }
.field small { color: var(--text-mute); font-size: .85rem; }
.field input {
  padding: 13px 16px; border-radius: var(--radius); border: 1.5px solid var(--border-strong);
  background: var(--surface); font-size: 1.05rem; font-weight: 600; width: 100%;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-out {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.calc-out .big { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-text); line-height: 1.1; }
.calc-out p { color: var(--accent-text); font-size: .95rem; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 52px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-soft); text-decoration: none; font-size: .94rem; }
.footer-grid a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-about p { color: var(--text-soft); font-size: .93rem; margin-top: 12px; max-width: 42ch; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .85rem; color: var(--text-mute);
}
.disclaimer-strip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; font-size: .88rem; color: var(--text-mute); margin-bottom: 32px;
}
.disclaimer-strip strong { color: var(--text-soft); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
