/* ============================================================
   UPSIDE — profit-share mentorship for e-commerce
   Design system: warm-canvas editorial (see DESIGN-claude.md)
   ============================================================ */

:root {
  /* Colors */
  --primary: #cc785c;
  --primary-active: #a9583e;
  --primary-disabled: #e6dfd8;
  --ink: #141413;
  --body: #3d3d3a;
  --body-strong: #252523;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --accent-teal: #5db8a6;
  --accent-amber: #e8a55a;
  --success: #5db872;
  --warning: #d4a017;
  --error: #c64545;

  /* Chart palette — validated on #faf9f5 (CVD worst adj ΔE 17.4, all ≥3:1) */
  --series-1: #2aa189;
  --series-2: #cc785c;
  --series-3: #4267ab;
  --series-4: #bd7d20;
  --chart-grid: #ebe6df;
  --chart-axis: #d8d2c6;
  --delta-up: #2e7d43;
  --delta-down: #c64545;

  /* Type */
  --font-display: "Cormorant Garamond", "Tiempos Headline", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px;
  --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 96px;

  --shadow-soft: 0 1px 3px rgba(20, 20, 19, 0.08);
  --max-w: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:active { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
strong { color: var(--body-strong); font-weight: 600; }

/* ---------- Typography ---------- */
h1, h2, h3, .display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.display-xl { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -1.5px; }
.display-lg { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -1px; }
.display-md { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.5px; }
.display-sm { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -0.3px; }

.title-lg { font-family: var(--font-sans); font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.title-md { font-family: var(--font-sans); font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.title-sm { font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.body-lg  { font-size: 18px; line-height: 1.6; }
.body-sm  { font-size: 14px; }
.caption  { font-size: 13px; font-weight: 500; }
.mono     { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--primary);
  display: block; margin-bottom: var(--s-md);
}
.section--dark .eyebrow { color: var(--accent-teal); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-lg); }
.section { padding: var(--s-section) 0; }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--surface-dark); color: var(--on-dark-soft); }
.section--dark h2, .section--dark h3, .section--dark .display-lg,
.section--dark .display-md, .section--dark .display-sm { color: var(--on-dark); }
.section--tight { padding: var(--s-xxl) 0; }

.section-head { max-width: 640px; margin-bottom: var(--s-xxl); }
.section-head p { margin-top: var(--s-md); font-size: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: var(--s-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: var(--s-xxl); align-items: center; }
.grid--sidebar { grid-template-columns: 1.5fr 1fr; gap: var(--s-xxl); align-items: start; }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4, .grid--split, .grid--sidebar { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  padding: 12px 20px; height: 40px; border-radius: var(--r-md);
  white-space: nowrap; transition: background-color .12s ease;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover, .btn--primary:active { background: var(--primary-active); color: var(--on-primary); text-decoration: none; }
.btn--secondary { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); }
.btn--secondary:hover { background: var(--surface-soft); text-decoration: none; }
.btn--on-dark { background: var(--surface-dark-elevated); color: var(--on-dark); }
.btn--on-dark:hover { background: #2f2d29; text-decoration: none; }
.btn--cream { background: var(--canvas); color: var(--ink); }
.btn--cream:hover { background: var(--surface-soft); text-decoration: none; }
.btn--lg { height: 48px; padding: 14px 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { background: var(--primary-disabled); color: var(--muted); cursor: not-allowed; }
.btn-row { display: flex; gap: var(--s-sm); flex-wrap: wrap; align-items: center; }
.text-link { color: var(--primary); font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-card); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1.4;
  border-radius: var(--r-pill); padding: 4px 12px;
}
.badge--coral {
  background: var(--primary); color: var(--on-primary);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.badge--outline { background: transparent; border: 1px solid var(--hairline); }
.badge--on-dark { background: var(--surface-dark-elevated); color: var(--on-dark); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--teal { background: var(--accent-teal); }
.dot--success { background: var(--success); }
.dot--amber { background: var(--accent-amber); }
.dot--coral { background: var(--primary); }
.dot--muted { background: var(--muted-soft); }

/* Status pills for tables */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; border-radius: var(--r-pill);
  padding: 3px 10px;
}
.status--paid { background: #e4f0e6; color: #2e6b3d; }
.status--accruing { background: #f7ecd9; color: #8a6410; }
.status--pending { background: var(--surface-card); color: var(--muted); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  height: 64px; display: flex; align-items: center; gap: var(--s-xl);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:active { text-decoration: none; }
.brand-mark { flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.5px; line-height: 1; color: var(--ink);
}
.nav-links { display: flex; gap: var(--s-lg); flex: 1; }
.nav-links a { color: var(--ink); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: var(--s-md); }
.nav-actions .signin { color: var(--ink); font-size: 14px; font-weight: 500; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .signin { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { justify-content: space-between; }
  .nav.open .nav-sheet { display: flex; }
}
.nav-sheet {
  display: none; flex-direction: column; gap: var(--s-lg);
  padding: var(--s-xl) var(--s-lg) var(--s-xxl);
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
}
.nav-sheet a { color: var(--ink); font-size: 18px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-section) 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-xxl); align-items: center;
}
.hero-copy .display-xl { margin-bottom: var(--s-lg); }
.hero-copy .lede { font-size: 19px; line-height: 1.6; color: var(--body); margin-bottom: var(--s-xl); max-width: 34em; }
.hero-badges { display: flex; gap: var(--s-xs); flex-wrap: wrap; margin-bottom: var(--s-lg); }
.hero-note { margin-top: var(--s-md); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-xl);
}
.card--cream { background: var(--surface-card); border: none; }
.card--soft { background: var(--surface-soft); border: none; }
.card--dark { background: var(--surface-dark); border: none; color: var(--on-dark-soft); }
.card--dark h3, .card--dark .title-md, .card--dark .title-sm, .card--dark .title-lg { color: var(--on-dark); }
.card--coral { background: var(--primary); border: none; color: var(--on-primary); }
.card--coral h2, .card--coral h3 { color: var(--on-primary); }
.card--pad-lg { padding: var(--s-xxl); }

.feature-card { background: var(--surface-card); border-radius: var(--r-lg); padding: var(--s-xl); }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--canvas); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-lg); color: var(--ink);
}
.feature-card h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 500; margin-bottom: var(--s-xs); }
.feature-card p { font-size: 15px; color: var(--body); }
.step-num {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--primary); display: block; margin-bottom: var(--s-sm);
  letter-spacing: 1px;
}

/* ---------- Dark product mockup / window chrome ---------- */
.mock-window {
  background: var(--surface-dark); border-radius: var(--r-xl);
  padding: var(--s-lg); color: var(--on-dark);
}
.mock-titlebar {
  display: flex; align-items: center; gap: var(--s-sm);
  padding-bottom: var(--s-md); margin-bottom: var(--s-md);
  border-bottom: 1px solid var(--surface-dark-elevated);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-dark-elevated); }
.mock-title { font-size: 13px; color: var(--on-dark-soft); font-weight: 500; }
.mock-body { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; }

.mock-panel {
  background: var(--surface-dark-soft); border-radius: var(--r-md);
  padding: var(--s-md); margin-top: var(--s-sm);
}
.mock-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid rgba(250,249,245,0.06);
  font-size: 13.5px;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .k { color: var(--on-dark-soft); }
.mock-row .v { font-family: var(--font-mono); color: var(--on-dark); }
.mock-row .v--teal { color: var(--accent-teal); }
.mock-row .v--amber { color: var(--accent-amber); }
.mock-log { color: var(--on-dark-soft); }
.mock-log .ok { color: var(--accent-teal); }
.mock-log .path { color: var(--accent-amber); }
.mock-log .dim { color: #6e6b63; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--s-xxs); flex-wrap: wrap; }
.tab {
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: transparent;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface-card); color: var(--ink); }
.tab--lg { padding: 10px 18px; font-size: 15px; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s-lg); }
.field > label {
  display: block; font-size: 14px; font-weight: 500; color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.input, .select, textarea.input {
  width: 100%; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 10px 14px; height: 40px;
}
textarea.input { height: auto; min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c6a64' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-md); }
@media (max-width: 768px) { .field-row { grid-template-columns: 1fr; } }

/* Range sliders */
input[type="range"] {
  width: 100%; accent-color: var(--primary); height: 32px;
}
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.range-value { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--ink); }

/* Radio-card group */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-sm); }
.choice {
  display: block; border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer; background: var(--canvas);
}
.choice input { position: absolute; opacity: 0; }
.choice .t { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.choice .d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.choice:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.15);
  background: var(--canvas);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-lg);
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-family: var(--font-display); font-size: 26px; font-weight: 500;
  color: var(--muted); flex: none; line-height: 1;
}
.accordion details[open] summary::after { content: "\2013"; }
.accordion .a { padding: 0 4px 24px; max-width: 46em; color: var(--body); }
.accordion .a p + p { margin-top: var(--s-sm); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}
.ledger td {
  padding: 13px 14px; border-bottom: 1px solid var(--hairline-soft);
  color: var(--body-strong); white-space: nowrap;
}
.ledger tr:last-child td { border-bottom: none; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 13.5px; }
.ledger th.num { font-family: var(--font-sans); }
.ledger .row-muted td { color: var(--muted); }

/* ---------- Stat tiles ---------- */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); }
@media (max-width: 1024px) { .tile-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-row { grid-template-columns: 1fr; } }
.stat-tile {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.stat-tile .label { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.stat-tile .value { font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.3px; }
.stat-tile .delta { font-size: 13px; font-weight: 500; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.delta--up { color: var(--delta-up); }
.delta--down { color: var(--delta-down); }
.delta--flat { color: var(--muted); }
.stat-tile .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Charts ---------- */
.chart-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--s-lg) var(--s-lg) var(--s-md); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-md); flex-wrap: wrap; margin-bottom: var(--s-xs); }
.chart-head h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 500; }
.chart-head .sub { font-size: 13px; color: var(--muted); }
.chart-legend { display: flex; gap: var(--s-md); flex-wrap: wrap; margin: 2px 0 10px; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--body); }
.chart-legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chart-svg-wrap { position: relative; }
.chart-svg-wrap svg { width: 100%; height: auto; display: block; }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 10;
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--r-md); padding: 10px 12px; font-size: 13px;
  box-shadow: 0 4px 14px rgba(20,20,19,0.25);
  opacity: 0; transition: opacity .1s ease; min-width: 150px;
}
.chart-tooltip .tt-title { font-weight: 600; margin-bottom: 6px; font-size: 12.5px; color: var(--on-dark-soft); }
.chart-tooltip .tt-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.chart-tooltip .tt-key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.chart-tooltip .tt-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tooltip .tt-name { color: var(--on-dark-soft); }
.chart-table { margin-top: var(--s-sm); }
.chart-table summary { font-size: 13px; color: var(--muted); cursor: pointer; padding: 6px 0; }
.chart-table table { margin-top: var(--s-xs); }

/* ---------- App (dashboard) chrome ---------- */
.app-nav {
  background: var(--canvas); border-bottom: 1px solid var(--hairline-soft);
  position: sticky; top: 0; z-index: 50;
}
.app-nav-inner { height: 60px; display: flex; align-items: center; gap: var(--s-lg); }
.app-tabs { display: flex; gap: 2px; flex: 1; }
.app-tabs a {
  padding: 8px 13px; border-radius: var(--r-md); font-size: 14px;
  font-weight: 500; color: var(--muted);
}
.app-tabs a.active { background: var(--surface-card); color: var(--ink); }
.app-tabs a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 768px) { .app-tabs { display: none; } }

.view-switch {
  display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 3px; background: var(--canvas); gap: 2px;
}
.view-switch a {
  padding: 5px 13px; border-radius: var(--r-pill); font-size: 13px;
  font-weight: 500; color: var(--muted);
}
.view-switch a.active { background: var(--ink); color: var(--on-dark); }
.view-switch a:hover { text-decoration: none; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--surface-cream-strong); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
}
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.avatar--xl { width: 96px; height: 96px; font-size: 32px; }
.avatar--coral { background: var(--primary); color: var(--on-primary); }
.avatar--teal { background: #d8ede8; color: #1d6a5b; }
.avatar--amber { background: #f5e3c8; color: #8a5a10; }
.avatar--blue { background: #dde5f2; color: #2f4b7c; }

.page-head { padding: var(--s-xl) 0 var(--s-lg); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-lg); flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.5px; line-height: 1.15; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Agreement strip on dashboards */
.agreement-strip {
  display: flex; align-items: center; gap: var(--s-md); flex-wrap: wrap;
  background: var(--surface-card); border-radius: var(--r-lg);
  padding: 16px 20px;
}
.agreement-strip .meta { font-size: 14px; color: var(--body); }
.agreement-strip .meta strong { color: var(--ink); }
.agreement-strip .spacer { flex: 1; }

/* Progress bar */
.progress { height: 8px; border-radius: var(--r-pill); background: var(--surface-cream-strong); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--primary); }
.progress--teal > span { background: var(--series-1); }

/* ---------- Mentor cards ---------- */
.mentor-card { display: flex; flex-direction: column; gap: var(--s-md); }
.mentor-card .head { display: flex; gap: var(--s-md); align-items: center; }
.mentor-card .name { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--ink); }
.mentor-card .niche { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.mentor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.mentor-stats .k { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600; }
.mentor-stats .v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 1px; }
.mentor-terms { font-size: 14px; color: var(--body); }
.mentor-terms strong { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
.mentor-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.rating { font-size: 13.5px; color: var(--muted); }
.rating b { color: var(--ink); }

/* ---------- Agreement document ---------- */
.doc {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: var(--s-xxl);
}
.doc-head { text-align: center; padding-bottom: var(--s-lg); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s-lg); }
.doc-head .doc-title { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.doc-head .doc-sub { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }
.doc-clause { display: flex; gap: var(--s-md); padding: 13px 0; border-bottom: 1px solid var(--hairline-soft); }
.doc-clause:last-of-type { border-bottom: none; }
.doc-clause .n { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-soft); flex: none; width: 28px; padding-top: 2px; }
.doc-clause .c { font-size: 14.5px; color: var(--body); }
.doc-clause .c strong { color: var(--ink); }
.doc-sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); margin-top: var(--s-xl); }
.doc-sig { border-top: 1.5px solid var(--ink); padding-top: 8px; }
.doc-sig .sig-name { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--ink); min-height: 30px; }
.doc-sig .sig-role { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 768px) { .doc { padding: var(--s-lg); } .doc-sig-row { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-xxl); align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.compare-bar { margin-bottom: var(--s-lg); }
.compare-bar .cb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.compare-bar .cb-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.compare-bar .cb-value { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare-bar .cb-track { height: 14px; border-radius: var(--r-pill); background: var(--surface-cream-strong); overflow: hidden; }
.compare-bar .cb-fill { height: 100%; border-radius: var(--r-pill); }
.compare-bar .cb-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- CTA bands ---------- */
.cta-band {
  border-radius: var(--r-lg); padding: 64px; text-align: center;
}
.cta-band--coral { background: var(--primary); color: var(--on-primary); }
.cta-band--coral h2 { color: var(--on-primary); margin-bottom: var(--s-sm); }
.cta-band--coral p { color: rgba(255,255,255,0.85); max-width: 36em; margin: 0 auto var(--s-xl); font-size: 17px; }
.cta-band--dark { background: var(--surface-dark); color: var(--on-dark-soft); }
.cta-band--dark h2 { color: var(--on-dark); margin-bottom: var(--s-sm); }
@media (max-width: 768px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 64px 0 40px; }
.footer .brand-name { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-xl); margin-bottom: var(--s-xxl); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--s-md); }
.footer ul li { margin-bottom: 10px; }
.footer a { color: var(--on-dark-soft); font-size: 14px; }
.footer a:hover { color: var(--on-dark); text-decoration: none; }
.footer .tagline { font-size: 14px; max-width: 26em; margin-top: var(--s-md); }
.footer-legal {
  border-top: 1px solid var(--surface-dark-elevated); padding-top: var(--s-lg);
  display: flex; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap;
  font-size: 13px; color: #6e6b63;
}

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--hairline); margin: var(--s-xl) 0; }
.checklist li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--body); }
.checklist .tick { color: var(--primary); flex: none; font-weight: 700; }
.card--dark .checklist li, .section--dark .checklist li { color: var(--on-dark-soft); }
.card--dark .checklist .tick, .section--dark .checklist .tick { color: var(--accent-teal); }
.section--dark .checklist strong { color: var(--on-dark); }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-soft); border-radius: var(--r-md);
  padding: 12px 16px; font-size: 14px; color: var(--body);
}
.notice--success { background: #e4f0e6; color: #2e6b3d; }

.kbd-hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted-soft); }

/* Success overlay state for forms */
.form-success { display: none; }
.form-success.show { display: block; }
.form-hide.hidden { display: none; }

/* Print: keep it sane */
@media print {
  .nav, .app-nav, .footer, .cta-band, .view-switch { display: none !important; }
}
