:root {
  --bg: #f4f2ed;          /* warm paper */
  --bg-deep: #ebe8e1;     /* recessed bands */
  --ink: #1b1c1f;
  --ink-2: #55575d;       /* secondary text, 6.4:1 on --bg */
  --rule: #d9d5cc;
  --card: #fbfaf7;         /* raised surfaces, still off-white */
  --accent: #2a44d4;      /* the one accent: Fleets blue */
  --accent-ink: #1f36b0;  /* hover / pressed */
  --error: #b3261e;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.012em; line-height: 1.25; }
p { text-wrap: pretty; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.42; color: var(--ink-2); max-width: 36em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: 500 17px var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-quiet:hover { background: rgba(42, 68, 212, 0.07); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 15px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 242, 237, 0.94); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.logo svg { width: 30px; height: auto; }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; font-size: 15px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; }
.menu a:not(.btn):hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); font: 500 15px var(--font); }

/* Hero */
.hero { text-align: center; padding-top: clamp(40px, 6vw, 80px); }
.hero .lede { margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.stage {
  position: relative; height: clamp(460px, 60vw, 760px); margin-top: 0;
  /* the bust fades into the page instead of ending at a hard crop */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.no-webgl { display: none; }

/* Sections */
main > section:not(.hero) { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--bg-deep); }
section h2 { margin-bottom: 20px; max-width: 16em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .btn { margin-top: 30px; }

/* Pricing demo */
.calc { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.field-row + input { margin-bottom: 22px; }
.field-row output { font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--accent); height: 28px; }
.readout { display: grid; grid-template-columns: 1fr 1.25fr 1fr; border-top: 1px solid var(--rule); margin-top: 6px; }
.readout div { padding: 20px 0 6px; }
.readout div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.readout dt { font-size: 13px; color: var(--ink-2); }
.readout dd { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.readout .lead dd { color: var(--accent); font-size: clamp(28px, 3.2vw, 38px); }
.fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 18px; }

/* Steps */
.steps { list-style: none; padding: 0; margin-top: 48px; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.step-num { font-size: 44px; font-weight: 300; color: var(--accent); line-height: 1; }
.steps p { color: var(--ink-2); }

/* Fact lists */
.facts > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--ink-2); }
.facts.compact { margin-top: 28px; }
.facts.compact dt { color: var(--accent); font-size: 14px; }

/* Sample deal summary */
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 28px 30px; box-shadow: 0 30px 60px -40px rgba(27, 28, 31, 0.35); }
.sheet figcaption { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding-bottom: 14px; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.sheet dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.sheet dt { color: var(--ink-2); }
.sheet dd { font-weight: 500; text-align: right; }

/* Match form */
.match { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.match-intro { position: sticky; top: 100px; }
.match-form, .done { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend, .field label { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.roles { display: grid; gap: 10px; }
.role { position: relative; display: block; cursor: pointer; }
.role input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role span { display: block; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; font-weight: 600; background: var(--bg); }
.role small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.role input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(42, 68, 212, 0.05); }
.role input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty { padding: 18px; border: 1px dashed var(--rule); border-radius: 12px; color: var(--ink-2); font-size: 15px; text-align: center; }
.role-set { display: grid; gap: 22px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks legend { width: 100%; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.field { display: grid; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid #c4bfb4;
  background: var(--bg); color: var(--ink); font: 16px var(--font);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.optional { font-weight: 400; color: var(--ink-2); }
.error { color: var(--error); font-size: 14px; margin-top: 6px; }
.checks .error { width: 100%; margin-top: 0; }
.error-summary { border: 1px solid var(--error); border-radius: 12px; padding: 16px 18px; background: rgba(179, 38, 30, 0.05); }
.error-summary h3 { font-size: 16px; color: var(--error); }
.error-summary ul { margin-top: 8px; padding-left: 20px; }
.error-summary a { color: var(--error); }
.match-form .btn { justify-self: start; }
.match-form .fine { margin-top: -8px; }
.done h3 { font-size: 26px; }
.done p { color: var(--ink-2); }
.done pre { white-space: pre-wrap; font: 14px/1.6 ui-monospace, "SF Mono", Consolas, monospace; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 0 64px; }
.foot .wrap { display: grid; gap: 12px; }
.foot .logo { font-size: 19px; }
.foot .logo svg { width: 26px; }
.foot .fine { max-width: 62em; margin-top: 0; }

@media (max-width: 900px) {
  .split, .match { grid-template-columns: 1fr; }
  .match-intro { position: static; }
}
@media (max-width: 600px) {
  .steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; }
  .steps li p { grid-column: 2; }
  .step-num { font-size: 30px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .grid2 { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr 1fr; }
  .readout .lead { grid-column: 1 / -1; order: -1; padding-left: 0; border-left: 0; }
  .readout div:first-child { padding-left: 0; border-left: 0; }
  .match-form .btn, .done-actions .btn { width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .stage { -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 88%); mask-image: linear-gradient(to bottom, #000 50%, transparent 88%); }
  .menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--rule);
  }
  .menu.open { display: flex; }
  .menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .menu li:last-child { margin-top: 16px; }
  .menu .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
