/* Darkstar — site styles. Tokens mirror the app's html[data-theme='space'] theme. */
:root {
  color-scheme: dark;
  --void: #000000;
  --panel: linear-gradient(145deg, rgba(5, 5, 5, .996), rgba(0, 0, 0, 1));
  --panel-soft: linear-gradient(180deg, rgba(8, 8, 8, .992), rgba(1, 1, 1, .999));
  --panel-hover: linear-gradient(180deg, rgba(12, 12, 12, .995), rgba(2, 2, 2, 1));
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);
  --hover: rgba(255, 255, 255, .035);
  --text-strong: #ffffff;
  --text: #dedede;
  --text-soft: #929292;
  --text-faint: #5c5c5c;
  --silver: #d9dde2;
  --steel: #8f949b;
  --corona: #eee8dc;
  --mint: #71c9a8;
  --rose: #e06d7c;
  --shadow: rgba(0, 0, 0, .88);
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Dark is the only theme; these keep explicit theme requests consistent. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --void: #000000; } }
:root[data-theme="dark"] { --void: #000000; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(238, 232, 220, .22); color: #fff; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--corona); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 9px; background: var(--corona); color: #000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 22px; border-radius: 10px;
  font: 600 14.5px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-corona {
  border: 1px solid color-mix(in srgb, var(--corona) 70%, white);
  background: linear-gradient(180deg, #faf7f1, var(--corona));
  color: #0b0b0c;
  box-shadow: 0 8px 30px rgba(238, 232, 220, .16), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-corona:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(238, 232, 220, .26), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-corona:active { transform: translateY(0); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .4); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); color: var(--text-strong); background: var(--hover); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 24px;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding-left: var(--gutter); padding-right: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .72);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-tile {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border-radius: 9px; overflow: hidden; background: #000;
}
.brand-tile img { display: block; width: 36px; height: 36px; }
.nav-wordmark { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-strong); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text-soft); font-size: 14px; font-weight: 500; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text-strong); background: var(--hover); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(72px + env(safe-area-inset-top, 0px)) var(--gutter) 64px;
  overflow: hidden;
}
.void { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* fade the hero into the page */
  content: ''; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, #000);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.singularity { width: 100%; height: clamp(220px, 42vh, 460px); }
.hero-title {
  position: relative;
  margin-top: clamp(-36px, -3vh, -12px);
  font-size: clamp(64px, 13.5vw, 184px);
  font-weight: 700; line-height: .9; letter-spacing: -.055em;
  color: var(--text-strong);
  text-shadow: 0 0 28px rgba(255, 255, 255, .035);
  user-select: none; -webkit-user-select: none;
}
/* The app's cursor-tracking glow: a radial highlight clipped to the letterforms. */
.glow-host { --glow-x: 50%; --glow-y: 50%; --glow-opacity: 0; }
.title-glow, .hero-quote::after {
  position: absolute; inset: 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  opacity: var(--glow-opacity); pointer-events: none; mix-blend-mode: screen;
  transition: opacity .25s ease;
}
.title-glow { background-image: radial-gradient(circle 420px at var(--glow-x) var(--glow-y), rgba(238, 232, 220, .95), transparent 70%); }
.hero-quote {
  position: relative; margin-top: 22px;
  color: var(--text-soft); font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .005em;
  user-select: none; -webkit-user-select: none;
}
.hero-quote::after {
  content: attr(data-quote);
  background-image: radial-gradient(circle 300px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .85), transparent 70%);
}
.hero-lede { max-width: 34em; margin-top: 26px; color: var(--text); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  color: var(--text-faint); font-size: 12.5px;
}

/* Page-load sequence: one orchestrated reveal, timed to the disk igniting. */
.hero-title, .hero-quote, .hero-lede, .hero-actions { animation: heroIn 1.2s var(--ease) both; }
.hero-title { animation-delay: .5s; }
.hero-quote { animation-delay: .9s; }
.hero-lede { animation-delay: 1.05s; }
.hero-actions { animation-delay: 1.2s; }
.hero-foot { animation: fadeIn 1.2s ease 1.6s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 148px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
h2 { color: var(--text-strong); font-size: clamp(32px, 4.4vw, 54px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
.section-head p { color: var(--text-soft); font-size: 17px; max-width: 34em; }

.overview .section-head { margin-bottom: 0; }
.control-label { color: var(--text); font-size: 13px; font-weight: 520; }

/* ---------- Install ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 58px; right: -16px; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.steps h3 { color: var(--text-strong); font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.steps p { color: var(--text-soft); font-size: 15px; }
.steps .mono { color: var(--text); }
.text-link { display: inline-block; margin-top: 12px; color: var(--corona); font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid rgba(238, 232, 220, .3); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--corona); }

/* ---------- License ---------- */
.trial { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.trial-copy p { margin-top: 18px; color: var(--text-soft); font-size: 17px; max-width: 38em; }
.dial { position: relative; width: 220px; height: 220px; }
.dial::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(238, 232, 220, .12), transparent 68%); }
.dial-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.dial-ticks { transform-origin: 100px 100px; }
.dial-tick { stroke-width: 2.4; stroke-linecap: round; stroke: var(--border-strong); transition: stroke .3s ease; }
.dial-tick.is-lit { stroke: var(--corona); }
.dial-tick.is-head { stroke-width: 3.6; filter: drop-shadow(0 0 4px rgba(238, 232, 220, .7)); }
.dial-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dial-number { color: var(--text-strong); font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dial-unit { color: var(--text-soft); font-size: 12px; font-weight: 600; letter-spacing: .12em; }

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 24px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
}
.plan h3 { color: var(--text-strong); font-size: 17px; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.plan-amount { color: var(--text-strong); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-amount-sm { font-size: 34px; }
.plan-per { color: var(--text-soft); font-size: 14px; }
.plan-desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; }
.plan-list { list-style: none; display: grid; gap: 9px; margin: 4px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.plan-list li { position: relative; padding-left: 22px; color: var(--text); font-size: 14px; }
.plan-list li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 10px; height: 6px; border-left: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(-45deg); }
.plan-cta { margin-top: auto; width: 100%; }
.plan-main {
  position: relative; padding: 30px 28px;
  border-color: color-mix(in srgb, var(--corona) 32%, var(--border));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .9), 0 0 0 1px rgba(238, 232, 220, .06) inset, 0 0 60px rgba(238, 232, 220, .05);
}
.plan-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, transparent, var(--corona), transparent); opacity: .85; }
.plan-main .plan-list li::before { border-color: var(--corona); }
.seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: #000; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; color: var(--text-soft); font-size: 18px; cursor: pointer; }
.stepper button:hover { color: var(--text-strong); background: var(--hover); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper input {
  width: 52px; height: 38px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  background: none; text-align: center; color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; background: var(--hover); }
.secure-note { color: var(--text-faint); font-size: 12.5px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 2px; color: var(--text-strong); font-size: 17px; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1.5px solid var(--text-soft); border-bottom: 1.5px solid var(--text-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
summary:hover::after { border-color: var(--text-strong); }
details p { padding: 0 2px 24px; color: var(--text-soft); font-size: 15.5px; max-width: 40em; }
details[open] p { animation: rise .35s var(--ease); }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; padding-top: 72px;
  background: radial-gradient(60% 110% at 50% 135%, rgba(238, 232, 220, .11), transparent 62%);
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 232, 220, .38), transparent);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(36px, 7vw, 112px); padding-bottom: 64px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-quote { margin-top: 22px; color: var(--text); font-size: 19px; letter-spacing: -.01em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.footer-head { margin-bottom: 14px; color: var(--text-faint); font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a {
  display: inline-block; padding: 5px 0; color: var(--text-soft); text-decoration: none; font-size: 15px;
  transition: color .18s ease, transform .18s var(--ease);
}
.footer-col a:hover { color: var(--text-strong); transform: translateX(3px); }
.footer-bottom {
  display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border);
}
.footer-slim { padding-top: 0; }
.footer-slim .footer-bottom { border-top: 0; padding-top: 28px; }
.footer-fine { color: var(--text-faint); font-size: 12.5px; }
.footer-fine + .footer-fine { margin-right: auto; }
.to-top {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--text-soft); text-decoration: none; font-size: 17px; line-height: 1;
  transition: color .18s ease, border-color .18s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.to-top:hover { color: var(--corona); border-color: rgba(238, 232, 220, .45); transform: translateY(-3px); box-shadow: 0 0 26px -6px rgba(238, 232, 220, .35); }

/* ---------- Inner pages ---------- */
.nav-links a[aria-current="page"] { color: var(--text-strong); }
.nav-cta[aria-current="page"] { border-color: rgba(255, 255, 255, .28); color: var(--text-strong); }
.page-head { padding: calc(132px + env(safe-area-inset-top, 0px)) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { color: var(--text-strong); font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.page-head p { margin-top: 18px; color: var(--text-soft); font-size: 18px; max-width: 36em; }
.page-body { padding-bottom: clamp(72px, 10vw, 120px); }
.page-body + .section { padding-top: clamp(24px, 4vw, 48px); }
.page-body + .section { border-top: 0; }
#license { padding: calc(112px + env(safe-area-inset-top, 0px)) 0 clamp(88px, 10vw, 128px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.block-title { color: var(--text-strong); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; }

/* Tiles (used by the 404 page) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-height: 196px;
  padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: 16px;
  background:
    linear-gradient(90deg, transparent, rgba(238, 232, 220, .30), transparent) top / 100% 1px no-repeat,
    var(--panel);
  text-decoration: none;
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
/* Light that follows the pointer: a soft wash across the tile and a brighter edge */
.tile::before, .tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.tile::before { z-index: -1; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(238, 232, 220, .10), transparent 62%); }
.tile::after {
  padding: 1px; z-index: 1;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(238, 232, 220, .6), transparent 66%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 60px -24px #000, 0 0 0 1px rgba(238, 232, 220, .04); }
.tile:hover::before, .tile:hover::after, .tile:focus-visible::before, .tile:focus-visible::after { opacity: 1; }
.tile-icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none; margin-bottom: 8px;
  border-radius: 12px; border: 1px solid var(--border-strong); color: var(--corona);
  background: radial-gradient(circle at 30% 20%, rgba(238, 232, 220, .12), rgba(238, 232, 220, 0) 70%), #050505;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-icon { border-color: rgba(238, 232, 220, .45); box-shadow: 0 0 28px -6px rgba(238, 232, 220, .35); }
.tile h3 { color: var(--text-strong); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tile p { color: var(--text-soft); font-size: 15px; max-width: 28em; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.tile-meta { color: var(--text-faint); font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .25s ease; }
.tile:hover .tile-meta { color: var(--steel); }
.tile-go { color: var(--text-faint); font-size: 20px; line-height: 1; transition: color .25s ease, transform .25s var(--ease); }
.tile:hover .tile-go { color: var(--corona); transform: translateX(5px); }
.tile > .tile-go { margin-top: auto; }
/* Install */
.download-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
}
.download-copy h2 { color: var(--text-strong); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.download-copy p { margin-top: 12px; color: var(--text-soft); font-size: 17px; max-width: 34em; }
.download-copy .download-hash { font-size: 13px; color: var(--text-faint); overflow-wrap: anywhere; }
.download-actions { display: grid; gap: 12px; justify-items: center; }
.download-actions .btn { min-width: 250px; }
.download-meta { color: var(--text-soft); font-size: 13.5px; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); }
.ref { width: 100%; border-collapse: collapse; min-width: 520px; }
.ref th, .ref td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.ref tr:last-child th, .ref tr:last-child td { border-bottom: 0; }
.ref thead th { color: var(--text-faint); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ref tbody th { color: var(--text-strong); font-weight: 600; width: 14em; white-space: nowrap; }
.ref td { color: var(--text-soft); }

/* Documentation */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.docs-nav { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
.docs-nav ul { list-style: none; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text-soft); text-decoration: none; font-size: 14.5px; }
.docs-nav a:hover { color: var(--text-strong); background: var(--hover); }
.docs-content { max-width: 780px; min-width: 0; }
.doc-section { padding: 0 0 56px; }
.doc-section + .doc-section { padding-top: 48px; border-top: 1px solid var(--border); }
.doc-section h2 { color: var(--text-strong); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px; }
.doc-section p { color: var(--text-soft); font-size: 16.5px; }
.doc-section p + p, .doc-section p + .table-wrap, .doc-section .table-wrap + p { margin-top: 14px; }
.doc-section strong { color: var(--text); font-weight: 600; }
.doc-section a, .support-card a { color: var(--corona); text-decoration-color: rgba(238, 232, 220, .35); text-underline-offset: 3px; }
.doc-section .mono { color: var(--text); }

/* Changelog */
.timeline { list-style: none; }
.release { display: grid; grid-template-columns: 28px minmax(0, 230px) minmax(0, 1fr); column-gap: clamp(20px, 4vw, 56px); }
.release-rail { position: relative; }
.release-rail::after { content: ''; position: absolute; left: 50%; top: 34px; bottom: -48px; width: 1px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(238, 232, 220, .5), transparent); }
.release-node {
  position: absolute; left: 50%; top: 14px; width: 13px; height: 13px; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid var(--corona); background: #000;
  box-shadow: 0 0 0 5px rgba(238, 232, 220, .07), 0 0 24px 2px rgba(238, 232, 220, .35);
}
.release-version { color: var(--text-strong); font-size: clamp(44px, 5.4vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.release-tag {
  display: inline-block; margin-top: 16px; padding: 5px 12px; border: 1px solid rgba(238, 232, 220, .32); border-radius: 999px;
  background: rgba(238, 232, 220, .06); color: var(--corona); font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.release-sub { margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.release-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.release-grid li {
  position: relative; padding: 22px 24px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  transition: border-color .2s ease, transform .25s var(--ease);
}
.release-grid li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.release-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.release-n { display: block; margin-bottom: 14px; color: var(--text-faint); font: 500 11.5px/1 var(--mono); letter-spacing: .14em; }
.release-grid h4 { color: var(--text-strong); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.release-grid p { margin-top: 6px; color: var(--text-soft); font-size: 15px; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.support-card { padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.support-card h2 { color: var(--text-strong); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.support-card p { color: var(--text-soft); font-size: 16px; overflow-wrap: anywhere; }
.support-card p + p { margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  padding: 13px 18px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(4, 4, 4, .96); color: var(--text); font-size: 14px;
  box-shadow: 0 20px 60px #000; animation: rise .3s var(--ease);
}
.toast.is-success { border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.toast.is-error { border-color: color-mix(in srgb, var(--rose) 45%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps li { padding: 0 0 0 64px; min-height: 42px; }
  .steps li:not(:last-child)::after { top: 52px; bottom: -22px; left: 21px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--border-strong), transparent); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
  .download-card { grid-template-columns: minmax(0, 1fr); }
  .download-actions { justify-items: stretch; }
  .download-actions .btn { min-width: 0; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-nav { position: static; }
  .docs-nav ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .release { grid-template-columns: 20px minmax(0, 1fr); row-gap: 28px; }
  .release-grid { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
  .release-meta { grid-column: 2; }
  .release-rail { grid-row: 1 / span 2; }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav-wordmark { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 24px 22px 20px; }
  .trial { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .trial-copy p { margin-left: auto; margin-right: auto; }
  .hero-foot { position: static; margin-top: 28px; padding: 0 16px 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

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

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding-top: calc(132px + env(safe-area-inset-top, 0px)); padding-bottom: 96px; }
.legal h1 { color: var(--text-strong); font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.legal-updated { margin-top: 14px; color: var(--text-faint); font-size: 14px; }
.legal section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.legal h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.legal h3 { margin: 28px 0 8px; color: var(--text-strong); font-size: 17px; font-weight: 600; }
.legal p { color: var(--text-soft); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--corona); text-decoration-color: rgba(238, 232, 220, .35); text-underline-offset: 3px; }
.legal-page .nav-links { display: flex; }
@media (max-width: 640px) { .legal-page .nav-links { display: none; } }

/* Documentation: sub-headings and code */
.doc-section h3 { color: var(--text-strong); font-size: 18px; font-weight: 600; margin: 32px 0 12px; }
.doc-section h2 + h3 { margin-top: 0; }
.doc-section .table-wrap + .table-wrap, .doc-section .table-wrap + h3 { margin-top: 24px; }
.doc-section p + h3 { margin-top: 32px; }
.doc-section pre.code { margin-top: 16px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-soft); color: var(--text); font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.doc-section .table-wrap { margin-top: 16px; }
.doc-section .ref tbody th { white-space: normal; }
.docs-nav { max-height: calc(100vh - 112px); overflow-y: auto; }
@media (max-width: 900px) { .docs-nav { max-height: none; overflow: visible; } }

/* ---------- Contact form ---------- */
.contact-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); border-radius: 14px; background: var(--panel); margin-bottom: 16px; }
.contact-card h2 { color: var(--text-strong); font-size: 26px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.contact-lead { color: var(--text-soft); font-size: 16px; margin-bottom: 28px; }
#contactForm { display: grid; gap: 20px; max-width: 760px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { color: var(--text); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: rgba(0, 0, 0, .55); color: var(--text-strong); font: 400 16px/1.4 var(--sans);
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--corona); background: rgba(255, 255, 255, .03); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.field-hint { color: var(--text-faint); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { color: var(--text-soft); font-size: 15px; }
.form-status.is-error { color: var(--rose); }
.form-status.is-ok { color: var(--mint); }
.support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Custom topic menu */
.field-label { color: var(--text); font-size: 14px; font-weight: 600; }
.select { position: relative; }
.select-btn {
  display: flex; align-items: center; width: 100%; padding: 13px 40px 13px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 10px; background-color: rgba(0, 0, 0, .55); color: var(--text-strong);
  font: 400 16px/1.4 var(--sans); transition: border-color .16s ease;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select-btn:hover { border-color: rgba(255, 255, 255, .24); }
.select-btn:focus-visible, .select-btn[aria-expanded="true"] { outline: none; border-color: var(--corona); }
.select-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #0a0a0a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .7); outline: none;
}
.select-list[hidden] { display: none; }
.select-list li { position: relative; padding: 11px 38px 11px 12px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 16px; line-height: 1.4; }
.select-list li.is-active { background: rgba(255, 255, 255, .06); color: var(--text-strong); }
.select-list li[aria-selected="true"] { color: var(--text-strong); }
.select-list li[aria-selected="true"]::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--corona); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Software license page */
.lic-eyebrow { margin: 0 0 14px; color: var(--corona); font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.page-head .lic-eyebrow { margin-top: 0; color: var(--corona); font-size: 12.5px; max-width: none; }
.lic-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal .lic-actions { margin-top: 18px; }
.lic-doc .lic-section { scroll-margin-top: calc(96px + env(safe-area-inset-top, 0px)); }
.lic-doc .lic-section h2 { display: flex; align-items: baseline; gap: 14px; }
.lic-num { flex: none; min-width: 1.4em; color: var(--text-faint); font-family: var(--mono); font-size: .62em; font-weight: 500; letter-spacing: .04em; }
.lic-doc .doc-section p { line-height: 1.75; }
.lic-doc .doc-section p + p { margin-top: 16px; }
.lic-term { color: var(--text-strong); font-weight: 600; }
.lic-doc .doc-section:first-child { padding-top: 0; }
@media (max-width: 640px) { .lic-doc .lic-section h2 { gap: 10px; } }
.legal .lic-actions .btn { text-decoration: none; }
.legal .lic-actions .btn-corona { color: #000; }
.legal .lic-actions .btn-ghost { color: var(--text); }
