/* Runlet site.
   Layout: one centered column; the hero is a working app window floating on an
   ambient wash of the accent, and glass surfaces echo the app's Liquid Glass.
   The accent hue is a variable so the theme picker can recolor the page. */
:root {
  --h: 42;                                   /* accent hue (OKLCH degrees); 42 = the icon's coral */
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --ink: #14161B;
  --muted: #5A6070;
  --faint: #8A90A0;
  --line: rgba(22, 26, 36, 0.10);
  --tint: #ECEEF3;
  --accent: oklch(0.63 0.18 var(--h));
  --accent-soft: oklch(0.63 0.18 var(--h) / 0.13);
  --on-accent: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-rim: rgba(22, 26, 36, 0.08);
  --shadow: rgba(30, 36, 52, 0.14);
  --code-bg: rgba(250, 251, 253, 0.85);

  /* syntax + semantics, tuned per theme */
  --syn-key: #2E64D6;
  --syn-str: #B45A12;
  --syn-num: #1F8A4C;
  --syn-kw: #A2329E;
  --syn-fn: #0F7C8C;
  --syn-com: #8A90A0;
  --syn-var: #2E64D6;
  --ok: #1F8A4C;
  --ok-soft: rgba(31, 138, 76, 0.12);
  --bad: #C9372C;
  --bad-soft: rgba(201, 55, 44, 0.11);
  --m-get: #1F8A4C;
  --m-post: #C26A0E;
  --m-put: #2E64D6;
  --m-patch: #7A4BD0;
  --m-delete: #C9372C;
  --m-other: #5A6070;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.5rem + 4vw, 4.6rem);

  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0E12;
    --surface: #15181E;
    --ink: #ECEEF3;
    --muted: #9BA1B0;
    --faint: #6C7282;
    --line: rgba(255, 255, 255, 0.09);
    --tint: #111318;
    --accent: oklch(0.72 0.16 var(--h));
    --accent-soft: oklch(0.72 0.16 var(--h) / 0.16);
    --on-accent: #120E0B;
    --glass: rgba(30, 34, 42, 0.52);
    --glass-strong: rgba(24, 27, 34, 0.74);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-rim: rgba(0, 0, 0, 0.35);
    --shadow: rgba(0, 0, 0, 0.45);
    --code-bg: rgba(14, 16, 21, 0.7);
    --syn-key: #7FB0FF;
    --syn-str: #F2B36B;
    --syn-num: #6FD39A;
    --syn-kw: #E38BE0;
    --syn-fn: #68D3E0;
    --syn-com: #6C7282;
    --syn-var: #7FB0FF;
    --ok: #5BD08C;
    --ok-soft: rgba(91, 208, 140, 0.14);
    --bad: #FF7A6E;
    --bad-soft: rgba(255, 122, 110, 0.13);
    --m-get: #5BD08C;
    --m-post: #F2A23C;
    --m-put: #7FB0FF;
    --m-patch: #B99BFF;
    --m-delete: #FF7A6E;
    --m-other: #9BA1B0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0E12;
  --surface: #15181E;
  --ink: #ECEEF3;
  --muted: #9BA1B0;
  --faint: #6C7282;
  --line: rgba(255, 255, 255, 0.09);
  --tint: #111318;
  --accent: oklch(0.72 0.16 var(--h));
  --accent-soft: oklch(0.72 0.16 var(--h) / 0.16);
  --on-accent: #120E0B;
  --glass: rgba(30, 34, 42, 0.52);
  --glass-strong: rgba(24, 27, 34, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-rim: rgba(0, 0, 0, 0.35);
  --shadow: rgba(0, 0, 0, 0.45);
  --code-bg: rgba(14, 16, 21, 0.7);
  --syn-key: #7FB0FF;
  --syn-str: #F2B36B;
  --syn-num: #6FD39A;
  --syn-kw: #E38BE0;
  --syn-fn: #68D3E0;
  --syn-com: #6C7282;
  --syn-var: #7FB0FF;
  --ok: #5BD08C;
  --ok-soft: rgba(91, 208, 140, 0.14);
  --bad: #FF7A6E;
  --bad-soft: rgba(255, 122, 110, 0.13);
  --m-get: #5BD08C;
  --m-post: #F2A23C;
  --m-put: #7FB0FF;
  --m-patch: #B99BFF;
  --m-delete: #FF7A6E;
  --m-other: #9BA1B0;
  color-scheme: dark;
}

/* Light/dark screenshot pairs follow the page appearance, including the toggle. */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.88em; color: var(--syn-fn); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font: 600 var(--step--1)/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--accent);
}

.kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  border-radius: 6px;
  background: var(--accent-soft);
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  font: 500 0.8em/1.5 var(--font-mono);
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

/* Glass: blur + rim + top highlight, the web's nearest thing to Liquid Glass. */
.glass, .glass-strong {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 0.5px var(--glass-rim), 0 6px 22px -8px var(--shadow);
}
.glass-strong { background: var(--glass-strong); }

/* ---------- nav ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  font: 700 1.15rem/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.palette-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 8px 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.88rem var(--font-body);
  cursor: pointer;
}
.palette-trigger:hover { color: var(--ink); }
.palette-trigger .kbd { font-size: 0.72rem; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { display: none; }
.icon-btn[data-mode="system"] .ico-system,
.icon-btn[data-mode="light"] .ico-light,
.icon-btn[data-mode="dark"] .ico-dark { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) 40px; isolation: isolate; }
.ambient {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px);
}
.ambient::before {
  width: min(900px, 120vw); height: 520px; left: 50%; top: 42%;
  transform: translateX(-60%);
  background: radial-gradient(closest-side, oklch(0.75 0.17 var(--h) / 0.55), transparent);
}
.ambient::after {
  width: min(700px, 100vw); height: 420px; left: 50%; top: 58%;
  transform: translateX(-5%);
  background: radial-gradient(closest-side, oklch(0.72 0.14 calc(var(--h) + 200) / 0.32), transparent);
}
.hero-copy { display: grid; gap: 20px; justify-items: start; max-width: 1180px; margin-bottom: clamp(36px, 5vw, 56px); }
.hero h1 {
  font: 760 var(--step-3)/0.98 var(--font-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 0.98rem var(--font-body); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 26px -12px var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-quiet { color: var(--muted); padding-inline: 6px; }
.btn-quiet:hover { color: var(--ink); }

/* ---------- demo window ---------- */
.app-window {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 0.5px var(--glass-rim), 0 40px 80px -30px var(--shadow), 0 18px 36px -24px var(--shadow);
}
.win-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 4px 16px;
}
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.18); }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.win-title { font: 650 1.05rem var(--font-display); margin-right: auto; padding-left: 6px; }

.req-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 8px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  font: 600 0.84rem var(--font-mono); letter-spacing: 0.01em;
  color: var(--ink); cursor: pointer; white-space: nowrap;
}
.pill .chev { opacity: 0.6; }
.pill:disabled { cursor: default; opacity: 0.55; }
.pill.method { color: var(--m-other); }
.pill.method[data-method="GET"] { color: var(--m-get); }
.pill.method[data-method="POST"] { color: var(--m-post); }
.pill.method[data-method="PUT"] { color: var(--m-put); }
.pill.method[data-method="PATCH"] { color: var(--m-patch); }
.pill.method[data-method="DELETE"] { color: var(--m-delete); }

.url-field {
  position: relative; flex: 1; min-width: 0; height: 36px;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
}
.url-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.url-mirror, .url-field input {
  position: absolute; inset: 0;
  padding: 0 12px;
  font: 450 0.92rem/34px var(--font-mono);
  white-space: pre; overflow: hidden;
}
.url-mirror { color: var(--ink); pointer-events: none; }
.url-field input {
  width: 100%; border: 0; outline: 0; background: transparent;
  color: transparent; caret-color: var(--ink);
}
.url-field input::selection { background: var(--accent-soft); color: transparent; }
.url-mirror .var { color: var(--syn-var); }

.send-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font: 600 0.92rem var(--font-body); cursor: pointer;
  position: relative; overflow: hidden;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.send-btn:hover { filter: brightness(1.06); }
.send-btn:active { transform: scale(0.97); }
.send-btn.small { height: 28px; padding: 0 12px; font-size: 0.82rem; border-radius: 8px; }
.send-btn.is-busy::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--on-accent), transparent);
  animation: sweep 0.9s linear infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.try-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 0 16px 10px; color: var(--muted); font-size: 0.84rem;
}
.try-hint { margin-right: auto; }
.chip {
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 500 0.8rem var(--font-body); cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 25%, transparent); }

.panes {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-top: 1px solid var(--line);
}
.pane { min-width: 0; display: flex; flex-direction: column; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane-head {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.tab {
  font: 600 0.84rem var(--font-body);
  padding: 4px 10px; border-radius: 7px;
}
.tab.is-on { background: var(--accent-soft); color: var(--accent); }
.pane-meta { font: 500 0.78rem var(--font-mono); color: var(--faint); }
.pane-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.res-stats {
  margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; align-items: center;
  font: 500 0.78rem var(--font-mono); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.status {
  padding: 2px 8px; border-radius: 6px; font-weight: 600;
  background: var(--ok-soft); color: var(--ok);
}
.status.is-bad { background: var(--bad-soft); color: var(--bad); }
.status.is-info { background: var(--accent-soft); color: var(--accent); }
.tests-badge { padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }

.code {
  margin: 0; padding: 14px 16px;
  font: 450 0.82rem/1.65 var(--font-mono);
  color: var(--ink);
  white-space: pre; overflow: auto;
  tab-size: 2;
}
#req-code, .res-body { height: 340px; }
.res-body { overflow: auto; }
.res-body .code { overflow: visible; }
.res-empty { padding: 18px 16px; color: var(--faint); font-size: 0.9rem; }
.tok-key { color: var(--syn-key); }
.tok-str { color: var(--syn-str); }
.tok-num { color: var(--syn-num); }
.tok-kw { color: var(--syn-kw); }
.tok-fn { color: var(--syn-fn); }
.tok-com { color: var(--syn-com); font-style: italic; }
.tok-var { color: var(--syn-var); }
.tok-tag { color: var(--syn-key); }
.tok-attr { color: var(--syn-kw); }

.reveal-line { display: block; animation: line-in 0.32s ease both; }
@keyframes line-in { from { opacity: 0; transform: translateY(3px); } }

.notice { padding: 18px 16px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); max-width: 52ch; }
.notice strong { color: var(--ink); font-weight: 600; }

.frames { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; }
.frame {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 7px 10px; border-radius: 9px; background: var(--code-bg); border: 1px solid var(--line);
  font: 450 0.78rem/1.5 var(--font-mono);
  animation: line-in 0.3s ease both;
}
.frame .dir { font-weight: 700; }
.frame.out .dir { color: var(--accent); }
.frame.in .dir { color: var(--ok); }
.frame .body { overflow-wrap: anywhere; }
.frame time { color: var(--faint); font-size: 0.72rem; }

/* ---------- dropdowns ---------- */
.dd { position: relative; }
.dd-menu {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  min-width: 100%; padding: 6px; border-radius: 16px;
  list-style: none; margin: 0;
  transform-origin: top left;
  animation: dd-in 0.2s cubic-bezier(.2,.9,.3,1.2) both;
}
.dd[data-dd="env"] .dd-menu { left: auto; right: 0; transform-origin: top right; }
@keyframes dd-in { from { opacity: 0; transform: scale(0.94) translateY(-4px); } }
.dd-menu li {
  display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 12px 0 8px; border-radius: 10px;
  font: 550 0.86rem var(--font-body); white-space: nowrap; cursor: pointer;
}
.dd-menu li .check { width: 14px; color: var(--accent); visibility: hidden; }
.dd-menu li[aria-selected="true"] .check { visibility: visible; }
.dd-menu li.is-active { background: color-mix(in oklab, var(--ink) 9%, transparent); }
.dd-menu li[data-method] { font-family: var(--font-mono); font-weight: 600; }
.dd-menu li[data-method="GET"] { color: var(--m-get); }
.dd-menu li[data-method="POST"] { color: var(--m-post); }
.dd-menu li[data-method="PUT"] { color: var(--m-put); }
.dd-menu li[data-method="PATCH"] { color: var(--m-patch); }
.dd-menu li[data-method="DELETE"] { color: var(--m-delete); }
.dd-menu li[data-method="HEAD"], .dd-menu li[data-method="OPTIONS"] { color: var(--m-other); }
.dd-menu li .sub { margin-left: auto; padding-left: 16px; color: var(--faint); font: 450 0.76rem var(--font-mono); }

/* ---------- promises ---------- */
.promises {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  padding-block: 40px 24px;
}
.promise { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--accent); padding-top: 14px; }
.promise h3 { font: 680 1.08rem var(--font-display); }
.promise p { color: var(--muted); font-size: 0.93rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.section-head h2 {
  font: 720 var(--step-2)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}
.section-lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.fine { color: var(--faint); font-size: 0.84rem; margin-top: 16px; }

/* segmented control */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 14px;
  max-width: 100%;
}
.seg button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
  font: 550 0.88rem var(--font-body); cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }

.feature-stage { margin-top: 28px; }
.feature { margin: 0; display: grid; gap: 20px; }
.feature figcaption { color: var(--muted); max-width: 70ch; font-size: 1rem; }
.feature figcaption strong { color: var(--ink); font-weight: 650; }
/* Screenshots are opaque, with the window's ~30px corners (at 2560×1600)
   filled with desktop grey. Clip them with a proportional radius slightly
   larger than that, so no grey wedge shows. The shadow sits on the wrapper
   so it follows the clipped shape. Height is capped to the viewport so the
   whole window stays in view on a 13-inch screen. */
.shot { filter: drop-shadow(0 24px 36px var(--shadow)) drop-shadow(0 2px 5px var(--shadow)); }
.shot img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  margin-inline: auto;
  border-radius: 1.6% / 2.56%;
  box-shadow: 0 0 0 1px var(--line);
}
.feature .shot img { animation: shot-in 0.4s ease both; }
@keyframes shot-in { from { opacity: 0.25; transform: translateY(6px) scale(0.995); } }

/* ---------- playground ---------- */
.playground { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.pg-editor, .pg-results { border-radius: 16px; overflow: hidden; min-width: 0; }
.editor { position: relative; height: 420px; background: var(--code-bg); }
.editor-mirror, .editor textarea {
  position: absolute; inset: 0; margin: 0;
  padding: 14px 16px;
  font: 450 0.84rem/1.65 var(--font-mono);
  white-space: pre; overflow: auto; tab-size: 2;
  border: 0; letter-spacing: 0;
}
.editor-mirror { pointer-events: none; }
.editor textarea {
  width: 100%; height: 100%; resize: none; outline: 0;
  background: transparent; color: transparent; caret-color: var(--ink);
}
.editor textarea::selection { background: var(--accent-soft); color: transparent; }
.test-list { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; }
.test-list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 8px 10px; border-radius: 10px; font-size: 0.9rem;
  animation: line-in 0.25s ease both;
}
.test-list li.pass { background: var(--ok-soft); }
.test-list li.fail { background: var(--bad-soft); }
.test-list .mark { font-weight: 700; text-align: center; }
.test-list .pass .mark { color: var(--ok); }
.test-list .fail .mark { color: var(--bad); }
.test-list .why { display: block; font: 450 0.78rem/1.5 var(--font-mono); color: var(--bad); margin-top: 2px; overflow-wrap: anywhere; }
.test-list .empty { color: var(--faint); background: none; grid-template-columns: 1fr; }
.pg-sub { padding: 6px 14px 14px; border-top: 1px solid var(--line); }
.pg-sub h4 { font: 600 0.74rem var(--font-mono); letter-spacing: 0.04em; color: var(--faint); margin: 8px 0 6px; }
.console {
  margin: 0; font: 450 0.78rem/1.55 var(--font-mono); color: var(--muted);
  white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em;
}
.console .err { color: var(--bad); }
.vars { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font: 450 0.8rem var(--font-mono); }
.vars dt { color: var(--syn-var); }
.vars dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- keyboard ---------- */
/* Each shortcut is a tile: real keycaps, one per key, with the action under them. */
.shortcuts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px;
}
.shortcuts li {
  display: grid; gap: 14px; align-content: start;
  padding: 20px 20px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.caps { display: flex; gap: 6px; }
.cap {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px;
  background: linear-gradient(to bottom, var(--surface), color-mix(in oklab, var(--surface) 88%, var(--ink)));
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 color-mix(in oklab, var(--ink) 14%, transparent), 0 3px 8px -4px var(--shadow);
  font: 550 1.05rem/1 var(--font-body);
  color: var(--ink);
}
.cap-mod { font-size: 1.15rem; color: var(--muted); }
.shortcuts .what { color: var(--ink); font-size: 0.98rem; line-height: 1.4; }

/* ---------- themes ---------- */
/* Pills beside the screenshot on wide screens, so both stay in view at once. */
.theme-stage {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; align-items: start;
}
.theme-picker { display: flex; flex-direction: column; gap: 8px; }
.theme-picker .swatch { width: 100%; }
.theme-shot img { max-height: calc(100svh - 110px); }
.swatch {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 550 0.88rem var(--font-body); cursor: pointer;
}
.swatch i {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--sw-a), var(--sw-b), var(--sw-a));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.swatch[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
.plan { border-radius: 20px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan h3 { font: 700 1.2rem var(--font-display); }
.plan .price { font: 720 2rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.plan-main { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--accent), 0 24px 48px -28px var(--shadow); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { justify-self: start; margin-top: 8px; }

/* ---------- faq ---------- */
.faq-list { display: grid; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font: 620 1.06rem var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--faint);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 68ch; }

/* ---------- footer ---------- */
.footer { padding-block: 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer nav a:hover { color: var(--ink); }
.footer .fine { margin: 0 0 0 auto; }

/* ---------- palette ---------- */
.palette-layer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; justify-items: center; align-items: start;
  padding: calc(12vh + env(safe-area-inset-top, 0px)) var(--gutter-r) 24px var(--gutter-l);
}
.palette-scrim { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.28); animation: fade 0.18s ease both; }
@keyframes fade { from { opacity: 0; } }
.palette {
  position: relative; width: min(620px, 100%); border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 0.5px var(--glass-rim), 0 40px 90px -20px rgba(0,0,0,.45);
  animation: pal-in 0.22s cubic-bezier(.2,.9,.3,1.15) both;
}
@keyframes pal-in { from { opacity: 0; transform: scale(0.96) translateY(-6px); } }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 1.05rem var(--font-body); color: var(--ink);
}
.palette-scroll { max-height: min(380px, 52vh); overflow: auto; padding: 6px; }
.palette-scroll ul { list-style: none; margin: 0; padding: 0; }
.palette-scroll .group {
  padding: 10px 10px 4px; font: 600 0.72rem var(--font-mono); letter-spacing: 0.05em; color: var(--faint);
}
.palette-scroll .item {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: 11px; cursor: pointer;
  font-size: 0.95rem;
}
.palette-scroll .item .ico {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--muted);
  font: 600 0.72rem var(--font-mono);
}
.palette-scroll .item .hint { margin-left: auto; color: var(--faint); font-size: 0.8rem; }
.palette-scroll .item.is-active { background: var(--accent); color: var(--on-accent); }
.palette-scroll .item.is-active .ico { background: color-mix(in oklab, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.palette-scroll .item.is-active .hint { color: var(--on-accent); opacity: 0.8; }
.palette-scroll .none { padding: 18px 12px; color: var(--faint); }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.78rem; }
.palette-foot .kbd { margin-right: 3px; font-size: 0.7rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .theme-stage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .theme-picker { flex-direction: row; flex-wrap: wrap; }
  .theme-picker .swatch { width: auto; }
}
@media (max-width: 720px) {
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  #req-code { height: 220px; }
  .res-body { height: 300px; }
  .req-bar { flex-wrap: wrap; }
  .url-field { order: 3; flex-basis: 100%; }
  .send-btn#send-button { order: 2; margin-left: auto; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shortcuts li { padding: 16px; }
  .cap { min-width: 38px; height: 38px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .palette-trigger-label { display: none; }
  .footer .fine { margin-left: 0; }
}
@media (max-width: 520px) {
  .promises { grid-template-columns: minmax(0, 1fr); }
  .win-title { display: none; }
  .editor { height: 360px; }
  .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.palette-scroll { scroll-padding-block: 6px; }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc-inner { max-width: 720px; display: grid; gap: 18px; }
.doc h1 { font: 740 var(--step-2)/1.08 var(--font-display); letter-spacing: -0.025em; }
.doc h2 { font: 680 1.25rem/1.3 var(--font-display); margin-top: 18px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 620; }
.doc ul, .doc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc .updated { font: 500 var(--step--1) var(--font-mono); color: var(--faint); }
.doc a { color: var(--accent); }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 18px 20px; border-radius: 16px;
}
.contact-card .addr { font: 550 1.05rem var(--font-mono); user-select: all; overflow-wrap: anywhere; }
.plan .price .per { font: 500 1rem var(--font-body); color: var(--muted); letter-spacing: 0; }
