/* AdviceGenie — marketing site styles */

:root {
  /* Default palette: Royal Sky (cognifylabs-aligned navy/royal/sky) */
  --bg: #F3F6FF;
  --paper: #FFFFFF;
  --ink: #0B1740;
  --ink-2: #1B2F5C;
  --muted: #5B6B8C;
  --rule: #DEE6F7;
  --rule-2: #C9D6F2;
  --gold: #1E40AF;
  --gold-deep: #2B54D4;
  --gold-soft: #E7EEFF;
  --moss: #4F7BFF;
  --moss-soft: #F3F6FF;
  --danger: #B23B2C;

  /* Dark-hero-only tokens */
  --navy: #0B1E4D;
  --navy-deep: #071233;
  --sky: #AFC6FF;
  --line-dk: #1C3270;

  --shadow-sm: 0 1px 0 rgba(11,27,46,0.04), 0 2px 8px rgba(11,27,46,0.04);
  --shadow-md: 0 1px 0 rgba(11,27,46,0.04), 0 12px 32px -8px rgba(11,27,46,0.12);
  --shadow-lg: 0 24px 60px -20px rgba(11,27,46,0.22), 0 8px 24px -8px rgba(11,27,46,0.10);

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

  --max: 1240px;

  /* Typography: cognifylabs-aligned (Bricolage Grotesque / Inter / JetBrains Mono) */
  --serif: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Palette variants applied by Tweaks */
:root[data-palette="midnight"] {
  --bg: #0E1320;
  --paper: #141A2A;
  --ink: #F4EFE6;
  --ink-2: #DAD3C4;
  --muted: #A7A294;
  --rule: #233049;
  --rule-2: #2D3A55;
  --gold: #E0B973;
  --gold-deep: #C99850;
  --gold-soft: #2A2218;
  --moss: #6FB39C;
  --moss-soft: #18372F;
}
:root[data-palette="sage"] {
  --bg: #EFEEE6;
  --paper: #F8F7F1;
  --ink: #161A17;
  --ink-2: #232A24;
  --muted: #585C53;
  --rule: #D8D7CB;
  --rule-2: #C4C3B4;
  --gold: #B7873E;
  --gold-deep: #6E5023;
  --gold-soft: #E6D7B7;
  --moss: #2A5A48;
  --moss-soft: #DBE5DA;
}
:root[data-palette="ocean"] {
  --bg: #ECF0F1;
  --paper: #FBFCFC;
  --ink: #0B1B2B;
  --ink-2: #16263A;
  --muted: #4F5E6E;
  --rule: #D7DEE2;
  --rule-2: #C2CCD3;
  --gold: #C28A2C;
  --gold-deep: #7A5519;
  --gold-soft: #EFD9B0;
  --moss: #0F4F62;
  --moss-soft: #D7E5EA;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ===== Layout primitives ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--ink);
  color: var(--bg);
}
.section--dark { --rule: #1B3147; --rule-2: #274059; --muted: #7E9BB6; --paper: #0A1A2C; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
}

.italic { font-style: italic; }
.gold { color: var(--gold-deep); }
.section--dark .gold { color: var(--gold); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-color: var(--rule); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav .brand-icon { height: 28px; }
.nav .brand-name { font-size: 19px; }
.nav .brand-tag { font-size: 9px; }
.nav .btn { padding: 8px 15px; font-size: 13.5px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}
.brand__mark svg { width: 100%; height: 100%; }
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a { padding: 6px 0; position: relative; }
.nav__links a:hover { color: var(--gold-deep); }
.nav__spacer { flex: 1; }
.nav__cta { display: flex; gap: 10px; align-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost {
  border-color: var(--rule-2);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--lg { padding: 16px 24px; font-size: 15.5px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero, .topic-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(79,123,255,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #EAF0FF;
}
.hero::before, .topic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero { padding: 74px 0 96px; }

/* Dark-hero text & control overrides (shared: .hero + .topic-hero) */
.hero .eyebrow, .topic-hero .eyebrow { color: var(--sky); }
.hero .eyebrow::before, .topic-hero .eyebrow::before { background: var(--sky); opacity: .6; }
.hero .hero__title em, .topic-hero .topic-hero__title em { color: var(--sky); font-style: normal; }
.hero .hero__sub, .topic-hero .lead { color: #B8C6E8; }
.hero .hero__meta { color: #9DB0D8; }
.hero .hero__meta .dot { background: var(--sky); }
.topic-hero .topic-hero__badge {
  background: color-mix(in oklab, var(--sky) 14%, var(--navy));
  border-color: var(--line-dk);
  color: var(--sky);
}
.hero .btn--primary, .topic-hero .btn--primary { background: var(--moss); color: #fff; }
.hero .btn--primary:hover, .topic-hero .btn--primary:hover { background: var(--gold-deep); box-shadow: 0 12px 30px -14px rgba(79,123,255,.7); }
.hero .btn--ghost, .topic-hero .btn--ghost { color: #EAF0FF; border-color: var(--line-dk); }
.hero .btn--ghost:hover, .topic-hero .btn--ghost:hover { border-color: var(--sky); }

/* Dark reskin of hero visual mockups (genie-chat / app-mock / float-badge + nested chrome) */
.hero .genie-chat, .hero .app-mock, .hero .compliance-card, .hero .speed-card, .hero .sov-card {
  background: rgba(255,255,255,.04);
  border-color: var(--line-dk);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.hero .genie-chat__bar, .hero .app-mock__bar {
  border-bottom-color: var(--line-dk);
  background: rgba(255,255,255,.03);
}
.hero .genie-chat__bar .dots span, .hero .app-mock__bar .dots span { background: var(--line-dk); }
.hero .genie-chat__bar .url, .hero .app-mock__bar .url {
  color: #9DB0D8;
  background: rgba(255,255,255,.06);
  border-color: var(--line-dk);
}
.hero .genie-chat__bubble--user {
  background: rgba(255,255,255,.06);
  border-color: var(--line-dk);
  color: #DCE4F7;
}
.hero .genie-chat__bubble--genie {
  background: rgba(79,123,255,.10);
  border-color: color-mix(in oklab, var(--sky) 30%, transparent);
}
.hero .genie-chat__label { color: var(--sky); }
.hero .genie-chat__avatar--user { background: var(--line-dk); color: #B8C6E8; }
.hero .genie-chat__avatar--genie { background: var(--navy-deep); color: var(--sky); }
.hero .genie-chat__card { background: rgba(255,255,255,.05); border-color: var(--line-dk); }
.hero .genie-chat__card-label, .hero .genie-chat__card-val span { color: #9DB0D8; }
.hero .genie-chat__card-val { color: #fff; }
.hero .genie-chat__disclaimer { color: #9DB0D8; background: rgba(255,255,255,.04); border-color: var(--line-dk); }
.hero .genie-chat__disclaimer a { color: var(--sky); }

.hero .sidebar { border-right-color: var(--line-dk); background: rgba(255,255,255,.02); }
.hero .sidebar__client { border-color: var(--line-dk); background: rgba(255,255,255,.04); }
.hero .sidebar__client-name { color: #EAF0FF; }
.hero .sidebar__client-sub { color: #8EA2D0; }
.hero .sidebar__nav-item { color: #B8C6E8; }
.hero .sidebar__nav-item.is-active { background: var(--navy-deep); color: var(--sky); }
.hero .sidebar__nav-item.is-done { color: #8EA2D0; }
.hero .sidebar__nav-item.is-todo .check { border-color: var(--line-dk); }

.hero .canvas { background: transparent; }
.hero .canvas__title { color: #fff; }
.hero .canvas__crumbs { color: #8EA2D0; }
.hero .pill { background: rgba(79,123,255,.14); color: var(--sky); border-color: color-mix(in oklab, var(--sky) 30%, transparent); }
.hero .pill .led { background: var(--sky); }

.hero .ai-card { background: rgba(79,123,255,.08); border-color: var(--line-dk); }
.hero .ai-card__avatar { background: var(--navy-deep); color: var(--sky); }
.hero .ai-card__label { color: var(--sky); }
.hero .ai-card__text { color: #DCE4F7; }
.hero .chip { background: rgba(255,255,255,.05); border-color: var(--line-dk); color: #DCE4F7; }

.hero .compliance-row { background: rgba(255,255,255,.04); border-color: var(--line-dk); color: #DCE4F7; }
.hero .compliance-row__meta { color: #8EA2D0; }

/* Slide 2/3/4 visual cards (advisers.html carousel) */
.hero .compliance-card__title, .hero .speed-card__head, .hero .sov-card__title { color: #fff; }
.hero .compliance-card__score { background: linear-gradient(180deg, rgba(79,123,255,.12), transparent); border-color: var(--line-dk); }
.hero .score-ring__num { color: var(--sky); }
.hero .score-meta__title { color: #fff; }
.hero .score-meta__sub { color: #9DB0D8; }
.hero .checklist__row { background: rgba(255,255,255,.04); border-color: var(--line-dk); color: #DCE4F7; }
.hero .checklist__row .mk { background: var(--moss); color: #fff; }
.hero .checklist__row.is-warn .mk { background: var(--sky); color: var(--navy-deep); }
.hero .checklist__row .ref { color: #8EA2D0; }

.hero .speed-row { border-top-color: var(--line-dk); }
.hero .speed-row:last-child { border-bottom-color: var(--line-dk); }
.hero .speed-row__label { color: #9DB0D8; }
.hero .speed-row__label strong { color: #fff; }
.hero .speed-bar { background: rgba(255,255,255,.05); border-color: var(--line-dk); }
.hero .speed-bar__fill--new { background: linear-gradient(90deg, var(--gold), var(--moss)); }
.hero .speed-card__metric { border-top-color: var(--line-dk); }
.hero .speed-card__metric .big { color: var(--sky); }
.hero .speed-card__metric .lbl { color: #9DB0D8; }

.hero .sov-card__map { background: radial-gradient(120% 90% at 60% 50%, rgba(79,123,255,.14), transparent 70%); }
.hero .sov-card .sov-node .lbl { background: var(--navy-deep); color: var(--sky); border-color: var(--line-dk); }
.hero .sov-card .sov-node .pin {
  background: var(--sky);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--sky) 22%, transparent), 0 0 18px color-mix(in oklab, var(--sky) 50%, transparent);
}
.hero .sov-rowi { background: rgba(255,255,255,.04); border-color: var(--line-dk); color: #DCE4F7; }
.hero .sov-rowi .icr { background: rgba(79,123,255,.16); color: var(--sky); }
.hero .sov-rowi .icr--gold { background: rgba(175,198,255,.18); color: var(--sky); }
.hero .sov-rowi .meta { color: #8EA2D0; }

.hero .float-badge {
  background: rgba(255,255,255,.05);
  border-color: var(--line-dk);
  backdrop-filter: blur(6px);
  color: #EAF0FF;
}
.hero .float-badge .ico { background: rgba(79,123,255,.16); color: var(--sky); }
.hero .float-badge--gold .ico { background: rgba(175,198,255,.18); color: var(--sky); }
.hero .float-badge small { color: #8EA2D0; }

.hero .soa-doc__highlight { background: linear-gradient(transparent 55%, rgba(79,123,255,.35) 55%); }

.hero .hero-controls, .topic-hero .hero-controls { border-top-color: var(--line-dk); }
.hero .hero-dots__item, .topic-hero .hero-dots__item { color: #8EA2D0; border-top-color: var(--line-dk); }
.hero .hero-dots__item:hover, .topic-hero .hero-dots__item:hover { color: #EAF0FF; }
.hero .hero-dots__item.is-active, .topic-hero .hero-dots__item.is-active { color: #fff; border-top-color: var(--sky); }
.hero .hero-arrow, .topic-hero .hero-arrow {
  background: rgba(255,255,255,.05);
  border-color: var(--line-dk);
  color: #EAF0FF;
}
.hero .hero-arrow:hover, .topic-hero .hero-arrow:hover { background: var(--moss); color: #fff; border-color: var(--moss); }

/* Founder byline (cognifylabs-style ringed photo credit) */
.founder-byline {
  margin-top: 28px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--rule);
}
.founder-byline__ring {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
}
.founder-byline__ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: .35;
}
.founder-byline__ring img {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule-2);
}
.founder-byline__text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.founder-byline__text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.hero .founder-byline, .topic-hero .founder-byline { border-top-color: var(--line-dk); }
.hero .founder-byline__ring::before, .topic-hero .founder-byline__ring::before { border-color: var(--sky); opacity: .5; }
.hero .founder-byline__ring img, .topic-hero .founder-byline__ring img { border-color: var(--line-dk); }
.hero .founder-byline__text, .topic-hero .founder-byline__text { color: #9DB0D8; }
.hero .founder-byline__text a, .topic-hero .founder-byline__text a { color: #EAF0FF; }

.hero-slider {
  position: relative;
}
.hero-slider__track {
  position: relative;
  min-height: 620px;
}
/* AdviceGenie.html's homepage hero only slides text (visual is fixed, outside the slider) — much shorter track */
.hero--public .hero-slider__track { min-height: 300px; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
  transform: translateY(12px);
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Slider controls */
.hero-controls {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hero-dots {
  display: flex;
  gap: 8px;
  flex: 1;
}
.hero-dots__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 0 0;
  cursor: pointer;
  flex: 1;
  text-align: left;
  font: inherit;
  color: var(--muted);
  border-top: 1px solid var(--rule-2);
  transition: color .2s, border-color .2s;
  max-width: 220px;
}
.hero-dots__item:hover { color: var(--ink); }
.hero-dots__item.is-active { color: var(--ink); border-color: var(--ink); }
.hero-dots__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}
.hero-dots__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-arrow svg { width: 16px; height: 16px; }

/* ===== Slide 2: Compliance scorecard visual ===== */
.compliance-card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.compliance-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.compliance-card__title { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.compliance-card__score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--moss-soft), var(--paper));
  margin-bottom: 18px;
}
.score-ring {
  width: 96px; height: 96px;
  position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring__num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 32px;
  letter-spacing: -.02em;
  color: var(--moss);
}
.score-meta__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; letter-spacing: -.015em; }
.score-meta__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
}
.checklist__row .mk {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); color: white;
  display: grid; place-items: center; font-size: 10px;
}
.checklist__row.is-warn .mk { background: var(--gold); color: #fff; }
.checklist__row .ref { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ===== Slide 3: Speed timeline visual ===== */
.speed-card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.speed-card__head { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; margin-bottom: 22px; }
.speed-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.speed-row:last-child { border-bottom: 1px solid var(--rule); }
.speed-row__label { font-size: 13px; color: var(--muted); }
.speed-row__label strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 20px; letter-spacing: -.01em; }
.speed-bar {
  position: relative; height: 26px; border-radius: 13px;
  background: var(--bg); border: 1px solid var(--rule);
  overflow: hidden;
}
.speed-bar__fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-radius: 13px;
  display: flex; align-items: center; padding: 0 14px;
  font-size: 12px; font-weight: 500; color: var(--paper);
  font-family: var(--mono);
}
.speed-bar__fill--old {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  width: 100%;
  color: #fff;
}
.speed-bar__fill--new {
  background: linear-gradient(90deg, #0C457F, var(--moss));
  width: 4%;
  min-width: 30px;
}
.speed-card__metric {
  margin-top: 24px;
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule-2);
}
.speed-card__metric .big {
  font-family: var(--serif);
  font-size: 54px; line-height: 1;
  letter-spacing: -.025em;
  color: var(--moss);
}
.speed-card__metric .lbl { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ===== Slide 4: Sovereignty card visual ===== */
.sov-card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.sov-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 0;
}
.sov-card__title { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.sov-card__map {
  position: relative;
  margin: 14px 0;
  height: 280px;
  background: radial-gradient(120% 90% at 60% 50%, var(--moss-soft), transparent 70%);
}
.sov-card__map svg { width: 100%; height: 100%; }
.sov-card .sov-node .pin {
  background: var(--gold);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--gold) 22%, transparent), 0 0 18px color-mix(in oklab, var(--gold) 50%, transparent);
}
.sov-card .sov-node .lbl {
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2);
}
.sov-card__rows { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.sov-rowi {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
}
.sov-rowi .icr {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; font-size: 11px;
}
.sov-rowi .icr--gold { background: var(--gold-soft); color: var(--gold-deep); }
.sov-rowi .meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.hero__copy { padding-right: 8px; }
.hero__title { margin-top: 22px; }
.hero__title em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero__sub {
  margin-top: 26px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}
.hero__ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
.hero__meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--moss); }
.hero__visual {
  position: relative;
}

/* App mock */
.app-mock {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.app-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, color-mix(in oklab, var(--paper) 88%, var(--bg)), var(--paper));
}
.app-mock__bar .dots { display: flex; gap: 6px; }
.app-mock__bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.app-mock__bar .url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.app-mock__body { display: grid; grid-template-columns: 200px 1fr; min-height: 480px; }
.sidebar {
  padding: 18px 14px;
  border-right: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 92%, var(--bg));
}
.sidebar__client {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 14px;
}
.sidebar__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink); font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}
.sidebar__client-name { font-size: 13px; font-weight: 500; line-height: 1.1; }
.sidebar__client-sub { font-size: 11px; color: var(--muted); }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; font-size: 13px; border-radius: 8px;
  color: var(--ink-2); cursor: pointer;
}
.sidebar__nav-item.is-active { background: var(--ink); color: var(--bg); }
.sidebar__nav-item .ic { width: 14px; height: 14px; opacity: .7; }
.sidebar__nav-item.is-active .ic { opacity: 1; }
.sidebar__nav-item .check {
  margin-left: auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--moss);
  color: white;
  display: grid; place-items: center;
  font-size: 9px;
}
.sidebar__nav-item.is-done { color: var(--muted); }
.sidebar__nav-item.is-todo .check {
  background: transparent;
  border: 1px solid var(--rule-2);
  color: transparent;
}

.canvas {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
}
.canvas__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.canvas__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.canvas__crumbs { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--moss-soft); color: var(--moss);
  border: 1px solid color-mix(in oklab, var(--moss) 30%, transparent);
}
.pill .led { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); }
.pill--gold { background: var(--gold-soft); color: var(--gold-deep); border-color: color-mix(in oklab, var(--gold) 35%, transparent); }
.pill--gold .led { background: var(--gold); }

.ai-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--gold-soft) 35%, var(--paper)), var(--paper));
  display: flex; gap: 12px;
}
.ai-card__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--gold); display: grid; place-items: center;
}
.ai-card__avatar svg { width: 14px; height: 14px; }
.ai-card__body { flex: 1; }
.ai-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 600; }
.ai-card__text { font-size: 13.5px; margin-top: 4px; line-height: 1.45; color: var(--ink-2); }
.ai-card__chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
}

.strat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.strat {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px;
  background: var(--paper);
}
.strat__head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.strat__title { font-size: 13px; font-weight: 600; }
.strat__num { font-family: var(--serif); font-size: 26px; letter-spacing: -.02em; margin-top: 6px; }
.strat__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.strat__bar {
  margin-top: 10px; height: 6px; border-radius: 3px;
  background: var(--rule); overflow: hidden;
}
.strat__bar > span { display: block; height: 100%; background: var(--moss); border-radius: 3px; }

.compliance-row {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--ink-2);
}
.compliance-row .tick {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); color: #fff;
  display: grid; place-items: center; font-size: 11px;
  flex-shrink: 0;
}
.compliance-row__meta { margin-left: auto; font-size: 11px; color: var(--muted); }

/* Floating badges around hero mock */
.float-badge {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.float-badge .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center;
}
.float-badge--gold .ico { background: var(--gold-soft); color: var(--gold-deep); }
.float-badge strong { font-weight: 600; }
.float-badge small { color: var(--muted); display: block; font-size: 11px; margin-top: 1px; }

.float-1 { top: 8%; left: -28px; }
.float-2 { bottom: 12%; right: -32px; }

/* ===== Trust strip ===== */
.trust {
  padding: 28px 0 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.trust__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  max-width: 200px;
  line-height: 1.4;
}
.trust__logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--ink-2);
  opacity: 0.75;
}
.trust__logos > * { height: 26px; display: flex; align-items: center; font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.trust__logos .logo-sans { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; font-size: 16px; }

/* ===== Why grid ===== */
.why { background: var(--bg); }
.why__head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-end; margin-bottom: 56px; }
.why__head .lead { margin-top: 0; }
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.compare__col { padding: 28px 30px 30px; }
.compare__col + .compare__col { border-left: 1px solid var(--rule); }
.compare__col--old { background: color-mix(in oklab, var(--bg) 60%, var(--paper)); }
.compare__col--new { background: var(--paper); position: relative; }
.compare__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 500;
  margin-bottom: 14px;
}
.compare__tag--new { color: var(--gold-deep); }
.compare__title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.compare__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.compare__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-2);
}
.compare__list .mark {
  width: 22px; height: 22px; border-radius: 50%;
  flex-shrink: 0; display: grid; place-items: center; font-size: 12px;
  background: var(--rule); color: var(--muted);
}
.compare__col--new .compare__list .mark { background: var(--moss); color: white; }
.compare__metric {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule-2);
  display: flex; align-items: baseline; gap: 14px;
}
.compare__metric .big {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.025em;
}
.compare__col--new .compare__metric .big { color: var(--moss); }
.compare__metric .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* ===== Steps ===== */
.steps__head { margin-bottom: 56px; text-align: left; max-width: 760px; }
.steps__head .lead { margin-top: 22px; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 22px 0;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.step__num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .12em;
}
.step__title { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin-top: 8px; letter-spacing: -.015em; }
.step__desc { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.step__visual {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--rule-2);
  margin-left: -22px; margin-right: -22px;
  padding-left: 22px; padding-right: 22px;
  padding-bottom: 22px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 50%, transparent));
}

/* tiny ui in steps */
.mini-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-2);
  margin-top: 6px;
}
.mini-row .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--gold) 60%, transparent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--gold) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.mini-doc {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
}
.mini-doc__line {
  height: 6px; border-radius: 3px;
  background: var(--rule);
  margin: 5px 0;
}
.mini-doc__line.short { width: 60%; }
.mini-doc__line.med { width: 80%; }
.mini-doc__line.dark { background: var(--ink-2); width: 50%; }

/* ===== Platform tabs ===== */
.platform { background: var(--bg); }
.platform__head { margin-bottom: 40px; }
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0;
}
.tab {
  padding: 12px 18px 14px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab.is-active { color: var(--ink); border-color: var(--gold); }
.tab .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--gold-deep);
}

.tab-panels { position: relative; }
.tab-panel { display: none; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.tab-panel.is-active { display: grid; }
.tab-panel__copy { padding: 12px 0; }
.tab-panel h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.tab-panel p { color: var(--muted); margin-top: 16px; font-size: 15.5px; line-height: 1.6; max-width: 50ch; }
.tab-panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tab-panel li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.tab-panel li .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; font-size: 10px; flex-shrink: 0; margin-top: 2px;
}

/* Panel visuals */
.panel-vis {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}
.panel-vis__head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-bottom: 16px;
}
.panel-vis__title { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }

.form-field {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  margin-bottom: 8px;
}
.form-field__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.form-field__val { font-size: 14.5px; color: var(--ink); }
.form-field--focused { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 30%, transparent); }
.form-field__hint {
  font-size: 11.5px; color: var(--gold-deep);
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}

.soa-doc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 12.5px;
}
.soa-doc__title { font-family: var(--serif); font-size: 18px; letter-spacing: -.01em; }
.soa-doc__meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.soa-doc__hr { height: 1px; background: var(--rule); margin: 14px 0; }
.soa-doc__h { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 600; }
.soa-doc__p { margin-top: 8px; color: var(--ink-2); line-height: 1.5; }
.soa-doc__highlight {
  background: linear-gradient(transparent 55%, var(--gold-soft) 55%);
  padding: 0 2px;
}

.audit-list { display: flex; flex-direction: column; gap: 8px; }
.audit-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
}
.audit-item .ts { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.audit-item .label strong { font-weight: 600; }
.audit-item .label small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.audit-item .tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss);
  font-weight: 500;
}
.audit-item .tag--gold { background: var(--gold-soft); color: var(--gold-deep); }
.audit-item .tag--neutral { background: var(--rule); color: var(--muted); }

/* ===== Security ===== */
.security {
  background: var(--ink);
  color: var(--bg);
}
.security__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.security h2 { color: var(--bg); }
.security__lead { color: #A8C4DD; margin-top: 22px; font-size: 18px; line-height: 1.55; max-width: 50ch; }

.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.cred {
  border: 1px solid #1B3147;
  background: #0A1A2C;
  border-radius: 14px;
  padding: 20px;
}
.cred__top {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold);
}
.cred__top .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in oklab, var(--gold) 18%, transparent);
  color: var(--gold);
  display: grid; place-items: center;
}
.cred__title { font-family: var(--serif); font-size: 22px; margin-top: 12px; letter-spacing: -.01em; }
.cred__desc { color: #7E9BB6; font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

/* Map / data sovereignty visual */
.sovereignty {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #0A1A2C, #06121F);
  border: 1px solid #1B3147;
  padding: 28px;
  overflow: hidden;
}
.sovereignty__map {
  position: relative;
  aspect-ratio: 1.05/1;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 60% 40%, #0D2D4F 0%, #06121F 70%);
}
.sovereignty__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sov-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
}
.sov-node .pin {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--gold) 22%, transparent), 0 0 24px var(--gold);
}
.sov-node .lbl {
  font-size: 11px; color: var(--bg);
  background: #0A1A2C;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid #1B3147;
  font-family: var(--mono);
}
.sov-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px; color: #7E9BB6;
}
.sov-meta .item { display: flex; align-items: center; gap: 8px; }
.sov-meta .led { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 8px var(--moss); }

/* ===== Founder quote ===== */
.story__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
.story__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #06121F 0%, #0D3C6B 60%, #1A5C9E 100%);
  display: grid; place-items: center;
}
/* Manifesto variant — replaces founder portrait */
.story__visual--manifesto {
  aspect-ratio: auto;
  background: linear-gradient(160deg, #06121F 0%, #0A1A2C 100%);
  display: block;
  padding: 38px 36px;
  color: var(--bg);
}
.manifesto-card { color: var(--bg); height: 100%; display: flex; flex-direction: column; }
.manifesto-card__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  color: var(--gold);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.manifesto-card__eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--gold); opacity: 0.6;
}
.manifesto-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.manifesto-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}
.manifesto-list li:first-child { border-top: none; padding-top: 4px; }
.manifesto-list li:last-child { padding-bottom: 4px; }
.manifesto-list__num {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
  font-style: italic;
}
.manifesto-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.01em;
  font-weight: 400;
  line-height: 1.15;
}
.manifesto-list p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #A8C4DD;
}
.story__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 30% 30%, color-mix(in oklab, var(--gold) 28%, transparent), transparent 70%);
}
.story__visual .glyph {
  position: relative; z-index: 2;
  font-family: var(--serif); font-style: italic;
  color: var(--gold-soft); font-size: 240px; line-height: 1;
  opacity: 0.95;
}
.story__visual .caption {
  position: absolute; bottom: 26px; left: 26px; right: 26px; z-index: 3;
  color: var(--bg); font-size: 13px; display: flex; gap: 14px; align-items: center;
}
.story__visual .caption .av {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2E7BC4, #0C457F);
  border: 2px solid #7FB2E0;
}
.story__visual .caption strong { display: block; font-weight: 600; }
.story__visual .caption small { color: #A8C4DD; font-size: 12px; }
.story__quote { font-family: var(--serif); font-size: clamp(28px, 2.7vw, 38px); line-height: 1.2; letter-spacing: -.015em; }
.story__quote em { font-style: italic; color: var(--gold-deep); }
.story__stats {
  margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.story__stat { padding: 22px 16px 0 0; border-right: 1px solid var(--rule); }
.story__stat:last-child { border-right: none; padding-left: 16px; padding-right: 0; }
.story__stat:nth-child(2) { padding-left: 16px; }
.story__stat .big { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.story__stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ===== Pricing ===== */
.pricing { background: var(--bg); }
.pricing__head { text-align: center; margin-bottom: 48px; }
.pricing__head .lead { margin-left: auto; margin-right: auto; text-align: center; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan--featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.plan--featured .muted, .plan--featured .plan__feat { color: #A8C4DD; }
.plan--featured .plan__line { background: #1B3147; }
.plan__tag {
  position: absolute; top: -10px; right: 24px;
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .12em;
}
.plan__name { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.plan__desc { font-size: 13.5px; color: var(--muted); margin-top: 6px; min-height: 38px; }
.plan--featured .plan__desc { color: #A8C4DD; }
.plan__price {
  margin-top: 22px;
  display: flex; align-items: baseline; gap: 4px;
}
.plan__price .amt { font-family: var(--serif); font-size: 56px; letter-spacing: -.02em; line-height: 1; }
.plan__price .cur { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.plan__price .per { font-size: 13px; color: var(--muted); margin-left: 6px; }
.plan--featured .plan__price .per { color: #A8C4DD; }
.plan__line { height: 1px; background: var(--rule); margin: 22px 0; }
.plan__feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan__feat { display: flex; gap: 10px; align-items: flex-start; }
.plan__feat .tick {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; font-size: 9px; flex-shrink: 0; margin-top: 3px;
}
.plan--featured .plan__feat .tick { background: color-mix(in oklab, var(--gold) 22%, transparent); color: var(--gold); }
.plan__cta { margin-top: 24px; }
.plan--featured .btn--ghost { border-color: #1B3147; color: var(--bg); }
.plan--featured .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ===== FAQ ===== */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: flex-start; }
.faq__list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item__q {
  display: flex; align-items: flex-start; gap: 16px;
  width: 100%; padding: 0;
  background: transparent; border: none; text-align: left;
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -.01em; color: var(--ink);
  cursor: pointer; line-height: 1.2;
}
.faq-item__q::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__q::after { content: "−"; }
.faq-item__a {
  max-height: 0; overflow: hidden;
  font-size: 15px; color: var(--muted); line-height: 1.6;
  transition: max-height .35s ease, margin-top .35s ease;
}
.faq-item.is-open .faq-item__a { max-height: 320px; margin-top: 14px; }

/* ===== CTA ===== */
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0;
}
.cta__inner {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 70%),
    radial-gradient(40% 40% at 20% 100%, color-mix(in oklab, var(--moss) 30%, transparent), transparent 70%);
}
.cta__inner > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(48px, 6vw, 88px); }
.cta__sub { color: #A8C4DD; margin-top: 22px; font-size: 19px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta__ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #7E9BB6;
  border-top: 1px solid #1B3147;
}
.footer__inner {
  padding: 64px 0 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand .brand { color: var(--bg); }
.footer__about { margin-top: 16px; font-size: 13.5px; line-height: 1.55; max-width: 38ch; }
.footer__col h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--bg); font-weight: 500; margin: 0 0 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: #A8C4DD; }
.footer__col a:hover { color: var(--gold); }
.footer__base {
  border-top: 1px solid #1B3147;
  padding: 22px 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: #7E9BB6; flex-wrap: wrap; gap: 12px;
}
.footer__base .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__afsl {
  margin-top: 22px;
  padding: 14px;
  border: 1px dashed #1B3147;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #90A9C4;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  /* minmax(0, 1fr), not bare 1fr — a bare 1fr track won't shrink below the
     min-content of what's inside it (e.g. hero-controls' unwrapped slide
     tabs), which was pushing .hero__grid wider than the viewport on small
     phones. */
  .hero__grid, .tab-panel.is-active, .why__head, .security__grid, .story__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-slider__track { min-height: 1100px; }
  .hero--public .hero-slider__track { min-height: 360px; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .float-1, .float-2 { display: none; }
  /* Full nav__links + nav__cta don't fit between phone width and desktop —
     the hamburger drawer covers this whole tablet range too (see the
     matching max-width: 1080px block in the mobile-nav section below). */
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero-slider__track { min-height: 1200px; }
  .hero--public .hero-slider__track { min-height: 400px; }
  .hero-controls { flex-wrap: wrap; gap: 12px; }
  .hero-dots__item { font-size: 11px; }
  .hero-dots__label { font-size: 12px; }
  /* SoA mock — drop the sidebar, simplify canvas so it fits */
  .app-mock__body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .canvas { padding: 18px; gap: 14px; }
  .canvas__title { font-size: 20px; }
  .strat-grid { grid-template-columns: 1fr; }
  .app-mock__bar .url { font-size: 11px; padding: 4px 8px; }
  /* Floating badges hide already on <1080 */
  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { border-left: none; border-top: 1px solid var(--rule); }
  .steps__grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr; gap: 18px; }
  .footer__inner { grid-template-columns: 1fr; }
  .story__stats { grid-template-columns: 1fr; gap: 12px; }
  .story__stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 16px 0; }
}

/* ===== Nav dropdown ===== */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  background: transparent; border: none;
  font: inherit; font-size: 14px; color: var(--ink-2);
  cursor: pointer; padding: 6px 0;
  display: flex; align-items: center; gap: 4px;
}
.nav-dropdown__trigger:hover { color: var(--gold-deep); }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s;
}
.nav-dropdown__menu a:hover { background: var(--bg); }
.nav-dropdown__menu a strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.nav-dropdown__menu a small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.nav-dropdown__icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; font-size: 14px;
  flex-shrink: 0; margin-top: 2px;
}
.nav__adviser-link { font-size: 13.5px; }

/* ===== Disclaimer bar ===== */
.disclaimer-bar {
  padding: 24px 0;
}
.disclaimer-bar__inner {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--gold-deep); line-height: 1.5;
  max-width: 860px;
  background: color-mix(in oklab, var(--gold-soft) 50%, var(--bg));
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.disclaimer-bar__inner a { text-decoration: underline; color: var(--gold-deep); }
.disclaimer-bar__inner a:hover { color: var(--ink); }

/* ===== Hero public variant ===== */
.hero--public { padding: 64px 0 80px; }

/* ===== Genie chat visual ===== */
.genie-chat {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.genie-chat__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, color-mix(in oklab, var(--paper) 88%, var(--bg)), var(--paper));
}
.genie-chat__bar .dots { display: flex; gap: 6px; }
.genie-chat__bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.genie-chat__bar .url {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--bg); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule);
}
.genie-chat__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.genie-chat__question,
.genie-chat__answer { display: flex; gap: 10px; align-items: flex-start; }
.genie-chat__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.genie-chat__avatar--user {
  background: var(--rule); color: var(--muted);
}
.genie-chat__avatar--genie {
  background: var(--ink); color: var(--gold);
}
.genie-chat__bubble { flex: 1; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; }
.genie-chat__bubble--user {
  background: var(--bg); border: 1px solid var(--rule);
  color: var(--ink-2);
}
.genie-chat__bubble--genie {
  background: linear-gradient(180deg, color-mix(in oklab, var(--gold-soft) 40%, var(--paper)), var(--paper));
  border: 1px solid color-mix(in oklab, var(--gold) 25%, var(--rule));
}
.genie-chat__label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 6px;
}
.genie-chat__cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px;
}
.genie-chat__card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 10px; padding: 10px 12px;
}
.genie-chat__card-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.genie-chat__card-val { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; margin-top: 4px; }
.genie-chat__card-val span { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.genie-chat__disclaimer {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 8px;
}
.genie-chat__disclaimer a { color: var(--moss); text-decoration: underline; }

/* ===== Topics hub ===== */
.topics__head { margin-bottom: 48px; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.topics-grid .topic-card:nth-child(4),
.topics-grid .topic-card:nth-child(5) {
  grid-column: span 1;
}
/* Last two cards centred row */
@supports (grid-template-columns: subgrid) {
  .topics-grid { grid-template-columns: repeat(6, 1fr); }
  .topics-grid .topic-card { grid-column: span 2; }
  .topics-grid .topic-card:nth-child(4) { grid-column: 2 / span 2; }
  .topics-grid .topic-card:nth-child(5) { grid-column: 4 / span 2; }
}

.topic-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.topic-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.topic-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.topic-card__icon--super { background: color-mix(in oklab, var(--moss-soft) 80%, var(--paper)); color: var(--moss); }
.topic-card__icon--insurance { background: color-mix(in oklab, var(--gold-soft) 80%, var(--paper)); color: var(--gold-deep); }
.topic-card__icon--estate { background: color-mix(in oklab, var(--rule) 60%, var(--paper)); color: var(--muted); }
.topic-card__icon--invest { background: color-mix(in oklab, var(--moss-soft) 60%, var(--paper)); color: var(--moss); }
.topic-card__icon--smsf { background: color-mix(in oklab, var(--gold-soft) 60%, var(--paper)); color: var(--gold-deep); }
.topic-card__body { flex: 1; }
.topic-card__title { font-family: var(--serif); font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.topic-card__desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.topic-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.topic-card__tags span {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--rule); color: var(--muted);
}
.topic-card__arrow {
  font-size: 18px; color: var(--muted);
  transition: transform .2s, color .2s;
  flex-shrink: 0; margin-top: 2px;
}
.topic-card:hover .topic-card__arrow { transform: translateX(3px); color: var(--ink); }

/* ===== Adviser panel (dark callout section) ===== */
.adviser-panel {
  background: var(--ink);
  color: var(--bg);
}
.adviser-panel__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.adviser-panel__card {
  background: #0A1A2C;
  border: 1px solid #1B3147;
  border-radius: var(--radius-lg);
  padding: 28px;
}
.adviser-panel__card-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); margin-bottom: 20px;
}
.adviser-panel__feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid #1B3147;
}
.adviser-panel__feature:first-of-type { border-top: none; padding-top: 0; }
.adviser-panel__feature-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in oklab, var(--gold) 15%, transparent);
  color: var(--gold); display: grid; place-items: center; flex-shrink: 0;
}
.adviser-panel__feature strong { display: block; color: var(--bg); font-size: 14.5px; }
.adviser-panel__feature p { font-size: 13px; color: #7E9BB6; margin: 4px 0 0; line-height: 1.45; }

/* ===== Adviser CTA section ===== */
.adviser-cta__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: flex-start;
}
.adviser-cta__reason {
  display: flex; gap: 14px; align-items: flex-start;
}
.adviser-cta__ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center; flex-shrink: 0;
}
.adviser-cta__reason strong { display: block; font-size: 14.5px; font-weight: 600; }
.adviser-cta__reason small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.adviser-cta__card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.adviser-cta__card-head { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.adviser-cta__card-sub { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.adviser-cta__steps { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.adviser-cta__step {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
}
.adviser-cta__step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--moss); color: white;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  flex-shrink: 0; margin-top: 1px;
}

/* ===== Disclaimer section ===== */
.disclaimer-section { background: var(--bg); border-top: 1px solid var(--rule); padding: 64px 0; }
.disclaimer-section__inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: flex-start;
}
.disclaimer-section__body p {
  font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 0; margin-bottom: 16px;
}
.disclaimer-section__body p:last-child { margin-bottom: 0; }

/* ===== Topic pages (shared) ===== */
.topic-hero {
  padding: 64px 0 80px;
}
.topic-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-dk);
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  margin-bottom: 24px;
}
.topic-hero__title { margin-top: 16px; }
.topic-concepts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px;
}
.concept-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px;
}
.concept-card__num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .12em; margin-bottom: 8px;
}
.concept-card__title { font-family: var(--serif); font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.concept-card__desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ===== Responsive additions ===== */
@media (max-width: 1080px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid .topic-card:nth-child(4),
  .topics-grid .topic-card:nth-child(5) { grid-column: span 1; }
  @supports (grid-template-columns: subgrid) {
    .topics-grid { grid-template-columns: 1fr 1fr; }
    .topics-grid .topic-card { grid-column: span 1; }
    .topics-grid .topic-card:nth-child(4) { grid-column: span 1; }
    .topics-grid .topic-card:nth-child(5) { grid-column: span 1; }
  }
  .adviser-panel__grid, .adviser-cta__grid, .disclaimer-section__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .topic-concepts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topics-grid { grid-template-columns: minmax(0, 1fr); }
  .genie-chat__cards { grid-template-columns: minmax(0, 1fr); }
  .topic-concepts { grid-template-columns: minmax(0, 1fr); }
  .nav-dropdown__menu { width: 280px; left: -8px; }
}

/* ===========================================================================
   Interactive retirement dashboard (superannuation.html)
   =========================================================================== */
.calc-section { background: color-mix(in oklab, var(--moss-soft) 45%, var(--bg)); }
.calc-head { max-width: 64ch; }

.calc-dashboard {
  margin-top: 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(15,17,21,0.35);
}

/* Tabs */
.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 70%, var(--bg));
}
.calc-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  background: transparent; border: 0; cursor: pointer;
  text-align: left; font-family: var(--sans);
  border-right: 1px solid var(--rule);
  border-bottom: 2px solid transparent;
  transition: background .18s, border-color .18s;
}
.calc-tab:last-child { border-right: 0; }
.calc-tab:hover { background: color-mix(in oklab, var(--moss-soft) 50%, var(--paper)); }
.calc-tab.is-active { background: var(--paper); border-bottom-color: var(--moss); }
.calc-tab__num { font-family: var(--mono); font-size: 12px; color: var(--moss); opacity: .7; }
.calc-tab.is-active .calc-tab__num { opacity: 1; }
.calc-tab__lbl { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.calc-tab__lbl small { font-weight: 400; font-size: 12px; color: var(--muted); }

/* Panes */
.calc-pane { display: none; }
.calc-pane.is-active { display: block; }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
}
.calc-inputs {
  padding: 28px;
  border-right: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 80%, var(--bg));
}
.calc-inputs__title {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  margin: 0 0 18px;
}

/* Range fields */
.calc-field { display: block; margin-bottom: 18px; }
.calc-field__top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; gap: 10px;
}
.calc-field__val { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--moss); white-space: nowrap; }
.calc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--rule-2); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(15,17,21,.3); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(15,17,21,.3); cursor: pointer;
}

.calc-select {
  width: 100%; padding: 9px 12px; font-family: var(--sans); font-size: 14px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm); cursor: pointer;
}
.calc-check {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 6px; cursor: pointer;
}
.calc-check input { margin-top: 2px; accent-color: var(--moss); }
.calc-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.calc-note strong { color: var(--ink-2); }
.calc-warn {
  margin-top: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45;
  color: var(--gold-deep); background: color-mix(in oklab, var(--gold-soft) 50%, var(--paper));
  border: 1px solid var(--gold-soft); border-radius: var(--radius-sm);
}

/* Output side */
.calc-output { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.calc-headline { }
.calc-headline__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.calc-headline__big {
  display: block; font-family: var(--serif); font-size: clamp(40px, 6vw, 64px);
  line-height: 1; letter-spacing: -.02em; color: var(--ink); margin-top: 6px;
}
.calc-headline__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Chart */
.calc-chart {
  width: 100%; background: color-mix(in oklab, var(--moss-soft) 35%, var(--paper));
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px;
}
.cc-svg { width: 100%; height: auto; display: block; }
.cc-grid { stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.cc-glabel { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.cc-xlabel { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.cc-area { opacity: 1; }
.cc-fill-top { stop-color: var(--moss); stop-opacity: .28; }
.cc-fill-bot { stop-color: var(--moss); stop-opacity: .02; }
.cc-line { stroke: var(--moss); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cc-marker { stroke: var(--gold-deep); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* Stat cards */
.calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-stat {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); padding: 14px;
}
.calc-stat--hl { background: var(--moss); border-color: var(--moss); }
.calc-stat__v { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.calc-stat--hl .calc-stat__v { color: #fff; }
.calc-stat__l { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.calc-stat--hl .calc-stat__l { color: rgba(255,255,255,.8); }

/* Verdict banner */
.calc-verdict {
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.5;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2);
}
.calc-verdict.is-good { background: var(--moss-soft); border-color: color-mix(in oklab, var(--moss) 30%, transparent); color: var(--moss); }
.calc-verdict.is-warn { background: color-mix(in oklab, var(--gold-soft) 50%, var(--paper)); border-color: var(--gold-soft); color: var(--gold-deep); }
.calc-verdict strong { color: inherit; }

/* Compare (salary sacrifice) */
.calc-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  background: color-mix(in oklab, var(--moss-soft) 35%, var(--paper));
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px;
}
.calc-compare__col { text-align: center; }
.calc-compare__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.calc-compare__v { display: block; font-family: var(--serif); font-size: clamp(26px,3.4vw,38px); color: var(--ink); margin-top: 6px; line-height: 1; }
.calc-compare__col--hl .calc-compare__v { color: var(--moss); }
.calc-compare__sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.calc-compare__vs { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* Cap usage bar */
.calc-cap { margin-top: 4px; }
.calc-cap__bar { height: 8px; border-radius: 999px; background: var(--rule-2); overflow: hidden; }
.calc-cap__fill { height: 100%; width: 0; background: var(--moss); border-radius: 999px; transition: width .2s; }
.calc-cap__fill.is-over { background: var(--gold-deep); }
.calc-cap__label { font-size: 12px; color: var(--muted); margin-top: 7px; font-family: var(--mono); }

.calc-foot { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 20px; max-width: 90ch; }

/* Sub-heading inside an output column */
.calc-subhead { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }

/* Cover-gap segmented bar (needs analysis) */
.gapbar { display: flex; height: 36px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--rule); background: var(--rule-2); }
.gapbar__seg { display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; transition: width .2s; }
.gapbar__seg--res { background: var(--moss); }
.gapbar__seg--gap { background: var(--gold-deep); }

/* Labelled horizontal bars (needs breakdown, IP comparison) */
.lblbar { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; margin-bottom: 9px; }
.lblbar__lbl { font-size: 12.5px; color: var(--ink-2); }
.lblbar__track { height: 9px; background: var(--rule-2); border-radius: 999px; overflow: hidden; }
.lblbar__fill { display: block; height: 100%; background: var(--moss); border-radius: 999px; transition: width .2s; }
.lblbar__fill--alt { background: var(--gold-deep); }
.lblbar__v { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.lblbar.is-current .lblbar__lbl { font-weight: 600; color: var(--moss); }
.lblbar.is-current .lblbar__v { color: var(--moss); font-weight: 600; }

/* Two-line premium chart + legend */
.cc-line--step { stroke: var(--gold-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cc-line--level { stroke: var(--moss); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cc-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.cc-legend__item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.cc-legend__sw { width: 16px; height: 3px; border-radius: 2px; }
.cc-legend__sw--step { background: var(--gold-deep); }
.cc-legend__sw--level { background: var(--moss); }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--rule); }
  .calc-tabs { grid-template-columns: 1fr; }
  .calc-tab { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .lblbar { grid-template-columns: 110px 1fr auto; gap: 8px; }
  .lblbar__lbl { font-size: 11.5px; }
}
@media (max-width: 560px) {
  .calc-stats { grid-template-columns: 1fr; }
  .calc-compare { grid-template-columns: 1fr; }
  .calc-compare__vs { transform: rotate(90deg); }
  .calc-field-row { grid-template-columns: 1fr; }
}

/* Brand: icon + wordmark — shared across main site and blog pages */
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.brand-icon { height: 36px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.015em; }
.brand-tag { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.brand--footer { color: var(--bg); }
.brand--footer .brand-icon { height: 44px; }
.brand--footer .brand-name { font-size: 28px; }
.brand--footer .brand-tag { color: var(--gold); }

/* ===== "Coming soon" badge ===== */
.badge-soon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.4;
}
.nav__links .badge-soon { margin-left: 6px; padding: 1px 6px; font-size: 9px; }

/* ===== Adviser enquiry modal ===== */
.ag-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ag-modal.is-open { display: flex; }
.ag-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ag-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: agModalIn .2s ease;
}
@keyframes agModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.ag-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1;
  border-radius: 8px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ag-modal__close:hover { background: var(--rule); color: var(--ink); }
.ag-modal__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); font-weight: 500; }
.ag-modal__title { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; margin: 8px 0 6px; color: var(--ink); }
.ag-modal__sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0 0 20px; }
.ag-modal__area {
  display: inline-block;
  font-size: 12.5px; font-weight: 500;
  color: var(--moss);
  background: var(--moss-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.ag-form__field { margin-bottom: 14px; }
.ag-form__label {
  display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 500; margin-bottom: 6px;
}
.ag-form__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ag-form__input::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.ag-form__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 30%, transparent);
}
.ag-form__input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 18%, transparent); }
.ag-form__error { display: none; font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.ag-form__field.has-error .ag-form__error { display: block; }
/* Honeypot — hidden from humans, visible to bots */
.ag-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-form__actions { margin-top: 20px; }
.ag-form__submit { width: 100%; justify-content: center; }
.ag-form__submit[disabled] { opacity: .6; cursor: progress; }
.ag-form__status { font-size: 14px; line-height: 1.5; text-align: center; padding: 6px 0; }
.ag-form__status--ok { color: var(--moss); }
.ag-form__status--err { color: var(--danger); }

/* ---- Grouped / multi-step form controls (adviser-onboarding.html) ---- */
.ag-form__section { border: 0; padding: 0; margin: 0 0 34px; }
/* Divider drawn as a pseudo-element, not border-top: a fieldset's border is
   notched around its own <legend>, which breaks the rule mid-heading. */
.ag-form__section + .ag-form__section { padding-top: 30px; position: relative; }
.ag-form__section + .ag-form__section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--rule);
}
/* float+width pulls the legend into normal flow. Left as a real <legend> it
   renders in the fieldset's border area, above the padding box, so the ::before
   divider below would draw under the heading instead of above the section. */
.ag-form__legend {
  float: left; width: 100%;
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: -.01em; color: var(--ink); padding: 0; margin-bottom: 4px;
}
.ag-form__legend + * { clear: both; }
.ag-form__legend .ag-form__step {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; color: var(--moss); display: block; margin-bottom: 7px;
}
.ag-form__note { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.ag-form__optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ag-form__hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 5px; }

.ag-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .ag-form__row { grid-template-columns: 1fr; } }

/* Native select, restyled to match .ag-form__input */
.ag-form__select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235B6B8C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  padding-right: 36px;
  cursor: pointer;
}
.ag-form__select:invalid { color: color-mix(in oklab, var(--muted) 70%, transparent); }

.ag-form__consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  cursor: pointer; margin-top: 4px;
}
.ag-form__consent input[type="checkbox"] {
  flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px;
  accent-color: var(--gold); cursor: pointer;
}
.ag-form__consent a { color: var(--moss); }
.ag-form__field.has-error .ag-form__consent { color: var(--danger); }
.ag-modal__foot { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 16px; text-align: center; }
.ag-modal__success { text-align: center; padding: 12px 0; }
.ag-modal__success-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--moss-soft); color: var(--moss);
  border-radius: 999px; font-size: 26px;
}

/* ===== Legal / long-form document pages ===== */
.legal-doc { max-width: 780px; margin-top: 40px; }
.legal-doc__meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.legal-doc h2 {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); line-height: 1.7; font-size: 15.5px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--ink); }
.legal-doc a { color: var(--gold-deep); text-decoration: underline; }
.legal-doc__note {
  background: color-mix(in oklab, var(--gold-soft) 35%, var(--paper));
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ===== Mobile navigation (hamburger + drawer) ===== */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: 8px 22px 20px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.nav__mobile.is-open { display: block; }
.nav__mobile a.nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav__mobile a.nav__mobile-link:hover { color: var(--gold-deep); }
.nav__mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.nav__mobile-ctas .btn { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; }

@media (max-width: 1080px) {
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__inner { gap: 12px; }
}

/* ===========================================================================
   Building-blocks flow (topic pages — #concepts)

   A dark glass slab sitting on the light page, built from the existing
   dark-hero tokens (--navy / --sky / --line-dk). The board is deliberately dark
   in every palette: the WebGL backdrop, the edge glow and the flowing sparks all
   need a dark substrate to read at all, and the slab gives the section the
   "cockpit" weight the surrounding marketing copy doesn't have.
   =========================================================================== */
.bb__hint {
  margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .01em;
  color: var(--muted);
}
.bb__hint strong { color: var(--moss); font-weight: 600; }

/* The interactive stage is hidden until JS enhances it; the .bb-fallback grid
   is the no-JS / crawlable version and is hidden once enhanced. */
.bb-stage { display: none; }
.bb.is-enhanced .bb-stage {
  display: flex; flex-direction: column; gap: 16px; margin-top: 28px;
}
.bb.is-enhanced .bb-fallback { display: none; }

/* ---- the slab ---- */
.bb-board {
  --bb-ink: #EAF0FF;
  --bb-muted: var(--sky);
  --bb-accent: #6E97FF;
  --bb-accent-2: #A9C4FF;
  --bb-glass: rgba(255, 255, 255, .055);
  --bb-glass-hi: rgba(255, 255, 255, .10);
  --bb-line: rgba(175, 198, 255, .16);
  --bb-line-hi: rgba(175, 198, 255, .34);
  --bb-edge-1: rgba(175, 198, 255, .30);
  --bb-edge-2: rgba(110, 151, 255, .55);
  /* Sampled by backdrop.js and pushed to the shader as uniforms. */
  --bb-gl-1: #071233;
  --bb-gl-2: #123A8A;
  --bb-gl-3: #4F7BFF;

  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dk);
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
  color: var(--bb-ink);
}

.bb-board__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* No WebGL — a static wash stands in for the shader. */
.bb-board.no-gl .bb-board__gl { display: none; }
.bb-board.no-gl {
  background:
    radial-gradient(120% 90% at 15% 0%, #123A8A 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 100%, #24408F 0%, transparent 60%),
    var(--navy-deep);
}

/* ---- SVG graphics layer ---- */
.bb-gfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.bb-grad__a { stop-color: var(--bb-edge-1); }
.bb-grad__b { stop-color: var(--bb-edge-2); }

.bb-edge {
  fill: none; stroke: url(#bbEdgeGrad); stroke-width: 1.4; stroke-linecap: round;
  opacity: .75; transition: opacity .3s ease, stroke-width .3s ease;
}
.bb-edge--lit {
  stroke: var(--bb-accent-2); stroke-width: 2.2; opacity: 0;
  filter: url(#bbGlow);
  transition: opacity .3s ease;
}
.bb-edge--lit.is-lit { opacity: 1; }
.bb.is-selecting .bb-edge:not(.is-lit) { opacity: .3; }

.bb-arrow { fill: var(--bb-edge-2); }
.bb-arrow--lit { fill: var(--bb-accent-2); }

.bb-spark__halo { fill: var(--bb-accent); opacity: .18; }
.bb-spark__core { fill: var(--bb-accent-2); }
.bb-spark.is-lit .bb-spark__halo { opacity: .38; r: 8; }
.bb-spark.is-lit .bb-spark__core { fill: #fff; }
.bb-spark__halo, .bb-spark__core { transition: opacity .3s ease, fill .3s ease; }

/* ---- lane labels + nodes (real HTML text, above the graphics) ---- */
.bb-lanes, .bb-nodes { position: absolute; inset: 0; z-index: 2; }
.bb-lanes { pointer-events: none; }

.bb-lane {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding-bottom: 9px; border-bottom: 1px solid var(--bb-line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-lane__dot {
  width: 5px; height: 5px; border-radius: 999px; flex: 0 0 auto;
  background: var(--bb-accent); box-shadow: 0 0 0 3px rgba(110, 151, 255, .16);
}

.bb-node {
  position: absolute; display: flex; flex-direction: column; gap: 5px; overflow: hidden;
  text-align: left; cursor: pointer; appearance: none; font: inherit; color: var(--bb-ink);
  padding: 13px 14px; border-radius: var(--radius);
  background: var(--bb-glass);
  border: 1px solid var(--bb-line);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  transition: transform .2s cubic-bezier(.22,.61,.36,1), border-color .2s ease,
              background .2s ease, box-shadow .25s ease, opacity .3s ease;
}
.bb-node__num {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bb-muted);
}
.bb-node__title {
  font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.2; letter-spacing: -.01em;
}
/* Light sweeping across the glass on hover. */
.bb-node__sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 50%, transparent 70%);
  transition: opacity .3s ease, transform .6s ease; transform: translateX(-40%);
}
.bb-node:hover {
  transform: translateY(-3px);
  background: var(--bb-glass-hi);
  border-color: var(--bb-line-hi);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
}
.bb-node:hover .bb-node__sheen { opacity: 1; transform: translateX(40%); }
.bb-node:focus-visible { outline: 2px solid var(--bb-accent-2); outline-offset: 3px; }

.bb-node.is-active {
  background: rgba(110, 151, 255, .16);
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 1px var(--bb-accent) inset, 0 0 32px -6px rgba(110, 151, 255, .65);
}
.bb-node.is-active .bb-node__num { color: var(--bb-accent-2); }
.bb-node.is-near { border-color: var(--bb-line-hi); background: var(--bb-glass-hi); }
.bb.is-selecting .bb-node.is-dim { opacity: .38; }
.bb.is-selecting .bb-node.is-dim:hover { opacity: 1; }

/* ---- toolbar ---- */
.bb-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bb-tool {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; appearance: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 15px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bb-tool:hover { border-color: var(--moss); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.bb-tool:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.bb-tool--ghost { background: transparent; color: var(--muted); font-weight: 500; }
/* Play triangle → stop square, drawn in CSS so there's no icon payload. */
.bb-tool__icon {
  width: 0; height: 0; flex: 0 0 auto;
  border-left: 8px solid var(--moss); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: border-radius .2s ease;
}
.bb-toolbar.is-touring .bb-tool__icon {
  width: 9px; height: 9px; border: 0; border-radius: 2px; background: var(--moss);
}
.bb-toolbar__hint {
  margin: 0 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .01em;
}

/* ---- detail panel ---- */
.bb-panel {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.bb-panel__kicker {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss);
}
.bb-panel__id {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  background: var(--moss-soft); border-radius: 999px; font-size: 10px;
}
.bb-panel__pos { margin-left: auto; color: var(--muted); letter-spacing: .08em; }
.bb-panel__title { font-family: var(--serif); font-size: 25px; line-height: 1.1; letter-spacing: -.01em; }
.bb-panel__desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.bb-panel__desc strong { color: var(--ink-2); }
.bb-panel__rel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }

@media (min-width: 760px) {
  .bb-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .bb-panel__desc { max-width: 64ch; }
  .bb-panel__rel {
    margin-top: 0; padding-top: 0; border-top: none;
    padding-left: 28px; border-left: 1px solid var(--rule); align-content: start;
  }
}
.bb-rel__lbl { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.bb-rel__items { display: flex; flex-wrap: wrap; gap: 7px; }
.bb-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; appearance: none;
  font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px 5px 6px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.bb-chip:hover { border-color: var(--moss); transform: translateY(-1px); }
.bb-chip:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.bb-chip__num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  font-family: var(--mono); font-size: 10px; color: var(--moss);
  background: var(--moss-soft); border-radius: 999px; flex: 0 0 auto;
}

@media (max-width: 720px) {
  .bb-toolbar__hint { display: none; }
  .bb-panel { padding: 18px; }
  .bb-panel__title { font-size: 21px; }
}

/* Dark palettes: the slab is already dark, so only the surrounding chrome and the
   glass alphas need to move. */
@media (prefers-color-scheme: dark) {
  .bb-board { --bb-glass: rgba(255,255,255,.045); --bb-glass-hi: rgba(255,255,255,.085); }
}
:root[data-palette="midnight"] .bb-tool,
:root[data-palette="midnight"] .bb-panel { background: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .bb-node, .bb-edge, .bb-edge--lit, .bb-chip, .bb-tool,
  .bb-node__sheen, .bb-spark__halo, .bb-spark__core { transition: none; }
  .bb-node:hover { transform: none; }
  .bb-node__sheen { display: none; }
}

/* ===========================================================================
   Calculator lead capture (topic pages)
   Docked, dismissible, non-modal — the calculators are never blocked. Appears
   only after the visitor has actually engaged with a calculator.
   =========================================================================== */
.calc-lead {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}
.calc-lead.is-in { opacity: 1; transform: translateY(0); }
.calc-lead.is-leaving { opacity: 0; transform: translateY(14px); }

.calc-lead__card {
  position: relative;
  pointer-events: auto;
  width: 100%; max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px 16px;
}

.calc-lead__close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted);
  padding: 4px 8px; border-radius: 6px;
}
.calc-lead__close:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }

.calc-lead__eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; color: var(--moss);
  background: var(--moss-soft); border-radius: 999px; padding: 4px 11px; margin-bottom: 10px;
}
.calc-lead__title { font-family: var(--serif); font-size: 22px; line-height: 1.12; letter-spacing: -.01em; }
.calc-lead__sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 14px; }

.calc-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-lead__row .ag-form__field { margin-bottom: 8px; }

.calc-lead__suggest {
  font-size: 13px; color: var(--gold-deep, #8a6432);
  margin-top: 4px; cursor: pointer;
}

.calc-lead__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
  margin-top: 2px; cursor: pointer;
}
.calc-lead__consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--moss); cursor: pointer; }

.calc-lead__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.calc-lead__submit { flex: 1; justify-content: center; }
.calc-lead__submit[disabled] { opacity: .6; cursor: progress; }
.calc-lead__no {
  background: none; border: 0; cursor: pointer;
  font-size: 13px; color: var(--muted); text-decoration: underline;
  padding: 6px 2px; flex: none;
}
.calc-lead__no:hover { color: var(--ink-2); }

.calc-lead__foot {
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
}
.calc-lead__foot a { color: var(--moss); text-decoration: underline; }

.calc-lead__done { text-align: center; padding: 10px 0 6px; }
.calc-lead__done-tick {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--moss-soft); color: var(--moss);
  font-size: 22px; line-height: 44px;
}

@media (max-width: 560px) {
  .calc-lead { padding: 0 8px 8px; }
  .calc-lead__card { padding: 18px 16px 14px; }
  .calc-lead__title { font-size: 19px; }
  .calc-lead__row { grid-template-columns: 1fr; gap: 0; }
  .calc-lead__actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .calc-lead__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-lead { transition: none; }
}
