/* SlateFlow Capital — design system v2 (light + dark, motion) */
:root {
  color-scheme: light;
  --ink: #1b2632; --ink-2: #3a4757; --muted: #66717f; --faint: #9aa4b1;
  --line: #e6e1d7; --line-2: #d3ccbe; --bg: #f7f5f0; --bg-2: #f1ede4; --surface: #ffffff; --surface-2: #f4f1ea; --glass: rgba(255,255,255,.76);
  --gold: #b8894a; --gold-2: #d4aa6a; --navy: #1b2632; --navy-2: #2a3a4d; --logo-bar: #1b2632;
  --brand: #8f662f; --brand-2: #b8894a; --brand-soft: #f3ead9; --brand-ink: #1b2632; --brand-glow: rgba(184,137,74,.35);
  --btn-bg: linear-gradient(135deg, #1b2632, #2a3a4d); --btn-fg: #ffffff;
  --amber: #b45309; --amber-soft: #fef3c7; --danger: #b91c1c; --danger-soft: #fee2e2; --ok: #15803d; --ok-soft: #dcfce7;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -14px rgba(15,23,42,.18);
  --shadow-lg: 0 30px 70px -30px rgba(15,23,42,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Fraunces', Georgia, serif;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7; --series-8: #e34948;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: .5s;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f7; --ink-2: #c9d1dc; --muted: #94a0b0; --faint: #66727f;
  --line: #27333f; --line-2: #35434f; --bg: #111820; --bg-2: #151d27; --surface: #1b2632; --surface-2: #223041; --glass: rgba(17,24,32,.74);
  --gold: #c99a5b; --gold-2: #e0b878; --navy: #1b2632; --navy-2: #2a3a4d; --logo-bar: #f2f4f7;
  --brand: #d4aa6a; --brand-2: #b8894a; --brand-soft: rgba(212,170,106,.14); --brand-ink: #e7c58f; --brand-glow: rgba(212,170,106,.3);
  --btn-bg: linear-gradient(135deg, #d4aa6a, #b8894a); --btn-fg: #14202b;
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,.14); --danger: #f87171; --danger-soft: rgba(248,113,113,.14); --ok: #4ade80; --ok-soft: rgba(74,222,128,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -14px rgba(0,0,0,.6); --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.025em; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-variant-numeric: tabular-nums; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--brand-soft); }

/* Motion primitives */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-24px); } [data-reveal="right"] { transform: translateX(24px); } [data-reveal="scale"] { transform: scale(.96); }
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(2) { transition-delay: .08s } [data-stagger].in > *:nth-child(3) { transition-delay: .16s } [data-stagger].in > *:nth-child(4) { transition-delay: .24s } [data-stagger].in > *:nth-child(5) { transition-delay: .32s } [data-stagger].in > *:nth-child(6) { transition-delay: .4s }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } [data-reveal], [data-stagger] > * { opacity: 1; transform: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(15,23,42,.3); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; transition: transform .45s var(--ease); transform-origin: 50% 60%; }
.brand:hover .mark { transform: rotate(-7deg) translateY(-1px); }
.brand .mark .bars polygon { transition: transform .45s var(--ease); transform-box: fill-box; transform-origin: center; }
.brand:hover .mark .bars polygon:nth-child(1) { transform: translateX(3px); }
.brand:hover .mark .bars polygon:nth-child(3) { transform: translateX(-2px); }
.brand:hover .mark .bars polygon:nth-child(4) { transform: translateX(-4px); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-name { font-weight: 800; font-size: 1.12rem; letter-spacing: .2em; color: var(--ink); }
.wm-sub { font-weight: 600; font-size: .58rem; letter-spacing: .42em; color: var(--gold); margin-top: 5px; padding-left: .1em; }
.brand-dark { --ink: #f2f4f7; --logo-bar: #f2f4f7; --gold: #c99a5b; }
.brand-dark .wm-name { color: #f2f4f7; }
@media (max-width: 420px) { .wm-name { font-size: .95rem; letter-spacing: .14em; } .wm-sub { letter-spacing: .3em; } }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { position: relative; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--brand-ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.theme-btn:hover { transform: rotate(15deg); background: var(--surface-2); }
.theme-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: menuIn .25s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
  .nav.open { display: flex; }
  .nav a::after { display: none; }
  .nav-cta { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .theme-btn { align-self: flex-start; }
}

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .2s, box-shadow .25s, transform .15s var(--ease), border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 8px 20px -10px rgba(27,38,50,.5); }
:root[data-theme="dark"] .btn-primary { box-shadow: 0 8px 20px -10px var(--brand-glow); }
.btn-gold { background: linear-gradient(135deg, #d4aa6a, #b8894a); color: #14202b; }
.btn-primary:hover { box-shadow: 0 14px 28px -12px var(--brand-glow); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.hero-bg .o1 { width: 520px; height: 520px; left: -120px; top: -160px; background: radial-gradient(circle, #ead9b8, transparent 65%); }
.hero-bg .o2 { width: 460px; height: 460px; right: -80px; top: -60px; background: radial-gradient(circle, #cdd6e2, transparent 65%); animation-delay: -6s; animation-duration: 22s; }
.hero-bg .o3 { width: 380px; height: 380px; right: 25%; bottom: -200px; background: radial-gradient(circle, #fde68a, transparent 65%); animation-delay: -12s; animation-duration: 26s; opacity: .35; }
:root[data-theme="dark"] .hero-bg .orb { opacity: .28; }
:root[data-theme="dark"] .hero-bg .o1 { background: radial-gradient(circle, #b8894a, transparent 65%); }
:root[data-theme="dark"] .hero-bg .o2 { background: radial-gradient(circle, #3a5476, transparent 65%); }
:root[data-theme="dark"] .hero-bg .o3 { background: radial-gradient(circle, #f59e0b, transparent 65%); }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .5; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(20px); animation: wordIn .7s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--brand-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 40px; } }

/* Live demo card */
.stat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.stat-card::before { content: ''; position: absolute; inset: -1px; border-radius: 19px; padding: 1px; background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--navy-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.stat-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-row .k { color: var(--muted); font-size: .9rem; }
.stat-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.big-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.spark { display: block; width: 100%; height: 54px; margin: 10px 0 4px; }
.spark path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--gold); opacity: .14; stroke: none; }

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.ticker-track { display: flex; gap: 40px; padding: 12px 0; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: baseline; gap: 8px; font-size: .88rem; white-space: nowrap; }
.tick .sym { font-weight: 700; color: var(--ink); }
.tick .px { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tick .chg { font-size: .78rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.tick .chg.up { color: var(--ok); background: var(--ok-soft); } .tick .chg.down { color: var(--danger); background: var(--danger-soft); }
.ticker-note { font-size: .72rem; color: var(--faint); text-align: right; padding: 0 16px 6px; }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--brand-glow), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card.glow:hover::before { opacity: .55; }
.card.flat { box-shadow: none; }
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.icon-badge { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; transition: transform .35s var(--ease); }
.card:hover .icon-badge { transform: translateY(-2px) rotate(-6deg); }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 8px 0 8px 28px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; }
.badge-pro { background: var(--amber-soft); color: var(--amber); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc table td { padding: 6px 6px; border-bottom: 0; white-space: nowrap; }
.calc .input { padding: 8px 10px; }
.calc-result { background: linear-gradient(160deg, #1b2632, #2a3a4d); color: #fff; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .calc-result { background: linear-gradient(160deg, #24313f, #1b2632); border: 1px solid var(--line-2); }
.calc-result::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(212,170,106,.35), transparent 65%); }
.calc-result .label { color: #cbd5e1; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.calc-result .big-num { font-size: 3.2rem; margin: 6px 0 2px; }
.calc-result .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #e2e8f0; }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-lg); }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.alert { padding: 12px 14px; border-radius: 9px; font-size: .9rem; border: 1px solid; animation: alertIn .3s var(--ease); }
@keyframes alertIn { from { opacity: 0; transform: translateY(-4px); } }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.alert-warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.auth-wrap { max-width: 440px; margin: 56px auto; }
.auth-wrap .card { padding: 32px; }
.auth-wrap h1 { font-size: 1.9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 700; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: var(--surface-2); }
.pos { color: var(--ok); } .neg { color: var(--danger); }

/* Footer */
.site-footer { background: #121a24; color: #c9d1dc; padding: 56px 0 32px; margin-top: 64px; font-size: .9rem; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 10% 0%, rgba(184,137,74,.16), transparent 60%); pointer-events: none; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; position: relative; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid #27333f; margin-top: 32px; padding-top: 20px; font-size: .78rem; color: #94a3b8; position: relative; }

/* App layout */
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: calc(100vh - 66px); }
.app-side { border-right: 1px solid var(--line); background: var(--surface); padding: 20px 12px; }
.app-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: background .2s, transform .2s var(--ease); }
.app-side a:hover { background: var(--surface-2); text-decoration: none; transform: translateX(2px); }
.app-side a.active { background: var(--brand-soft); color: var(--brand-ink); }
.app-side .lock { margin-left: auto; }
.app-main { padding: 28px 32px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head h1 { font-size: 1.8rem; margin: 0; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 4px; padding: 8px 12px; }
  .app-side a { white-space: nowrap; }
  .app-main { padding: 20px 16px; }
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tile .value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.tile.hero-tile { background: linear-gradient(150deg, #1b2632, #2a3a4d); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .tile.hero-tile { background: linear-gradient(150deg, #2a3a4d, #1b2632); border-color: var(--line-2); }
.tile.hero-tile .label, .tile.hero-tile .sub { color: #cbd5e1; }
.tile.hero-tile .value { font-size: 2.2rem; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.4s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.toolbar .spacer { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.pill-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface); }
.pill-toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.pill-toggle button.active { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .pill-toggle button.active { background: var(--gold); color: #14202b; }

/* Modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,23,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-bg.open { display: flex; animation: pageIn .2s; }
.modal { background: var(--surface); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: modalIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); color: #fff; }

/* Blog */
.post-list { display: grid; gap: 16px; }
.post-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-item h3 { margin-bottom: 6px; font-size: 1.25rem; }
.post-item .meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.prose { font-size: 1.05rem; line-height: 1.75; max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); margin-top: 1.5em; scroll-margin-top: 90px; }
.prose img { border-radius: 8px; }
.prose pre { background: #0b1220; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.prose code { background: var(--surface-2); padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1em 0; padding: 4px 0 4px 16px; color: var(--ink-2); }
.prose table { font-size: .95rem; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
.prose .katex-display { overflow-x: auto; overflow-y: hidden; padding: 6px 0; margin: .6em 0 .6em 1.6em; }
.prose .katex-display > .katex { text-align: left; }
.prose > p:first-child strong { font-family: var(--display); font-size: 1.15rem; }
.prose li + li { margin-top: .35em; }
.prose blockquote table { font-size: .9rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--navy-2)); z-index: 60; transition: width .1s linear; }
.toc { position: sticky; top: 90px; font-size: .86rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a.h3 { padding-left: 24px; }
.toc a.active, .toc a:hover { color: var(--brand-ink); border-left-color: var(--brand); text-decoration: none; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; }
.reading-grid > * { min-width: 0; }
.reading-grid .prose { max-width: 88ch; }
@media (max-width: 960px) { .reading-grid { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-grid textarea { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.preview { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; min-height: 420px; background: var(--surface); overflow: auto; }

/* Notes library */
.notes-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-side { position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.notes-side .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 8px 4px; }
.notes-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; }
.notes-side a:hover { background: var(--surface-2); text-decoration: none; }
.notes-side a.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.notes-reader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; min-height: 60vh; }
@media (max-width: 600px) { .notes-reader { padding: 20px; } }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--surface); margin-bottom: 10px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Charts */
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart text { font-size: 12px; fill: var(--ink-2); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .bar { transform-box: fill-box; transform-origin: left center; animation: growX .8s var(--ease) both; }
.chart .bar.neg { transform-origin: right center; }
@keyframes growX { from { transform: scaleX(0); } }
.chart .seg { animation: fadeIn .6s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-tip { position: fixed; background: var(--navy); color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 8px; pointer-events: none; z-index: 300; display: none; box-shadow: var(--shadow-lg); }

/* Misc */
.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); background: var(--surface); transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.kbd { font-family: ui-monospace, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .85em; border: 1px solid var(--line); }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; box-shadow: 0 6px 14px -6px var(--brand-glow); }

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.count { font-variant-numeric: tabular-nums; }
.gradient-text { background: linear-gradient(90deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee-cta { background: linear-gradient(120deg, #121a24, #1b2632 55%, #3b3222); color: #fff; }

/* Animated illustrations */
.art-chart .line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease) forwards; }
.art-chart .area { opacity: 0; animation: fadeIn 1.2s 1.4s var(--ease) forwards; }
.art-chart .dot { opacity: 0; animation: fadeIn .4s 2.2s forwards; }
.art-chart .pulse { opacity: 0; animation: ring 2.2s 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes candle { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.orbit { position: relative; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 0; border: 1px dashed var(--line-2); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit .ring.r2 { inset: 18%; animation-duration: 28s; animation-direction: reverse; }
.orbit .ring.r3 { inset: 36%; animation-duration: 18s; }
.orbit .sat { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: var(--brand-ink); }
.orbit .core { position: absolute; inset: 42%; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--navy-2)); box-shadow: 0 0 40px var(--brand-glow); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: pulse 1.8s infinite; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.market-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.market-tile:hover, .market-tile.active { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.market-tile .sym { font-weight: 700; font-size: .85rem; }
.market-tile .px { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.market-tile .chg { font-size: .78rem; font-weight: 600; }
.market-tile .spark { height: 34px; margin: 6px 0 0; }
.chart-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chart-tools .pill-toggle button { padding: 5px 10px; font-size: .78rem; }
.flip { transition: transform .35s var(--ease); }
.flip.up { animation: flashUp .8s; } .flip.down { animation: flashDown .8s; }
@keyframes flashUp { 0% { color: var(--ok); } 100% { color: inherit; } }
@keyframes flashDown { 0% { color: var(--danger); } 100% { color: inherit; } }
.hero-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.hero-mini .m { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(8px); }
.hero-mini .m b { display: block; font-size: 1.25rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero-mini .m small { display: block; font-size: .74rem; color: var(--muted); }
@media (max-width: 600px) { .hero-mini { grid-template-columns: 1fr 1fr; } }
.marquee-brands { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; opacity: .7; font-weight: 700; letter-spacing: .04em; font-size: .8rem; color: var(--muted); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline .t { position: relative; padding: 0 0 22px; }
.timeline .t::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--brand-soft); }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.kpi { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .85rem; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-tabs { margin-top: 4px; }
.tool-card { display: block; color: inherit; }
.tool-card:hover { text-decoration: none; }
.tool-card .badge { margin-top: 4px; }
.field.solving .input, .field.solving select { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.field.solving label::after { content: ' · calculated'; color: var(--brand); font-weight: 500; }
.verdict { border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); animation: alertIn .4s var(--ease); }
.verdict .v-title { font-weight: 700; margin-bottom: 4px; }
.verdict p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.verdict-ok { border-left-color: var(--ok); } .verdict-ok .v-title { color: var(--ok); }
.verdict-warn { border-left-color: var(--amber); } .verdict-warn .v-title { color: var(--amber); }
.verdict-danger { border-left-color: var(--danger); } .verdict-danger .v-title { color: var(--danger); }
.verdict-info { border-left-color: var(--brand); } .verdict-info .v-title { color: var(--brand-ink); }
.lock-card { max-width: 720px; }
.calc-result .big-num { word-break: break-word; }
.fs-derived { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
@media (max-width: 600px) { .fs-derived { grid-template-columns: 1fr; } }
.fs-derived .label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fs-derived .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fs-derived .sub { font-size: .78rem; color: var(--muted); }
.fs-derived.neg .value { color: var(--danger); }
.radio-col { display: grid; gap: 6px; }
.radio-col .checkbox { font-weight: 500; font-size: .9rem; align-items: flex-start; }
.radio-col .checkbox input { margin-top: 3px; }
.req { color: var(--danger); }
.fs-side { position: sticky; top: 86px; }
@media (max-width: 900px) { .fs-side { position: static; } }
#fs-form h3 { padding-top: 8px; border-top: 1px solid var(--line); }
#fs-form h3:first-of-type { border-top: 0; padding-top: 0; }
/* Header CTA buttons must not inherit nav-link colours */
.nav a.btn { padding: 6px 12px; }
.nav a.btn::after { display: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--btn-fg); }
.nav a.btn-ghost:hover { color: var(--ink); }
#f-loans select { min-width: 120px; }
#f-loans select[data-k="kind"] { min-width: 170px; }

/* Advisory-first home + health score */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principles > div { padding: 18px 20px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; box-shadow: var(--shadow); }
.principles b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.tier-grid { align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 28px; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-lg); }
.tier-head h3 { font-family: var(--display); font-size: 1.6rem; margin: 10px 0 8px; }
.tier-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.seg-card { display: block; color: inherit; }
.seg-card:hover { text-decoration: none; }
.seg-card h3 { font-size: 1.05rem; }
.seg-card > span { color: var(--brand); font-weight: 600; }
.seg-cta { background: var(--navy); color: #fff; border-color: transparent; }
.seg-cta h3, .seg-cta p, .seg-cta span { color: #fff; }
.seg-cta p { color: #c9d1dc; }
.health-card { animation: none; }
.health-card label.tiny { margin-bottom: 4px; font-weight: 600; color: var(--muted); }
.health-card .input { padding: 8px 10px; font-size: .92rem; }
.score-row { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.score-ring { position: relative; width: 108px; height: 108px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--line); stroke-width: 10; }
.score-ring .bar { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease), stroke .3s; }
.score-ring.band-strong .bar { stroke: var(--ok); } .score-ring.band-healthy .bar { stroke: var(--gold); } .score-ring.band-work .bar { stroke: var(--amber); } .score-ring.band-risk .bar { stroke: var(--danger); }
.score-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.score-num b { font-size: 1.9rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score-num small { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.score-label { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.score-parts { display: grid; gap: 6px; margin-top: 10px; }
.score-parts span { position: relative; display: block; font-size: .74rem; color: var(--muted); padding: 3px 0 3px 0; }
.score-parts span b { color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.score-parts span i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }
.toolbar a.small { color: var(--brand); font-weight: 600; }

/* Advisory page */
.seg { padding: 64px 0; border-top: 1px solid var(--line); }
.seg:nth-of-type(even) { background: var(--bg-2); }
.seg-head { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; margin-bottom: 28px; }
.seg-num { font-family: var(--display); font-size: 3.2rem; font-weight: 600; color: var(--gold); line-height: 1; padding-top: 6px; }
.seg-head h2 { margin: 6px 0 10px; }
.seg-head .lead { color: var(--ink-2); font-size: 1.08rem; max-width: 78ch; margin: 0; }
@media (max-width: 700px) { .seg-head { grid-template-columns: 1fr; gap: 6px; } .seg-num { font-size: 2.2rem; } }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr; } }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.prod h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prod dl { display: grid; gap: 10px; margin: 0; }
.prod dl > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: start; }
.prod dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold); padding-top: 3px; }
.prod dd { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 520px) { .prod dl > div { grid-template-columns: 1fr; gap: 2px; } }
.seg-note { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--ink-2); }
.tier-table th, .tier-table td { white-space: normal; vertical-align: top; font-size: .92rem; line-height: 1.55; }
.tier-table td:first-child { font-weight: 700; color: var(--ink); }
.tier-table th:nth-child(3) { background: var(--brand-soft); color: var(--brand-ink); }
.seg, #tiers, #framework, #statement { scroll-margin-top: 84px; }
