/* Supergram — supergramapp.com
   Layout: editorial 12-column grid. Real app screens (always dark, as the app is)
   are the images; type and thin rules carry the rest. Light paper with two
   graphite bands for the parts of the story that are about behaviour. */

:root {
  --paper: #f3f3ef;
  --paper-2: #e9e9e3;
  --card: #fafaf7;
  --ink: #131418;
  --ink-2: #3b3d44;
  --mute: #63666e;
  --line: #d8d8d1;
  --blue: #2f4bf0;
  --blue-soft: rgba(47, 75, 240, 0.08);
  --focus: #2f4bf0;
  --ok: #0f8a5f;
  --warn: #a35d00;
  --bad: #c0283f;

  /* graphite bands (same in both themes, slightly lifted in dark) */
  --band: #111216;
  --band-2: #191a1f;
  --band-line: #2a2c32;
  --band-ink: #ececea;
  --band-ink-2: #b6b8bf;
  --band-mute: #8b8e97;
  --band-blue: #8ea1ff;

  --shot-shadow: 0 30px 60px -36px rgba(12, 14, 24, 0.5), 0 1px 3px rgba(12, 14, 24, 0.12);
  --plate-a: #e7e6e0;
  --plate-b: #dcdbd3;

  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0f12;
    --paper-2: #16171b;
    --card: #131418;
    --ink: #ececea;
    --ink-2: #c3c4c8;
    --mute: #8d9099;
    --line: #26282d;
    --blue: #7a8fff;
    --blue-soft: rgba(122, 143, 255, 0.1);
    --focus: #8fa0ff;
    --ok: #3ccf98;
    --warn: #f0b04a;
    --bad: #ff8a9b;
    --band: #17181d;
    --band-2: #1e1f25;
    --band-line: #2e3037;
    --shot-shadow: 0 0 0 1px #2a2c32, 0 30px 60px -36px rgba(0, 0, 0, 0.8);
    --plate-a: #17181c;
    --plate-b: #121316;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0f12;
  --paper-2: #16171b;
  --card: #131418;
  --ink: #ececea;
  --ink-2: #c3c4c8;
  --mute: #8d9099;
  --line: #26282d;
  --blue: #7a8fff;
  --blue-soft: rgba(122, 143, 255, 0.1);
  --focus: #8fa0ff;
  --ok: #3ccf98;
  --warn: #f0b04a;
  --bad: #ff8a9b;
  --band: #17181d;
  --band-2: #1e1f25;
  --band-line: #2e3037;
  --shot-shadow: 0 0 0 1px #2a2c32, 0 30px 60px -36px rgba(0, 0, 0, 0.8);
  --plate-a: #17181c;
  --plate-b: #121316;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 14px; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 24px; height: 24px; flex: none; display: block; }
.brand span { font-weight: 600; font-size: 13px; letter-spacing: 0.2em; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.top nav a:hover { color: var(--ink); }
.top nav a.cta {
  color: var(--paper); background: var(--ink); padding: 8px 14px; border-radius: 3px; font-weight: 500;
}
.top nav a.cta:hover { background: var(--blue); color: #fff; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; font: 500 15px/1 var(--sans); text-decoration: none;
  border-radius: 3px; border: 1px solid var(--ink); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.link-arrow:hover { color: var(--ink); }
.ico { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.st.built::before { background: var(--blue); }
.st.testing::before { background: linear-gradient(90deg, var(--blue) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--blue); }
.st.next::before { box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- waitlist form ---------- */
.join { max-width: 520px; }
.join .field { display: flex; gap: 8px; }
.join input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  font: 400 16px/1 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 3px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.join input[type="email"]::placeholder { color: var(--mute); }
.join input[type="email"]:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.join input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.join input[aria-invalid="true"] { border-color: var(--bad); }
.join button { flex: none; }
.join button[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.join button .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: none; animation: spin 0.8s linear infinite; }
.join button[aria-busy="true"] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.join .msg { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: var(--mute); }
.join .msg.bad { color: var(--bad); }
.join .msg.warn { color: var(--warn); }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join .done { display: none; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.join .done svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 1px; }
.join .done b { display: block; font-weight: 500; }
.join .done span { color: var(--mute); font-size: 14.5px; }
.join.is-done .field, .join.is-done .msg { display: none; }
.join.is-done .done { display: flex; }
.join .fine { margin-top: 2px; font-size: 13.5px; color: var(--mute); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.hero-copy { grid-column: 1 / span 7; min-width: 0; }
.hero-side { grid-column: 9 / span 4; min-width: 0; padding-bottom: 6px; }
.eyebrow { color: var(--mute); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ink); }
h1 { font-size: clamp(48px, 8.4vw, 116px); line-height: 0.94; letter-spacing: -0.05em; }
h1 em { font-style: normal; color: var(--blue); }
.lead { margin-top: 28px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.hero .join { margin-top: 34px; }
.hero-side .st { margin-bottom: 14px; }
.hero-side p { font-size: 15px; color: var(--ink-2); }
.hero-side .plat { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); }
.hero-side .plat b { color: var(--ink); font-weight: 500; }

.stage { margin-top: clamp(48px, 6vw, 80px); position: relative; }
.stage .note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--mute); padding-block: 14px 18px; border-top: 1px solid var(--line); }
.stage .layer { position: relative; }
.stage .over {
  position: absolute; right: calc(var(--gutter) * -0.5); bottom: -12%; width: min(30%, 380px);
}

/* ---------- screenshots ---------- */
.shot {
  margin: 0; min-width: 0;
  padding: clamp(14px, 3.4vw, 44px) clamp(14px, 3.4vw, 44px) clamp(12px, 1.6vw, 20px);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--plate-a), var(--plate-b));
}
.shot picture { display: block; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  background: #0b0c0f; box-shadow: var(--shot-shadow);
}
.shot figcaption { margin-top: clamp(12px, 1.6vw, 18px); color: var(--mute); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.band .shot { background: linear-gradient(160deg, #1d1e24, #16171b); }
.shot.over { padding: 0; background: none; border-radius: 0; }
.shot.over img { box-shadow: 0 40px 70px -30px rgba(10, 12, 20, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* ---------- section scaffolding ---------- */
section { padding-block: var(--section); }
.rule { border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.label { grid-column: 1 / span 3; color: var(--mute); padding-top: 12px; }
.label b { color: var(--ink); font-weight: 500; }
.body { grid-column: 4 / span 9; min-width: 0; }
.full { grid-column: 1 / -1; min-width: 0; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; }
h2 .soft { color: var(--mute); }
h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.prose { color: var(--ink-2); max-width: 36em; }
.prose + .prose { margin-top: 14px; }
.big { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); max-width: 30em; }

/* thesis: what you want -> where it happens */
.map { margin-top: 48px; border-top: 1px solid var(--ink); }
.map li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.map .want { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; line-height: 1.3; }
.map .where { color: var(--mute); font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.map .where b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); font-weight: 500; white-space: nowrap; }
.map-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; color: var(--mute); padding-bottom: 12px; margin-top: 48px; }
.map-head + .map { margin-top: 0; }
.after { margin-top: 36px; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; line-height: 1.35; max-width: 30em; }
.after span { color: var(--mute); }

/* dark band */
.band { background: var(--band); color: var(--band-ink); }
.band .label, .band .mono.dim { color: var(--band-mute); }
.band .label b { color: var(--band-ink); }
.band h2 { color: #f4f4f2; }
.band h2 .soft { color: var(--band-mute); }
.band .prose, .band .big { color: var(--band-ink-2); }
.band .st { color: var(--band-mute); }
.band .st.built::before { background: var(--band-blue); }
.band .st.testing::before { background: linear-gradient(90deg, var(--band-blue) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--band-blue); }
.band .st.next::before { box-shadow: inset 0 0 0 1px var(--band-blue); }
.band :focus-visible { outline-color: var(--band-blue); }

/* connection diagram */
.web { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); }
.web > div { background: var(--band); padding: 22px 22px 24px; min-width: 0; }
.web .node h3 { font-size: 18px; color: #f4f4f2; display: flex; align-items: center; gap: 10px; }
.web .node h3 .ico { color: var(--band-blue); width: 17px; height: 17px; }
.web .node p { color: var(--band-mute); font-size: 14px; margin-top: 6px; }
.web .node ul { margin-top: 14px; display: grid; gap: 7px; }
.web .node li { font-family: var(--mono); font-size: 12.5px; color: var(--band-ink-2); display: flex; gap: 8px; align-items: baseline; }
.web .node li i { font-style: normal; color: var(--band-blue); flex: none; }
.web .core { background: var(--band-2); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.web .core .core-mark { width: 56px; height: 56px; display: block; }
.web .core b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.web .core p { color: var(--band-ink-2); font-size: 14.5px; }

/* chapters */
.chapters { display: grid; gap: 0; }
.ch { padding-block: var(--section); border-top: 1px solid var(--line); }
.ch-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
.ch-num { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.ch-num .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; }
.ch-text { grid-column: 4 / span 9; min-width: 0; }
.ch-text .problem { margin-top: 22px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -0.012em; color: var(--mute); max-width: 30em; }
.ch-text .prose { margin-top: 16px; }
.ch-body { margin-top: clamp(44px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; align-items: start; }
.ch-body .shot { grid-column: 1 / span 8; }
.ch-body .side { grid-column: 9 / span 4; min-width: 0; }
.ch-body.flip .shot { grid-column: 5 / span 8; grid-row: 1; }
.ch-body.flip .side { grid-column: 1 / span 4; grid-row: 1; }
.ch-body.wide .shot { grid-column: 1 / -1; }
.ch-body.wide .side { grid-column: 4 / span 9; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.facts li b { color: var(--ink); font-weight: 500; }
.facts li q { quotes: "“" "”" "‘" "’"; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.side .sub { margin-top: 26px; }
.side .sub h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.side .sub p { font-size: 14.5px; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* migration route */
.route { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; border: 1px solid var(--line); background: var(--card); border-radius: 4px; }
.route > div { padding: 18px 20px; min-width: 0; }
.route .arrow { display: grid; place-items: center; padding: 0 4px; color: var(--mute); }
.route small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.route b { font-weight: 500; font-size: 17px; display: block; }
.route .what { border-inline: 1px solid var(--line); }
.route .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.route .chips span { font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); background: var(--paper); }
.route .chips span.on { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.route p { font-size: 14px; color: var(--mute); margin-top: 6px; }
.limits { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.limits div { border-top: 1px solid var(--line); padding-top: 14px; }
.limits h3 { font-size: 15.5px; font-weight: 500; }
.limits p { margin-top: 6px; font-size: 14.5px; color: var(--mute); }

/* providers */
.providers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.providers span { font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.providers span.own { border-color: var(--ink); }

/* toolbox */
.tools { margin-top: 8px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.tools > div { padding: 16px 16px 18px 0; min-width: 0; }
.tools > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.tools h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.tools li { font-size: 14.5px; padding: 3px 0; }
.tools li.hl { color: var(--blue); }
.feature { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: center; }
.feature .txt { grid-column: 1 / span 5; min-width: 0; }
.feature .shot { grid-column: 6 / span 7; }
.feature .k { color: var(--blue); margin-bottom: 12px; display: block; }
.feature .parts { margin-top: 18px; display: flex; gap: 4px; }
.feature .parts span { flex: 1; height: 34px; border-radius: 3px; background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--blue); }

/* assistant flow */
.flow { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: f; }
.flow li { padding: 16px 16px 4px 0; min-width: 0; }
.flow li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.flow li b { display: block; font-weight: 500; font-size: 16px; }
.flow li b::before { counter-increment: f; content: counter(f) "  "; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.flow li p { font-size: 14px; color: var(--mute); margin-top: 6px; }
.flow li q { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }

/* who */
.who { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.who li { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.who li:nth-child(3n+2), .who li:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line); }
.who h3 { font-size: 19px; }
.who p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.who .uses { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.who .uses span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--mute); }

/* platforms */
.plats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plat-t { border: 1px solid var(--line); border-radius: 4px; padding: 20px; background: var(--card); min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.plat-t.on { border-color: var(--ink); }
.plat-t .dev { height: 92px; display: flex; align-items: flex-end; }
.plat-t .dev i { display: block; border: 1.5px solid var(--mute); border-radius: 5px; }
.plat-t.on .dev i { border-color: var(--ink); background: linear-gradient(var(--blue-soft), var(--blue-soft)); }
.dev .pc { width: 120px; height: 76px; }
.dev .mac { width: 120px; height: 76px; border-radius: 6px 6px 2px 2px; }
.dev .ph { width: 42px; height: 84px; border-radius: 9px; }
.plat-t b { font-weight: 500; font-size: 18px; }

/* principles */
.tenets { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.tenets > div { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--band-line); min-width: 0; }
.tenets > div:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--band-line); }
.tenets h3 { color: #f4f4f2; font-size: 22px; }
.tenets p { margin-top: 10px; color: var(--band-ink-2); font-size: 15.5px; max-width: 30em; }
.states { margin-top: 16px; display: grid; gap: 6px; }
.states span { font-family: var(--mono); font-size: 13px; color: #d7d8dc; }
.states .a { color: #f5b041; }
.states .r { color: #fb8fa1; }
.api-line { margin-top: 28px; color: var(--band-mute); font-size: 14.5px; max-width: 46em; }

/* status */
.status { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.status h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.status h3 .st { color: var(--ink); }
.status li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.status li small { display: block; color: var(--mute); font-size: 13.5px; }

/* plans */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px; background: var(--card); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.max { border-color: var(--ink); }
.plan .nm { font-weight: 600; font-size: 13px; letter-spacing: 0.2em; }
.plan .price { font-size: 26px; letter-spacing: -0.02em; font-weight: 500; }
.plan .price small { display: block; font-size: 13px; color: var(--mute); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.plan p { color: var(--ink-2); font-size: 15px; }
.plan .tier { margin-top: auto; display: flex; gap: 4px; }
.plan .tier i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.plan .tier i.on { background: var(--blue); }
.plans-note { margin-top: 18px; color: var(--mute); font-size: 14px; }

/* founder */
.letter { max-width: 34em; margin-top: 44px; }
.letter p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; letter-spacing: -0.01em; color: var(--ink); }
.letter p + p { margin-top: 20px; }
.letter p.dim { color: var(--ink-2); }
.sig { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.sig .ln { width: 40px; height: 1px; background: var(--ink); }
.sig b { font-weight: 500; display: block; }
.sig small { color: var(--mute); font-size: 14px; }

/* final */
.final { padding-block: var(--section); }
.final .end-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; align-items: end; }
.final .end-grid > div:first-child { grid-column: 1 / span 7; min-width: 0; }
.final .end-grid > div:last-child { grid-column: 8 / span 5; min-width: 0; }
.final h2 { font-size: clamp(38px, 5.6vw, 80px); }
.final .join input[type="email"] { background: var(--band-2); border-color: var(--band-line); color: #f4f4f2; }
.final .join input[type="email"]::placeholder { color: var(--band-mute); }
.final .join .btn-primary { background: #f4f4f2; color: #111216; border-color: #f4f4f2; }
.final .join .btn-primary:hover { background: var(--band-blue); border-color: var(--band-blue); color: #0b0c10; }
.final .join .msg, .final .join .fine { color: var(--band-mute); }
.final .join .msg.bad { color: #ff8a9b; }
.final .join .msg.warn { color: #f5b041; }
.final .join .done { background: var(--band-2); border-color: var(--band-line); }
.final .join .done span { color: var(--band-mute); }
.final .join .done svg { color: #3ccf98; }
.final .join input[type="email"]:focus { border-color: var(--band-blue); box-shadow: 0 0 0 3px rgba(142, 161, 255, 0.18); }
.final .coda { margin-top: clamp(72px, 9vw, 120px); padding-top: 28px; border-top: 1px solid var(--band-line); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: baseline; }
.final .coda p { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.2; color: #f4f4f2; }
.final .coda p span { color: var(--band-mute); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.foot .a { grid-column: 1 / span 4; }
.foot .b { grid-column: 5 / span 4; color: var(--ink-2); font-size: 15px; }
.foot .c { grid-column: 9 / span 4; color: var(--mute); display: grid; gap: 6px; align-content: start; }
.foot .c a { color: var(--ink); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 14px; }
.foot .c a:hover { color: var(--blue); }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* simple pages (privacy, joined, 404) */
.doc h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 24px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 48px 0 14px; }
.doc ul { display: grid; gap: 10px; max-width: 36em; }
.doc li { position: relative; padding-left: 20px; color: var(--ink-2); }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--mute); }
.doc a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.doc a:hover { color: var(--blue); text-decoration-color: currentColor; }
.doc .cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* motion: complete at rest, eased in on load */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.28s; }
  .stage .layer { animation: lift 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
  .stage .over { animation: lift 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .shot img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .ch-body .shot:hover img { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .join button .spin { animation-duration: 2.4s; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .web { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web .core { grid-column: 1 / -1; grid-row: 1; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .tools > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .top nav a.hide-sm { display: none; }
  .hero-copy, .hero-side { grid-column: 1 / -1; }
  .stage .over { position: relative; right: auto; bottom: auto; width: 56%; margin: -30% 0 0 auto; }
  .label, .body, .ch-num, .ch-text { grid-column: 1 / -1; }
  .label, .ch-num { padding-top: 0; }
  .ch-num { flex-direction: row; align-items: center; justify-content: space-between; }
  .ch-body .shot, .ch-body .side, .ch-body.flip .shot, .ch-body.flip .side, .ch-body.wide .side,
  .feature .txt, .feature .shot { grid-column: 1 / -1; grid-row: auto; }
  .pair { grid-template-columns: 1fr; }
  .map li, .map-head { grid-template-columns: 1fr; gap: 6px; }
  .map-head span:last-child { display: none; }
  .route { grid-template-columns: 1fr; }
  .route .arrow { padding: 6px 0; transform: rotate(90deg); }
  .route .what { border-inline: 0; border-block: 1px solid var(--line); }
  .limits, .status, .plans { grid-template-columns: 1fr; }
  .status { gap: 36px; }
  .who { grid-template-columns: 1fr; }
  .who li, .who li:nth-child(3n+2), .who li:nth-child(3n+3) { padding: 20px 0; border-left: 0; }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenets { grid-template-columns: 1fr; }
  .tenets > div, .tenets > div:nth-child(2n) { padding: 24px 0; border-left: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 16px; }
  .final .end-grid > div:first-child, .final .end-grid > div:last-child { grid-column: 1 / -1; }
  .foot .a, .foot .b, .foot .c { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; }
  .join .field { flex-direction: column; }
  .join .field .btn { width: 100%; }
  .web { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools > div, .tools > div + div { padding: 14px 0; border-left: 0; }
  .tools > div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
  .tools > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 14px 0; border-left: 0; }
  .flow li + li { border-top: 1px solid var(--line); }
  .plats { gap: 10px; }
  .plat-t { padding: 16px; }
  .plat-t .dev { height: 70px; }
  .dev .pc, .dev .mac { width: 90px; height: 58px; }
  .dev .ph { width: 32px; height: 64px; }
  .limits { gap: 16px; }
  .stage .layer { display: none; }
  .stage .over { width: 100%; margin: 0; }
}
