/* =========================================================================
   k64 design system: dark and technical. Graphite, one ember accent,
   Geist and Geist Mono, hairlines and blueprint rails. Manual: docs/KIT.md.
   Owner: lead. Pages read these tokens and classes and never redefine them.
   ========================================================================= */

/* ---------- fonts: self-hosted from /fonts (no third-party font CDN) ----------
   Geist and Geist Mono by Vercel, SIL Open Font License 1.1 (/fonts/OFL.txt).
   The variable woff2 files of the official "geist" npm package, v1.7.2
   (dist/fonts/geist-sans/Geist-Variable.woff2, dist/fonts/geist-mono/GeistMono-Variable.woff2),
   copied unchanged. One file per family covers every weight (wght axis 100-900; the site
   uses Geist 300-700 and Geist Mono 400-600) and the whole character set, so there is no
   unicode-range split. No italic file: italics are synthesised, as before.
   Base.astro preloads both files. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #08090b;
  --bg-1: #0c0d10;
  --bg-2: #101215;
  --panel: #121418;
  --panel-2: #171a1f;
  --panel-3: #1e2228;
  /* hairlines */
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --line-3: rgba(255, 255, 255, .19);
  /* text */
  --text: #f3f4f6;
  --text-2: #a8adb7;
  --text-3: #6f7581;
  --text-4: #4b5059;
  /* the one accent, and the states */
  --ember: #ff6a3d;
  --ember-2: #ff8a62;
  --ember-3: #ffb497;
  --ember-dim: rgba(255, 106, 61, .13);
  --ember-glow: rgba(255, 96, 48, .75);
  --sky: #73c6f8;
  --sky-dim: rgba(115, 198, 248, .12);
  --green: #3ddc97;
  --green-dim: rgba(61, 220, 151, .12);
  --amber: #ffb547;
  --amber-dim: rgba(255, 181, 71, .12);
  --red: #ff6161;
  --red-dim: rgba(255, 97, 97, .12);
  --violet: #a798ff;
  --violet-dim: rgba(167, 152, 255, .13);
  --blue: #6ea0ff;
  /* type */
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* shape and motion */
  --r: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-xs: 7px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* layout */
  --nav: 64px;
  --wrap: 1200px;
  --gutter: 24px;
  --rail: max(var(--gutter), calc(50% - var(--wrap) / 2));
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23575d67'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  /* layers */
  --z-nav: 60;
  --z-sheet: 70;
  --z-toast: 90;
  --z-grain: 100;
}
@media (max-width: 720px) { :root { --nav: 58px; --gutter: 16px; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
::selection { background: var(--ember); color: #170904; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd, samp { font-family: var(--mono); }
code { font-size: .9em; }
img, svg, canvas, video { display: block; max-width: 100%; }
canvas { max-width: none; }
hr { height: 1px; margin: 32px 0; border: 0; background: var(--line); }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 14px; border-radius: 10px; color: #190a04; background: var(--ember); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
main { position: relative; z-index: 1; display: block; outline: none; }

/* the grain over everything, and the two blueprint rails */
.grain { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.rails { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.rails::before, .rails::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--rail); width: 1px; background: linear-gradient(transparent, var(--line) 12%, var(--line) 88%, transparent); }
.rails::after { left: auto; right: var(--rail); }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 880px); }
.container { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { position: relative; padding: clamp(88px, 9.5vw, 136px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.section::after { content: ''; position: absolute; top: -5px; left: calc(var(--rail) - 5px); right: calc(var(--rail) - 5px); height: 11px; pointer-events: none; background: var(--cross) left center / 11px 11px no-repeat, var(--cross) right center / 11px 11px no-repeat; }
.section--flush::before, .section--flush::after { display: none; }
.section--glow { background: radial-gradient(60% 40% at 50% 0%, rgba(255, 106, 61, .055), transparent 70%); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--rev > :first-child { order: 2; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- type ---------- */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.kicker span { color: var(--ember); }
.kicker i { width: 28px; height: 1px; background: var(--line-3); }
.h1 { margin: 0; font: 600 clamp(48px, 7.2vw, 108px)/.92 var(--font); letter-spacing: -.055em; }
.h2 { max-width: 17ch; margin: 0; font: 600 clamp(36px, 4.6vw, 62px)/1.02 var(--font); letter-spacing: -.042em; }
.h3 { margin: 0; font: 500 clamp(21px, 1.9vw, 26px)/1.18 var(--font); letter-spacing: -.028em; }
.h1 .dim, .h2 .dim, .h3 .dim { color: var(--text-4); }
.lead { max-width: 37em; margin: 22px 0 0; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.lead b, .lead strong { font-weight: 500; color: var(--text); }
.sh { margin-bottom: 60px; }
.sh--center { text-align: center; }
.sh--center .h2, .sh--center .lead, .sh--center .h1 { margin-inline: auto; }
.sh--center .kicker { justify-content: center; }
.sh--row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 48px; }
.sh--row .lead { margin: 0 0 6px; }
.ember { background: linear-gradient(95deg, #ff9268 0%, #ff6a3d 45%, #ff5a2a 70%, #ffa07a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); }
.label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.label svg.i { width: 14px; height: 14px; }
.num { font-variant-numeric: tabular-nums; }
p code, li code, dd code, td code, .lead code { padding: 1px 5px; border-radius: 5px; color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.link:hover { color: var(--ember-2); text-decoration-color: var(--ember); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-sm); font: 500 14.5px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, opacity .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { color: #190a04; background: linear-gradient(180deg, #ff7f57, #ff5f2f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px var(--ember-glow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -12px rgba(255, 96, 48, .9); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--white { color: #0b0c0f; background: #f3f4f6; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15), 0 10px 30px -12px rgba(255, 255, 255, .35); }
.btn--white:hover { transform: translateY(-1px); background: #fff; }
.btn--quiet { color: var(--text-2); background: none; }
.btn--quiet:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn--lg { height: 48px; padding: 0 20px; font-size: 15.5px; border-radius: var(--r-md); }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--text-3); background: transparent; cursor: pointer; transition: color .2s, background-color .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- chips, states, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-xs); font: 400 12px/1 var(--mono); color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.chip svg.i { width: 13px; height: 13px; }
/* a chip you pick reads as words (Geist); a chip that shows a value (a runtime, a host) stays mono */
button.chip, .chips--words .chip { font-family: var(--font); font-size: 12.5px; }
button.chip.mono, .chips--words .chip.mono { font-family: var(--mono); font-size: 12px; }
button.chip { border: 0; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
button.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
button.chip[aria-pressed="true"], .chip.is-on, button.chip[aria-checked="true"] { color: var(--text); background: rgba(255, 106, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .5); }
.chips--lg .chip { height: 32px; padding: 0 12px; font-size: 12.5px; }
.state { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 12px/1 var(--font); color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, background-color .25s, box-shadow .25s; }
.state::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state svg.i { width: 12px; height: 12px; margin-left: -2px; }
.state:has(svg)::before { display: none; }
.state--live, .state--ok { color: var(--green); background: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .22); }
.state--build, .state--warn { color: var(--amber); background: var(--amber-dim); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .22); }
.state--build::before { animation: blink 1s steps(2) infinite; }
.state--crash, .state--down { color: var(--red); background: var(--red-dim); box-shadow: inset 0 0 0 1px rgba(255, 97, 97, .25); }
.state--sleep { color: var(--violet); background: var(--violet-dim); box-shadow: inset 0 0 0 1px rgba(167, 152, 255, .25); }
.state--info { color: var(--sky); background: var(--sky-dim); box-shadow: inset 0 0 0 1px rgba(115, 198, 248, .25); }
.state--ember { color: var(--ember-2); background: var(--ember-dim); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .3); }
.state--idle { color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11.5px/1 var(--font); color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.badge--ok { color: var(--green); background: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .2); }
.badge--wait { color: var(--amber); background: var(--amber-dim); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .22); }
.badge--ember { color: var(--ember-2); background: var(--ember-dim); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .3); }
.badge--info { color: var(--sky); background: var(--sky-dim); box-shadow: inset 0 0 0 1px rgba(115, 198, 248, .22); }
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 151, .16); }
.dot--pulse { animation: blink 2.4s ease-in-out infinite; }
.kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 6px; font: 500 11.5px/1 var(--mono); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1px 0 var(--line-2); }
.mono-tile { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 11px; font: 500 13px/1 var(--mono); color: var(--c, var(--ember)); background: color-mix(in srgb, var(--c, var(--ember)) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--ember)) 32%, transparent); }
.mono-tile svg.i { width: 18px; height: 18px; }
.mono-tile--sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.mono-tile--sm svg.i { width: 15px; height: 15px; }

/* ---------- cards, with a pointer spotlight on the border (site.js sets --mx/--my) ---------- */
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .01) 55%), var(--bg-1); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .045), 0 30px 60px -36px rgba(0, 0, 0, .8); }
.card::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(340px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 142, 104, .6), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.card:hover::after { opacity: 1; }
.card--pad { padding: 24px; }
.card--ember { background: radial-gradient(120% 60% at 50% 0%, rgba(255, 106, 61, .14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), #0e0f12; box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .45), inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(255, 106, 61, .35); }
a.card { display: block; transition: transform .25s var(--ease), box-shadow .25s; }
a.card:hover { transform: translateY(-2px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--line); }
.window { overflow: hidden; border-radius: 18px; background: #0a0b0e; box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 1px rgba(0, 0, 0, .7), 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(255, 106, 61, .16); }
.window__bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; background: #0e1013; box-shadow: inset 0 -1px 0 var(--line); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); }

/* ---------- command line, terminal, code ---------- */
.cmd { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 44px; padding: 0 6px 0 14px; border-radius: var(--r-md); font: 400 13.5px/1 var(--mono); color: var(--text-2); background: rgba(10, 11, 14, .7); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cmd code { min-width: 0; overflow-x: auto; padding: 0; white-space: nowrap; scrollbar-width: none; background: none; box-shadow: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd__p { color: var(--ember); }
.cmd--block { display: flex; width: 100%; }
.copy-btn, .cmd__copy { display: grid; flex: none; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 0; border-radius: 8px; color: var(--text-3); background: transparent; cursor: pointer; transition: color .2s, background-color .2s; }
.copy-btn:hover, .cmd__copy:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.copy-btn.is-done, .cmd__copy.is-done { color: var(--green); }
.term { margin: 0; padding: 26px 28px; overflow: auto; font: 400 13px/1.85 var(--mono); color: var(--text-2); white-space: pre-wrap; background: rgba(0, 0, 0, .25); }
.term .p { color: var(--ember); }
.term .ok { color: var(--green); }
.term .dim { color: var(--text-4); }
.term .hl { color: var(--amber); }
.term .b { color: var(--text); }
.term .k { color: var(--sky); }
.term .err { color: var(--red); }
.term-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%), #0a0b0e; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.term-card__bar { display: flex; align-items: center; gap: 16px; padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--line); }
.caret { display: inline-block; width: .55em; height: 1.15em; vertical-align: -.2em; background: var(--text-2); animation: blink 1s steps(2) infinite; }
.code { position: relative; margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: var(--r-sm); font: 400 12.5px/1.75 var(--mono); color: var(--text-2); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); tab-size: 2; }
.code .c-k, .c-k { color: var(--ember-2); }
.code .c-s, .c-s { color: var(--green); }
.code .c-n, .c-n { color: var(--sky); }
.code .c-c, .c-c { color: var(--text-4); }
.code .c-f, .c-f { color: var(--violet); }

/* ---------- tabs, segmented controls ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button, .tabs a { height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-xs); font: 500 13px/30px var(--font); color: var(--text-3); background: none; cursor: pointer; transition: color .2s, background-color .2s; }
.tabs button:hover, .tabs a:hover { color: var(--text-2); }
.tabs [aria-selected="true"], .tabs [aria-current="true"], .tabs .is-on { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs--sm button { height: 24px; padding: 0 8px; font-size: 12px; line-height: 24px; }
/* tabs that name commands, tools or environments (k64 up, curl, production) */
.tabs--mono button, .tabs--mono a { font-family: var(--mono); font-size: 12.5px; }
.tabs--sm.tabs--mono button { font-size: 11.5px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-xs); font: 500 13px/1 var(--font); color: var(--text-3); background: none; cursor: pointer; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--text-2); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--text); background: var(--panel-3); box-shadow: 0 1px 2px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-2); }

/* ---------- lists and tables ---------- */
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font: 400 13.5px/1.45 var(--font); box-shadow: inset 0 1px 0 var(--line); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); text-align: right; }
/* a value that is technical (a host, a port, a variable, a command): <dd class="mono"> */
.kv dd.mono { font-size: 13px; }
.specs { margin: 34px 0 0; }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); }
.specs dt { font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.specs dd { margin: 0; color: var(--text-2); font-size: 15px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); }
.ticks li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 4px; background: var(--green); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.ticks--ember li::before { background: var(--ember); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--text-4); box-shadow: inset 0 1px 0 var(--line); transition: color .35s; }
.steps li.is-done { color: var(--text-2); }
.steps code { white-space: nowrap; }
.steps__ic { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-4); transition: background-color .3s, box-shadow .3s; }
.steps li.is-done .steps__ic { background: var(--green); box-shadow: none; }
.steps li.is-done .steps__ic::before { content: ''; width: 7px; height: 4px; margin-top: -2px; border: solid #08130d; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-1); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 14px 18px; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-align: left; text-transform: uppercase; color: var(--text-3); background: rgba(255, 255, 255, .02); box-shadow: inset 0 -1px 0 var(--line); }
.table td { padding: 13px 18px; color: var(--text-2); vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.table tr:last-child td { box-shadow: none; }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table td:first-child { color: var(--text); }
.table .mono, .table code { font-family: var(--mono); font-size: 12.5px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field__label { font-size: 13.5px; color: var(--text-2); }
.field__hint { font: 400 12.5px/1.45 var(--font); color: var(--text-3); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 13px; border: 0; border-radius: var(--r-sm); color: var(--text); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background-color .2s; }
.textarea { height: auto; min-height: 120px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
.select { appearance: none; padding-right: 36px; background: rgba(255, 255, 255, .035) no-repeat right 12px center / 14px; background-image: var(--chev); }
.select { background-image: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--text-3); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; pointer-events: none; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
/* A placeholder is a hint in words: Geist, even in a field that takes code or a search of logs. A prompt that waits
   for a value (a CLI field) sets its placeholder back in mono. */
::placeholder { font-family: var(--font); }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 122, 82, .7), 0 0 0 4px rgba(255, 106, 61, .12); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 5px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-3); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.check input:checked { background: var(--ember) var(--check) center / 12px no-repeat; box-shadow: none; }
.check input:checked { background-image: none; position: relative; }
.check input:checked::after { content: ''; position: absolute; inset: 3px; background: #190a04; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; flex: none; width: 36px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease), background-color .2s; }
.switch input:checked + .switch__ui { background: var(--ember); box-shadow: none; }
.switch input:checked + .switch__ui::after { transform: translateX(16px); background: #190a04; }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ember); outline-offset: 3px; }
input[type="range"] { accent-color: var(--ember); }
.range { width: 100%; height: 22px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ember) 0 var(--fill, 50%), rgba(255, 255, 255, .1) var(--fill, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 61, .3), 0 2px 6px rgba(0, 0, 0, .5); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ember); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 61, .3); }
/* keyboard focus: a ring on the thumb, not an outline around the whole track */
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ember), 0 0 18px 2px rgba(255, 106, 61, .45); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ember), 0 0 18px 2px rgba(255, 106, 61, .45); }
.form-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); background: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); }

/* ---------- callouts, toast, tooltip ---------- */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); font-size: 14.5px; color: var(--text-2); background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line-2); }
.callout svg.i { margin-top: 2px; color: var(--sky); }
.callout b, .callout strong { color: var(--text); font-weight: 500; }
.callout--warn { background: var(--amber-dim); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .25); }
.callout--warn svg.i { color: var(--amber); }
.callout--ok { background: var(--green-dim); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); }
.callout--ok svg.i { color: var(--green); }
.callout--ember { background: var(--ember-dim); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .28); }
.callout--ember svg.i { color: var(--ember-2); }
.toast-host { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: var(--r-md); font: 400 13.5px/1.3 var(--font); color: var(--text); white-space: nowrap; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, .9); animation: toastIn .35s var(--ease); }
.toast svg.i { width: 15px; height: 15px; color: var(--green); }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; padding: 6px 9px; border-radius: 7px; font: 400 12px/1.3 var(--font); color: var(--text); white-space: nowrap; background: #1b1e24; box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -8px rgba(0, 0, 0, .8); transform: translateX(-50%); pointer-events: none; }

/* ---------- accordion (details/summary) ---------- */
.accordion details { box-shadow: inset 0 -1px 0 var(--line); }
.accordion details:first-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font: 500 17.5px/1.35 var(--font); letter-spacing: -.015em; list-style: none; cursor: pointer; transition: color .2s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--text-3); -webkit-mask: var(--plus) center / 16px no-repeat; mask: var(--plus) center / 16px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.accordion summary:hover::after { background: var(--text); }
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--ember); }
.accordion details > :not(summary) { max-width: 44em; margin: -6px 0 0; padding: 0 40px 24px 0; color: var(--text-2); }

/* ---------- table of contents with scroll-spy (site.js [data-spy]) ---------- */
.toc { position: sticky; top: calc(var(--nav) + 32px); display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.toc__title { margin: 0 0 12px; }
.toc a { position: relative; display: block; padding: 7px 0 7px 16px; color: var(--text-3); box-shadow: inset 1px 0 0 var(--line-2); transition: color .2s, box-shadow .2s; }
.toc a:hover { color: var(--text-2); }
.toc a.is-on, .toc a[aria-current="true"] { color: var(--text); box-shadow: inset 1.5px 0 0 var(--ember); }
.toc a .n { margin-right: 8px; font: 400 11.5px var(--mono); color: var(--text-4); }

/* ---------- prose: legal, docs and long-form text ---------- */
.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin: 2.6em 0 .2em; font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--font); letter-spacing: -.03em; color: var(--text); scroll-margin-top: calc(var(--nav) + 24px); }
.prose h3 { margin: 2em 0 .1em; font: 500 19px/1.3 var(--font); letter-spacing: -.02em; color: var(--text); scroll-margin-top: calc(var(--nav) + 24px); }
.prose h4 { margin: 1.6em 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.prose p, .prose li { text-wrap: pretty; }
.prose strong, .prose b { font-weight: 500; color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.prose a:hover { color: var(--ember-2); text-decoration-color: var(--ember); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--text-4); }
.prose ol li::marker { font: 400 .85em var(--mono); color: var(--text-3); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; color: var(--text-2); box-shadow: inset 2px 0 0 var(--ember); }
.prose pre { padding: 16px 18px; overflow-x: auto; border-radius: var(--r-sm); font-size: 13px; line-height: 1.7; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); }
.prose pre code { padding: 0; background: none; box-shadow: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th { padding: 10px 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; color: var(--text-3); box-shadow: inset 0 -1px 0 var(--line-2); }
.prose td { padding: 10px 12px; vertical-align: top; box-shadow: inset 0 -1px 0 var(--line); }
.prose hr { margin: 2.4em 0; }

/* ---------- page hero for inner pages ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.phero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 60% at 70% 30%, rgba(255, 106, 61, .08), transparent 70%), linear-gradient(180deg, transparent 75%, var(--bg)); }
.phero__grid { position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask: radial-gradient(70% 70% at 60% 30%, #000, transparent 75%); mask: radial-gradient(70% 70% at 60% 30%, #000, transparent 75%); opacity: .6; }
.phero .lead { font-size: clamp(17px, 1.4vw, 20px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; font: 500 13px/1 var(--font); color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs i { color: var(--text-4); font-style: normal; }

/* ---------- final call to action band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(255, 106, 61, .16), transparent 70%); }
.cta-band::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.cta-band .h2 { max-width: 16ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* =========================================================================
   Shared chrome: header (nav) and footer. Markup in Header.astro/Footer.astro.
   ========================================================================= */
/* The glass of the bar lives on ::before, not on the header: an element with a backdrop-filter becomes the containing
   block of its fixed children and the backdrop root of its children's own blur, which made the phone sheet 52px tall
   and let the page show through the mega panels. */
.nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav); }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(8, 9, 11, .55); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 -1px 0 transparent; transition: background-color .3s, box-shadow .3s; }
.nav.is-stuck::before, .nav.is-open::before { background: rgba(8, 9, 11, .82); box-shadow: inset 0 -1px 0 var(--line); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(255, 106, 61, 0), var(--ember)); pointer-events: none; }
.nav__row { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: 28px; transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word { font: 600 21px/1 var(--font); letter-spacing: -.05em; }
.nav__links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__top { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; font-size: 14px; color: var(--text-2); background: none; cursor: pointer; transition: color .2s, background-color .2s; }
.nav__top:hover, .nav__item.is-open .nav__top { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__top[aria-current="page"], .nav__top[data-current] { color: var(--text); }
.nav__chev { width: 12px; height: 12px; background: currentColor; opacity: .6; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .25s var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.region-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 99px; font: 500 12px/1 var(--mono); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, box-shadow .2s; }
.region-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.region-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); animation: blink 2.4s ease-in-out infinite; }
.nav__login { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav__login:hover { color: var(--text); }
.nav__menu { display: none; }
/* mega menu panels */
.mega { position: absolute; top: calc(100% + 12px); left: -16px; z-index: 5; display: grid; grid-template-columns: var(--cols, 1fr) 260px; width: var(--w, 640px); padding: 10px; border-radius: 18px; background: rgba(14, 15, 19, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(255, 106, 61, .25); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: top left; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega--plain { grid-template-columns: var(--cols, 1fr); }
.mega__cols { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 4px 8px; padding: 6px; }
.mega__group h3 { margin: 8px 10px 6px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.mega__link { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; transition: background-color .2s; }
.mega__link:hover, .mega__link:focus-visible { background: rgba(255, 255, 255, .045); }
.mega__link .mono-tile { margin-top: 1px; }
.mega__link b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--text); }
.mega__link span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-3); text-wrap: pretty; }
.mega__feat { display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 16px 16px 14px; border-radius: 12px; background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--ember) 16%, transparent), transparent 60%), rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.mega__feat .label { color: var(--ember-2); }
/* top to bottom: the tile and the eyebrow, the words, a small picture of the thing, the link at the foot */
.mega__feat-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mega__feat-ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ember-2); background: var(--ember-dim); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember-2) 32%, transparent), 0 10px 30px -10px color-mix(in srgb, var(--ember) 55%, transparent); }
.mega__feat-ic svg.i { width: 17px; height: 17px; }
.mega__feat b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.mega__feat p { margin: 0; font-size: 13px; color: var(--text-3); }
.mega__feat .cmd { height: 38px; font-size: 12.5px; }
.mega__feat .cmd code { color: var(--text); }
.mega__feat a.mega__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--text-2); }
/* Product: a pull request and its preview's database copy */
.mega__pv { display: grid; gap: 6px; margin-top: 6px; padding: 10px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.mega__feat .mega__pv p { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; font-size: 12.5px; color: var(--text-2); }
.mega__pv-pr { padding: 0 2px 6px; box-shadow: inset 0 -1px 0 var(--line); }
.mega__pv-pr svg.i { flex: none; width: 14px; height: 14px; color: var(--ember-2); }
.mega__pv-pr > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__pv-pr .mono { font-size: 12px; color: var(--text); }
.mega__pv-db .mono-tile { --c: var(--blue); width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
.mega__pv-db > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.mega__pv-db b.mono { font-weight: 400; font-size: 12px; line-height: 1.2; color: var(--text); }
.mega__pv-db small { font-size: 11.5px; line-height: 1.2; color: var(--text-3); }
.mega__pv-db small .mono { font-size: 11px; }
.mega__pv-db .state { height: 20px; margin-left: auto; padding: 0 7px; font-size: 11px; }
/* Developers: the install command, then what the first deploy prints */
.mega__term { margin-top: 6px; }
.mega__term--run { overflow: hidden; border-radius: var(--r-md); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line-2); }
.mega__term--run .cmd { border-radius: 0; background: none; box-shadow: inset 0 -1px 0 var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mega__feat .mega__term-out { display: grid; gap: 6px; padding: 11px 14px 12px; font: 400 12px/1.2 var(--mono); color: var(--text-3); }
.mega__term-out i { font-style: normal; color: var(--text-4); }
.mega__term-out .ok { color: var(--green); }
.mega__feat a.mega__more:hover { color: var(--text); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 12px 14px 6px; font-size: 13px; color: var(--text-3); box-shadow: inset 0 1px 0 var(--line); }
.mega__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.mega__foot a:hover { color: var(--text); }
/* phone sheet */
.sheet { position: fixed; inset: var(--nav) 0 0; z-index: var(--z-sheet); overflow-y: auto; padding: 12px var(--gutter) 40px; background: rgba(8, 9, 11, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.nav.is-open .sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.sheet__group { padding: 14px 0; box-shadow: inset 0 -1px 0 var(--line); }
.sheet__group h3 { margin: 6px 0 8px; }
.sheet__group a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 16px; color: var(--text); }
.sheet__group a .mono-tile { width: 30px; height: 30px; border-radius: 8px; }
.sheet__group a .mono-tile svg.i { width: 15px; height: 15px; }
.sheet__cta { display: grid; gap: 10px; margin-top: 20px; }
body.has-sheet { overflow: hidden; }

/* footer */
.ft { position: relative; z-index: 1; overflow: hidden; padding-top: 80px; box-shadow: inset 0 1px 0 var(--line); }
.ft__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 64px; }
.ft__brand p { max-width: 22em; margin: 18px 0 0; font-size: 14.5px; color: var(--text-3); }
.ft__mail { font: 400 13px/1 var(--mono) !important; color: var(--text-2) !important; }
.ft__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; height: 30px; padding: 0 12px; border-radius: 99px; font: 500 12.5px/1 var(--font); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, box-shadow .2s; }
.ft__status:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.ft h4 { margin: 4px 0 18px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); }
.ft nav a { display: block; width: fit-content; padding: 5px 0; font-size: 14px; color: var(--text-2); transition: color .2s; }
.ft nav a:hover, .ft nav a[aria-current="page"] { color: var(--text); }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0; font: 400 13px/1.5 var(--font); color: var(--text-3); box-shadow: inset 0 1px 0 var(--line); }
.ft__base span { display: inline; }
.ft__giant { margin: 0 0 -.22em; font: 600 clamp(120px, 27vw, 400px)/.8 var(--font); letter-spacing: -.07em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* ---------- reveals (site.js adds .is-in; .static shows everything) ---------- */
.js [data-reveal] { opacity: 0; filter: blur(6px); transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js [data-reveal="up"] { transform: translateY(40px) scale(.985); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
.js [data-d="1"] { transition-delay: .08s; } .js [data-d="2"] { transition-delay: .16s; } .js [data-d="3"] { transition-delay: .24s; } .js [data-d="4"] { transition-delay: .32s; } .js [data-d="5"] { transition-delay: .4s; }
.js [data-split] .w { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.js [data-split].is-in .w > span { transform: none; }
.static [data-reveal], .static [data-split] .w > span { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }

/* ---------- keyframes ---------- */
@keyframes blink { 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes scan { 0%, 55% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .nav__links, .region-chip, .nav__login { display: none; }
  .nav__menu { display: inline-grid; }
  .split, .split--even, .sh--row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--rev > :first-child { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft__brand { grid-column: 1 / -1; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .nav__row { gap: 14px; }
  .nav__right .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .sh { margin-bottom: 44px; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .term { padding: 20px; font-size: 12px; }
  .ft__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accordion details > :not(summary) { padding-right: 0; }
  .prose { font-size: 16px; }
  .toast { white-space: normal; }
}
