/* SmartInvestorCRM public site — hand-written, no build step.
   Nocturne design system: blue-grey ground, blurple accent, Inter, 8px radii,
   outlined primaries. Token values mirror apps/crm/src/index.css in the app
   repo so the two read as one product — keep the two :root blocks in step. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  /* The one full-bleed saturated band. Deck-scale fill, not an interface
     color — nothing else on the page may flood with it. */
  --color-section: #262a60;
  --color-section-glow: #353b80;

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  /* Text tints used often enough to be worth naming. */
  --text-72: color-mix(in srgb, var(--color-text) 72%, transparent);
  --text-62: color-mix(in srgb, var(--color-text) 62%, transparent);
  --text-50: color-mix(in srgb, var(--color-text) 50%, transparent);
  --text-45: color-mix(in srgb, var(--color-text) 45%, transparent);

  /* Legacy aliases — 404.html paints itself with these. */
  --blue: var(--color-accent);
  --text: var(--color-text);
  --muted: var(--color-neutral-400);
  --dim: var(--color-neutral-600);
  --border: var(--color-neutral-800);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Anchor links glide. Note this also animates programmatic scrollTo. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  /* Headings never exceed weight 500 — hierarchy is size and space. */
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-300);
}
img {
  display: block;
  max-width: 100%;
}
/* `hidden` has to beat the layout classes on .btn and .foot, which set an
   explicit display and would otherwise keep them on screen. */
[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

/* Freestanding rules fade to transparent over 48px at each end — a Nocturne
   signature. Box outlines and in-control separators stay solid. */
.hr {
  height: 1px;
  border: 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px),
    transparent
  );
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
}

/* ── Buttons ──────────────────────────────────────────────────────────────
   Primaries are OUTLINED, never filled. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg {
  display: block;
  flex: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}
.btn-primary:active {
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.btn-secondary {
  border-color: var(--color-divider);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  color: var(--color-text);
}
.btn-secondary:active {
  background: color-mix(in srgb, var(--color-text) 14%, transparent);
}
.btn-ghost {
  color: var(--color-accent);
  padding-inline: 4px;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.btn-lg {
  font-size: 15px;
  padding: 11px 22px;
}
.btn-block {
  width: 100%;
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.field > label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.input::placeholder {
  color: var(--color-neutral-600);
}
.input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}

/* ── Cards & tags ─────────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
}
.card-body {
  font-size: 13px;
  opacity: 0.8;
  flex: 1;
}
.elev-sm {
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 6px;
}
.tag-accent {
  background: var(--color-accent-800);
  color: var(--color-accent-100);
}
.tag-neutral {
  background: var(--color-neutral-800);
  color: var(--color-neutral-100);
}
.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* The kicker that opens every section: a 26px accent bar, then the label. */
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--color-accent);
}

/* ══ Nav ═════════════════════════════════════════════════════════════════ */
nav.site {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 34px;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
nav.site .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
nav.site .links {
  display: none;
  gap: 26px;
  align-items: center;
}
nav.site .links a,
nav.site .signin {
  font-size: 13.5px;
  color: var(--text-62);
}
nav.site .links a:hover,
nav.site .signin:hover {
  color: var(--color-accent);
}

/* ══ Hero ════════════════════════════════════════════════════════════════
   Left-aligned and asymmetric: content hugs the left edge, whitespace sits
   on the right. No centred hero column. */
.hero {
  position: relative;
  padding: 110px 34px 96px;
  max-width: 1320px;
  margin: 0 auto;
}
.hero .glow {
  position: absolute;
  top: -140px;
  left: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 132, 217, 0.16), transparent 68%);
  pointer-events: none;
}
.hero .col {
  position: relative;
  display: grid;
  gap: 26px;
  max-width: 1000px;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: 20px;
  line-height: 1.5;
  max-width: 58ch;
  color: var(--text-72);
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.hero .fineprint {
  font-size: 12.5px;
  color: var(--text-45);
}
.markets {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 52px;
}
.markets .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 42%, transparent);
  margin-right: 6px;
}

/* ══ The scroll story ════════════════════════════════════════════════════
   280vh of section = 1.8 viewports of scroll across four acts. All the
   motion is written straight to element.style by assets/story.js; the CSS
   only sets the stage. */
.story {
  position: relative;
  height: 280vh;
  border-top: 1px solid var(--color-divider);
}
.story .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: center;
  padding: 0 34px;
  overflow: hidden;
}
.story .pin::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 62% 45%, rgba(145, 132, 217, 0.1), transparent 70%);
}
.story .inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.rail {
  display: none;
  flex-direction: column;
  gap: 2px;
}
.rail .item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  opacity: 0.3;
  transition: opacity 0.35s;
}
.rail .n {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.rail .t {
  font-size: 13.5px;
  line-height: 1.25;
}
.rail .t span {
  opacity: 0.55;
}
.rail .rule {
  height: 1px;
  margin: 16px 0 12px;
  background: linear-gradient(to right, var(--color-divider), transparent);
}
.rail .foot {
  font-size: 11.5px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--color-text) 40%, transparent);
}

/* Stage height has to scale with the viewport or the acts float in tall
   windows. */
.stage {
  position: relative;
  height: clamp(460px, 72vh, 820px);
}
.act {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  opacity: 0;
}
.act[data-act='0'] {
  opacity: 1;
}
.act h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.act .sub {
  font-size: 15px;
  max-width: 62ch;
  color: var(--text-62);
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-neutral-900);
}
.progress-track .fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
}

/* Act 1 — the feeds converging on the scoring engine */
.act-feeds {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}
.sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
}
.wires {
  display: none;
  width: 100%;
  height: 230px;
}
@keyframes flow {
  to {
    stroke-dashoffset: -220;
  }
}
.wires .moving {
  animation: flow 3.2s linear infinite;
}
.core-wrap {
  display: flex;
  justify-content: flex-start;
}
.core {
  width: 132px;
  height: 132px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  animation: corepulse 3.4s ease-in-out infinite;
}
.core p {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
@keyframes corepulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(145, 132, 217, 0.32), 0 0 40px rgba(145, 132, 217, 0.18);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(145, 132, 217, 0), 0 0 64px rgba(145, 132, 217, 0.3);
  }
}

/* Act 2 — every block gets a number */
.score-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-auto-rows: 1fr;
  gap: 5px;
  align-content: stretch;
}
.score-grid .cell {
  border-radius: 3px;
  background: #292b31;
  opacity: 0.35;
  min-height: 14px;
  transition: background 0.5s, opacity 0.5s;
}
.score-grid .badge {
  position: absolute;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--color-accent-800);
  color: var(--color-accent-100);
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -140%);
}

/* Act 3 — one address surfaces */
.act-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.deal-card {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.deal-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-divider);
}
.deal-card .addr {
  font-size: 15px;
  font-family: var(--font-heading);
}
.deal-card .meta {
  font-size: 11.5px;
  color: var(--text-50);
}
.deal-card .metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.deal-card .metric {
  padding: 16px 18px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.deal-card .metric .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-45);
}
.deal-card .metric .v {
  margin-top: 4px;
  font-size: 24px;
  font-family: var(--font-heading);
}
.deal-card .foot {
  padding: 14px 18px;
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.deal-card .foot .signal {
  color: var(--color-accent-300);
}
.ring-wrap {
  display: grid;
  place-items: center;
  padding: 18px 0;
}

/* Act 4 — it gets executed */
.act-execute {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.loi {
  position: relative;
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  padding: 24px 26px;
  min-height: 300px;
}
.loi .kick {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.loi .title {
  margin: 3px 0 18px;
  font-size: 17px;
  font-family: var(--font-heading);
}
.loi .lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.loi .lines i {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: var(--color-neutral-800);
  transform: scaleX(0);
  transform-origin: left;
}
.loi .terms {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
  font-size: 12px;
}
.loi .terms .k {
  color: var(--text-45);
}
.loi .terms .v {
  margin-top: 2px;
  font-size: 16px;
  font-family: var(--font-heading);
}
.loi .stamp {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 7px 14px;
  border: 1.5px solid var(--color-accent);
  border-radius: 6px;
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  transform: rotate(-8deg) scale(0.7);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.stages {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stages .row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.stages .row.done {
  background: var(--color-accent-900);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  color: var(--color-accent-200);
}
.stages .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}
.stages .when {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-45);
}
.stages .row.done .when {
  color: inherit;
}

/* ══ Survey ══════════════════════════════════════════════════════════════ */
.fit {
  position: relative;
  padding: 110px 34px;
  border-top: 1px solid var(--color-divider);
}
.fit::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 25% 30%, rgba(145, 132, 217, 0.1), transparent 70%);
}
.fit .grid {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.fit h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
  max-width: 14ch;
}
.fit .blurb {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 46ch;
  color: color-mix(in srgb, var(--color-text) 66%, transparent);
}
.fit .points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fit .points div {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-72);
}
.fit .points svg {
  margin-top: 3px;
  flex: none;
}

.survey {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
/* Child combinator throughout: the result panel has its own .head, and a
   descendant selector would hand it the survey chrome's padding and rule. */
.survey > .head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-divider);
}
.survey .step {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-50);
  white-space: nowrap;
}
.survey .bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--color-neutral-900);
  overflow: hidden;
}
.survey .bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.35s ease;
}
.survey .viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.survey .track {
  display: flex;
  width: 800%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.survey .panel {
  width: 12.5%;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.survey .panel h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
}
.survey .panel .hint {
  margin-top: -8px;
  font-size: 13px;
  color: var(--text-50);
}
.survey .opts {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.survey > .foot {
  padding: 14px 24px;
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: 12px;
}
.survey > .foot .note {
  font-size: 12px;
  color: var(--text-45);
}

/* The option control. A <label> wrapping a visually-hidden radio. */
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
  font-size: 14px;
  transition: 0.18s;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.opt .dot {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--color-neutral-700);
}
.opt strong {
  font-weight: 500;
}
.opt .desc {
  display: block;
  font-size: 12px;
  color: var(--text-50);
}
.opt:hover {
  border-color: color-mix(in srgb, var(--color-text) 40%, transparent);
}
.opt:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-900);
  box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 24px rgba(145, 132, 217, 0.14);
}
.opt:has(input:checked) .dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: inset 0 0 0 3.5px var(--color-bg);
}
.opt:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Honeypot: off-canvas rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.result .head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result .check {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-accent-800);
}
.result .body {
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.result .summary {
  border-radius: 10px;
  background: var(--color-bg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.result .summary .kick {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.result .summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.result .summary .row span:first-child {
  color: var(--text-50);
}
.result .summary .row span:last-child {
  text-align: right;
}
.result .error {
  font-size: 12px;
  color: var(--color-accent-300);
}

/* ══ The desk ════════════════════════════════════════════════════════════ */
.section {
  padding: 104px 34px;
  border-top: 1px solid var(--color-divider);
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  margin: 18px 0 14px;
  max-width: 18ch;
}
.section .dek {
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 60ch;
  color: var(--text-62);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ══ Stat band — the one saturated field on the page ═════════════════════ */
.band {
  padding: 80px 34px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-section);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 20% 0%, var(--color-section-glow), transparent 70%);
  pointer-events: none;
}
.band .grid {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.band .fig {
  font-size: clamp(34px, 4.4vw, 54px);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}
.band .cap {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(233, 233, 237, 0.62);
}

/* ══ Pricing ═════════════════════════════════════════════════════════════ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan.featured {
  box-shadow: inset 0 0 0 1px var(--color-accent), 0 16px 40px rgba(0, 0, 0, 0.55);
}
.plan .badge {
  position: absolute;
  top: -11px;
  left: 26px;
}
.plan .name {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-50);
}
.plan.featured .name {
  color: var(--color-accent);
}
.plan .price {
  margin: 8px 0 2px;
  font-size: 40px;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}
.plan .price .per {
  font-size: 15px;
  color: var(--text-45);
}
.plan .tagline {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.plan ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.plan li {
  display: flex;
  gap: 9px;
}
.plan li svg {
  margin-top: 3px;
  flex: none;
}
.plan .btn {
  margin-top: auto;
  padding: 10px;
}

/* ══ FAQ ═════════════════════════════════════════════════════════════════ */
.faq {
  max-width: 900px;
  margin: 0 auto;
}
.faq h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.faq details {
  border-bottom: 1px solid var(--color-divider);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .chev {
  margin-left: auto;
  flex: none;
  transition: transform 0.2s;
}
.faq details[open] .chev {
  transform: rotate(180deg);
}
.faq .answer {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}

/* ══ Close + footer ══════════════════════════════════════════════════════ */
.close {
  padding: 120px 34px;
  border-top: 1px solid var(--color-divider);
}
.close h2 {
  font-size: clamp(32px, 4.6vw, 62px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 16ch;
  line-height: 1.05;
}
.close p {
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 52ch;
  color: var(--text-62);
}
.close .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site {
  padding: 34px;
  border-top: 1px solid var(--color-divider);
}
footer.site .inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer.site .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text);
}
footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
}
footer.site .links a {
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
footer.site .links a:hover {
  color: var(--color-accent);
}
footer.site .legal {
  width: 100%;
  font-size: 11.5px;
  color: color-mix(in srgb, var(--color-text) 38%, transparent);
}

/* ══ Wide layouts ════════════════════════════════════════════════════════
   Below 900px the story rail hides, the story and survey collapse to one
   column, and the act bodies stack. */
@media (min-width: 900px) {
  nav.site .links {
    display: flex;
  }
  .story .inner {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .rail {
    display: flex;
  }
  .act-feeds {
    grid-template-columns: 230px 1fr 190px;
    gap: 0;
  }
  .wires {
    display: block;
  }
  .core-wrap {
    justify-content: flex-end;
  }
  .act-surface {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .act-execute {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .deal-card .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .deal-card .metric {
    border-bottom: 0;
  }
  .deal-card .metric:last-child {
    border-right: 0;
  }
  .fit .grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

@media (max-width: 899px) {
  .deal-card .metric:nth-child(2n) {
    border-right: 0;
  }
  .deal-card .metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  nav.site,
  .hero,
  .fit,
  .section,
  .band,
  .close,
  footer.site {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .section,
  .fit {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .survey .panel {
    padding: 22px 18px;
  }
}

/* Motion is decoration here — the acts still read as static panels when the
   user has asked for less of it. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wires .moving,
  .core {
    animation: none;
  }
  .survey .track,
  .survey .bar i,
  .loi .stamp,
  .stages .row,
  .score-grid .cell,
  .score-grid .badge,
  .rail .item {
    transition: none;
  }
}
