/* Darkstar — site styles. Tokens mirror the app's html[data-theme='space'] theme. */
/* Fonts: Space Grotesk and JetBrains Mono (SIL Open Font License; see assets/fonts/OFL-*.txt), served from this site. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/space-grotesk-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: block; src: url('../fonts/space-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: block; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

: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: 73.75rem;
  --gutter: clamp(1.25rem, 3.6vw, 2.5rem);
  --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; }
/* Every length on the site is in rem, so the whole layout scales from this one value. At 1440 x 900 and below it is
   90% of the browser's own text size (14.4px by default), where the breakpoints take over. On larger screens it grows
   with the viewport, bounded by both width and height, so a 1440p or 4K screen shows the same composition, only
   larger. Viewport units inside clamp() below carry the same 0.9 factor, so every size keeps one proportion. */
html { font-size: max(90%, min(1vw, 1.6vh));
  scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 4.75rem); -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--text);
  font: 400 1rem/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: .125rem solid var(--corona); outline-offset: .1875rem; border-radius: .375rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3.75rem; z-index: 100;
  padding: .625rem .875rem; border-radius: .5625rem; background: var(--corona); color: #000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

.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: .5625rem;
  min-height: 2.875rem; padding: .75rem 1.375rem; border-radius: .625rem;
  font: 600 .9062rem/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: 1rem; height: 1rem; flex: none; }
.btn-sm { min-height: 2.25rem; padding: .5rem .875rem; font-size: .8125rem; border-radius: .5625rem; }
.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 .5rem 1.875rem rgba(238, 232, 220, .16), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-corona:hover { transform: translateY(-1px); box-shadow: 0 .875rem 2.5rem 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: 1.5rem;
  height: calc(4rem + 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(.875rem) saturate(120%);
  backdrop-filter: blur(.875rem) saturate(120%);
}
.nav-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-tile {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center; flex: none;
  border-radius: .5625rem; overflow: hidden; background: #000;
}
.brand-tile img { display: block; width: 2.25rem; height: 2.25rem; }
.nav-wordmark { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-strong); }
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  padding: .5rem .75rem; border-radius: .5rem; text-decoration: none;
  color: var(--text-soft); font-size: .875rem; 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(4.5rem + env(safe-area-inset-top, 0px)) var(--gutter) 4rem;
  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: 10rem; 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(13.75rem, 37.8vh, 28.75rem); }
.hero-title {
  position: relative;
  margin-top: clamp(-2.25rem, -2.7vh, -.75rem);
  font-size: clamp(4rem, 12.15vw, 11.5rem);
  font-weight: 700; line-height: .9; letter-spacing: -.055em;
  color: var(--text-strong);
  text-shadow: 0 0 1.75rem 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 26.25rem at var(--glow-x) var(--glow-y), rgba(238, 232, 220, .95), transparent 70%); }
.hero-quote {
  position: relative; margin-top: 1.375rem;
  color: var(--text-soft); font-size: clamp(.9375rem, 1.35vw, 1.125rem); letter-spacing: .005em;
  user-select: none; -webkit-user-select: none;
}
.hero-quote::after {
  content: attr(data-quote);
  background-image: radial-gradient(circle 18.75rem at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .85), transparent 70%);
}
.hero-lede { max-width: 34em; margin-top: 1.625rem; color: var(--text); font-size: clamp(1rem, 1.26vw, 1.125rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.125rem; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 1.625rem; text-align: center;
  color: var(--text-faint); font-size: .7812rem;
}


/* ---------- Sections ---------- */
.section { padding: clamp(5.5rem, 10.8vw, 9.25rem) 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(1.5rem, 4.5vw, 4.5rem); align-items: end; margin-bottom: clamp(2.5rem, 5.4vw, 4rem); }
h2 { color: var(--text-strong); font-size: clamp(2rem, 3.96vw, 3.375rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
.section-head p { color: var(--text-soft); font-size: 1.0625rem; max-width: 34em; }

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

/* ---------- Install ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.6vw, 3rem); }
.steps li { counter-increment: step; position: relative; padding-top: 4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.625rem; height: 2.625rem; 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: 1.3125rem; left: 3.625rem; right: -1rem; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.steps h3 { color: var(--text-strong); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.steps p { color: var(--text-soft); font-size: .9375rem; }
.steps .mono { color: var(--text); }
.text-link { display: inline-block; margin-top: .75rem; color: var(--corona); font-weight: 600; font-size: .9062rem; text-decoration: none; border-bottom: 1px solid rgba(238, 232, 220, .3); padding-bottom: .125rem; }
.text-link:hover { border-bottom-color: var(--corona); }

/* ---------- License ---------- */
.license-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5.4vw, 4rem); text-align: center; }
.license-head p { margin: 1.125rem auto 0; color: var(--text-soft); font-size: 1.0625rem; max-width: 34em; text-wrap: balance; }
.dial { position: relative; width: 13.75rem; height: 13.75rem; }
.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: 6.25rem 6.25rem; }
.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 .25rem rgba(238, 232, 220, .7)); }
.dial-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; }
.dial-number { color: var(--text-strong); font-size: 4rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dial-unit { color: var(--text-soft); font-size: .75rem; font-weight: 600; letter-spacing: .12em; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; max-width: 57.5rem; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column; gap: .875rem; padding: 1.75rem 1.5rem;
  border: 1px solid var(--border); border-radius: .875rem; background: var(--panel);
}
.plan h3 { color: var(--text-strong); font-size: 1.0625rem; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: .25rem; }
.plan-amount { color: var(--text-strong); font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--text-soft); font-size: .875rem; }
.plan-desc { color: var(--text-soft); font-size: .9062rem; line-height: 1.55; }
.plan-list { list-style: none; display: grid; gap: .5625rem; margin: .25rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.plan-list li { position: relative; padding-left: 1.375rem; color: var(--text); font-size: .875rem; }
.plan-list li::before { content: ''; position: absolute; left: 1px; top: .5em; width: .625rem; height: .375rem; 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: 1.875rem 1.75rem;
  border-color: color-mix(in srgb, var(--corona) 32%, var(--border));
  box-shadow: 0 1.875rem 5.625rem rgba(0, 0, 0, .9), 0 0 0 1px rgba(238, 232, 220, .06) inset, 0 0 3.75rem rgba(238, 232, 220, .05);
}
.plan-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: .125rem; border-radius: .875rem .875rem 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: .75rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: .625rem; overflow: hidden; background: #000; }
.stepper button { width: 2.375rem; height: 2.375rem; border: 0; background: none; color: var(--text-soft); font-size: 1.125rem; cursor: pointer; }
.stepper button:hover { color: var(--text-strong); background: var(--hover); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper input {
  width: 3.25rem; height: 2.375rem; 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: .7812rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5.4vw, 6rem); 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: 1.125rem;
  padding: 1.375rem .125rem; color: var(--text-strong); font-size: 1.0625rem; font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none; width: .5625rem; height: .5625rem; margin-right: .375rem;
  border-right: 1.5px solid var(--text-soft); border-bottom: 1.5px solid var(--text-soft);
  transform: rotate(45deg) translateY(-.1875rem); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translateY(-.1875rem); }
summary:hover::after { border-color: var(--text-strong); }
details p { padding: 0 .125rem 1.5rem; color: var(--text-soft); font-size: .9688rem; max-width: 40em; }
details[open] p { animation: rise .35s var(--ease); }

/* On short pages the footer sits at the bottom of the window instead of ending halfway down it. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; padding-top: 4.5rem; padding-bottom: env(safe-area-inset-bottom, 0px);
  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(2.25rem, 6.3vw, 7rem); padding-bottom: 4rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.footer-quote { margin-top: 1.375rem; color: var(--text); font-size: 1.1875rem; letter-spacing: -.01em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.6vw, 3.5rem); }
.footer-head { margin-bottom: .875rem; color: var(--text-faint); font: 500 .7188rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: grid; gap: .125rem; }
.footer-col a {
  display: inline-block; padding: .3125rem 0; color: var(--text-soft); text-decoration: none; font-size: .9375rem;
  transition: color .18s ease, transform .18s var(--ease);
}
.footer-col a:hover { color: var(--text-strong); transform: translateX(.1875rem); }

/* ---------- 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(8.25rem + env(safe-area-inset-top, 0px)) 0 clamp(2.25rem, 4.5vw, 4rem); }
.page-head h1 { color: var(--text-strong); font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.page-head p { margin-top: 1.125rem; color: var(--text-soft); font-size: 1.125rem; max-width: 36em; }
.page-body { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.page-body + .section { padding-top: clamp(1.5rem, 3.6vw, 3rem); }
.page-body + .section { border-top: 0; }
#license { padding: calc(7rem + env(safe-area-inset-top, 0px)) 0 clamp(5.5rem, 9vw, 8rem); }
.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(1.625rem, 2.7vw, 2.125rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.5rem; }

/* Tiles (used by the 404 page) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: .625rem; min-height: 12.25rem;
  padding: 1.625rem 1.625rem 1.375rem; border: 1px solid var(--border); border-radius: 1rem;
  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(28.75rem circle at var(--mx) var(--my), rgba(238, 232, 220, .10), transparent 62%); }
.tile::after {
  padding: 1px; z-index: 1;
  background: radial-gradient(17.5rem 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(-.1875rem); box-shadow: 0 1.5rem 3.75rem -1.5rem #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: 2.875rem; height: 2.875rem; display: grid; place-items: center; flex: none; margin-bottom: .5rem;
  border-radius: .75rem; 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: 1.375rem; height: 1.375rem; 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 1.75rem -.375rem rgba(238, 232, 220, .35); }
.tile h3 { color: var(--text-strong); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.tile p { color: var(--text-soft); font-size: .9375rem; max-width: 28em; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .875rem; }
.tile-meta { color: var(--text-faint); font: 500 .7188rem/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: 1.25rem; line-height: 1; transition: color .25s ease, transform .25s var(--ease); }
.tile:hover .tile-go { color: var(--corona); transform: translateX(.3125rem); }
.tile > .tile-go { margin-top: auto; }
/* Install */
.download-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4.5vw, 4rem); align-items: center;
  padding: clamp(1.75rem, 3.6vw, 3rem); border: 1px solid var(--border); border-radius: 1rem; background: var(--panel);
}
.download-copy h2 { color: var(--text-strong); font-size: clamp(1.625rem, 2.7vw, 2.125rem); font-weight: 600; letter-spacing: -.02em; }
.download-copy p { margin-top: .75rem; color: var(--text-soft); font-size: 1.0625rem; max-width: 34em; }
.download-copy .download-hash { font-size: .8125rem; color: var(--text-faint); overflow-wrap: anywhere; }
.download-actions { display: grid; gap: .75rem; justify-items: center; }
.download-actions .btn { min-width: 15.625rem; }
.download-meta { color: var(--text-soft); font-size: .8438rem; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; background: var(--panel-soft); }
.ref { width: 100%; border-collapse: collapse; min-width: 32.5rem; }
.ref th, .ref td { text-align: left; vertical-align: top; padding: .875rem 1.125rem; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.ref tr:last-child th, .ref tr:last-child td { border-bottom: 0; }
.ref thead th { color: var(--text-faint); font-size: .7812rem; 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: 13.75rem minmax(0, 1fr); gap: clamp(2rem, 5.4vw, 5rem); align-items: start; }
.docs-nav { position: sticky; top: calc(5.5rem + env(safe-area-inset-top, 0px)); }
.docs-nav ul { list-style: none; display: grid; gap: .125rem; }
.docs-nav a { display: block; padding: .4375rem .75rem; border-radius: .5rem; color: var(--text-soft); text-decoration: none; font-size: .9062rem; }
.docs-nav a:hover { color: var(--text-strong); background: var(--hover); }
.docs-content { max-width: 48.75rem; min-width: 0; }
.doc-section { padding: 0 0 3.5rem; }
.doc-section + .doc-section { padding-top: 3rem; border-top: 1px solid var(--border); }
.doc-section h2 { color: var(--text-strong); font-size: clamp(1.625rem, 2.7vw, 2.125rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1rem; }
.doc-section p { color: var(--text-soft); font-size: 1.0312rem; }
.doc-section p + p, .doc-section p + .table-wrap, .doc-section .table-wrap + p { margin-top: .875rem; }
.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: .1875rem; }
.doc-section .mono { color: var(--text); }

/* Changelog */
.timeline { list-style: none; }
.release { display: grid; grid-template-columns: 1.75rem minmax(0, 14.375rem) minmax(0, 1fr); column-gap: clamp(1.25rem, 3.6vw, 3.5rem); }
.release-rail { position: relative; }
.release-rail::after { content: ''; position: absolute; left: 50%; top: 2.125rem; bottom: -3rem; width: 1px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(238, 232, 220, .5), transparent); }
.release-node {
  position: absolute; left: 50%; top: .875rem; width: .8125rem; height: .8125rem; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid var(--corona); background: #000;
  box-shadow: 0 0 0 .3125rem rgba(238, 232, 220, .07), 0 0 1.5rem .125rem rgba(238, 232, 220, .35);
}
.release-version { color: var(--text-strong); font-size: clamp(2.75rem, 4.86vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.release-tag {
  display: inline-block; margin-top: 1rem; padding: .3125rem .75rem; border: 1px solid rgba(238, 232, 220, .32); border-radius: 62.4375rem;
  background: rgba(238, 232, 220, .06); color: var(--corona); font: 500 .7188rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.release-sub { margin-top: .75rem; color: var(--text-faint); font-size: .875rem; }
.release-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.release-grid li {
  position: relative; padding: 1.375rem 1.5rem 1.375rem; border: 1px solid var(--border); border-radius: .875rem; background: var(--panel);
  transition: border-color .2s ease, transform .25s var(--ease);
}
.release-grid li:hover { border-color: var(--border-strong); transform: translateY(-.125rem); }
.release-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.release-n { display: block; margin-bottom: .875rem; color: var(--text-faint); font: 500 .7188rem/1 var(--mono); letter-spacing: .14em; }
.release-grid h4 { color: var(--text-strong); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.release-grid p { margin-top: .375rem; color: var(--text-soft); font-size: .9375rem; }

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

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem);
  padding: .8125rem 1.125rem; border-radius: .75rem; border: 1px solid var(--border-strong);
  background: rgba(4, 4, 4, .96); color: var(--text); font-size: .875rem;
  box-shadow: 0 1.25rem 3.75rem #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: 35rem; 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: 2rem; }
  .steps li { padding: 0 0 0 4rem; min-height: 2.625rem; }
  .steps li:not(:last-child)::after { top: 3.25rem; bottom: -1.375rem; left: 1.3125rem; 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: 2.5rem; padding-bottom: 3rem; }
  .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: 1.5rem; }
  .docs-nav { position: static; }
  .docs-nav ul { grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); }
  .release { grid-template-columns: 1.25rem minmax(0, 1fr); row-gap: 1.75rem; }
  .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: 1.5rem 1.375rem 1.25rem; }
  .hero-foot { position: static; margin-top: 1.75rem; padding: 0 1rem 1.5rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
}

@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: 47.5rem; padding-top: calc(8.25rem + env(safe-area-inset-top, 0px)); padding-bottom: 6rem; }
.legal h1 { color: var(--text-strong); font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.legal-updated { margin-top: .875rem; color: var(--text-faint); font-size: .875rem; }
.legal section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.legal h2 { font-size: clamp(1.625rem, 2.7vw, 2.125rem); margin-bottom: 1.125rem; }
.legal h3 { margin: 1.75rem 0 .5rem; color: var(--text-strong); font-size: 1.0625rem; font-weight: 600; }
.legal p { color: var(--text-soft); font-size: 1rem; }
.legal p + p { margin-top: .75rem; }
.legal a { color: var(--corona); text-decoration-color: rgba(238, 232, 220, .35); text-underline-offset: .1875rem; }
.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: 1.125rem; font-weight: 600; margin: 2rem 0 .75rem; }
.doc-section h2 + h3 { margin-top: 0; }
.doc-section .table-wrap + .table-wrap, .doc-section .table-wrap + h3 { margin-top: 1.5rem; }
.doc-section p + h3 { margin-top: 2rem; }
.doc-section pre.code { margin-top: 1rem; padding: 1.125rem 1.25rem; overflow-x: auto; border: 1px solid var(--border); border-radius: .75rem; background: var(--panel-soft); color: var(--text); font-family: var(--mono); font-size: .8438rem; line-height: 1.6; }
.doc-section .table-wrap { margin-top: 1rem; }
.doc-section .ref tbody th { white-space: normal; }
.docs-nav { max-height: calc(100vh - 7rem); overflow-y: auto; }
@media (max-width: 900px) { .docs-nav { max-height: none; overflow: visible; } }

/* ---------- Contact form ---------- */
.contact-card { padding: clamp(1.5rem, 3.6vw, 2.5rem); border: 1px solid var(--border); border-radius: .875rem; background: var(--panel); margin-bottom: 1rem; }
.contact-card h2 { color: var(--text-strong); font-size: 1.625rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: .5rem; }
.contact-lead { color: var(--text-soft); font-size: 1rem; margin-bottom: 1.75rem; }
#contactForm, #claimForm { display: grid; gap: 1.25rem; max-width: 47.5rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { color: var(--text); font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8125rem .875rem; border: 1px solid var(--border-strong); border-radius: .625rem;
  background: rgba(0, 0, 0, .55); color: var(--text-strong); font: 400 1rem/1.4 var(--sans);
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 8.75rem; }
.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% - 1.25rem) 50%, calc(100% - .9375rem) 50%; background-size: .3125rem .3125rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.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: .875rem; }
.hp { position: absolute; left: -624.9375rem; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap; }
.form-status { color: var(--text-soft); font-size: .9375rem; }
.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: .875rem; font-weight: 600; }
.select { position: relative; }
.select-btn {
  display: flex; align-items: center; width: 100%; padding: .8125rem 2.5rem .8125rem .875rem; text-align: left; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: .625rem; background-color: rgba(0, 0, 0, .55); color: var(--text-strong);
  font: 400 1rem/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% - 1.25rem) 50%, calc(100% - .9375rem) 50%; background-size: .3125rem .3125rem; 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% + .375rem); left: 0; right: 0; margin: 0; padding: .375rem; list-style: none;
  border: 1px solid var(--border-strong); border-radius: .75rem; background: #0a0a0a;
  box-shadow: 0 1.125rem 3rem rgba(0, 0, 0, .7); outline: none;
}
.select-list[hidden] { display: none; }
.select-list li { position: relative; padding: .6875rem 2.375rem .6875rem .75rem; border-radius: .5rem; cursor: pointer; color: var(--text); font-size: 1rem; 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: .9375rem; top: 50%; width: .3125rem; height: .625rem; margin-top: -.4375rem;
  border: solid var(--corona); border-width: 0 .125rem .125rem 0; transform: rotate(45deg);
}

/* Software license page */
.lic-eyebrow { margin: 0 0 .875rem; color: var(--corona); font-family: var(--mono); font-size: .7812rem; letter-spacing: .16em; text-transform: uppercase; }
.page-head .lic-eyebrow { margin-top: 0; color: var(--corona); font-size: .7812rem; max-width: none; }
.lic-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.legal .lic-actions { margin-top: 1.125rem; }
.lic-doc .lic-section { scroll-margin-top: calc(6rem + env(safe-area-inset-top, 0px)); }
.lic-doc .lic-section h2 { display: flex; align-items: baseline; gap: .875rem; }
.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: 1rem; }
.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: .625rem; } }
.legal .lic-actions .btn { text-decoration: none; }
.legal .lic-actions .btn-corona { color: #000; }
.legal .lic-actions .btn-ghost { color: var(--text); }

/* Plan prices: hidden until Paddle's localized figures arrive, then shown once. */
.plan-price { transition: opacity .2s ease; }
html[data-price="pending"] .plan-price { opacity: 0; }

/* ---------- Download page and the note under the plans ---------- */
.plans-note { margin-top: 1.875rem; text-align: center; font-size: .9062rem; }
.plans-note a { color: var(--text-soft); text-decoration: none; transition: color .2s ease; }
.plans-note a:hover, .plans-note a:focus-visible { color: var(--text-strong); }
.plans-note svg { display: inline-block; width: .9375rem; height: .9375rem; margin-left: .375rem; vertical-align: -.125rem; transition: transform .2s ease; }
.plans-note a:hover svg { transform: translateX(.1875rem); }
.dl { padding: calc(8.25rem + env(safe-area-inset-top, 0px)) 0 clamp(4.5rem, 9vw, 8rem); }
.dl-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dl h1 { margin-top: 2.25rem; color: var(--text-strong); font-size: clamp(2.25rem, 4.86vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.dl-status { margin-top: 1rem; color: var(--text-soft); font-size: 1.125rem; }
.dl-actions { margin-top: 2rem; }
.dl-note { margin-top: 1.875rem; max-width: 32em; color: var(--text-soft); font-size: .9062rem; line-height: 1.6; }

/* Scrollbars, as in the Darkstar app's chat: 8px, transparent track, no arrow buttons, a faint rounded thumb that
   brightens on hover. Every scrolling area of the site uses them, the page itself included. */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .08) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 4px; transition: background .2s ease; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); }
