/* ==========================================================================
   ProfitEquations website - shared styles
   Plain CSS, no build step. Brand: deep ink + mint/cyan gradient, colour-coded
   Prep subjects (the app's accent palette) and gold for the ad-free upgrade.
   ========================================================================== */

:root {
  --ink: #070B14;
  --ink-2: #0A101C;
  --surface: #0D1321;
  --surface-2: #121A2B;
  --surface-3: #18223A;
  --outline: #24304B;
  --outline-soft: rgba(36, 48, 75, 0.6);
  --mint: #2EE6A8;
  --cyan: #4FC3FF;
  --gold: #F6C453;
  --coral: #FF6B7A;
  --text: #EEF2F8;
  --text-body: #C9D2E3;
  --text-2: #9AA6BE;
  --text-3: #75839E;
  --grad: linear-gradient(120deg, #2EE6A8 0%, #4FC3FF 100%);
  --grad-soft: linear-gradient(120deg, rgba(46, 230, 168, 0.14), rgba(79, 195, 255, 0.14));
  /* Subject accents: the app's dark-theme accent palette, readable on the ink background */
  --c-blue: #6E93FF;
  --c-indigo: #8583FF;
  --c-violet: #A98BFF;
  --c-purple: #C07CF5;
  --c-orange: #FF8B3D;
  --c-amber: #FFC043;
  --c-green: #34D399;
  --c-emerald: #2DD4A0;
  --c-red: #FF6B7D;
  --c-pink: #FF6FB0;
  --c-teal: #3CCBC6;
  --c-cyan: #38BDF8;
  --grad-prep: linear-gradient(110deg, #6E93FF 0%, #A98BFF 48%, #FF8B3D 100%);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --check-mint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EE6A8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --check-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6C453' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img, svg { max-width: 100%; }
strong, b { font-weight: 600; color: var(--text); }

a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #74F2C8; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(46, 230, 168, 0.3); color: var(--text); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(820px + var(--gutter) * 2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--mint); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-prep {
  background: var(--grad-prep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--mint); }
.down { color: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--outline-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark { display: block; width: 30px; height: 27.5px; flex: none; }
.wordmark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.16rem;
  letter-spacing: -0.02em; color: var(--text); line-height: 1;
}
.wordmark .eq { color: var(--mint); }

.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); font-size: 0.94rem; font-weight: 500; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--text); }
.header-cta { margin-left: 8px; }
.brand + .header-cta { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 14px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: -0.005em;
  line-height: 1.1; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { display: block; width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--grad); color: #03130E;
  box-shadow: 0 12px 32px -12px rgba(46, 230, 168, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { color: #03130E; box-shadow: 0 16px 40px -12px rgba(79, 195, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--outline); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #3A4A70; color: var(--text); }
.btn-gold {
  background: linear-gradient(120deg, #F6C453, #FFDD95); color: #1C1404;
  box-shadow: 0 12px 30px -14px rgba(246, 196, 83, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { color: #1C1404; }
.btn-lg { --btn-h: 56px; padding: 0 28px; border-radius: 16px; font-size: 1.04rem; }
.btn-sm { --btn-h: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid rgba(36, 48, 75, 0.45); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); letter-spacing: -0.03em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.center .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-2); line-height: 1.7; }
.fine { font-size: 0.86rem; color: var(--text-3); line-height: 1.6; }
.fine a { color: var(--text-2); }

.ticks { list-style: none; display: grid; gap: 12px; margin: 26px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 34px; color: var(--text-body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.16em;
  width: 22px; height: 22px; border-radius: 7px;
  background: rgba(46, 230, 168, 0.1) var(--check-mint) center / 13px no-repeat;
  border: 1px solid rgba(46, 230, 168, 0.32);
}
.ticks-gold li::before { background-color: rgba(246, 196, 83, 0.1); background-image: var(--check-gold); border-color: rgba(246, 196, 83, 0.38); }


/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 7vw, 96px) 0 clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 50% at 80% 22%, rgba(79, 195, 255, 0.17), transparent 70%),
    radial-gradient(45% 45% at 10% 6%, rgba(46, 230, 168, 0.14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 48, 75, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 75, 0.34) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--outline); border-radius: 999px; background: rgba(13, 19, 33, 0.75);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.16); }
.hero-title { margin-bottom: 24px; font-size: clamp(2.3rem, 4.8vw, 3.75rem); line-height: 1.04; letter-spacing: -0.04em; }
.hero-title span { display: block; }
.hero-sub { max-width: 36em; margin-bottom: 32px; font-size: clamp(1.04rem, 1.55vw, 1.2rem); color: var(--text-2); line-height: 1.7; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.92rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--check-mint) center / 14px no-repeat; }

.hero-visual { position: relative; }
.visual-stage { position: relative; display: flex; justify-content: center; width: 100%; max-width: 560px; margin-inline: auto; padding: 8px 0; }
.visual-note { margin: 18px 0 0; text-align: center; font-size: 0.8rem; color: var(--text-3); }

/* Phone mockup */
.device { position: relative; width: min(328px, 100%); }
.phone {
  position: relative; width: 100%; padding: 11px; border-radius: 48px;
  background: linear-gradient(160deg, #1C2740 0%, #0B111D 42%, #0E1526 100%);
  border: 1px solid #2B3858;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 90px -24px rgba(79, 195, 255, 0.32);
}
.screen {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 0 14px 0; border-radius: 38px; background: #080D18;
  font-family: var(--font-body); font-size: 11px; line-height: 1.35; color: var(--text);
}
.screen b { font-weight: 700; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 0; color: var(--text-2); font-weight: 600; font-size: 10.5px; }
.punch { width: 10px; height: 10px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #111827; }
.status-icons { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.status-icons i { display: block; width: 3px; border-radius: 1px; background: var(--text-2); }
.status-icons i:nth-child(1) { height: 4px; }
.status-icons i:nth-child(2) { height: 7px; }
.status-icons i:nth-child(3) { height: 10px; }
.status-icons i:nth-child(4) { width: 16px; height: 8px; margin-left: 4px; border-radius: 2px; background: transparent; border: 1.5px solid var(--text-2); }

.appbar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0; }
.appbar svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.ab-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ab-title strong { font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.ab-title span { color: var(--text-3); font-size: 10px; }

.bnav { display: grid; grid-template-columns: repeat(5, 1fr); margin: 2px -14px 0; padding: 8px 6px 14px; border-top: 1px solid var(--outline-soft); background: #0B111E; color: var(--text-3); font-size: 9px; font-weight: 600; text-align: center; }
.bnav span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bnav svg { width: 18px; height: 18px; }
.bnav .on { color: var(--mint); }
.bnav .on svg { padding: 1px 10px; width: 40px; height: 20px; border-radius: 99px; background: rgba(46, 230, 168, 0.14); }

/* Soft white app screen: the 2.1 neumorphic design (light palette taken from the app's theme) */
.screen-soft { gap: 9px; background: #EEF2F7; color: #1B2333; }
.screen-soft .status { color: #55617A; }
.screen-soft .status-icons i { background: #55617A; }
.screen-soft .status-icons i:nth-child(4) { background: transparent; border-color: #55617A; }
.screen-soft .punch { box-shadow: 0 0 0 2px #D9E0EA; }
.screen-soft .appbar { padding: 4px 2px 0; }
.screen-soft .ab-title strong { font-size: 19px; color: #1B2333; letter-spacing: -0.02em; }
.screen-soft .ab-title span { color: #8792A8; }
.neu { background: #EEF2F7; box-shadow: 4px 4px 9px #D2D9E4, -4px -4px 9px #FFFFFF; }
.neu-in { background: #E7ECF3; box-shadow: inset 2px 2px 5px #D0D7E2, inset -2px -2px 5px #FBFCFE; }
.streak { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; color: #E85D04; font-family: var(--font-head); font-size: 11.5px; font-weight: 800; }
.screen-soft .streak svg { width: 14px; height: 14px; flex: none; color: inherit; }
.search-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; color: #8792A8; font-size: 10.5px; }
.search-pill svg { width: 13px; height: 13px; flex: none; }
.qotd { padding: 13px 14px; border-radius: 18px; color: #FFFFFF; background: linear-gradient(135deg, #3D6BFF 0%, #5B4CF0 55%, #8B5CF6 100%); box-shadow: 0 12px 22px -12px rgba(61, 107, 255, 0.75); }
.qotd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.qotd-tag { padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); letter-spacing: 0.02em; text-transform: none; font-size: 9.5px; }
.qotd p { margin: 7px 0 8px; color: #FFFFFF; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.qotd-foot { font-size: 9.5px; opacity: 0.85; }
.soft-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 0; font-family: var(--font-head); font-size: 12px; font-weight: 800; }
.soft-head span:last-child { color: #8792A8; font-family: var(--font-body); font-size: 9.5px; font-weight: 600; }
.subj-list { display: grid; gap: 8px; }
.subj { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; }
.subj-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--acc); background: rgba(27, 35, 51, 0.05); }
.subj-ic svg { width: 16px; height: 16px; }
.subj b { display: block; overflow: hidden; color: #1B2333; font-family: var(--font-head); font-size: 10.5px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.subj small { display: block; color: #8792A8; font-size: 9px; }
.subj-bar { display: block; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #E2E8F0; box-shadow: inset 1px 1px 2px #CDD5E0; }
.subj-bar i { display: block; width: var(--p); height: 100%; border-radius: 99px; background: var(--acc); }
.screen-soft .bnav { background: #EEF2F7; border-top-color: #D9E0EA; color: #8792A8; }
.screen-soft .bnav .on { color: #2F62F5; }
.screen-soft .bnav .on svg { background: rgba(47, 98, 245, 0.12); }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .subj-ic { background: color-mix(in srgb, var(--acc) 14%, #EEF2F7); }
}

/* Floating cards: anchored to the phone edge and overlapping only its bezel, never the screen content */
.float-card {
  position: absolute; z-index: 2; width: 176px; padding: 14px;
  border: 1px solid #2B3858; border-radius: 18px;
  background: rgba(13, 19, 33, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  font-size: 11px; color: var(--text-2);
  animation: float 8s ease-in-out infinite;
}
.fc-scen { right: calc(100% - 22px); top: 17%; }
.fc-opt { left: calc(100% - 22px); top: 56%; animation-delay: -4s; }
@media (max-width: 699px), (min-width: 961px) and (max-width: 1199px) {
  .float-card { display: none; }
}
.fc-label { font-weight: 600; color: var(--text-2); }
.fc-value { margin: 2px 0 10px; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fc-bars { display: grid; gap: 6px; }
.fc-bars div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; font-size: 10px; }
.fc-bars i { display: block; height: 6px; width: var(--w); border-radius: 99px; background: var(--grad); }
.fc-bars i.bear { background: var(--coral); }
.fc-bars i.bull { background: var(--cyan); }
.fc-bars b { font-family: var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.fc-row { display: flex; justify-content: space-between; align-items: center; }
.fc-pop { padding: 3px 8px; border-radius: 99px; background: rgba(46, 230, 168, 0.12); color: var(--mint); font-family: var(--font-head); font-weight: 800; font-size: 10.5px; }
.fc-opt svg { display: block; width: 100%; height: auto; margin: 8px 0 6px; }
.fc-foot { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--outline-soft); background: rgba(13, 19, 33, 0.6); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 28px 16px; text-align: center; border-left: 1px solid var(--outline-soft); }
.proof-item:first-child { border-left: 0; }
.proof-num { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.proof-label { color: var(--text-2); font-size: 0.9rem; }

/* ---------- Feature blocks ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.feature-reverse .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-visual { display: grid; gap: 16px; min-width: 0; }

.panel {
  min-width: 0; margin: 0; padding: 20px;
  border: 1px solid var(--outline); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.panel-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; color: var(--text); }
.panel-sub { display: block; margin-top: 2px; color: var(--text-3); font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--text-3); font-size: 0.82rem; }
.legend-dot { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--mint)); }

/* Sensitivity heatmap */
.heatmap { display: grid; grid-template-columns: 50px repeat(5, minmax(0, 1fr)); gap: 4px; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.hm-row { display: contents; }
.hm-corner, .hm-head { display: flex; align-items: center; justify-content: center; padding: 4px 0; color: var(--text-3); font-size: 0.72rem; font-weight: 700; }
.hm-corner { justify-content: flex-start; font-size: 0.66rem; }
.hm-rowhead { justify-content: flex-start; }
.hm-cell { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; color: var(--text); font-size: 0.84rem; font-weight: 700; }
.hm-up { background: rgba(46, 230, 168, var(--a)); }
.hm-down { background: rgba(255, 107, 122, var(--a)); }
.hm-base { box-shadow: inset 0 0 0 2px var(--cyan); }

/* Monte Carlo histogram */
.hist { display: block; width: 100%; height: auto; }
.hist .h-lo { fill: rgba(255, 107, 122, 0.55); }
.hist .h-hi { fill: url(#mc-grad); }
.hist .axis { stroke: var(--outline); stroke-width: 1; }
.hist .price-line { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hist text, .payoff text { font-family: var(--font-head); font-size: 11px; font-weight: 700; fill: var(--text-3); }
.hist .t-price { fill: var(--gold); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat { padding: 10px 12px; border-radius: 12px; background: rgba(7, 11, 20, 0.55); border: 1px solid var(--outline-soft); }
.stat span { display: block; color: var(--text-3); font-size: 0.74rem; }
.stat b { font-family: var(--font-head); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .up { color: var(--mint); }

/* Payoff diagram */
.payoff { display: block; width: 100%; height: auto; }
.payoff .grid-line { stroke: rgba(36, 48, 75, 0.55); stroke-width: 1; }
.payoff .zero { stroke: #3A4A70; stroke-width: 1.2; }
.payoff .spot { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; }
.payoff .area-up { fill: rgba(46, 230, 168, 0.2); }
.payoff .area-down { fill: rgba(255, 107, 122, 0.17); }
.payoff .expiry { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linejoin: round; }
.payoff .t0 { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.payoff .be { fill: var(--ink); stroke: var(--text); stroke-width: 2; }
.payoff .t-strong { fill: var(--text); }
.payoff .t-up { fill: var(--mint); }
.payoff .t-down { fill: var(--coral); }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 0.78rem; font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .l-exp::before { content: ""; width: 16px; border-top: 2.5px solid var(--mint); }
.legend .l-t0::before { content: ""; width: 16px; border-top: 2px dashed var(--cyan); }

/* Greeks grid */
.greeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.greek { padding: 10px 12px; border-radius: 12px; background: rgba(7, 11, 20, 0.55); border: 1px solid var(--outline-soft); }
.greek span { display: block; color: var(--text-3); font-size: 0.74rem; }
.greek b { font-family: var(--font-head); font-size: 0.98rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.greek.second span::after { content: " 2nd"; color: var(--cyan); font-size: 0.66rem; font-weight: 700; }

/* Stress-test cards and chips */
.subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.mini-card { padding: 22px; border: 1px solid var(--outline); border-radius: 18px; background: rgba(13, 19, 33, 0.75); transition: border-color 0.2s ease, transform 0.2s ease; }
.mini-card:hover { border-color: #33426A; transform: translateY(-2px); }
.mini-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.mini-card p { color: var(--text-2); font-size: 0.95rem; }
.models { margin-top: 16px; padding: 22px; border: 1px dashed var(--outline); border-radius: 18px; }
.models h3 { margin-bottom: 14px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 7px 13px; border: 1px solid var(--outline); border-radius: 999px; background: rgba(18, 26, 43, 0.7); color: var(--text-body); font-size: 0.88rem; }

/* ---------- Prep ---------- */
.section-prep {
  background:
    radial-gradient(42% 40% at 6% 0%, rgba(110, 147, 255, 0.13), transparent 70%),
    radial-gradient(36% 36% at 96% 18%, rgba(169, 139, 255, 0.11), transparent 70%),
    radial-gradient(40% 30% at 70% 100%, rgba(255, 139, 61, 0.07), transparent 70%),
    var(--ink-2);
  border-block: 1px solid rgba(36, 48, 75, 0.45);
}
.section-prep .kicker { color: var(--c-blue); }
.section-prep .kicker::before, .section-prep .kicker::after { background: var(--grad-prep); }

.subjects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.subject {
  --acc: var(--c-blue);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 20px; border: 1px solid var(--outline); border-radius: 18px;
  background: rgba(13, 19, 33, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.subject::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--acc); }
.subject:hover { border-color: #33426A; transform: translateY(-2px); }
.subject-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--outline); background: rgba(255, 255, 255, 0.04); color: var(--acc); }
.subject-icon svg { width: 21px; height: 21px; }
.subject h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; }
.subject-count { margin: 0 0 8px; color: var(--acc); font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em; }
.subject-tagline { margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .subject { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--acc) 11%, transparent), transparent 60%), rgba(13, 19, 33, 0.82); }
  .subject-icon { border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 14%, transparent); }
}
.subject.subject-total {
  justify-content: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box, var(--grad-prep) border-box;
  border: 1px solid transparent;
}
.subject.subject-total::before { display: none; }
.subject-big { margin: 0 0 4px; color: var(--text); font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.subject-big span { font-size: 1.7rem; letter-spacing: -0.03em; }
.subject-total .subject-tagline { margin-top: 8px; }

.prep-feature { margin-top: clamp(48px, 7vw, 80px); align-items: start; }
@media (min-width: 961px) {
  .prep-feature .feature-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}
.feature-h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 800; letter-spacing: -0.025em; }

.anatomy { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anatomy li { padding: 10px 14px; border-left: 3px solid var(--acc); border-radius: 4px 12px 12px 4px; background: rgba(7, 11, 20, 0.55); }
.an-label { display: block; margin-bottom: 2px; color: var(--acc, var(--text-3)); font-family: var(--font-head); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.anatomy p { margin: 0; color: var(--text-body); font-size: 0.92rem; line-height: 1.5; }
.anatomy .an-formula { color: var(--text); font-family: var(--font-head); font-weight: 700; }
.tag-row { align-items: center; }
.qtag {
  --acc: var(--c-blue);
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--outline); background: rgba(255, 255, 255, 0.04);
  color: var(--acc); font-family: var(--font-head); font-size: 0.74rem; font-weight: 800; line-height: 1.2;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .qtag { border-color: color-mix(in srgb, var(--acc) 42%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); }
}

.flashcard { padding: 18px; border: 1px solid var(--outline-soft); border-radius: 16px; background: rgba(7, 11, 20, 0.55); }
.flash-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.flash-subject { color: var(--text-3); font-size: 0.8rem; font-weight: 500; }
.flash-q { margin: 0 0 14px; color: var(--text); font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.flash-a { --acc: var(--c-green); padding-top: 12px; border-top: 1px dashed var(--outline); }
.flash-a p { margin: 0; color: var(--text-body); font-size: 0.92rem; line-height: 1.55; }
.flash-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.flash-actions span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 11px; color: var(--text-2); font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; }
.flash-actions .primary { border-color: rgba(110, 147, 255, 0.5); background: rgba(110, 147, 255, 0.14); color: var(--text); }

/* ---------- Trader tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--outline); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(79, 195, 255, 0.25); color: var(--mint); }
.icon-tile svg { width: 22px; height: 22px; }
.tool-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.tool-card > p { color: var(--text-2); font-size: 0.94rem; }
.readout { display: grid; gap: 8px; margin: auto 0 0; padding-top: 18px; }
.readout div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 8px; border-top: 1px solid var(--outline-soft); }
.readout dt { color: var(--text-3); font-size: 0.8rem; }
.readout dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout .result dd { color: var(--mint); }

/* ---------- Library visuals ---------- */
.watch { display: grid; gap: 8px; }
.watch-head, .watch-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.watch-head { padding: 0 12px; color: var(--text-3); font-size: 0.74rem; font-weight: 600; }
.watch-row { padding: 12px; border-radius: 12px; background: rgba(7, 11, 20, 0.55); border: 1px solid var(--outline-soft); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.watch-row span:first-child { font-weight: 800; color: var(--text); }
.watch-head span:not(:first-child), .watch-row span:not(:first-child) { text-align: right; }
.journal { display: grid; gap: 10px; }
.journal-item { padding: 12px 14px; border-left: 3px solid var(--mint); border-radius: 4px 12px 12px 4px; background: rgba(7, 11, 20, 0.55); }
.journal-item.risk { border-left-color: var(--coral); }
.journal-item.review { border-left-color: var(--cyan); }
.journal-item span { display: block; margin-bottom: 2px; color: var(--text-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.journal-item p { color: var(--text-body); font-size: 0.92rem; }

/* ---------- Traits ---------- */
.traits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trait { padding: 24px; border: 1px solid var(--outline-soft); border-radius: var(--radius); background: rgba(13, 19, 33, 0.6); }
.trait h3 { margin-bottom: 6px; font-size: 1.05rem; }
.trait p { color: var(--text-2); font-size: 0.94rem; }
.format-demo { display: grid; gap: 4px; margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.format-demo span { display: flex; justify-content: space-between; gap: 8px; }
.format-demo small { color: var(--text-3); font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--outline); border-radius: var(--radius-lg); background: var(--surface); }
.plan h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 1.5rem; }
.plan-note { color: var(--text-2); }
.plan .ticks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 12px 0 6px; color: var(--text-2); font-size: 0.95rem; }
.plan-price .price { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 2.7rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-adfree {
  position: relative;
  background: radial-gradient(120% 80% at 100% 0%, rgba(246, 196, 83, 0.1), transparent 60%) padding-box, linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box, linear-gradient(140deg, rgba(246, 196, 83, 0.85), rgba(246, 196, 83, 0.12) 55%, rgba(79, 195, 255, 0.3)) border-box;
  border: 1px solid transparent;
}
.plan-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 8px; background: linear-gradient(120deg, #F6C453, #FFDD95); color: #1C1404; font-family: var(--font-head); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.plans-note { max-width: 760px; margin: 28px auto 0; text-align: center; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.founder-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.avatar {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.founder-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.founder-meta li { padding: 6px 12px; border: 1px solid var(--outline); border-radius: 999px; background: rgba(18, 26, 43, 0.7); color: var(--text-body); font-size: 0.86rem; }
.principles { display: grid; gap: 12px; }
.principle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid var(--outline-soft); border-radius: 18px; background: rgba(13, 19, 33, 0.7); }
.principle .num { font-family: var(--font-head); font-size: 0.9rem; font-weight: 800; color: var(--mint); font-variant-numeric: tabular-nums; }
.principle h3 { margin-bottom: 4px; font-size: 1.02rem; }
.principle p { color: var(--text-2); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); transition: border-color 0.2s ease; }
.faq details[open] { border-color: #33426A; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background:
    linear-gradient(var(--mint), var(--mint)) center / 10px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center / 2px 10px no-repeat,
    rgba(46, 230, 168, 0.1);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer a { overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(64px, 9vw, 112px) 0; }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--outline); border-radius: var(--radius-lg);
  background: var(--surface); text-align: center;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 50% 0%, rgba(46, 230, 168, 0.16), transparent 70%), radial-gradient(50% 80% at 90% 100%, rgba(79, 195, 255, 0.14), transparent 70%);
}
.cta-inner h2 { max-width: 20em; margin: 0 auto 14px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; }
.cta-inner p { max-width: 36em; margin: 0 auto 28px; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--outline-soft); background: #060912; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand p { max-width: 26em; margin-top: 14px; color: var(--text-2); font-size: 0.94rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text-2); font-size: 0.94rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--outline-soft); border-radius: 16px; background: rgba(18, 26, 43, 0.55); color: var(--text-2); font-size: 0.86rem; line-height: 1.65; }
.disclaimer strong { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; color: var(--text-3); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--outline-soft); }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 85% 0%, rgba(79, 195, 255, 0.12), transparent 70%), radial-gradient(40% 100% at 5% 0%, rgba(46, 230, 168, 0.1), transparent 70%); }
.legal-hero h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 3.3rem); letter-spacing: -0.035em; }
.legal-hero .lead { max-width: 44em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.legal-meta li { padding: 6px 12px; border: 1px solid var(--outline); border-radius: 999px; background: rgba(13, 19, 33, 0.8); color: var(--text-2); font-size: 0.85rem; }
.legal-meta b { color: var(--text); }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 4px; }
.toc-title { margin: 0 0 10px; padding-left: 10px; color: var(--text-3); font-family: var(--font-head); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 0.88rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.prose { max-width: 74ch; min-width: 0; color: var(--text-body); }
.prose > section { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.3rem, 2.2vw, 1.55rem); letter-spacing: -0.02em; }
.prose .summary + section h2 { margin-top: 1.6em; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.08rem; }
.prose p, .prose li { color: var(--text-body); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--mint); }
.prose a { word-break: break-word; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--outline-soft); font-size: 0.88em; color: var(--text); }

.summary { margin-bottom: 8px; padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(46, 230, 168, 0.35); border-radius: var(--radius); background: linear-gradient(180deg, rgba(46, 230, 168, 0.07), rgba(46, 230, 168, 0.02)); }
.summary h2 { margin: 0 0 12px; font-size: 1.15rem; }
.summary ul { margin: 0; }
.callout { margin: 1.2em 0; padding: 16px 18px; border: 1px solid rgba(246, 196, 83, 0.35); border-radius: 14px; background: rgba(246, 196, 83, 0.06); }
.callout p { color: var(--text-body); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.4em; border: 1px solid var(--outline); border-radius: 14px; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--outline-soft); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--surface-2); color: var(--text); font-family: var(--font-head); font-size: 0.86rem; font-weight: 800; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; min-height: calc(100vh - var(--header-h) - 1px); padding: 64px 0; text-align: center; }
.notfound-code { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.notfound h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.notfound p { max-width: 32em; margin: 0 auto 28px; color: var(--text-2); }
.notfound .cta-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .site-nav a { padding: 8px 9px; }
}

@media (max-width: 960px) {
  .hero-grid, .feature, .founder { grid-template-columns: minmax(0, 1fr); }
  .feature-reverse .feature-copy { order: 0; }
  .hero-copy { text-align: left; }
  .subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 18px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 760px) {
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 520px) {
  .subjects { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .subject { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .subject > * { grid-column: 2; }
  .subject > .subject-icon { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .subject.subject-total { display: flex; }
  .flash-q { font-size: 1rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 22px 12px; }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--outline-soft); }
  .subgrid, .tool-grid, .traits, .plans { grid-template-columns: minmax(0, 1fr); }
  .stat-row, .greeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row .btn { flex: 1 1 100%; }
  .founder-card { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .hist text, .payoff text { font-size: 15px; }
  .heatmap { grid-template-columns: 42px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .hm-cell { height: 34px; font-size: 0.72rem; border-radius: 6px; }
  .hm-head { font-size: 0.66rem; }
  .hm-corner { font-size: 0.58rem; }
  .watch-head, .watch-row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); font-size: 0.8rem; }
  .watch-row { padding: 10px; }
  .toc { padding: 14px 10px; }
  .toc a { padding: 5px 6px; font-size: 0.82rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .wordmark { font-size: 1.02rem; }
  .brand-mark { width: 26px; height: 24px; }
  .btn-sm { padding: 0 12px; }
}

@media (max-width: 359px) {
  .header-cta { padding: 0 12px; }
  .header-cta .cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print (legal pages) ---------- */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff; }
  body { color: #000; font-size: 11pt; }
  .site-header, .toc, .skip-link, .btn, .footer-links, .legal-hero::before { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-hero { padding: 0 0 12pt; border: 0; }
  h1, h2, h3, .prose p, .prose li, .prose strong, .legal-meta li, .legal-meta b, .lead { color: #000 !important; }
  .summary, .callout, .disclaimer, .legal-meta li { background: none !important; border-color: #999 !important; }
  .site-footer { padding: 12pt 0 0; background: none; border-top: 1px solid #999; }
  .disclaimer, .footer-bottom, .footer-brand p { color: #000 !important; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
