/* Exodus — landing page styles. Direction C: "Wipe". */

/* ---------- Tokens ---------- */
:root {
  --bg: #F6F1E6;
  --surface: #FFFDF8;
  --surface-2: #EFE8D9;
  --ink: #13221B;
  --muted: #4A5850;
  --line: #DCD3C2;
  --brand: #0F3B2D;
  --brand-2: #164A39;
  --on-brand: #F4EEE2;
  --on-brand-muted: #C9D4CC;
  --brand-line: #3E6A5B;
  --accent: #F2B23B;
  --on-accent: #1A1A12;
  --accent-text: #845500;
  --focus: #0F3B2D;
  --danger: #A12C1B;
  --ok: #1F6B45;
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B1511;
  --surface: #12201A;
  --surface-2: #0F1B16;
  --ink: #EDEAE0;
  --muted: #A9B6AE;
  --line: #26372F;
  --brand: #0F3B2D;
  --brand-2: #144533;
  --on-brand: #F4EEE2;
  --on-brand-muted: #C9D4CC;
  --brand-line: #3E6A5B;
  --accent-text: #F2B23B;
  --focus: #F2B23B;
  --danger: #FF9580;
  --ok: #86D9A8;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1511;
    --surface: #12201A;
    --surface-2: #0F1B16;
    --ink: #EDEAE0;
    --muted: #A9B6AE;
    --line: #26372F;
    --brand: #0F3B2D;
    --brand-2: #144533;
    --on-brand: #F4EEE2;
    --on-brand-muted: #C9D4CC;
    --brand-line: #3E6A5B;
    --accent-text: #F2B23B;
    --focus: #F2B23B;
    --danger: #FF9580;
    --ok: #86D9A8;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .band :focus-visible, .site-header :focus-visible { --focus: #F2B23B; }
.form-card :focus-visible { --focus: var(--brand); }
:root[data-theme="dark"] .form-card :focus-visible { --focus: #F2B23B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-card :focus-visible { --focus: #F2B23B; }
}

.wrap {
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hl { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #F7C463; }
.btn-ghost-dark { color: var(--on-brand); border-color: var(--brand-line); font-weight: 500; }
.btn-ghost-dark:hover { border-color: var(--on-brand); }
.btn-light { background: var(--on-brand); color: var(--brand); }
.btn-light:hover { background: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header { background: var(--brand); color: var(--on-brand); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: -0.03em; text-decoration: none; color: inherit;
}
.wordmark-sm { font-size: 22px; }
.main-nav { display: flex; gap: 28px; font-size: 15px; margin-left: auto; margin-right: 12px; }
.main-nav a { text-decoration: none; padding-block: 10px; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: var(--on-brand);
  border: 1px solid var(--brand-line); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--on-brand); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--brand); color: var(--on-brand); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-copy {
  max-width: 1040px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 24px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: 48px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-sub { max-width: 680px; font-size: clamp(17px, 1.6vw, 19px); color: var(--on-brand-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { font-size: 14px; color: var(--on-brand-muted); }

.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.wipe-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--on-brand-muted); text-align: center;
}
.wipe-hint svg { color: var(--accent); flex: none; }

/* The comparison stage */
.wipe {
  --pos: 50%;
  position: relative;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  isolation: isolate;
}
.wipe-art { position: absolute; inset: 0; }

.wipe-before {
  position: absolute; inset: 0;
  background: #E6E5DF; color: #2B2D2F;
  display: flex; flex-direction: column;
}
.crm-bar {
  background: #55595E; color: #F1F1EE;
  padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px;
}
.crm-bar-title { font-weight: 600; }
.crm-actions { display: flex; gap: 8px; }
.crm-actions span { border: 1px solid #8A8E93; padding: 3px 10px; border-radius: 4px; }
.crm-head { padding: 18px 22px 10px; display: flex; flex-direction: column; gap: 4px; }
.crm-type { font-size: 11px; color: #5D6064; }
.crm-title { font-size: 20px; font-weight: 600; }
.crm-tabs {
  padding: 0 22px; display: flex; gap: 18px; border-bottom: 1px solid #CFCEC7;
  font-size: 12px; color: #5D6064; white-space: nowrap; overflow: hidden;
}
.crm-tabs span { padding-bottom: 7px; }
.crm-tabs .is-active { border-bottom: 2px solid #2B2D2F; color: #2B2D2F; }
.crm-grid {
  padding: 16px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px;
}
.crm-field {
  background: #F2F1EC; border: 1px solid #DAD9D2; border-radius: 3px;
  padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.crm-field span, .crm-field b {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crm-field span { font-size: 10px; color: #5D6064; }
.crm-field b { font-size: 12px; font-weight: 400; color: #2B2D2F; }

.wipe-after {
  position: absolute; inset: 0;
  background: #FBF7EF; color: #17201B;
  clip-path: inset(0 0 0 var(--pos));
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 34px 64px;
}
.after-head { display: flex; flex-direction: column; gap: 8px; align-self: start; padding-top: 6px; }
.after-meta { font-size: 13px; color: #55625A; }
.after-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: -0.035em; line-height: 1; max-width: 12ch;
}
.after-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
  flex: 1 1 auto; min-height: 0;
}
.after-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.after-stack .deal { gap: 14px; }
.after-stack .chat-label { display: none; }
.after-card {
  background: #FFFFFF; border: 1px solid #E6DFD0; border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.deal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.deal-name { font-size: 19px; font-weight: 600; }
.deal-close { font-size: 15px; color: #3B4740; }
.deal-amount {
  font-family: var(--font-display); font-weight: 800; font-size: 44px;
  letter-spacing: -0.03em; color: #0F3B2D; line-height: 1;
}
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.stages span { height: 8px; border-radius: 4px; background: #EAE3D4; }
.stages .done { background: #0F3B2D; }
.stages .now { background: #E09A1C; }
.stage-label { font-size: 13px; font-weight: 600; color: #845500; margin-top: -8px; }
.next-step {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #F4EEE2; border-radius: 10px; padding: 14px 16px;
}
.next-step > div { display: flex; flex-direction: column; gap: 2px; }
.ns-label { font-size: 12px; color: #55625A; }
.ns-value { font-size: 15px; font-weight: 600; }
.fake-btn {
  background: #0F3B2D; color: #F4EEE2; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.chat { gap: 12px; }
.chat-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #55625A; }
.bubble { padding: 11px 15px; font-size: 15px; line-height: 1.4; max-width: 88%; }
.bubble-me { align-self: flex-end; background: #0F3B2D; color: #F4EEE2; border-radius: 16px 16px 4px 16px; }
.bubble-ai { align-self: flex-start; background: #F4EEE2; border-radius: 16px 16px 16px 4px; }
.chat-input {
  margin-top: auto; border: 1px solid #E6DFD0; border-radius: 999px;
  padding: 12px 16px; font-size: 14px; color: #5F6B63;
}

.wipe-tag {
  position: absolute; bottom: 20px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.wipe-tag-before { left: 20px; background: #2B2D2F; color: #F1F1EE; }
.wipe-tag-after { right: 20px; background: var(--accent); color: var(--on-accent); }

.wipe-range {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.wipe-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0;
  z-index: 2; pointer-events: none;
}
.wipe-line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--accent); }
.wipe-knob {
  position: absolute; top: 50%; left: -24px; width: 48px; height: 48px; margin-top: -24px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.wipe-range:focus-visible + .wipe-handle .wipe-knob { outline: 3px solid #F4EEE2; outline-offset: 4px; }
.wipe-range:focus-visible { outline: none; }

.wipe-toggle {
  align-self: center;
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--brand-line); border-radius: 999px;
}
.wipe-toggle button {
  min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--on-brand);
  font: 500 14px/1.2 var(--font-body); cursor: pointer;
}
.wipe-toggle button:hover { background: rgba(244, 238, 226, .1); }
.wipe-toggle button[aria-pressed="true"] { background: var(--on-brand); color: var(--brand); font-weight: 600; }

.wipe-captions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 8px 32px; font-size: 16px; line-height: 1.45;
}
.wipe-captions p:first-child { color: var(--on-brand-muted); }
.wipe-captions p:last-child { color: var(--on-brand); text-align: right; }

@media (max-width: 860px) {
  .wipe { height: 640px; }
  .crm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px; }
  .crm-actions span:nth-child(n+2) { display: none; }
  .crm-bar, .crm-head, .crm-tabs { padding-inline: 16px; }
  .wipe-after { padding: 20px 18px 60px; gap: 14px; }
  .after-title { font-size: 26px; max-width: none; }
  .after-stack { gap: 12px; }
  .after-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .after-card { padding: 16px; gap: 12px; }
  .deal-amount { font-size: 34px; }
  .stage-label { margin-top: -4px; }
  .chat-label, .chat-input { display: none; }
  .bubble { font-size: 14px; padding: 9px 12px; }
  .wipe-tag { bottom: 14px; font-size: 11px; }
  .wipe-tag-before { left: 14px; }
  .wipe-tag-after { right: 14px; }
  .wipe-captions p:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .wipe { height: 600px; }
  .wipe-tag { display: none; }
  .wipe-after { padding-bottom: 18px; }
  .deal-top { flex-wrap: nowrap; }
  .deal-name { font-size: 16px; }
  .deal-close { font-size: 13px; white-space: nowrap; }
  .deal-amount { font-size: 30px; }
  .next-step { flex-wrap: nowrap; padding: 10px 12px; }
  .ns-value { font-size: 14px; }
  .fake-btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .bubble { font-size: 13px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--surface-2); }
.section h2, .band h2 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 560px; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.split-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px 64px; align-items: end;
}
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Pain */
.pain-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 2px solid var(--ink);
}
.pain-col { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 18px; }
.pain-col + .pain-col { padding-left: 28px; border-left: 1px solid var(--line); }
.pain-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-text); }
.pain-col h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.rule-list { list-style: none; }
.rule-list li { padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.rule-list li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) {
  .pain-col, .pain-col + .pain-col { padding: 28px 0 8px; border-left: 0; }
  .pain-col + .pain-col { border-top: 1px solid var(--line); }
}

/* Steps */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 28px;
  counter-reset: step;
}
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.step::before {
  content: ""; position: absolute; top: 26px; left: 60px; right: -28px; height: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
}
.step h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin-top: 8px; }
.step p { color: var(--muted); }
@media (max-width: 1100px) { .step::before { display: none; } }

/* Same logic split panel */
.split-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.split-half { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 24px; }
.split-kept { background: var(--brand); color: var(--on-brand); }
.split-new { background: var(--surface); }
.split-half h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em;
}
.split-kept h3 svg { color: var(--accent); }
.split-new h3 svg { color: var(--accent-text); }
.check-list { list-style: none; display: flex; flex-direction: column; }
.check-list li {
  position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-size: 18px;
}
.split-kept .check-list li { border-color: var(--brand-line); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 8px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.split-kept .check-list li::before { color: var(--accent); }
.split-new .check-list li::before { color: var(--accent-text); }
.footnote { margin-top: auto; font-size: 15px; }
.split-kept .footnote { color: var(--on-brand-muted); }
.split-new .footnote { color: var(--muted); }
.split-divider { background: var(--accent); position: relative; }
.split-divider span {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 820px) {
  .split-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 3px auto; }
}

/* AI-first */
.ai-title { margin-bottom: clamp(32px, 5vw, 56px); }
.def-rows { border-top: 2px solid var(--ink); }
.def-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 10px 64px; padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.def-row dt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.025em; line-height: 1.1;
}
.def-row dd { color: var(--muted); font-size: 18px; max-width: 560px; align-self: center; }

/* Bands (green) */
.band { background: var(--brand); color: var(--on-brand); padding-block: clamp(72px, 10vw, 128px); }
.own-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 28px 72px; align-items: end;
}
.own-grid h2 { font-size: clamp(38px, 6vw, 76px); }
.own-hl { display: block; }
.own-grid p { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-brand-muted); max-width: 520px; }

/* Calculator */
.calc {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.calc-inputs {
  background: var(--surface); padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 26px;
}
.calc-result {
  background: var(--brand); color: var(--on-brand);
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
}
.calc-pre { font-size: 18px; color: var(--on-brand-muted); }
.calc-total {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 8vw, 104px); line-height: 1; letter-spacing: -0.045em;
  color: var(--accent); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-breakdown { font-size: 18px; color: var(--on-brand-muted); margin-bottom: 18px; }
.calc-breakdown strong { color: var(--on-brand); font-weight: 600; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.req { color: var(--accent-text); }
.field input, .field select, .input-prefix {
  width: 100%; min-height: 50px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.3 var(--font-body);
  padding: 12px 14px;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .input-prefix:hover { border-color: var(--muted); }
.input-prefix { display: flex; align-items: center; gap: 6px; padding: 0 0 0 14px; }
.input-prefix span { color: var(--muted); }
.input-prefix input { border: 0; min-height: 48px; padding-left: 0; background: transparent; }
.input-prefix:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.input-prefix input:focus-visible { outline: none; }
.hint { font-size: 14px; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { font-size: 14px; font-weight: 500; color: var(--danger); }
.field-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px;
}

/* Team */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px 72px; align-items: start;
}
.team-copy { display: flex; flex-direction: column; gap: 20px; }
.team-copy h2 { margin-bottom: 8px; }
.people {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px;
}
.person { display: flex; flex-direction: column; gap: 4px; }
.photo-ph {
  aspect-ratio: 4 / 5; border-radius: 12px; margin-bottom: 12px;
  border: 2px dashed var(--muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.person-name { font-weight: 600; }
.person-role, .person-bio, .person-link { color: var(--muted); font-size: 15px; }
.person-link { margin-top: 6px; text-decoration: underline; text-decoration-style: dashed; }

/* Score request */
.score-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px 72px; align-items: start;
}
.score-copy { display: flex; flex-direction: column; gap: 24px; }
.score-copy > p { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-brand-muted); max-width: 520px; }
.founding {
  border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; max-width: 520px;
}
.founding-badge {
  align-self: flex-start;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.founding p { font-size: 18px; }
.form-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
}
.score-form { display: flex; flex-direction: column; gap: 22px; }
.form-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: -8px; }
.form-error {
  font-size: 15px; color: var(--danger); font-weight: 500;
  border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 12px 14px;
}
.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 19px; font-weight: 500; line-height: 1.45;
}
.form-success svg { color: var(--ok); flex: none; margin-top: 1px; }
.form-success:focus { outline: none; }

/* FAQ */
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px 72px; align-items: start;
}
.faq-list { grid-column: span 2; border-top: 2px solid var(--ink); }
@media (max-width: 760px) { .faq-list { grid-column: auto; } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em; line-height: 1.2;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding-bottom: 24px; color: var(--muted); max-width: 680px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { flex: 1 1 380px; }
.footer-inner .wordmark { color: var(--ink); }
.footer-inner a { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
