@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 600;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/roboto-mono-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 600;
}

:root {
  color-scheme: light;
  --accent-2: #f3fafe;
  --accent-3: #e0f5ff;
  --accent-4: #cdeeff;
  --accent-5: #b9e5fe;
  --accent-6: #a3d9f8;
  --accent-7: #85c9ef;
  --accent-8: #4fb3e4;
  --accent-9: #1d9dd3;
  --accent-10: #1a90c2;
  --accent-11: #0079ad;
  --accent-12: #123a4e;
  --slate-7: #bad3e2;
  --slate-8: #9fc1d6;
  --slate-9: #7193a7;
  --slate-10: #4d6878;
  --ink-8: #a5c0d4;
  --ink-9: #7892a5;
  --ink-11: #516778;
  --ink-12: #13212b;
  --dark-8: #afbec7;
  --dark-9: #819098;
  --dark-11: #59666e;
  --dark-12: #0b1419;
  --accent: var(--accent-9);
  --accent-strong: var(--accent-11);
  --on-accent: var(--ink-12);
  --benchmark-accent: var(--accent-11);
  --accent-soft: var(--accent-3);
  --ink: var(--ink-12);
  --ink-soft: var(--slate-10);
  --muted: var(--ink-11);
  --line: var(--slate-7);
  --line-strong: var(--slate-8);
  --surface: #ffffff;
  --surface-subtle: var(--accent-2);
  --page: #fdfdfd;
  --success: var(--accent-11);
  --warning: #8a5a00;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --max: 1180px;
  --radius: 12px;
  --header-height: 64px;
  --font-body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --accent: var(--accent-8);
  --accent-strong: var(--accent-7);
  --benchmark-accent: var(--accent-8);
  --accent-soft: var(--accent-12);
  --ink: var(--accent-2);
  --ink-soft: var(--dark-8);
  --muted: var(--dark-9);
  --line: var(--dark-11);
  --line-strong: var(--slate-9);
  --surface: var(--ink-12);
  --surface-subtle: var(--dark-12);
  --page: var(--dark-12);
  --success: var(--accent-7);
  --warning: #f0bd62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spec-banner {
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--ink-soft);
  padding: 8px 20px;
  text-align: center;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.header-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.nav-group {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
}

.nav-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.nav-chevron {
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-group[data-open="true"] .nav-trigger {
  color: var(--accent-strong);
}

.nav-group[data-open="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  z-index: 30;
  display: grid;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 8px -8px rgb(11 13 16 / 30%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  visibility: hidden;
  transition:
    opacity 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 160ms;
}

.nav-group[data-open="true"] .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown a {
  min-height: 42px;
  border-radius: 7px;
  padding: 9px 11px;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--surface-subtle);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.menu-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button {
  display: none;
  padding: 0 12px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 40px), 780px);
  margin-inline: auto;
}

.page-hero {
  padding: clamp(var(--space-7), 8vw, 112px) 0 clamp(var(--space-6), 7vw, var(--space-8));
}

.page-hero h1,
.marketing-hero h1 {
  max-width: 930px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.page-hero p,
.marketing-hero p {
  max-width: 68ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  text-wrap: pretty;
}

.spec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}

.spec-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}

.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-accent) 28%, transparent);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  padding-inline: 2px;
  color: var(--accent-strong);
}

.decision-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-subtle);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.decision {
  min-height: 136px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.decision:last-child {
  border-right: 0;
}

.decision strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
}

.decision p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.review-section {
  padding: clamp(56px, 7vw, var(--space-8)) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-heading h2,
.content-copy h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.route-list,
.copy-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li,
.copy-list li,
.check-list li {
  border-top: 1px solid var(--line);
}

.route-list a,
.copy-list li,
.check-list li {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr);
  gap: 28px;
  padding: 20px 0;
  text-decoration: none;
}

.route-list a:hover strong {
  color: var(--accent-strong);
}

.route-list code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  grid-column: 1;
  color: var(--accent-strong);
  font-weight: 760;
}

.check-list li {
  grid-template-columns: 28px 1fr;
}

.marketing-hero {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
  text-align: center;
}

.marketing-hero h1,
.marketing-hero p {
  margin-inline: auto;
}

.marketing-hero h1 {
  max-width: 900px;
}

.hero-kicker,
.section-label {
  display: block;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-kicker {
  margin-bottom: 26px;
}

.section-label {
  margin-bottom: 18px;
}

.prompt-form {
  width: min(100%, 780px);
  margin: 42px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.prompt-form:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.prompt-form input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
  font-size: 16px;
}

.prompt-form input::placeholder {
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

.prompt-form button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  font-weight: 600;
}

.prompt-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.prompt-status {
  min-height: 24px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  padding-inline: 8px;
  color: var(--ink-soft);
  font-weight: 620;
  text-underline-offset: 4px;
}

button.secondary-action {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.founder-strip {
  display: block;
  border-block: 1px solid var(--line);
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}

.stack-heading {
  align-items: start;
}

.stack-heading > div {
  max-width: 800px;
}

.stack-heading > p {
  padding-top: 36px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-strong);
}

.stack-pillar {
  min-height: 310px;
  padding: 28px 30px 34px;
  border-right: 1px solid var(--line);
}

.stack-pillar:last-child {
  border-right: 0;
}

.pillar-number,
.trace-line span,
.trace-line b,
.strategy-card-top,
.strategy-card dt,
.strategy-card dd {
  font-family: var(--font-mono);
}

.pillar-number {
  display: block;
  margin-bottom: 72px;
  color: var(--muted);
  font-size: 12px;
}

.stack-pillar h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
}

.stack-pillar p {
  max-width: 35ch;
  margin: 0;
  color: var(--ink-soft);
}

.quant-layout,
.benchmark-layout,
.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(48px, 9vw, 124px);
  align-items: start;
}

.quant-trace {
  border-top: 2px solid var(--ink);
}

.trace-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}

.trace-line span,
.trace-line b {
  font-size: 11px;
  font-weight: 500;
}

.trace-line span {
  color: var(--muted);
}

.trace-line b {
  color: var(--success);
}

.trace-line strong {
  font-size: 14px;
  font-weight: 500;
}

.benchmark-section {
  background: var(--surface-subtle);
}

.benchmark-section .section-label,
.benchmark-section .text-link {
  color: var(--benchmark-accent);
}

.benchmark-results {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.benchmark-result,
.benchmark-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink-soft);
}

.benchmark-result strong,
.benchmark-summary strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
}

.benchmark-result-lead {
  color: var(--ink);
}

.benchmark-result-lead strong,
.benchmark-summary strong {
  color: var(--benchmark-accent);
}

.benchmark-summary {
  margin-top: 10px;
  font-size: 13px;
}

.benchmark-results small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
}

.product-story-reverse .content-copy {
  order: 2;
}

.product-story-reverse .product-crop {
  order: 1;
}

.content-copy h2 {
  font-size: clamp(42px, 5vw, 66px);
}

.content-copy p {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}

.content-copy .text-link {
  margin-top: 20px;
}

.product-crop {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.compact-crop {
  min-height: 330px;
}

.product-crop::after {
  content: "Spec preview — replace with current product capture";
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--page);
  padding: 7px 9px;
  font-size: 11px;
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.mock-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.chat-mock,
.watchlist-mock {
  padding: 24px;
}

.chat-line {
  max-width: 86%;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 13px 15px;
  color: var(--ink-soft);
  font-size: 14px;
}

.chat-line.user {
  margin-left: auto;
  background: var(--accent-soft);
  color: var(--ink);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.proof-row span,
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mock-table td:first-child,
.mock-table th:first-child {
  font-family: var(--font-mono);
}

.mock-table th,
.mock-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 8px;
  text-align: left;
}

.mock-table th {
  color: var(--muted);
  font-weight: 600;
}

.mock-table td:last-child {
  color: var(--ink-soft);
}

.strategy-heading > div:first-child {
  max-width: 720px;
}

.strategy-heading > div:last-child {
  max-width: 48ch;
}

.strategy-heading .text-link {
  margin-top: 16px;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.strategy-card {
  min-height: 330px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 28px;
}

.strategy-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 11px;
}

.strategy-card-top b {
  color: var(--success);
  font-weight: 500;
}

.strategy-card h3 {
  margin: 34px 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.strategy-card > p,
.strategy-card > small {
  color: var(--muted);
}

.strategy-card > p {
  min-height: 48px;
  margin: 0 0 26px;
}

.strategy-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 26px;
  border-block: 1px solid var(--line);
}

.strategy-card dl div {
  padding: 16px 6px 16px 0;
}

.strategy-card dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.strategy-card dd {
  margin: 0;
  font-size: 13px;
}

.strategy-card > small {
  display: block;
  font-size: 13px;
}

.mission-section {
  background: var(--ink);
  color: var(--page);
}

.mission-layout {
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1.65fr);
}

.mission-layout h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.mission-layout p {
  max-width: 61ch;
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--page) 72%, transparent);
  font-size: 18px;
}

.mission-layout .text-link {
  margin-top: 18px;
  color: var(--accent);
}

[data-theme="dark"] .mission-layout .section-label,
[data-theme="dark"] .mission-layout .text-link {
  color: var(--accent-strong);
}

[data-theme="dark"] .mission-layout .text-link:focus-visible {
  outline-color: var(--accent-strong);
}

.solution-rows {
  border-top: 2px solid var(--ink);
}

.solution-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(280px, 1.35fr) auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  text-decoration: none;
}

.solution-row:hover strong,
.solution-row:hover b {
  color: var(--accent-strong);
}

.solution-row span {
  color: var(--muted);
}

.individual-path {
  margin-top: 28px;
  color: var(--ink-soft);
}

.individual-path a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: var(--accent-strong);
  font-weight: 680;
}

.final-prompt {
  padding: clamp(var(--space-7), 9vw, 112px) 0;
  text-align: center;
}

.final-prompt h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.final-prompt .button,
.final-prompt .secondary-action {
  margin-top: var(--space-5);
}

.intro-preview {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--page);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 0, 0, 1);
}

.intro-preview[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.intro-word {
  min-width: min(86vw, 720px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(58px, 12vw, 148px);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-align: center;
}

.intro-preview button {
  position: absolute;
  right: 20px;
  top: 20px;
}

.page-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 6px;
}

.page-tools button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 8px 11px;
  cursor: pointer;
}

.page-tools button:hover {
  background: var(--surface-subtle);
}

.tree {
  border-top: 2px solid var(--ink);
}

.tree-group {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(300px, 1.6fr);
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.tree-group h3 {
  margin: 0;
}

.tree-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-group li + li {
  margin-top: 10px;
}

.tree-group code {
  color: var(--muted);
  font-family: var(--font-mono);
}

.notice {
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 18px;
  color: var(--ink-soft);
}

.notice strong {
  color: var(--ink);
}

.page-baseline {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.page-baseline:first-of-type {
  border-top: 2px solid var(--ink);
}

.page-baseline h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.page-baseline > p {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.page-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-column {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  background: var(--surface);
  padding: clamp(var(--space-4), 3vw, var(--space-5));
}

.page-column h2,
.page-column h3 {
  margin: 0 0 var(--space-2);
  font-size: 18px;
}

.page-column p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-column .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-4);
}

@media (min-width: 921px) and (max-width: 1100px) {
  .pricing-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer {
  padding: 40px 0 90px;
  color: var(--muted);
  font-size: 13px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 4px;
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--page);
    padding: 12px 20px 20px;
  }

  .header-nav[data-open="true"] {
    display: flex;
  }

  .header-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-trigger {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-group[data-open="true"] .nav-dropdown {
    display: grid;
  }

  .nav-dropdown a {
    border-bottom: 0;
  }

  .product-story,
  .quant-layout,
  .benchmark-layout,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .page-columns {
    grid-template-columns: 1fr;
  }

  .page-column {
    min-height: 0;
  }

  .product-story {
    gap: 34px;
  }

  .product-story-reverse .content-copy,
  .product-story-reverse .product-crop {
    order: initial;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .stack-pillar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stack-pillar:last-child {
    border-bottom: 0;
  }

  .pillar-number {
    margin-bottom: 28px;
  }

  .product-crop {
    min-height: 360px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .decision:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .page-hero h1,
  .marketing-hero h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .page-hero {
    padding: 56px 0 var(--space-6);
  }

  .review-section {
    padding: var(--space-6) 0;
  }

  .marketing-hero {
    min-height: auto;
    padding: 92px 0 78px;
  }

  .marketing-hero p,
  .page-hero p {
    font-size: 18px;
  }

  .prompt-form {
    margin-top: 32px;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision:last-child {
    border-bottom: 0;
  }

  .route-list a,
  .copy-list li,
  .solution-row,
  .tree-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .solution-row b {
    display: none;
  }

  .product-crop {
    min-height: 330px;
  }

  .strategy-cards {
    grid-template-columns: 1fr;
  }

  .secondary-card {
    display: none;
  }

  .strategy-card {
    min-height: 0;
    padding: 22px;
  }

  .trace-line {
    grid-template-columns: 64px 1fr;
  }

  .trace-line b {
    grid-column: 2;
  }

  .chat-mock,
  .watchlist-mock {
    padding: 16px;
  }

  .page-tools {
    position: static;
    width: min(calc(100% - 28px), var(--max));
    justify-content: center;
    margin: 20px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
