/* ==========================================================================
   Design system
   Read: developer API landing, dark-tech language, one lime accent.
   Dials: variance 8, motion 7, density 4.
   Shape rule: interactive = pill, containers = 16px, inputs = 10px.
   Z-index scale: 1 content-raised, 10 sticky nav, 20 menu, 30 skip link.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0c0d;
  --bg-2: #0f1213;
  --surface: #131719;
  --surface-2: #181d1f;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #e8ede8;
  --muted: #9aa69e;
  --accent: #b9f23c;
  --accent-ink: #0a0c0d;
  --accent-text: #b9f23c;
  --accent-soft: rgb(185 242 60 / 0.1);
  --glow: rgb(185 242 60 / 0.16);
  --coral: #ff8a7f;
  --coral-soft: rgb(255 138 127 / 0.13);
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --wrap: 1240px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f3ef;
  --bg-2: #e9ece6;
  --surface: #fafbf8;
  --surface-2: #f4f6f1;
  --line: rgb(10 14 12 / 0.1);
  --line-strong: rgb(10 14 12 / 0.22);
  --text: #0f1311;
  --muted: #4a574f;
  --accent: #b9f23c;
  --accent-ink: #0a0c0d;
  --accent-text: #2f4f06;
  --accent-soft: rgb(120 170 10 / 0.14);
  --glow: rgb(150 210 20 / 0.22);
  --coral: #b3261e;
  --coral-soft: rgb(179 38 30 / 0.09);
  --shadow: 0 24px 60px -28px rgb(20 30 10 / 0.35);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f1f3ef;
    --bg-2: #e9ece6;
    --surface: #fafbf8;
    --surface-2: #f4f6f1;
    --line: rgb(10 14 12 / 0.1);
    --line-strong: rgb(10 14 12 / 0.22);
    --text: #0f1311;
    --muted: #4a574f;
    --accent-text: #2f4f06;
    --accent-soft: rgb(120 170 10 / 0.14);
    --glow: rgb(150 210 20 / 0.22);
    --coral: #b3261e;
    --coral-soft: rgb(179 38 30 / 0.09);
    --shadow: 0 24px 60px -28px rgb(20 30 10 / 0.35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* progress line (progressive enhancement) */
@supports (animation-timeline: scroll()) {
  .progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
    background: var(--accent); transform-origin: 0 50%;
    animation: grow linear both; animation-timeline: scroll(root);
  }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font-weight: 550; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); border-color: transparent; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn .ico { transition: transform 0.35s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-h);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img { display: block; height: 42px; width: auto; margin-left: -8px; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-dark { display: none; }
  :root:not([data-theme]) .logo-light { display: block; }
}
.kico { flex: none; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill); color: var(--muted);
  font-size: 0.92rem; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Sign in for people who already have an account: a quiet link, so the founders button stays the one to press. */
.nav-signin { padding: 8px 10px; border-radius: var(--r-pill); color: var(--text); font-size: 0.92rem; font-weight: 550; white-space: nowrap; transition: background 0.2s; }
.nav-signin:hover { background: var(--accent-soft); }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: transparent; display: inline-grid; place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--line-strong); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow);
}
.lang li a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--accent-soft); }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-sun { display: block; }
  :root:not([data-theme]) .theme-moon { display: none; }
}
.menu-btn { display: none; }

/* Seven links, sign in and the founders button need the whole 1240px of the bar in Spanish, plus a scrollbar. */
@media (max-width: 1320px) {
  .nav-links, .nav-right .btn, .nav-signin { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; margin: 0; gap: 2px; z-index: 20;
  }
  .nav-links.open a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links.open .menu-cta { display: inline-flex; margin-top: 12px; }
  .nav-links.open .menu-only { display: block; }
}
.menu-cta, .menu-only { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100dvh - var(--nav-h)); display: flex; align-items: center; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 20%, transparent 78%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 72px; }
.hero-copy { max-width: 740px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); border: 1px solid var(--accent-soft); background: var(--accent-soft);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.3rem); letter-spacing: -0.05em; line-height: 1; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p.sub { margin-top: 26px; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Under the hero buttons: the official APIs Linkpost publishes through (names and marks, no partner badges). */
.official { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 0.9rem; }
.official__mark { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.official__mark svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* With a product screenshot under it, the hero leaves room for the screenshot to show above the fold. */
.hero--shot { min-height: min(calc(100dvh - var(--nav-h) - 130px), 820px); border-bottom: 0; }

/* product screenshots: a quiet browser frame around a real screen of the app */
.shot { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar span {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding: 3px 14px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; background: var(--bg-2); }
.shot figcaption { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.shot-sec { position: relative; z-index: 1; padding-bottom: clamp(56px, 7vw, 96px); }
.shot-sec .shot { box-shadow: 0 40px 120px -48px var(--glow), var(--shadow); }
.shot-sec + .platforms { border-top: 1px solid var(--line); }

@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-canvas { position: relative; order: 2; height: 380px; }
  .hero .wrap { padding-block: 48px 0; }
  .hero::before { mask-image: radial-gradient(ellipse 90% 60% at 40% 80%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 90% 60% at 40% 80%, #000 20%, transparent 78%); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { max-width: 760px; }
.sec h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.045em; text-wrap: balance; }
.sec .lead { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.mono { font-family: var(--mono); }

/* platforms */
.platforms { padding-block: 44px; border-bottom: 1px solid var(--line); }
.platforms .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.platforms h2 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); max-width: 34ch; line-height: 1.4; }
.logo-groups { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.logo-group small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; }
.plogo { width: 30px; height: 30px; fill: currentColor; }
.plogo.live { color: var(--text); }
.plogo.soon { color: var(--muted); opacity: 0.45; }
@media (max-width: 860px) { .platforms .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* code */
.code-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.code-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); margin-top: 56px; align-items: start; }
.points { display: grid; gap: 28px; }
.points li { padding-top: 20px; border-top: 1px solid var(--line); }
.points h3 { font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.points p { color: var(--muted); font-size: 0.97rem; }
.points-cta { margin-top: 32px; }
.codebox { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab {
  height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 0.8rem; border-radius: var(--r-pill); white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.panel pre, .codeblock { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; tab-size: 2; }
.panel[hidden] { display: none; }
.panel.show pre { animation: fadeup 0.5s var(--ease); }
.panel + .resp, .resp { border-top: 1px solid var(--line); }
.resp-label { padding: 12px 24px 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.t-k { color: var(--text); font-weight: 650; }
.t-s { color: var(--accent-text); }
.t-c { color: var(--muted); }
.t-n { color: var(--text); }
.t-p { color: var(--muted); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .code-grid { grid-template-columns: 1fr; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--surface); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.cell:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cell h3 { font-size: 1.5rem; letter-spacing: -0.035em; margin-bottom: 10px; }
.cell p { color: var(--muted); max-width: 44ch; }
.cell .ico-big { width: 34px; height: 34px; }
.cell-a { grid-column: 1 / 5; grid-row: 1 / 3; background: var(--accent); color: var(--accent-ink); border-color: transparent; min-height: 340px; }
.cell-a p { color: rgb(10 12 13 / 0.78); }
.cell-a h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cell-a .mini { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.cell-a .mini svg { width: 34px; height: 34px; fill: currentColor; opacity: 0.9; }
.cell-b { grid-column: 5 / 7; }
.cell-c {
  grid-column: 5 / 7;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 16px 16px;
}
.cell-d {
  grid-column: 1 / 4;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--line) 14px 15px);
}
.cell-e {
  grid-column: 4 / 7;
  background: radial-gradient(120% 140% at 100% 100%, var(--glow), transparent 60%), var(--surface);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: auto; grid-row: auto; }
  .cell { min-height: 0; padding: 24px; }
  .cell-a .mini svg { width: 28px; height: 28px; }
}

/* formats per network */
.formats-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.net { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.net-head { display: flex; gap: 14px; align-items: center; }
.net-logo { width: 30px; height: 30px; flex: none; fill: currentColor; }
.net h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.net-head p { margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 0.84rem; line-height: 1.2; background: var(--accent-soft); border: 1px solid transparent; color: var(--text);
}
.chip small { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-text); }
.chip--soon { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.chip--soon small { color: var(--muted); }
.sec-cta { margin-top: 24px; }
@media (max-width: 1060px) { .nets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .nets { grid-template-columns: 1fr; } }

/* product tour: one screen of the app per row */
.tour { display: grid; gap: clamp(72px, 9vw, 128px); margin-top: 64px; }
.tour-row { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tour-row:nth-child(even) { grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr); }
.tour-row:nth-child(even) .tour-copy { order: 2; }
.tour-row--text, .tour-row--text:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
.tour-row--text .tour-copy { order: 0; max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.tour-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -0.04em; text-wrap: balance; }
.tour-copy p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding-bottom: 2px; font-weight: 550;
  border-bottom: 1px solid var(--accent-text); transition: color 0.2s;
}
.more .ico { transition: transform 0.35s var(--ease); }
.more:hover { color: var(--accent-text); }
.more:hover .ico-arrow { transform: translateX(3px); }
/* Without any screenshot the rows read as four cards. */
.tour--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tour--cards .tour-row { align-items: start; padding: 30px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.tour--cards .tour-copy h3 { font-size: 1.5rem; }
@media (max-width: 900px) {
  .tour-row, .tour-row:nth-child(even) { grid-template-columns: 1fr; }
  .tour-row:nth-child(even) .tour-copy { order: 0; }
  .tour--cards { grid-template-columns: 1fr; }
}

/* flow */
.flow-sec { border-block: 1px solid var(--line); }
.flow-list { margin-top: 56px; }
.flow-item {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end;
  padding-block: 36px; border-top: 1px solid var(--line); opacity: 0.38; transition: opacity 0.5s var(--ease);
}
.flow-item:last-child { border-bottom: 1px solid var(--line); }
.flow-item.on, .flow-item:hover { opacity: 1; }
.flow-item h3 { font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -0.06em; line-height: 0.9; transition: color 0.4s; }
.flow-item.on h3 { color: var(--accent-text); }
.flow-item p { color: var(--muted); font-size: 1.08rem; max-width: 40ch; padding-bottom: 10px; }
@media (max-width: 760px) { .flow-item { grid-template-columns: 1fr; gap: 12px; } }

/* mcp */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tool-list { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list code {
  font-family: var(--mono); font-size: 0.8rem; padding: 7px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); color: var(--text); background: var(--surface);
}
.tool-title { margin-top: 36px; font-size: 0.9rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chat { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.msg b { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; opacity: 0.7; font-weight: 500; }
.msg--you { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg--agent { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
@media (max-width: 900px) { .mcp-grid { grid-template-columns: 1fr; } }

/* review */
.review-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.review-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.review-head .btn { margin-top: 32px; }
.review-list { display: grid; }
.review-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 28px; border-top: 1px solid var(--line); }
.review-list li:first-child { padding-top: 0; border-top: 0; }
.review-list .ico { width: 30px; height: 30px; color: var(--accent-text); }
.review-list h3 { font-size: 1.28rem; letter-spacing: -0.025em; margin-bottom: 6px; }
.review-list p { color: var(--muted); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } .review-head { position: static; } }

/* pricing: the free account, the price of each extra account, and a calculator */
.price-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 48px; align-items: stretch; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.plan--featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); transform: translateY(-10px); }
.plan h3 { font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 600; }
.plan .price { font-size: 3rem; letter-spacing: -0.06em; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 0.9rem; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 4px; }
.plan .vat { font-size: 0.82rem; color: var(--muted); margin-top: -14px; }
.plan .profiles { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-text); margin-top: 4px; }
.plan .desc { color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.plan ul { display: grid; gap: 10px; font-size: 0.93rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { color: var(--accent-text); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.calc h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.calc-live { display: none; }
.js .calc-live { display: grid; gap: 12px; }
.calc-live label { font-size: 0.9rem; font-weight: 550; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: transparent; display: inline-grid; place-items: center; transition: border-color 0.2s, background 0.2s;
}
.stepper button:hover { border-color: var(--text); background: var(--accent-soft); }
.stepper .input { width: 92px; text-align: center; font-size: 1.1rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper .input::-webkit-inner-spin-button, .stepper .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc output { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-input); background: var(--bg); border: 1px solid var(--line); }
.calc-total { font-size: 2.2rem; letter-spacing: -0.05em; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-per { color: var(--muted); font-size: 0.9rem; }
.calc output small { margin-top: 6px; font-family: var(--mono); font-size: 0.76rem; color: var(--accent-text); }
.calc-eg { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.calc .calc-examples { gap: 0; margin-top: -10px; }
.calc-examples li { align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line); }
.calc-examples span { flex: 1; color: var(--muted); }
.calc-examples b { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-examples small { color: var(--muted); font-size: 0.8rem; }
/* X works with your own X app: its own block under the plans. .xpay-table also styles the founders comparison. */
.xpay {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; margin-top: 14px; padding: 28px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
}
.xpay-intro { display: grid; gap: 14px; align-content: start; }
.xpay-kicker { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-text); }
.xpay h3 { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 600; margin-top: -8px; }
.xpay-intro p { color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.xpay-intro .xpay-kicker { font-size: 0.82rem; color: var(--accent-text); }
.xpay-intro a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.xpay-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
.xpay-table th, .xpay-table td { padding: 12px 0 12px 16px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; vertical-align: baseline; }
.xpay-table th:first-child { padding-left: 0; text-align: left; }
.xpay-table thead th { padding-top: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.xpay-table tbody td { color: var(--muted); white-space: nowrap; }
.xpay-table tbody td:last-child { color: var(--text); font-weight: 600; }
.xpay-points { display: grid; gap: 10px; font-size: 0.93rem; color: var(--muted); }
.xpay-points li { display: flex; gap: 10px; align-items: flex-start; }
.xpay-points .ico { color: var(--accent-text); margin-top: 3px; flex: none; }
.xpay-fine { margin-top: 18px; color: var(--muted); font-size: 0.82rem; text-wrap: pretty; }
@media (max-width: 900px) { .xpay { grid-template-columns: 1fr; } }
.beta-note { margin-top: 24px; color: var(--muted); font-size: 0.88rem; max-width: 80ch; }
@media (max-width: 1060px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--featured { transform: none; }
  .plans--3 .calc { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin-top: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer;
  padding-block: 22px; font-size: 1.15rem; font-weight: 550; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.4s var(--ease); color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--accent-text); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 64ch; }

/* cta + form */
.cta-sec { border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta-grid h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.side-notes { margin-top: 40px; display: grid; gap: 22px; }
.side-notes h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.side-notes p { color: var(--muted); font-size: 0.95rem; }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form[hidden] { display: none; } /* once sent, only the success message stays */
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .legend { font-size: 0.9rem; font-weight: 550; }
.help { font-size: 0.82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--r-input); padding: 12px 14px; font: inherit; font-size: 0.97rem; min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.err .input, .field.err .select { border-color: #ff6b5e; }
:root[data-theme="light"] .field.err .input { border-color: #b3261e; }
.errmsg { display: none; font-size: 0.84rem; color: #ff8a7f; }
:root[data-theme="light"] .errmsg { color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .errmsg { color: #b3261e; } }
.field.err .errmsg { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); font-size: 0.9rem; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.check input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.check input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-foot .help { max-width: 52ch; }
.form-error { flex-basis: 100%; padding: 12px 14px; border: 1px solid #ff6b5e; border-radius: var(--r-input); font-size: 0.9rem; color: #ff8a7f; }
.form-error[hidden] { display: none; }
:root[data-theme="light"] .form-error { color: #b3261e; border-color: #b3261e; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .form-error { color: #b3261e; border-color: #b3261e; } }
.form .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.success { display: none; }
.success.show { display: block; animation: fadeup 0.6s var(--ease); }
.success h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.success p { margin-top: 10px; color: var(--muted); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(56px, 8vw, 110px) 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -0.055em; text-wrap: balance; }
.page-head .lead { margin-top: 22px; color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.page { padding-bottom: clamp(72px, 9vw, 120px); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); margin-top: 56px; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 0.9rem; }
.toc h2 { font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--accent); }
.prose h2 { font-size: 1.6rem; letter-spacing: -0.035em; margin: 56px 0 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 14px; max-width: 68ch; }
.prose ul { margin: 0 0 14px; display: grid; gap: 10px; max-width: 68ch; }
.prose li { position: relative; padding-left: 22px; color: var(--muted); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent-text); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-text); overflow-wrap: anywhere; }
.prose strong { color: var(--text); font-weight: 600; }
.updated { margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

/* dev page */
.ep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.ep h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 18px; }
.ep li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.ep li:first-child { border-top: 0; padding-top: 0; }
.ep .m { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; padding-top: 4px; letter-spacing: 0.04em; color: var(--accent-text); }
.ep code { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.ep .d { grid-column: 2; color: var(--muted); font-size: 0.9rem; }
.stack { display: grid; gap: 14px; margin-top: 28px; }
.block-h { font-size: 1.8rem; letter-spacing: -0.04em; margin-top: 72px; }
.block-p { margin-top: 12px; color: var(--muted); max-width: 64ch; }
.tool-list + .block-p { margin-top: 20px; }
.tool-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.tool code { font-family: var(--mono); font-size: 0.9rem; color: var(--accent-text); }
.tool p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .ep-grid { grid-template-columns: 1fr; } }

/* tiktok page */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.box h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.box p { color: var(--muted); }
.scopes { display: grid; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.scope { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 26px; background: var(--surface); }
.scope + .scope { border-top: 1px solid var(--line); }
.scope code { font-family: var(--mono); font-size: 0.9rem; color: var(--accent-text); }
.scope p { color: var(--muted); }
.steps { margin-top: 28px; display: grid; }
.steps li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 1.5rem; letter-spacing: -0.04em; }
.steps p { color: var(--muted); max-width: 62ch; }
.checklist { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.checklist li { display: flex; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.checklist .ico { color: var(--accent-text); margin-top: 3px; }
.notice { margin-top: 28px; padding: 28px; border-radius: var(--r-card); border: 1px solid var(--accent-soft); background: var(--accent-soft); }
.notice p { max-width: 70ch; }
.docs-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; }
.docs-callout h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.docs-callout p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) {
  .duo, .checklist { grid-template-columns: 1fr; }
  .scope, .steps li { grid-template-columns: 1fr; gap: 6px; }
}

/* icons in tiles (agents page, roadmap) */
.mk { display: block; flex: none; width: 22px; height: 22px; }
.itile {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-width: 44px; height: 44px; padding: 0 11px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-soft);
}
.itile--sm { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; }
.itile--sm .mk { width: 18px; height: 18px; }
.itile--lg { min-width: 56px; height: 56px; padding: 0 14px; border-radius: 16px; }
.itile--lg .mk { width: 28px; height: 28px; }

/* agents page */
.page-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.page-head--split .btn-row { margin-top: 32px; }
.hub { display: block; width: 100%; max-width: 600px; height: auto; justify-self: end; overflow: visible; }
.hub-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.hub-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 22; opacity: 0.85; animation: hubflow 2.6s linear infinite; }
@keyframes hubflow { to { stroke-dashoffset: -52; } }
.hub-client { color: var(--text); }
.hub-client rect { fill: var(--surface); stroke: var(--line-strong); }
.hub-client text { fill: var(--text); font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hub-core rect { fill: var(--accent); }
.hub-sym { fill: var(--accent-ink); }
.hub-core text { fill: var(--accent-ink); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; }
.hub-net { color: var(--text); }
.hub-net circle { fill: var(--surface); stroke: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .hub-flow { animation: none; opacity: 0.4; } }
@media (max-width: 1000px) { .page-head--split { grid-template-columns: 1fr; } .hub { justify-self: start; } }

.agent-steps { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; margin-top: 24px; }
.agent-steps--text { grid-template-columns: 1fr; }
.isteps { margin: 0; padding: 0; list-style: none; display: grid; }
.isteps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.isteps li:first-child { border-top: 0; padding-top: 0; }
.isteps h3 { font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.2; }
.isteps-n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-right: 10px; vertical-align: 0.15em; }
.isteps p { margin-top: 8px; color: var(--muted); }
@media (max-width: 1000px) { .agent-steps { grid-template-columns: 1fr; } }

.clients { margin-top: 28px; }
.tab { display: inline-flex; align-items: center; gap: 8px; }
.tab .mk { width: 15px; height: 15px; }
.panel-note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 32px; padding: 22px 24px 0; }
.panel-note p { color: var(--muted); font-size: 0.95rem; max-width: 74ch; }
.panel-note .more { margin-top: 8px; font-size: 0.9rem; white-space: nowrap; }
.clients .panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.panel-note p code, .block-p code, .isteps p code {
  font-family: var(--mono); font-size: 0.86em; color: var(--text); padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere;
}
.notice-ico { display: flex; gap: 18px; align-items: flex-start; }
.agents-ask { align-items: start; }
.agents-ask .chat { margin-top: 72px; }
.prompt-list { margin-top: 24px; display: grid; }
.prompt-list li { display: flex; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.prompt-list .ico { flex: none; margin-top: 3px; color: var(--accent-text); }
.box--ico .itile { margin-bottom: 18px; }
.tool-table--ico { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tool--ico { display: flex; gap: 14px; align-items: flex-start; }
.tool--ico code { overflow-wrap: anywhere; }
.scope a { display: inline-flex; align-items: center; gap: 12px; }
.scope a code { overflow-wrap: anywhere; }
.scope a:hover code { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .agents-ask .chat { margin-top: 32px; } }

/* roadmap */
.road-strip { margin-top: 48px; }
.road-strip ol { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.road-strip ol::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-strong); }
.rs a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rs .itile { background: var(--surface); border-color: var(--line-strong); color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.rs--now .itile { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rs-n { margin-top: 6px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.rs-h { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; transition: color 0.2s; }
.rs-here { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.rs a:hover .rs-h { color: var(--accent-text); }
.rs a:hover .itile { border-color: var(--accent-text); color: var(--accent-text); }
.rs--now a:hover .itile { color: var(--accent-ink); }
@media (max-width: 860px) { .road-strip ol { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .road-strip ol::before { display: none; } }
@media (max-width: 420px) { .road-strip ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.road { list-style: none; padding: 0; margin: 24px 0 0; display: grid; }
.stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.stage-head { align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.stage-head .itile--lg { margin-bottom: 18px; }
.stage--now .stage-head .itile { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stage-tag { display: flex; align-items: center; gap: 12px; }
.stage-n { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.pill { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); }
.stage--now .pill { background: var(--accent); color: var(--accent-ink); }
.stage-head h2 { margin-top: 16px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.04em; text-wrap: balance; }
.stage-head > p:not(.stage-tag) { margin-top: 12px; color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.stage-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stage-items li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; transition: border-color 0.25s; }
.stage-items li:hover { border-color: var(--line-strong); }
.stage-items .itile { margin-bottom: 16px; }
.stage-items h3 { font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.25; }
.stage-items p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
.road + .notice { margin-top: 16px; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } .stage-head { position: static; } }
@media (max-width: 620px) { .stage-items { grid-template-columns: 1fr; } }

/* changelog: tags, the counts under the title, then the weeks on a rail that ends on the day the beta opened */
.tag {
  display: inline-flex; align-items: center; flex: none; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}
.tag--new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag--improved { background: var(--accent-soft); color: var(--accent-text); }
.tag--fixed { background: var(--coral-soft); color: var(--coral); }
.tag--review { border: 1px dashed var(--line-strong); color: var(--muted); }
.pill--now { background: var(--accent); color: var(--accent-ink); }

.cl-sum { margin-top: 44px; }
.cl-total { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cl-stats { margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 820px; }
.cl-stat { padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cl-stat dd { margin: 12px 0 0; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }

.cl-rail { --rail: 64px; --rail-x: 22px; position: relative; margin-top: 32px; padding-left: var(--rail); }
.cl-rail::before {
  content: ""; position: absolute; left: calc(var(--rail-x) - 1px); top: 0; bottom: 22px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 56px, var(--line-strong) 560px);
}
.cl { list-style: none; margin: 0; padding: 0; display: grid; }
.cl-week { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px clamp(28px, 4vw, 56px); padding-block: 40px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.cl-week:first-child { padding-top: 24px; }
.cl-week + .cl-week { border-top: 1px solid var(--line); }
.cl-when { align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.cl-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cl-when h2 { position: relative; font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: -0.04em; line-height: 1.12; }
.cl-node {
  position: absolute; left: calc(var(--rail-x) - var(--rail) - 8px); top: calc(0.55em - 8px); width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
}
.cl-week--now .cl-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: cl-pulse 2.6s var(--ease) infinite; }
@keyframes cl-pulse {
  0% { box-shadow: 0 0 0 0 var(--glow), 0 0 0 5px var(--accent-soft); }
  70% { box-shadow: 0 0 0 16px transparent, 0 0 0 5px var(--accent-soft); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 5px var(--accent-soft); }
}
.cl-count { margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.cl-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cl-item { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px 22px; transition: border-color 0.25s; }
.cl-item:hover { border-color: var(--line-strong); }
.cl-top { align-self: stretch; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; }
.cl-item h3 { font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.cl-item p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }
.cl-item p code {
  font-family: var(--mono); font-size: 0.86em; color: var(--text); padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere;
}
.cl-item .more { margin-top: auto; padding-top: 16px; font-size: 0.88rem; border-bottom: 0; }
.cl-item .more:hover { color: var(--accent-text); }
.cl-item--fixed .itile { background: var(--coral-soft); border-color: transparent; color: var(--coral); }
/* Waiting on a network: drawn like the formats marked pending elsewhere on the site. */
.cl-item--review { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.cl-item--review .itile { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }

.cl-start { position: relative; padding-top: 36px; border-top: 1px solid var(--line); }
.cl-start-in { position: relative; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.cl-start .itile { position: absolute; bottom: 0; left: calc(var(--rail-x) - var(--rail) - 22px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cl-start-date { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cl-start-h { margin-top: 2px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.cl-rail + .notice { margin-top: 56px; }

@media (prefers-reduced-motion: reduce) { .cl-week--now .cl-node { animation: none; } }
@media (max-width: 900px) {
  .cl-week { grid-template-columns: minmax(0, 1fr); }
  .cl-when { position: static; }
}
@media (max-width: 620px) {
  .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-rail { --rail: 32px; --rail-x: 8px; }
  .cl-rail::before { background: linear-gradient(to bottom, transparent, var(--accent) 40px, var(--line-strong) 420px); }
  .cl-node { width: 14px; height: 14px; left: calc(var(--rail-x) - var(--rail) - 7px); top: calc(0.55em - 7px); }
  .cl-items { grid-template-columns: minmax(0, 1fr); }
  .cl-item { padding: 18px 18px 20px; }
  .cl-start-in { padding-left: 22px; }
}

/* access page */
.access-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 56px; }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot-grid li { margin-bottom: 10px; font-size: 0.93rem; }
.foot-grid li a { color: var(--text); opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.foot-grid li a:hover { color: var(--accent-text); opacity: 1; }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.82rem; }
.fine p { max-width: 80ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* cookie consent: a card fixed at the bottom, above the content and below the skip link. Accept and Reject weigh the same. */
.consent { position: fixed; inset: auto 16px 16px; z-index: 25; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-in {
  pointer-events: auto; width: min(780px, 100%); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 18px 20px 18px 22px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.consent p { flex: 1 1 340px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; text-wrap: pretty; }
.consent-h { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }
.consent p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent p a:hover { color: var(--accent-text); }
.consent-btns { display: flex; gap: 10px; }
.consent-btns .btn { min-width: 112px; }
body:has(> .consent:not([hidden])) { padding-bottom: 140px; }
@media (max-width: 560px) { .consent-in { padding: 16px; } .consent-btns { width: 100%; } .consent-btns .btn { flex: 1; } body:has(> .consent:not([hidden])) { padding-bottom: 220px; } }

/* the Founding 1000 (/1000): the category line, the seat counter, the offer and how a seat is earned */
.fnd-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 26px; color: var(--muted); font-size: 0.98rem; text-wrap: pretty; }
.fnd-nets { display: inline-flex; gap: 10px; }
.fnd-net { width: 22px; height: 22px; fill: var(--text); }
.seats {
  margin-top: 36px; max-width: 560px; padding: 24px; display: grid; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.seats [hidden] { display: none !important; }
.seats-count { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.seats-bar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.seats-bar span { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); min-width: 8px; background: var(--accent); border-radius: inherit; transition: width 1s var(--ease); }
.seats-open, .seats-closed { display: grid; gap: 12px; justify-items: start; }
.seats-note { color: var(--muted); font-size: 0.88rem; }
.seats-closed p { color: var(--muted); max-width: 52ch; }
.cta-grid .seats { margin-top: 0; }
.fnd-offer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.fnd-offer .box { padding: 24px; }
.fnd-offer .box h3 { font-size: 1.15rem; line-height: 1.2; }
.fnd-compare { max-width: 820px; margin-top: 40px; overflow-x: auto; }
.fnd-compare .xpay-table td { white-space: normal; }
.fnd-steps { margin-top: 28px; max-width: 760px; }
.fnd-fine { grid-template-columns: 1fr; max-width: 820px; }
.fnd-end { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.fnd-end .lead { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
@media (max-width: 1060px) { .fnd-offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fnd-offer { grid-template-columns: 1fr; } .seats { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .seats-bar span { transition: none; } }

/* reveal */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero .rv { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .cell, .flow-item { transition: none; }
}
