/* TimelyNodes marketing site (the redesigned pages).

   Direction: order out of constraint. A calm, light editorial base for a university and
   enterprise reader, with one dark chapter where the engine and the product are shown.
   The dark tokens are the operator app's (web/src/globals.css), so moving from the site
   into "Try the demo" feels like the same product.

   Rules this file keeps:
   - One accent (teal). Light surfaces use the darker step for text contrast.
   - Radius: cards and frames 14px, buttons and inputs 10px, pills only for tags.
   - Motion lives in shared/site.js. This file only defines end states and the
     no-JS / reduced-motion rendering, which is always complete.

   The research pages (universities.html, wishlist.html) still use styles.css. */

@font-face {
  font-family: 'Geist';
  src: url('vendor/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('vendor/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f6f8;
  --paper-2: #eceef2;
  --card: #ffffff;
  --ink: #11151c;
  --ink-2: #3a424f;
  --ink-3: #5d6674;
  --line: #dde1e7;
  --line-2: #c9ced7;

  --accent: #0b7a6c;          /* 5.3:1 on white, used for text and primary buttons */
  --accent-hover: #09675b;
  --accent-soft: #e2f3f0;

  /* Operator-app tokens, for the dark chapter */
  --night: #0e1117;
  --night-2: #151922;
  --night-3: #1d222d;
  --night-line: #2a303c;
  --night-ink: #edf0f5;
  --night-ink-2: #a3acba;
  --night-accent: #3cc9b0;
  --conflict: #e0533d;

  --r-card: 14px;
  --r-ctl: 10px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(17, 21, 28, 0.04), 0 12px 32px -12px rgba(17, 21, 28, 0.14);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* z-index scale */
  --z-nav: 40;
  --z-modal: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--night-accent); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-ctl); background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; }
.icon use { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-ctl);
  font-weight: 550; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.dark .btn-primary { background: var(--night-accent); color: #04211c; }
.dark .btn-primary:hover { background: #5dd8c2; }
.dark .btn-secondary { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.dark .btn-secondary:hover { border-color: var(--night-ink-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--accent); text-decoration: none;
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .25s var(--ease); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { width: 6px; height: 6px; left: 4px; top: 4px; background: var(--night-accent); }
.brand-mark::after { width: 6px; height: 6px; right: 4px; bottom: 4px; background: #fff; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-ctl);
  background: transparent; border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.dark .eyebrow { color: var(--night-accent); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage {
  margin: 0; position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-card); overflow: hidden;
  background: var(--night); box-shadow: 0 30px 80px -30px rgba(14, 17, 23, .55);
}
.hero-stage canvas, .hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage img { object-fit: cover; }
.hero-stage canvas { opacity: 0; transition: opacity .6s var(--ease); }
.hero-stage.live canvas { opacity: 1; }
.hero-stage.live img { opacity: 0; transition: opacity .6s var(--ease); }
.stage-caption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  display: flex; justify-content: space-between; gap: 12px;
  font: 500 12.5px/1.3 var(--mono); color: var(--night-ink-2);
}
.stage-caption b { color: var(--night-accent); font-weight: 500; }

/* Split words (shared/site.js). The accessible name stays on the unsplit parent. */
.split-word { display: inline-block; will-change: transform, opacity; }

/* ---------- Dark chapter ---------- */
.dark { background: var(--night); color: var(--night-ink); }
.dark .section-head p, .dark .muted { color: var(--night-ink-2); }
.chapter-edge { height: 1px; background: var(--night-line); }

/* Pinned "how a schedule settles" */
.settle-pin { padding-block: clamp(72px, 10vw, 128px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.settle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.settle-steps li { padding-left: 18px; border-left: 2px solid var(--night-line); transition: opacity .4s var(--ease), border-color .4s; }
/* Pinned and scrubbed only when shared/site.js is running (html.motion). */
.motion .settle { height: 360vh; }
.motion .settle-pin { position: sticky; top: 0; height: 100dvh; padding-block: 0; }
.motion .settle-steps li { opacity: .38; }
.motion .settle-steps li.on { opacity: 1; border-left-color: var(--night-accent); }
.settle-steps h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; }
.settle-steps p { color: var(--night-ink-2); font-size: 16px; }
.settle-canvas { position: relative; aspect-ratio: 6 / 5; width: 100%; border-radius: var(--r-card); background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; }
.settle-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.settle-legend { position: absolute; left: 16px; top: 14px; display: flex; gap: 16px; font: 500 12px var(--mono); color: var(--night-ink-2); }
.settle-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-var { width: 9px; height: 9px; border-radius: 50%; background: var(--night-accent); }
.lg-con { width: 9px; height: 9px; background: #8c96ff; transform: rotate(45deg); }
.lg-clash { width: 9px; height: 9px; border-radius: 50%; background: var(--conflict); }

/* Product tour */
.tour { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 64px); }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.tour-steps li:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 12vh; }
.tour-steps .kw { font: 500 13px var(--mono); color: var(--night-accent); margin-bottom: 10px; display: inline-flex; gap: 8px; align-items: center; }
.tour-steps h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.tour-steps p { color: var(--night-ink-2); max-width: 36ch; }
.tour-frame-wrap { position: sticky; top: calc(50dvh - min(29vw, 330px)); align-self: start; }
.frame { border-radius: var(--r-card); overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--night-line); background: var(--night-3); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.frame-bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--night-ink-2); }
.frame-shots { position: relative; aspect-ratio: 16 / 10; background: var(--night); }
.frame-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .5s var(--ease); }
.frame-shots img.on { opacity: 1; }
.tour-mobile-shot { display: none; }
/* Without scroll-linked swapping, each step shows its own screenshot inline. */
html:not(.motion) .tour { grid-template-columns: minmax(0, 1fr); }
html:not(.motion) .tour-frame-wrap { display: none; }
html:not(.motion) .tour-steps li, html:not(.motion) .tour-steps li:first-child { min-height: 0; padding: 0 0 56px; }
html:not(.motion) .tour-mobile-shot { display: block; margin-top: 18px; max-width: min(880px, 100%); border-radius: 10px; border: 1px solid var(--night-line); }

/* ---------- Verticals (bento, exactly four cells) ---------- */
.verticals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.v-cell { text-decoration: none; color: inherit; border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.v-cell h3 { font-size: 22px; }
.v-cell p { color: var(--ink-2); }
.v-cell .icon { width: 26px; height: 26px; color: var(--accent); }
.v-main { grid-column: span 4; grid-row: span 3; background: var(--ink); color: #fff; border-color: var(--ink); justify-content: space-between; min-height: 380px; }
.v-main h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.v-main p { color: #b9c0cc; max-width: 46ch; }
.v-main .icon { color: var(--night-accent); }
.v-main .link-arrow { color: var(--night-accent); }
.v-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v-facts span { font: 500 13px var(--mono); color: #d8dde6; padding: 6px 10px; border-radius: 999px; border: 1px solid #333b48; }
.v-small { grid-column: span 2; }
.v-small:nth-child(3) { background: var(--accent-soft); border-color: #cbe7e1; }
.v-main { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.v-main:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(17, 21, 28, .5); }
.v-main:hover .link-arrow .icon { transform: translateX(3px); }
.v-tag { font: 500 12px var(--mono); color: var(--ink-3); margin-top: auto; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.numbers > div { padding: 28px 24px 8px 0; }
.numbers b { display: block; font-size: clamp(36px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 10px; }
.numbers span { color: var(--ink-3); font-size: 15px; }
.numbers-note { margin-top: 28px; color: var(--ink-3); font-size: 14.5px; max-width: 70ch; }

/* ---------- Guarantees split ---------- */
.promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promise > div { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); }
.promise h3 { font-size: 22px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.promise .hard { background: var(--ink); color: #fff; }
.promise .hard p { color: #b9c0cc; }
.promise .hard .icon { color: var(--night-accent); }
.promise .soft { background: var(--card); border: 1px solid var(--line); }
.promise .soft p { color: var(--ink-2); }
.promise .soft .icon { color: var(--accent); }
.promise ul { margin: 14px 0 0; padding-left: 18px; }
.promise li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font-size: 18px; font-weight: 550;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform .3s var(--ease); color: var(--ink-3); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.faq-list .answer p + p { margin-top: 10px; }

/* ---------- Research band ---------- */
.research { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-card); background: var(--paper-2); }
.research h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.research p { color: var(--ink-2); max-width: 58ch; }
.research-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Closing CTA ---------- */
.closing { text-align: left; }
.closing h2 { font-size: clamp(36px, 5.6vw, 68px); letter-spacing: -0.04em; max-width: 14ch; margin-bottom: 20px; }
.closing p { font-size: 19px; color: var(--night-ink-2); max-width: 44ch; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-ink-2); padding-block: 56px 32px; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer .brand { color: var(--night-ink); }
.footer .brand-mark { background: var(--night-3); }
.footer h4 { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--night-ink-2); margin-bottom: 14px; }
.footer a { display: block; color: var(--night-ink); text-decoration: none; font-size: 14.5px; padding: 4px 0; opacity: .86; }
.footer a:hover { opacity: 1; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13.5px; }
.footer-base a { display: inline; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.035em; max-width: 18ch; margin-bottom: 20px; }
.page-hero p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; }
.page-hero .hero-actions { margin-top: 28px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.stack-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stack-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.stack-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.stack-list h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.stack-list p { color: var(--ink-2); font-size: 15.5px; }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline .when { font: 500 13.5px var(--mono); color: var(--accent); padding-top: 3px; }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); }
.code-block { margin: 0; padding: 22px; border-radius: var(--r-card); background: var(--night); color: #d6dbe4; font: 13.5px/1.7 var(--mono); overflow-x: auto; }
.code-block .k { color: var(--night-accent); } .code-block .s { color: #b7c0ff; } .code-block .n { color: #ffc28a; } .code-block .c { color: #7d8797; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 550; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--ink-3); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-ctl);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 122, 108, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { font-size: 13.5px; color: #b3261e; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; }
.form-status.err { color: #b3261e; }
.form-done { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.form-done h2 { font-size: 26px; margin: 12px 0 10px; }
.form-done .icon { width: 36px; height: 36px; color: var(--accent); }

/* ---------- Reveal end states (motion.js animates from these) ---------- */
[data-reveal] { will-change: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr track grows to fit a 1600px screenshot. */
  .hero-grid, .settle-pin, .tour, .two-col { grid-template-columns: minmax(0, 1fr); }
  .motion .settle { height: auto; }
  .motion .settle-pin { position: static; height: auto; padding-block: 72px; }
  .motion .settle-steps li { opacity: 1; }
  .tour-frame-wrap { display: none; }
  .tour-steps li, .tour-steps li:first-child { min-height: 0; padding: 0 0 48px; }
  .tour-mobile-shot { display: block; margin-top: 18px; border-radius: 10px; border: 1px solid var(--night-line); }
  .verticals { grid-template-columns: minmax(0, 1fr); }
  .v-main, .v-small { grid-column: auto; grid-row: auto; min-height: 0; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
  .nav.open .nav-links a { padding: 12px; font-size: 16px; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; padding-bottom: 8px; }
  .nav.open .nav-cta .btn { flex: 1; }
}
@media (max-width: 640px) {
  .stage-caption span { display: none; }
  .stage-caption { justify-content: flex-end; }
  .promise, .field-row { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- List layouts (heading stacked above, list shaped to its content) ---------- */
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento-5 > li { grid-column: span 2; }
.bento-5 > li:nth-child(-n+2) { grid-column: span 3; }
.bento-5 > li:first-child { background: var(--ink); border-color: var(--ink); }
.bento-5 > li:first-child h3 { color: #fff; }
.bento-5 > li:first-child p { color: #b9c0cc; }
.bento-5 > li:first-child .icon { color: var(--night-accent); }
.bento-5 > li:nth-child(2) { background: var(--accent-soft); border-color: #cbe7e1; }

.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; counter-reset: step; }
.steps-row li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--line-2); display: grid; align-content: start; gap: 8px; }
.steps-row li:first-child { border-top-color: var(--accent); }
.steps-row .when { font: 500 13px var(--mono); color: var(--accent); }
.steps-row .when::before { content: counter(step) "  "; color: var(--ink-3); }
.steps-row h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }
.steps-row p { color: var(--ink-2); font-size: 15.5px; }

.rows { gap: 0; max-width: 980px; }
.rows > li { grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows > li > div { display: contents; }
.rows h3 { font-size: 19px; }

@media (max-width: 980px) {
  .steps-row { grid-auto-flow: row; grid-auto-columns: auto; gap: 28px; }
  .bento-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-5 > li, .bento-5 > li:nth-child(-n+2) { grid-column: span 1; }
  .bento-5 > li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .card-grid, .bento-5 { grid-template-columns: minmax(0, 1fr); }
  .rows > li { grid-template-columns: auto minmax(0, 1fr); }
  .rows > li p { grid-column: 2; }
}
.steps-dark li { border-top-color: var(--night-line); }
.steps-dark li:first-child { border-top-color: var(--night-accent); }
.steps-dark .when { color: var(--night-accent); }
.steps-dark .when::before { color: var(--night-ink-2); }
.steps-dark p { color: var(--night-ink-2); }
.faq-dark details, .faq-dark details:first-child { border-color: var(--night-line); }
.faq-dark summary .icon { color: var(--night-ink-2); }
.faq-dark .answer { color: var(--night-ink-2); }

/* ---------- Layout rule: every section's content spans the container or is centred ----------
   A narrow block sitting left with empty space beside it is not allowed. Paired layouts
   (.two-col, .hero-grid, .settle-pin, .tour) already span; everything narrow is centred. */
.wrap > .section-head { margin-inline: auto; text-align: center; }
.wrap > .section-head p { margin-inline: auto; }
.page-hero .wrap:not(.two-col) { text-align: center; }
.page-hero .wrap:not(.two-col) h1, .page-hero .wrap:not(.two-col) p { margin-inline: auto; }
.page-hero .wrap:not(.two-col) .hero-actions { justify-content: center; }
.closing { text-align: center; }
.closing h2, .closing p { margin-inline: auto; }
.closing .hero-actions { justify-content: center; }
.faq-list { margin-inline: auto; }
.rows { margin-inline: auto; }
.numbers-note { margin-inline: auto; text-align: center; }
.numbers > div { text-align: center; padding-right: 0; }
.steps-row li { text-align: left; }

/* ---------- Aesthetics pass (scored review, 2026-09-27) ---------- */
.page-hero { padding-bottom: clamp(56px, 8vw, 112px); }
.closing h2 { max-width: 20ch; }
.footer .brand { display: inline-flex; }
.footer .brand-mark { background: var(--night-ink); }
.footer .brand-mark::after { background: var(--night); }
.hero-shot { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1040px; text-align: left; }
.hero-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.cols-4 > li { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
.card-grid.cols-4 .icon { width: 26px; height: 26px; }
@media (max-width: 980px) { .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.code-wide { max-width: 900px; margin-inline: auto; }
/* Bands follow the layout rule too: centred text, actions beneath. */
.research { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: clamp(32px, 5vw, 56px); }
.research p { margin-inline: auto; }
.research-actions { justify-content: center; }
/* Icon aligned to the first line of the card title. */
.stack-list .icon { margin-top: 1px; align-self: start; }
.stack-list li { align-items: start; }
.stack-list h3 { line-height: 1.3; }
/* Left-aligned text uses the width its container gives it (layout audit rule R2).
   Line length is controlled by the container, never by a max-width on the text. */
.faq-list .answer, .tour-steps p, .v-main p { max-width: none; }

/* Stacked heroes (two columns collapse below 980px) follow the layout rule: centred. */
@media (max-width: 980px) {
  .hero-grid > div:first-child,
  .page-hero .two-col > div:first-child { text-align: center; }
  .hero-grid > div:first-child > :is(h1, .hero-lede),
  .page-hero .two-col > div:first-child > :is(h1, p) { margin-inline: auto; }
  .hero-grid .hero-actions,
  .page-hero .two-col .hero-actions { justify-content: center; }
  .page-hero .two-col .stack-list { text-align: left; }
}
/* Text inside a form is not hero copy: it uses the form's width. */
.page-hero .form p, .page-hero .form-done p { max-width: none; }
