/*
 * Railflag marketing site. Same "Clean Signal" palette as the dashboard (apps/web/src/app/globals.css):
 * zinc neutrals, one teal accent, Geist. Orange means Production, nothing else.
 */
@font-face { font-family: 'Geist'; src: url(/fonts/geist-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; src: url(/fonts/geist-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0a0a0b;
  --ink-2: #3f3f46;
  --muted: #55555e;
  --faint: #71717a;
  --page: #fbfbfa;
  --card: #ffffff;
  --line: #e7e7ea;
  --line-soft: #efeff1;
  --chip: #f1f1f3;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #e2f1ef;
  --accent-line: #a7d3cd;
  --accent-bright: #5eead4;
  --night: #0b1211;
  --night-2: #111a19;
  --night-line: #22302e;
  --night-text: #e4e4e7;
  --night-muted: #a1a1aa;
  --var-true: #0d9488;
  --var-false: #8b5cf6;
  --var-false-ink: #6d28d9;
  --prod: #ea580c;
  --prod-soft: #fff6f0;
  --prod-line: #fed7c3;
  --prod-ink: #9a3412;
  --subtle: #f7f7f8;        /* recessed panels: pillar art, table heads, terminal bar */
  --line-strong: #e4e4e7;   /* firmer borders: ghost buttons, the announcement pill, fact dividers */
  --rule: #d4d4d8;          /* drawn lines: rails, diagram boxes, form fields */
  --dim: #a1a1aa;           /* hover borders and de-emphasised glyphs */
  --on-ink: #fff;           /* text on an --ink background (the primary button) */
  --ink-hover: #27272a;
  --chip-false: #f1ecfe;
  --header-bg: rgba(251, 251, 250, 0.86);
  --grid: #eeeef0;
  --night-edge: transparent; /* outlines the dark panels where the page itself is dark */
  --featured-edge: transparent; /* the highlighted pricing plan, which needs a teal edge to stand out on dark */
  --raised: #fff;           /* the selected option in a segmented control */
  --show-light: block;      /* theme toggle icons: the moon shows in light, the sun in dark */
  --show-dark: none;
  --sans: 'Geist', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(10, 10, 11, 0.04), 0 18px 40px -18px rgba(10, 10, 11, 0.16);
  color-scheme: light;
}

/*
 * Dark theme. It follows the device setting unless the visitor picked a theme with the header toggle
 * (html[data-theme], set by theme.js before the first paint). The two blocks below must stay identical;
 * a test in apps/site/test checks that they do.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #8b8b94;
    --page: #09090b;
    --card: #131316;
    --line: #27272a;
    --line-soft: #1e1e22;
    --chip: #232327;
    --accent: #2dd4bf;
    --accent-dark: #5eead4;
    --accent-soft: #0f2926;
    --accent-line: #1d4a44;
    --night: #0e1615;
    --night-2: #121c1b;
    --var-true: #14b8a6;
    --var-false-ink: #a78bfa;
    --prod: #f97316;
    --prod-soft: #24140a;
    --prod-line: #4a2410;
    --prod-ink: #fdba74;
    --subtle: #18181b;
    --line-strong: #2e2e33;
    --rule: #3f3f46;
    --dim: #71717a;
    --on-ink: #09090b;
    --ink-hover: #d4d4d8;
    --chip-false: #221a35;
    --header-bg: rgba(9, 9, 11, 0.82);
    --grid: #17171a;
    --night-edge: #1f2d2b;
    --featured-edge: #2b5c55;
    --raised: #2c2c31;
    --show-light: none;
    --show-dark: block;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #8b8b94;
  --page: #09090b;
  --card: #131316;
  --line: #27272a;
  --line-soft: #1e1e22;
  --chip: #232327;
  --accent: #2dd4bf;
  --accent-dark: #5eead4;
  --accent-soft: #0f2926;
  --accent-line: #1d4a44;
  --night: #0e1615;
  --night-2: #121c1b;
  --var-true: #14b8a6;
  --var-false-ink: #a78bfa;
  --prod: #f97316;
  --prod-soft: #24140a;
  --prod-line: #4a2410;
  --prod-ink: #fdba74;
  --subtle: #18181b;
  --line-strong: #2e2e33;
  --rule: #3f3f46;
  --dim: #71717a;
  --on-ink: #09090b;
  --ink-hover: #d4d4d8;
  --chip-false: #221a35;
  --header-bg: rgba(9, 9, 11, 0.82);
  --grid: #17171a;
  --night-edge: #1f2d2b;
  --featured-edge: #2b5c55;
  --raised: #2c2c31;
  --show-light: none;
  --show-dark: block;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--on-ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--accent-bright); }
.h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; letter-spacing: -0.038em; line-height: 1.04; }
.h2 .soft { color: #8a8a94; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.dark .lead { color: var(--night-muted); }
.dark .lead a { color: var(--accent-bright); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head.center { align-items: center; text-align: center; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--dim); color: var(--ink); }
/* Only used on the night panels, which stay dark in both themes. */
.btn-light { background: #fff; color: #0a0a0b; }
.btn-light:hover { background: #e4e4e7; color: #0a0a0b; }
.btn-outline-dark { color: var(--night-text); border-color: #3f3f46; }
.btn-outline-dark:hover { border-color: #71717a; color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--chip); font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.chip-true { background: var(--accent-soft); color: var(--accent); }
.chip-false { background: var(--chip-false); color: var(--var-false-ink); }
.swatch { width: 7px; height: 7px; border-radius: 2px; }
.swatch-true { background: var(--var-true); }
.swatch-false { background: var(--var-false); }
.check { width: 18px; height: 18px; color: var(--accent); }
.dark .check { color: var(--accent-bright); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo-flag { stroke: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-link:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .nav-link { padding: 0 10px; }
.nav-end { display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  align-items: center; justify-content: center;
}
/* Shown only once theme.js has run (the .js class): without scripts the button could do nothing. */
.theme-btn {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  align-items: center; justify-content: center; color: var(--ink-2);
}
.js .theme-btn { display: inline-flex; }
.theme-btn:hover { border-color: var(--dim); color: var(--ink); }
.theme-btn .icon-moon { display: var(--show-light); }
.theme-btn .icon-sun { display: var(--show-dark); }
.mobile-menu { display: none; border-top: 1px solid var(--line-soft); padding: 12px 0 20px; }
/* Only the menu's own links; the Sign in / Start free buttons keep their .btn styles. */
.mobile-menu > a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn-row { padding-top: 16px; }
.mobile-menu .btn { flex: 1; }
.site-header.open .mobile-menu { display: block; }
/* Vertical padding here, not in .mobile-menu: the phone rule ".wrap { padding: 0 16px }" would reset it. */
.site-header .mobile-menu { padding-top: 12px; padding-bottom: 20px; }
/* Open, the menu is a solid panel: the translucent blurred header would show the page through it. */
.site-header.open { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 12px 24px -12px rgba(10, 10, 11, 0.18); }

/* Hero */
.hero { position: relative; }
.hero-grid-bg {
  position: absolute; inset: 0 0 auto 0; height: 820px; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative; padding-top: 88px; padding-bottom: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 13.5px;
}
.announce:hover { border-color: var(--accent-line); color: var(--ink); }
.announce-tag { height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; }
.announce-arrow { color: var(--accent); padding-right: 6px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); font-weight: 600; letter-spacing: -0.048em; line-height: 0.98; }
.hero .lead { max-width: 520px; font-size: 19px; }
.install {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  height: 42px; padding: 0 6px 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
}
.install .prompt { color: var(--dim); }
/* Hero: the install command with a language row on top. The row needs main.js, so it shows only with .js;
   without it the card is just the Node.js command. */
/* A fixed width, so switching language doesn't resize it; the longest command fits on one line on desktop. */
.sdk-picker { width: min(100%, 540px); border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.sdk-picker .install { border: 0; background: transparent; }
.sdk-langs { display: none; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line-soft); }
.js .sdk-langs { display: flex; }
.sdk-langs button {
  height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-family: var(--mono); font-size: 12.5px;
}
.sdk-langs button:hover { color: var(--ink); }
.sdk-langs button[aria-pressed='true'] { background: var(--chip); color: var(--ink); }
.install code { font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  width: 32px; height: 32px; border: 0; background: transparent; border-radius: 7px; color: var(--faint);
  display: flex; align-items: center; justify-content: center;
}
.copy-btn:hover { background: var(--chip); color: var(--ink); }
.copy-btn .done { display: none; color: var(--accent); }
.copy-btn.copied .idle { display: none; }
.copy-btn.copied .done { display: block; }

/* Hero product visual */
.visual { position: relative; padding: 28px 0 36px; min-width: 0; }
.flag-card { overflow: hidden; }
.flag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.flag-key { display: flex; align-items: center; gap: 10px; }
.flag-key .mono { font-size: 15px; font-weight: 500; }
.env-tabs { display: flex; gap: 2px; padding: 3px; background: var(--chip); border-radius: 9px; font-size: 12.5px; }
.env-tabs span { padding: 5px 10px; color: var(--muted); }
.env-tabs .on { background: var(--raised); color: var(--ink); border-radius: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.dot-prod { width: 7px; height: 7px; border-radius: 50%; background: var(--prod); }
.flag-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.flag-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flag-status-left { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.flag-status-meta { font-size: 12.5px; color: var(--faint); }
.toggle { width: 40px; height: 24px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.rule { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rule-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.rule-n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.rule-indent { padding-left: 18px; }
.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split-true { width: 20%; background: var(--var-true); }
.split-false { flex: 1; background: var(--var-false); }
.split-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.split-legend .t { color: var(--accent); font-weight: 500; }
.split-legend .f { color: var(--var-false-ink); font-weight: 500; }
.rule-default { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 14px; color: var(--muted); }
.flag-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; background: var(--prod-soft); border-top: 1px solid var(--prod-line);
}
.flag-foot-note { font-size: 13px; color: var(--prod-ink); display: flex; align-items: center; gap: 8px; }
.flag-foot-btn { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }
.float { position: absolute; }
.float-eval {
  left: -44px; top: -38px; background: var(--night); color: var(--night-text); border-radius: 12px; padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px; box-shadow: 0 18px 40px -16px rgba(10, 10, 11, 0.45);
  display: flex; flex-direction: column; gap: 6px;
}
.float-eval .row { display: flex; gap: 10px; align-items: center; }
.float-approve { right: -28px; bottom: -34px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border-radius: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.float-approve .text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.float-approve .text strong { font-weight: 500; }
.float-approve .text span { color: var(--faint); }

/* Rail band */
.rail { padding-top: 24px; padding-bottom: 72px; }
.rail-track { position: relative; height: 150px; }
.rail-track svg { position: absolute; inset: 0; width: 100%; height: 150px; }
.rail-line { stroke: var(--rule); }
.rail-node {
  position: absolute; left: 37%; top: 75px; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}
.rail-label { position: absolute; font-family: var(--mono); font-size: 12px; }
.rail-label.in { left: 0; top: 44px; color: var(--faint); }
.rail-label.t { right: 0; top: 0; color: var(--accent); }
.rail-label.f { right: 0; bottom: 0; color: var(--var-false-ink); }
.rail-caption { margin-top: 20px; font-size: 14px; color: var(--faint); max-width: 560px; }
.flow { stroke-dasharray: 3 21; animation: rf-flow 1.4s linear infinite; }
.flow-slow { animation-duration: 1.9s; }
@keyframes rf-flow { to { stroke-dashoffset: -48; } }

/* Works with */
.works { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--card); }
.works .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.works p { font-size: 13.5px; color: var(--faint); }
.works ul { display: flex; gap: 12px 36px; flex-wrap: wrap; font-family: var(--mono); font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* Sections */
.section { padding: 128px 0; }
.section-stack { display: flex; flex-direction: column; gap: 64px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pillar { padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: none; }
.pillar h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pillar-art {
  height: 168px; border-radius: 12px; background: var(--subtle); border: 1px solid var(--line-soft); padding: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; position: relative;
}
.art-local { justify-content: space-between; }
.art-process { border: 1.5px dashed var(--accent-line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.art-process .label { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.art-process .call { font-family: var(--mono); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.art-process .call span:last-child { color: var(--accent); }
.art-wire { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.art-wire::before { content: ''; flex: 1; border-top: 1.5px dotted var(--dim); }
.art-sdk { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; }
/* One row per SDK: compact, so all of them fit the 168px box. */
.art-sdks { padding: 12px 18px; gap: 5px; }
.art-sdks .art-sdk { padding: 3px 10px; font-size: 12px; }
.art-sdk span:first-child { color: var(--muted); }
.art-sdk em { font-style: normal; color: var(--accent); }
.art-trail { padding-left: 22px; gap: 14px; }
.art-trail::before { content: ''; position: absolute; left: 26px; top: 30px; bottom: 30px; border-left: 1.5px solid var(--rule); }
.trail-item { display: flex; gap: 12px; align-items: center; position: relative; font-size: 13px; }
.trail-item small { color: var(--faint); font-size: 13px; }
.trail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--dim); flex: none; }
.trail-dot.ok { border-color: var(--accent); }
.trail-dot.done { border-color: var(--accent); background: var(--accent); }

/* Dark developer section */
.dark { background: var(--night); color: var(--night-text); }
.section.dark { border-block: 1px solid var(--night-edge); }
.dark .h2 { color: #fff; }
.dev { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: center; }
.dev-copy { display: flex; flex-direction: column; gap: 28px; }
.ticks { display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .check { margin-top: 3px; }
.ticks strong { color: #fff; font-weight: 500; }
.ticks span span { color: var(--night-muted); }
.code {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); min-width: 0;
}
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--night-line); flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; }
.tab { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--night-muted); font-family: var(--mono); font-size: 13.5px; }
.tab:hover { color: #fff; }
.tab[aria-selected='true'] { background: #1f2a28; color: #fff; }
.code-file { font-family: var(--mono); font-size: 12px; color: #8a8a94; padding-right: 6px; }
.code-body { padding: 20px 22px 24px; font-family: var(--mono); font-size: 13.5px; color: var(--night-text); overflow-x: auto; }
.code-body pre { margin: 0; font: inherit; line-height: 1.75; }
.code-foot { border-top: 1px solid var(--night-line); padding: 12px 10px 12px 22px; font-family: var(--mono); font-size: 12.5px; color: #8a8a94; display: flex; align-items: center; gap: 10px; }
.code-foot code { font: inherit; flex: 1; overflow-x: auto; white-space: nowrap; }
.code-foot .prompt { color: var(--accent-bright); }
.dark .copy-btn { color: #8a8a94; }
.dark .copy-btn:hover { background: #1f2a28; color: #fff; }
.dark .copy-btn .done { color: var(--accent-bright); }
.k { color: var(--accent-bright); }
.s { color: #fcd3a8; }
.c { color: #8a8a94; }
.p { color: var(--night-muted); }
.f { color: #c4b5fd; }

/* Migration */
.migrate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: center; }
.migrate-copy { display: flex; flex-direction: column; gap: 28px; }
.terminal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 10, 11, 0.25); min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--subtle); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.terminal-bar span { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 8px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; display: flex; flex-direction: column; gap: 14px; overflow-x: auto; }
.terminal-ask { display: flex; gap: 10px; font-weight: 500; }
.terminal-ask span:first-child, .terminal-steps b { color: var(--accent); font-weight: 400; }
.terminal-steps { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.terminal-steps em { font-style: normal; color: var(--faint); }
.terminal-note { border: 1px solid var(--prod-line); background: var(--prod-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.terminal-note strong { color: var(--prod-ink); font-weight: 500; }
.terminal-note span { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 28px; }
.fact { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.fact h3 { font-weight: 600; font-size: 15px; }
.fact p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Governance */
.band { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 120px 0; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.band-head .lead { max-width: 380px; font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.feature { background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature svg { color: var(--accent); }
.feature h3 { font-size: 16px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Pricing */
.billing { display: inline-flex; gap: 4px; padding: 4px; background: var(--chip); border-radius: 10px; margin-top: 8px; }
.billing button { height: 36px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.billing button:hover { color: var(--ink); }
.billing button[aria-pressed='true'] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 10, 11, 0.1); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: none; position: relative; }
.plan h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.plan .for { color: var(--muted); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--faint); font-size: 14px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; }
.plan-featured { background: var(--night); color: var(--night-text); border: 1px solid var(--featured-edge); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(11, 18, 17, 0.55); }
.plan-featured h3, .plan-featured .amount { color: #fff; }
.plan-featured .for, .plan-featured .per { color: var(--night-muted); }
.plan-featured ul { color: var(--night-text); }
.badge { position: absolute; top: 32px; right: 32px; font-family: var(--mono); font-size: 11.5px; color: var(--accent-bright); border: 1px solid #2a4a46; border-radius: 999px; padding: 3px 10px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; background: var(--card); }
.offer div { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.offer h3 { font-weight: 600; font-size: 16px; }
.offer p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.offer strong { color: var(--ink); font-weight: 500; }
.fine { text-align: center; color: var(--faint); font-size: 13px; }

/* Final CTA */
.cta-wrap { padding-bottom: 120px; }
.cta { position: relative; overflow: hidden; border: 1px solid var(--night-edge); border-radius: 24px; padding: 88px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta > *:not(svg) { position: relative; }
.cta .h2 { max-width: 640px; }
.cta .lead { max-width: 520px; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--faint); font-size: 14px; max-width: 220px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer nav h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.footer nav a { color: var(--ink-2); }
.footer .footer-legal { flex-direction: row; gap: 20px; font-size: 13px; }
.footer .footer-legal a { color: var(--faint); }
.footer .footer-legal a:hover { color: var(--ink); }
.footer nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 24px; margin-top: 56px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }

/* Migration request page */
.page-top { border-bottom: 1px solid var(--line-soft); }
.page-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.back { font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 96px; }
.request-copy { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 32px; }
.request-copy .h2 { font-size: clamp(32px, 4vw, 46px); text-wrap: balance; }
.request-steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.request-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.request-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.request-steps b { color: var(--ink); font-weight: 500; }
.request-price { font-size: 14.5px; color: var(--muted); }
.request-price strong { color: var(--ink); font-weight: 600; }
.request-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-card); min-width: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field .optional { color: var(--faint); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input, .field select { height: 44px; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--prod); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--prod-soft); }
.field-error { font-size: 13px; color: var(--prod-ink); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--faint); text-align: center; }
.form-alert { display: none; margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: var(--prod-soft); border: 1px solid var(--prod-line); color: var(--prod-ink); font-size: 14px; }
.form-alert:target, .form-alert.show { display: block; }
.form-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 8px 0; }
.form-done-title { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form[hidden], .form-done[hidden] { display: none; }

@media (max-width: 900px) {
  .request { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .request-copy { position: static; }
  .float { display: none; }
  .nav-links, .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .request-card { padding: 22px; }
  .wrap.request { padding-top: 40px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .section { padding: 88px 0; }
  .band { padding: 88px 0; }
  .hero-inner { padding-top: 56px; gap: 40px; }
  .cta { padding: 56px 24px; }
  .cta > svg { display: none; }
  .cta-wrap { padding-bottom: 88px; }
  .plan { padding: 24px; }
  .badge { top: 24px; right: 24px; }
  .rail-label.in { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow { animation: none; }
}

/* Guides (long-form articles) */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.article-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.article-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.article-head .lead { font-size: 19px; max-width: 720px; }
.article-meta { font-size: 13px; color: var(--faint); }
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); margin-top: 56px; scroll-margin-top: 96px; text-wrap: balance; }
.prose h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-top: 32px; scroll-margin-top: 96px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
/* Buttons inside an article keep their own look, not the article's link style. */
.prose a.btn { text-decoration: none; }
.prose a.btn-light, .prose a.btn-light:hover { color: #0a0a0b; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--chip); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.prose pre { background: var(--night); color: var(--night-text); border: 1px solid var(--night-edge); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre .c { color: #8a8a94; }
.prose pre .k { color: #c4b5fd; }
.prose pre .s { color: var(--accent-bright); }
.prose .definition { font-size: 19px; color: var(--ink); border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.prose .note { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 14px 18px; font-size: 15.5px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { background: var(--subtle); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.prose .marks-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 12px; font-size: 13.5px; color: var(--muted); }
.prose .marks-key span { display: inline-flex; align-items: center; gap: 6px; }
/* Comparison marks: a cell with class "m" starts with <i class="mark yes|part|no" role="img" aria-label="…">. */
.prose td.m { position: relative; padding-left: 42px; }
.mark { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; }
.prose td.m > .mark { position: absolute; left: 14px; top: 12px; }
.mark::before { content: ''; display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--mark-icon) center / 12px 12px no-repeat; mask: var(--mark-icon) center / 12px 12px no-repeat; }
.mark.yes { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mark.part { background: var(--prod-soft); color: var(--prod); box-shadow: inset 0 0 0 1px var(--prod-line); --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark.no { background: var(--chip); color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-strong); --mark-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* The diagrams keep their light colours as SVG attributes, so they still read without the stylesheet.
   These rules (which win over attributes) swap each one for its theme token; in light mode nothing changes. */
.prose figure [fill="#fff"] { fill: var(--card); }
.prose figure [fill="#0a0a0b"] { fill: var(--ink); }
.prose figure [stroke="#0a0a0b"] { stroke: var(--ink); }
.prose figure [fill="#3f3f46"] { fill: var(--ink-2); }
.prose figure [fill="#55555e"] { fill: var(--muted); }
.prose figure [fill="#71717a"] { fill: var(--faint); }
.prose figure [fill="#f1f1f3"] { fill: var(--chip); }
.prose figure [stroke="#d4d4d8"] { stroke: var(--rule); }
.prose figure [stroke="#a1a1aa"] { stroke: var(--dim); }
.prose figure [fill="#e2f1ef"] { fill: var(--accent-soft); }
.prose figure [fill="#0f766e"] { fill: var(--accent); }
.prose figure [stroke="#0f766e"] { stroke: var(--accent); }
.prose figure [fill="#0d9488"] { fill: var(--var-true); }
.prose figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: 22px; }
.faq dd { margin: 6px 0 0; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc p { font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.toc a { color: var(--muted); padding: 3px 0; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.article-cta { margin-top: 64px; background: var(--night); color: var(--night-text); border: 1px solid var(--night-edge); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.article-cta h2 { color: #fff; margin-top: 0; font-size: 26px; }
.article-cta p { color: var(--night-muted); }
.related { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.related a { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--card); display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.related a span { color: var(--muted); font-size: 14.5px; }
.related a:hover { border-color: var(--dim); }
@media (max-width: 1000px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .article-wrap { padding-top: 32px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 25px; margin-top: 44px; }
  .article-cta { padding: 24px; }
}

/* Mobile QA (2026-11-17): phone-sized tap targets, no iOS input zoom, readable small text, tables as cards */
.field input, .field select, .field textarea { font-size: 16px; } /* under 16px, iOS Safari zooms the page on focus */
.badge, .art-wire, .art-process .label { font-size: 12px; }
.prose figure svg.fig-tall { display: none; }
/* Touch screens (and anything narrow enough for the menu button): 44px tap targets. */
@media (max-width: 900px), (pointer: coarse) {
  .menu-btn, .theme-btn { width: 44px; height: 44px; }
  .brand { min-height: 44px; }
  .announce { height: auto; min-height: 44px; padding: 6px 12px 6px 6px; text-wrap: balance; }
  .copy-btn { width: 44px; height: 44px; flex: none; }
  .install { height: 46px; }
  .tab, .billing button, .sdk-langs button { height: 44px; }
  .back, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs { align-items: center; margin-bottom: 4px; }
  .footer nav a { display: flex; align-items: center; min-height: 44px; }
  .footer nav { gap: 0; }
  .footer .footer-legal { gap: 20px; }
  .footer-bottom { align-items: center; }
  .prose td a { padding: 13px 0; } /* inline padding grows the tap area without moving the layout */
}
@media (max-width: 640px) {
  .install { font-size: 12.5px; padding-left: 12px; gap: 8px; }
  /* Long commands wrap instead of hiding their end behind "…", so what you see is what the copy button copies. */
  .install { height: auto; min-height: 46px; align-items: flex-start; }
  .install .prompt, .install code { line-height: 20px; margin-block: 12px; }
  .install code { white-space: normal; overflow-wrap: anywhere; }
  .install .copy-btn { align-self: center; }
  .prose td:first-child a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer nav h2 { margin-bottom: 4px; }
  .prose pre { font-size: 12.5px; padding: 14px 16px; }
  .prose figure svg.fig-wide { display: none; }
  .prose figure svg.fig-tall { display: block; }
  /* Tables become one card per row; each cell shows its column name (data-label). */
  .table-scroll { border: 0; border-radius: 0; overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose tr { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 6px 0 10px; }
  .prose tr + tr { margin-top: 12px; }
  .prose td { position: relative; border: 0; padding: 5px 16px 5px calc(40% + 12px); }
  .prose td::before { content: attr(data-label); position: absolute; left: 16px; width: calc(40% - 16px); color: var(--faint); font-size: 13px; line-height: 1.5; }
  .prose td:first-child { padding: 10px 16px 5px; font-size: 16px; font-weight: 600; color: var(--ink); }
  .prose td:first-child::before { content: none; }
  .prose td code { white-space: normal; overflow-wrap: anywhere; }
  .prose td.m { padding-left: calc(40% + 40px); }
  .prose td.m > .mark { left: calc(40% + 12px); top: 7px; }
}

/* Release Watch page */
.rw-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.rw-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.rw-hero h1 { color: #fff; }
.rw-console { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -20px 80px -30px rgba(45, 212, 191, 0.35); min-width: 0; }
.rw-console-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--night-muted); padding-bottom: 6px; }
.rw-crumb b { color: var(--night-text); font-weight: 500; }
.rw-live { color: var(--accent-bright); display: inline-flex; align-items: center; gap: 8px; }
.rw-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 10px var(--accent-bright); }
.rw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--night-line); border-radius: 10px; padding: 12px 14px; }
.rw-name { font-size: 14.5px; color: var(--night-text); }
.rw-val { font-family: var(--mono); font-size: 12px; color: var(--night-muted); margin-top: 2px; }
.rw-state { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.rw-state.ok { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.rw-state.near { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.rw-armed { border: 1px dashed var(--night-line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--night-muted); }
.rw-armed b { color: var(--night-text); font-weight: 500; }
.rw-plans, .rw-faq .prose { max-width: 860px; }
.rw-faq { padding-top: 0; }
