/* =========================================================================
   YouthIncome — global stylesheet  ·  v2 "Neural" dark tech/AI theme
   One file, no build step. Mobile-first. Dark mode.
   Sections: tokens / reset / fx / layout / header / footer / components /
             article / tools / forms / cookie banner / utilities / responsive
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Brand: cyan-teal (matches the logo) blended with electric violet, and a
     warm coral accent retained for primary calls to action. */
  --brand: #2dd4bf;
  --brand-2: #22d3ee;
  --brand-dark: #14b8a6;
  --violet: #8b7bff;
  --violet-2: #a78bfa;
  --brand-tint: rgba(45, 212, 191, .12);
  --accent: #ff6a3d;
  --accent-2: #ff8a5c;
  --accent-dark: #f0521f;

  /* Gradients */
  --grad: linear-gradient(120deg, #22d3ee 0%, #6ee7d6 35%, #8b7bff 100%);
  --grad-brand: linear-gradient(120deg, #2dd4bf 0%, #22d3ee 50%, #8b7bff 100%);
  --grad-accent: linear-gradient(120deg, #ff8a5c 0%, #ff6a3d 100%);

  /* Neutrals (dark) */
  --bg: #070b14;
  --bg-2: #0a0f1c;
  --ink: #e9eef8;
  --ink-soft: #c6d0e2;
  --muted: #8b97ad;
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #0f1726;
  --white: #ffffff;

  /* Feedback colors for callouts (dark-tuned) */
  --warn-bg: rgba(245, 180, 80, .10);
  --warn-line: rgba(245, 180, 80, .32);
  --warn-ink: #ffd9a0;
  --note-bg: rgba(96, 165, 250, .10);
  --note-line: rgba(96, 165, 250, .32);
  --note-ink: #bcd6ff;

  /* Typography scale (fluid where useful) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --h1: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);

  /* Spacing + shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(45, 212, 191, .25), 0 12px 40px rgba(34, 211, 238, .18);
  --maxw: 1140px;
  --readw: 720px;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page background: faint dot-grid + two soft color fields */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(820px 560px at 100% 0%, rgba(139, 123, 255, .13), transparent 58%),
    radial-gradient(700px 700px at 50% 120%, rgba(45, 212, 191, .08), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-2); text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); font-weight: 750; }
h1 { font-size: var(--h1); margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: var(--h2); margin: 2em 0 .6em; letter-spacing: -.015em; }
h3 { font-size: var(--h3); margin: 1.6em 0 .4em; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin: .3em 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: rgba(45, 212, 191, .3); color: #fff; }

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

/* ---- Reusable FX ------------------------------------------------------ */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Scroll-reveal (class added by JS, so no-JS users see content normally) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.section { padding: clamp(2.5rem, 1.5rem + 4vw, 4.75rem) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--brand); color: #04201c; font-weight: 700; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, .65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .logo { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 10px rgba(45,212,191,.45)); }
.brand b { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.nav-links {
  display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: .5rem .75rem; border-radius: 10px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1; position: relative; isolation: isolate;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-accent); color: #2a0d04; box-shadow: 0 8px 26px rgba(255, 106, 61, .3); }
.btn--primary:hover { color: #2a0d04; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 106, 61, .42); }
.btn--brand { background: var(--grad-brand); color: #032a25; box-shadow: 0 8px 26px rgba(34, 211, 238, .28); }
.btn--brand:hover { color: #032a25; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 211, 238, .4); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--surface-2); color: var(--white); border-color: rgba(45,212,191,.5); }
.btn--block { width: 100%; justify-content: center; }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 4rem); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 14s ease-in-out infinite; }
.hero-bg .orb-1 { width: 380px; height: 380px; background: radial-gradient(circle, #22d3ee, transparent 70%); top: -80px; left: -60px; }
.hero-bg .orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #8b7bff, transparent 70%); top: 40px; right: -80px; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(28px) translateX(16px); } }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; border: 1px solid rgba(45,212,191,.25);
}
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }

/* Hero interactive terminal */
.hero-visual { position: relative; }
.terminal {
  background: linear-gradient(180deg, rgba(15, 23, 38, .9), rgba(10, 15, 28, .92));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.terminal-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted); font-family: var(--mono); letter-spacing: .02em; }
.terminal-body { padding: 1.1rem 1.2rem 1.4rem; font-family: var(--mono); font-size: .92rem; min-height: 200px; }
.t-q { color: var(--ink); margin: 0 0 .6rem; }
.t-prompt { color: var(--brand); font-weight: 700; }
.t-caret { color: var(--brand-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-answer { color: var(--ink-soft); white-space: pre-wrap; line-height: 1.6; }
.t-answer .hl { color: var(--brand); }
.t-tag { display: inline-block; margin-top: .9rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-2); border: 1px solid rgba(139,123,255,.35); border-radius: 999px; padding: .2rem .6rem; font-family: var(--font); }

/* ---- Stats band ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.stat-num { display: block; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-label { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); }

/* ---- Cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; gap: .5rem; overflow: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* gradient hairline that lights up on hover */
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(45,212,191,.5), rgba(139,123,255,.5)); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .25s ease; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }
a.card { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: transparent; }
.card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,212,191,.18), rgba(139,123,255,.18));
  border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: .35rem;
}
.card .card-icon svg { width: 24px; height: 24px; color: var(--brand); }
.card .card-more { margin-top: auto; font-weight: 700; font-size: .95rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Pillar / article list cards */
.post-card { padding: 1.45rem 1.6rem; }
.post-card .kicker {
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand);
}
.post-card h3 { font-size: 1.18rem; margin: .3rem 0; }
.post-card .meta { font-size: .85rem; color: var(--muted); }

/* ---- "Start here" band ------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); color: #032a25;
  font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(34,211,238,.3);
}
.step h3 { margin: .1rem 0 .25rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---- Breadcrumbs ------------------------------------------------------ */
.breadcrumb { font-size: .88rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---- Article body ----------------------------------------------------- */
.article-head { padding: 1.25rem 0 .5rem; }
.article-head .kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.article-meta { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.article-meta .dot { margin: 0 .5rem; color: var(--brand); }

.prose { font-size: 1.08rem; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); scroll-margin-top: 90px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-2); text-decoration: underline; text-decoration-color: rgba(34,211,238,.4); }
.prose a:hover { color: var(--brand); }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; text-align: center; }

/* Quick-answer box (TL;DR for users + AI citation) */
.quick-answer {
  background: var(--brand-tint); border: 1px solid rgba(45,212,191,.3); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.15rem 1.3rem; margin: 0 0 1.75rem;
}
.quick-answer p { margin: 0; color: var(--ink); }
.quick-answer .qa-label {
  display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .35rem;
}

/* Callouts */
.callout {
  border-radius: var(--radius); padding: 1.05rem 1.25rem; margin: 1.5rem 0; border: 1px solid;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title { font-weight: 800; margin: 0 0 .35rem; }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.callout--warn .callout-title { color: var(--warn-ink); }
.callout--warn p, .callout--warn strong { color: var(--warn-ink); }
.callout--note { background: var(--note-bg); border-color: var(--note-line); color: var(--note-ink); }
.callout--note .callout-title { color: var(--note-ink); }
.callout--note p, .callout--note strong { color: var(--note-ink); }

/* Comparison tables */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare {
  width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px;
}
table.compare th, table.compare td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-soft); }
table.compare thead th { background: rgba(255,255,255,.04); font-size: .85rem; letter-spacing: .02em; color: var(--ink); }
table.compare tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
table.compare tbody tr:hover { background: var(--brand-tint); }
table.compare td:first-child { font-weight: 650; color: var(--ink); }

/* Affiliate / financial disclosure strip */
.disclosure {
  font-size: .9rem; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1.05rem; margin: 0 0 1.5rem;
}
.disclosure strong { color: var(--ink); }

/* Author / updated footer of an article */
.byline {
  display: flex; align-items: center; gap: .9rem; margin: 2rem 0 0;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.byline .avatar {
  width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #032a25;
  display: grid; place-items: center; font-weight: 800; flex: none; box-shadow: 0 6px 18px rgba(34,211,238,.3);
}
.byline .by-name { font-weight: 700; margin: 0; color: var(--ink); }
.byline .by-sub { margin: 0; font-size: .88rem; color: var(--muted); }

/* Named author card (About page) */
.author-card {
  display: flex; gap: 1.1rem; align-items: flex-start; margin: 1.5rem 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem; color: #032a25; background: var(--grad-brand);
  box-shadow: 0 8px 22px rgba(34,211,238,.3);
}
.author-name { font-weight: 800; margin: 0 0 .3rem; color: var(--ink); }
.author-bio { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* FAQ (accordion via native details) */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.15rem; margin: .7rem 0;
  background: var(--surface); transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(45,212,191,.4); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.05rem 0; list-style: none; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .faq-body { padding: 1rem 0; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Related links + internal-link block */
.related {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 2rem 0;
}
.related h2 { margin: 0 0 .75rem; font-size: 1.15rem; color: var(--ink); }
.related ul { margin: 0; padding-left: 1.1rem; }
.related a { font-weight: 600; }

/* On-page table of contents */
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; margin: 1.5rem 0;
}
.toc strong { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc a { color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
.toc a.is-active { font-weight: 700; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(45,212,191,.16), rgba(139,123,255,.16));
  border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius); padding: clamp(1.8rem, 1rem + 2vw, 2.8rem);
  text-align: center;
}
.cta-band::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); filter: blur(40px); pointer-events: none; }
.cta-band h2 { color: var(--ink); margin-top: 0; }
.cta-band p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

/* ---- Ad slots --------------------------------------------------------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; margin: 2rem auto; max-width: 728px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
}
.ad-slot::before { content: "Advertisement"; }
.ad-slot:not(:empty)::before { content: none; }
.ad-slot:not(:empty) { background: transparent; border: 0; min-height: 0; }

/* ---- Tools (calculator / matcher) ------------------------------------ */
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow-sm); margin: 1.5rem 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.field { margin: 0 0 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.field select, .field input[type="number"], .field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: .75rem .85rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(7,11,20,.6); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select option { background: var(--surface-solid); color: var(--ink); }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,212,191,.2); }
.field input[type="range"] { width: 100%; accent-color: var(--brand); }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row output { font-weight: 800; color: var(--brand); min-width: 5ch; text-align: right; }

.result {
  margin-top: 1.5rem; padding: 1.3rem 1.45rem; border-radius: var(--radius);
  background: var(--brand-tint); border: 1px solid rgba(45,212,191,.3);
}
.result .result-figure { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.result .result-sub { color: var(--ink-soft); margin: .25rem 0 0; }

/* Quiz (matcher) */
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-progress i { display: block; height: 100%; background: var(--grad-brand); width: 0; transition: width .35s ease; }
.choice-grid { display: grid; gap: .7rem; }
.choice {
  display: flex; align-items: center; gap: .7rem; padding: .95rem 1.05rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  cursor: pointer; font-weight: 600; text-align: left; width: 100%; font-size: 1rem; font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.choice:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateX(3px); }
.choice.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.match-card { border-left: 4px solid var(--brand); }

/* ---- Forms (contact) -------------------------------------------------- */
.form-note { font-size: .9rem; color: var(--muted); }
.form-note.is-ok { color: var(--brand); font-weight: 600; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: #05080f; color: var(--ink-soft); margin-top: 4rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; margin-top: .8rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .5rem 0; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 1.5rem 0; font-size: .85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

/* ---- Cookie consent banner ------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: rgba(15, 23, 38, .95); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.3rem;
  max-width: 560px; margin: 0 auto; display: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.cookie-banner.is-visible { display: block; animation: fade .35s ease; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; color: var(--ink-soft); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner .btn { padding: .6rem 1rem; font-size: .92rem; }

/* ---- Utilities -------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  background: var(--surface-2); color: var(--ink-soft); padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line);
}
.placeholder-img {
  display: grid; place-items: center; background: var(--surface-2); color: var(--muted);
  border-radius: var(--radius); aspect-ratio: 16 / 9; font-size: .85rem; border: 1px solid var(--line);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; }
  .hero h1, .hero .lede { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 15, 28, .98); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; display: none; box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .85rem .5rem; border-radius: 10px; }
  .nav-links .btn { margin-top: .5rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .lede { font-size: 1.1rem; }
}
@media (max-width: 460px) {
  body { font-size: 1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .author-card { flex-direction: column; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
