/* lumen.movie
   One stylesheet, no framework. Tokens come from the app's design system
   (brief section 4). Dark only; the background is painted explicitly.
   Structure: fonts, tokens, base, type, layout, components, pages, motion,
   responsive. */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/sora-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: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/sora-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-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;
}
/* Metric-compatible fallback so text does not jump when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #06070B;
  --bg-elev: #0C0F16;
  --surface: #12161F;
  --surface-hi: #1A2030;
  --ink-tint: #141A26;
  --wash-cool: rgba(158, 172, 194, 0.12);
  --wash-warm: rgba(242, 193, 78, 0.07);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --scrim: rgba(6, 7, 11, 0.8);
  --text: #EEF1F7;
  --text-dim: #98A2B3;
  --text-faint: #7A8494;
  --gold: #F2C14E;
  --gold-bright: #FFD97A;
  --gold-ink: #1C1403;
  --gold-soft: rgba(242, 193, 78, 0.12);
  --blue: #6E8BFF;
  --danger: #FF5C5C;
  --success: #58D68D;

  --r-control: 8px;
  --r-card: 12px;
  --r-sheet: 18px;
  --r-pill: 999px;
  --shadow-card: 0 8px 18px rgba(0, 0, 0, 0.4);
  --glow-focus: 0 4px 24px rgba(242, 193, 78, 0.35);
  --bezel: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 420ms;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Sora", "Inter Fallback", Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 66ch;
  --header-h: 4rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--surface-hi) var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  caret-color: var(--gold);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(242, 193, 78, 0.28); color: var(--text); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-bright); }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
/* Sizes, versions, dates and checksums stack in columns, so their digits
   have to be the same width. */
code, kbd, pre, samp, time, .table th, .table td, .platform__meta dd,
.relgroup__meta, .release__version, .chip--tag { font-variant-numeric: tabular-nums; }
p code, li code, dd code, td code { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); border-radius: 6px; padding: 0.05em 0.4em; font-size: 0.86em; }
/* A code block is already a container; its code must not also be a capsule. */
pre code { background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; }
a code { color: inherit; }
ul, ol { padding-left: 1.25rem; }
p, ul, ol, dl, pre, table, figure { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); text-wrap: balance; }
/* Headings balance; prose only needs its last line not to be one orphan word. */
p, li, dd, figcaption, .lead { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  box-shadow: var(--glow-focus);
}
.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: var(--r-pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.icon { flex: none; }

/* ---------- type ---------- */
.page-title {
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-title--small { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-bottom: 1rem; }
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--text);
}
.fineprint { color: var(--text-dim); font-size: 0.9375rem; }
.pull {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gold);
  max-width: 30ch;
  margin: 1.5rem 0;
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--first { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.page-head { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.page-head .lead { margin-top: 1rem; margin-bottom: 0; }
/* A hairline that fades out to the right, so an inner page opens with a
   crisp edge instead of floating text. */
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke-strong), var(--stroke) 42%, transparent 88%);
}
.site-main { min-height: 60dvh; }
.sheet {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sheet);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card), var(--bezel);
}
.prose { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.prose > * { max-width: var(--measure); }
.prose--wide > * { max-width: 56rem; }
.prose__section { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.875rem; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.375rem; color: var(--text-dim); }
.reading {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 1rem clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.reading__index { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.reading__index ul, .versions__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.reading__index a, .versions__list a {
  display: block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-control);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.reading__index a:hover, .versions__list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
/* Where you are on a long page: gold as light, matching the header's
   current-page treatment. Set by site.js; without it the index still works. */
.reading__index a.is-current, .versions__list a.is-current { color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.reading__body { max-width: var(--measure); }
/* Pages whose body carries two-column content or imagery, not prose. */
.reading--wide .reading__body { max-width: none; }
.reading__cta { margin-top: 2.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 11, 0.64);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  margin: 0;
}
.lockup__mark { width: 28px; height: 28px; border-radius: var(--r-control); }
.lockup__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lockup--hero { gap: 0.875rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.lockup--hero .lockup__mark { width: 48px; height: 48px; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.lockup--hero .lockup__word { font-size: 2rem; }
.site-nav__list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav { margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.header-download, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font: 600 0.875rem / 1.25 var(--font-body);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.header-download:hover, .header-download[aria-current="page"] { border-color: var(--gold); background: var(--gold-soft); }
.header-download .icon { color: var(--gold); }
.nav-toggle { display: none; cursor: pointer; border-color: transparent; }
.nav-toggle:hover { background: var(--surface); }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav__link[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
/* With no imagery behind it, the header sits closer to the ground. */
.page:not(.page--home) .site-header { background: rgba(6, 7, 11, 0.82); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .copy:focus-visible { box-shadow: var(--glow-focus); }
.btn--primary { background: var(--gold); color: var(--gold-ink); box-shadow: var(--shadow-card); }
.btn--primary:hover { color: var(--gold-ink); }
.btn--secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--stroke-strong); }
.btn--secondary:hover { color: var(--text); }
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.link-quiet:hover { color: var(--gold-bright); }
.link-quiet .icon { transition: transform var(--t-fast) var(--ease); }
.link-quiet:hover .icon, .link-quiet:focus-visible .icon { transform: translateX(2px); }

/* ---------- chips, codes, notes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip--gold { background: var(--gold-soft); border-color: rgba(242, 193, 78, 0.35); color: var(--gold); }
.chips--lang { margin-top: 1rem; }
.code {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
  padding: 0.875rem 1rem;
  overflow-x: auto;
  font: 500 0.875rem/1.65 var(--font-mono);
  color: var(--text);
  tab-size: 4;
}
.code code { font-size: inherit; }
.code--tall { max-height: 26rem; overflow: auto; }
.note {
  display: flex;
  gap: 0.875rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: var(--r-card);
  background: rgba(242, 193, 78, 0.06);
}
.note > .icon { color: var(--gold); margin-top: 0.1rem; }
.note__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.25rem; }
.note p:last-child { margin-bottom: 0; }
.checksum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
}
.checksum__label { font-size: 0.8125rem; font-weight: 600; color: var(--text-dim); }
.checksum__hash { font: 500 0.8125rem/1.5 var(--font-mono); color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.copy:active { transform: scale(0.97); }
.copy.is-done { border-color: rgba(88, 214, 141, 0.5); color: var(--success); }
.copy.is-failed { border-color: rgba(255, 92, 92, 0.5); color: var(--danger); }
.no-js .copy { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }
.meta div { display: grid; gap: 0.15rem; }
.meta dt { font-size: 0.8125rem; color: var(--text-faint); }
.meta dd { margin: 0; font-size: 0.9375rem; }
.filelist, .linklist, .creditlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.filelist li { display: grid; gap: 0.15rem; }
.filelist li code { justify-self: start; }
.filelist li span { color: var(--text-dim); font-size: 0.9375rem; }
.filelist--compact { gap: 0.875rem; }
.filelist__sha { font-size: 0.75rem; color: var(--text-faint); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.linklist li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.linklist li a { min-width: 0; }
/* Break at spaces first; only split a file name that alone exceeds the line. */
.linklist code, .meta dd code, .filelist code, .apk__title { overflow-wrap: anywhere; }
.linklist span { color: var(--text-dim); font-size: 0.9375rem; }
.creditlist li { display: grid; gap: 0.15rem; padding: 0.875rem 0; }
.creditlist li + li { border-top: 1px solid var(--stroke); }
.creditlist span { color: var(--text-dim); font-size: 0.9375rem; }
.dashlist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.625rem; }
.dashlist li { position: relative; padding-left: 1.5rem; }
.dashlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.875rem;
  height: 1px;
  background: var(--gold);
}
.numbered { padding-left: 1.5rem; display: grid; gap: 0.5rem; }
.numbered li::marker { color: var(--gold); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; }
.table thead th { font-weight: 600; color: var(--text-dim); font-size: 0.875rem; border-bottom: 1px solid var(--stroke-strong); }
.table tbody tr + tr td, .table tbody tr + tr th { border-top: 1px solid var(--stroke); }
.table tbody th { font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.table--narrow { max-width: 28rem; }
.table--narrow td { font-variant-numeric: tabular-nums; }
.empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--r-sheet);
  text-align: center;
  color: var(--text-dim);
}
.empty > .icon { color: var(--gold); margin-bottom: 0.25rem; }
.empty__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text); margin: 0; }
.empty__body { margin: 0; max-width: 40ch; }
.empty p:last-child { margin-top: 0.75rem; }

/* ---------- screenshots (double bezel) ---------- */
.shot { margin: 0; }
.shot__frame {
  padding: 3px;
  border-radius: var(--r-sheet);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-card);
}
.shot--hero .shot__frame { box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), var(--bezel); }
.shot picture, .shot__pending {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--bg-elev);
}
.shot__img { width: 100%; height: auto; display: block; }
.shot picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.shot__pending {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.375rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
}
.shot__pending img { width: 56px; height: 56px; border-radius: var(--r-card); margin-bottom: 0.5rem; opacity: 0.9; }
.shot__pending-title { margin: 0; font-weight: 600; color: var(--text); max-width: 34ch; }
.shot__pending-hint { margin: 0; font-size: 0.875rem; color: var(--text-faint); }
.shot--details .shot__pending, .shot--series .shot__pending, .shot--sync .shot__pending { aspect-ratio: 16 / 10; }
.shot--home-desktop .shot__pending, .shot--player .shot__pending, .shot--tv-home .shot__pending { aspect-ratio: 16 / 9; }
.shot--phone-home .shot__pending { aspect-ratio: 9 / 19.5; }

/* ---------- homepage: ownership, proof, then a clear next step ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  /* Sized to the content plus its breathing room. At 48rem the copy and the
     window floated in the middle of a mostly empty box. */
  min-height: min(44rem, calc(100svh - var(--header-h)));
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: clip;
}
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.home-hero__copy { position: relative; z-index: 1; }
.home-hero__title { font-size: clamp(2.75rem, 5.3vw, 4.25rem); line-height: 1.04; letter-spacing: -0.045em; }
.home-hero__title span, .home-heading span { display: block; }
.home-hero__lead { max-width: 41ch; margin: 1.75rem 0 0; font-size: 1.125rem; line-height: 1.65; color: var(--text-dim); }
.home-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.75rem; margin-top: 2rem; }
.home-hero__actions .btn { min-height: 3.25rem; padding-inline: 1.5rem; }
.home-hero__platforms { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--text-dim); font-size: 0.8125rem; }
.home-hero__platforms li { display: flex; align-items: center; gap: 0.5rem; }
.home-hero__visual { position: relative; animation: rise 420ms var(--ease) both; }
.home-hero__visual::before { content: ""; position: absolute; inset: -25% -45% -30% -8%; z-index: -1; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ambient, #F2C14E) 28%, transparent), transparent 68%); pointer-events: none; }
.home-hero__visual .shot { width: 124%; max-width: none; }
/* A restrained frame keeps the real interface in focus. */
.home-hero__visual .shot__frame {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}
.home-hero .shot:hover .shot__img, .home-addons .shot:hover .shot__img { transform: none; }
.home-ground { position: relative; background: var(--bg); }
.home-ground::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 4rem; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.home-heading { font-size: clamp(2.125rem, 1.25rem + 2.2vw, 3.25rem); line-height: 1.14; letter-spacing: -0.035em; }
.home-ownership { padding-block: clamp(3rem, 6vw, 5.5rem) 3rem; }
.home-ownership__intro, .home-addons__intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: clamp(2rem, 6vw, 5.5rem); }
.home-ownership__copy, .home-addons__copy { color: var(--text-dim); line-height: 1.65; }
.home-ownership__copy p, .home-addons__copy p { margin-bottom: 1.5rem; }
/* Ownership makes a claim and proves it three ways; addons pairs a claim with
   an explanation and a screenshot. Sharing the two-column intro made two
   sections in a row read as the same move twice, so this one states its claim
   across the full measure and gives the three proofs a column each. */
.home-ownership__intro { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.home-ownership__copy { max-width: 62ch; }
.home-ownership__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2.5rem; list-style: none; padding: 1.5rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid var(--stroke); font-size: 0.9375rem; }
.home-ownership__facts li { display: flex; align-items: center; gap: 0.625rem; }
.home-ownership__facts .icon { color: var(--gold); }
.home-addons { padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-addons__intro { border-top: 1px solid var(--stroke); padding-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.home-addons__visual { margin-top: clamp(2rem, 4vw, 3.5rem); }
.home-addons__caption { display: flex; justify-content: space-between; gap: 1rem 3rem; margin-top: 1.125rem; color: var(--text-dim); font-size: 0.8125rem; line-height: 1.5; }
.home-addons__caption p { margin: 0; }
.home-addons__caption p:last-child { max-width: 42ch; text-align: right; }
.home-playback { padding-bottom: clamp(4rem, 7vw, 6rem); }
.home-playback__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid var(--stroke); padding-top: 2rem; margin-bottom: 2.25rem; }
.home-playback__head h2 { font-size: clamp(1.375rem, 1.1rem + 0.75vw, 1.75rem); letter-spacing: -0.025em; }
.home-playback__head .link-quiet { font-size: 0.9375rem; }
.home-playback__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; list-style: none; margin: 0; padding: 0; }
.home-playback__list > li > .icon { color: var(--gold); margin-bottom: 1.25rem; }
.home-playback__list h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.75rem; }
.home-playback__list p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-dim); max-width: 36ch; margin: 0; }
/* A closing band, not a room: the padding was carrying more height than the
   content inside it. */
.home-install { padding-block: clamp(2.75rem, 4.5vw, 4rem); background: var(--bg-elev); border-block: 1px solid var(--stroke); }
.home-install__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.home-install__copy h2 { font-size: clamp(3rem, 5.5vw, 4.75rem); letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 1.5rem; }
.home-install__copy p { color: var(--text-dim); max-width: 35ch; }
.home-install__copy .home-install__release { font-size: 0.8125rem; margin: 2rem 0 0; }
.home-install__platforms { list-style: none; padding: 0; margin: 0; }
.home-install__platforms li { border-bottom: 1px solid var(--stroke-strong); }
.home-install__platforms li:first-child { border-top: 1px solid var(--stroke-strong); }
.home-install__platforms a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.125rem; align-items: center; padding: 1.5rem 0.25rem; text-decoration: none; color: var(--text); transition: color var(--t-fast), background var(--t-fast); }
.home-install__platforms a:hover { color: var(--gold); background: rgba(255, 255, 255, 0.025); }
.home-install__platforms a > .icon:last-child { color: var(--gold); }
.home-install__platform { display: grid; gap: 0.375rem; }
.home-install__platform strong { font: 600 1.25rem / 1.3 var(--font-display); }
.home-install__platform > span { font-size: 0.8125rem; color: var(--text-dim); }
.home-install__notes { margin-top: 1.5rem; font-size: 0.875rem; }
.page--home .site-footer { background: var(--bg); }
@media (max-width: 899.98px) {
  .home-hero { min-height: 0; padding-top: 2.5rem; padding-bottom: 3rem; }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .home-hero__title { font-size: clamp(2rem, 10vw, 4rem); }
  .home-hero__lead { font-size: 1.0625rem; margin-top: 1.25rem; max-width: 46ch; }
  .home-hero__actions { gap: 1rem 1.5rem; margin-top: 1.5rem; }
  .home-hero__platforms { margin-top: 1.5rem; gap: 0.75rem 1.125rem; }
  .home-hero__visual .shot { width: 100%; transform: none; }
  .home-hero__visual::before { inset: -15% -10%; }
  .home-ownership__intro, .home-addons__intro, .home-install__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .home-heading { font-size: clamp(1.875rem, 6.8vw, 2.75rem); }
  .home-ownership__copy, .home-addons__copy { max-width: 46ch; }
  .home-ownership__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
  .home-addons__caption { display: grid; gap: 0.625rem; }
  .home-addons__caption p:last-child { text-align: left; }
  .home-playback__list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .home-playback__list > li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 1rem; }
  .home-playback__list > li > .icon { grid-row: span 2; margin-bottom: 0; }
  .home-playback__list p { max-width: 44ch; }
  .home-install__grid { gap: 2.5rem; }
  .home-install__copy h2 { font-size: clamp(2.75rem, 8vw, 4rem); }
  .home-install__copy .home-install__release { margin-top: 1.25rem; }
}

/* Shared action spacing, also used on the 404 page. */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.manifest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0; }
.manifest__label { font-size: 0.8125rem; color: var(--text-faint); }
.manifest__url {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.6rem 0.875rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 0.8125rem;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.manifest__url .icon { color: var(--gold); flex: none; }
.paircode { display: grid; gap: 0.5rem; margin: 0; }
.paircode__label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--text-faint); }
.paircode__label .icon { color: var(--gold); }
.paircode__code { display: flex; flex-wrap: wrap; gap: 0.375rem; font-size: 0.9375rem; }
.paircode__code span {
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-control);
  background: var(--bg);
  border: 1px solid var(--stroke);
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 500;
}
.paircode--large { margin: 1.25rem 0; }
.paircode--large .paircode__code { font-size: 1.125rem; }
.paircode--large .paircode__code span { padding: 0.5rem 0.8rem; }
/* A clear next step after the homepage explains private sync. */
.home-ownership__pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  background: var(--surface);
}
.home-ownership__pass h3 { margin: 0 0 0.625rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); letter-spacing: -0.02em; }
.home-ownership__pass p { margin: 0; max-width: 55ch; color: var(--text-dim); }
.home-ownership__pass .home-ownership__assurance { margin-top: 1rem; color: var(--text); font-size: 0.875rem; }
.home-ownership__offer { min-width: 0; }
.home-ownership__pass .home-ownership__price { font: 600 1.75rem var(--font-display); color: var(--text); letter-spacing: -0.025em; }
.home-ownership__pass .home-ownership__detail { margin: 0.375rem 0 1rem; font-size: 0.8125rem; }
.download-pass {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--stroke);
}
.download-pass > div { flex: 1 1 32rem; min-width: 0; }
.download-pass h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.download-pass p { margin: 0; max-width: 70ch; color: var(--text-dim); font-size: 0.9375rem; }
.download-pass > a { font-size: 0.9375rem; }
/* The testers band sits straight on top of the Pass band: one hairline between
   the two, not two hairlines with a gap between them. */
.download-testers { margin-bottom: 0; border-bottom: 0; }
.sync-pass {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  background: var(--surface);
}
.sync-pass h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.sync-pass p { max-width: 60ch; color: var(--text-dim); }
.sync-pass .btn { margin-top: 0.25rem; }
.pass-assurance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.5;
}
.pass-assurance .icon { flex: none; margin-top: 0.1em; color: var(--gold); }

/* ---------- steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { position: relative; display: grid; gap: 0.5rem; align-content: start; }
/* The rule is drawn one segment at a time, number to number, so it stops at
   the last step instead of running on into empty space. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3rem;
  right: -1rem;
  top: 1.25rem;
  height: 1px;
  background: var(--stroke-strong);
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(242, 193, 78, 0.55);
  color: var(--gold);
  font: 600 0.9375rem var(--font-display);
  margin-bottom: 0.5rem;
}
.step__title { font-size: 1.125rem; font-weight: 600; }
.step__text { margin: 0; color: var(--text-dim); font-size: 0.9375rem; }

/* ---------- download page ---------- */
.dl__main, .dl__aside, .reading__body, .prose > * { min-width: 0; }
.dl__h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.dl__h3 .icon { color: var(--gold); }
.dl__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.dl__cols--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
/* A column this narrow cannot scroll a long command usefully, so wrap it. */
.dl__cols--three .code { white-space: pre-wrap; overflow-wrap: anywhere; }
.dl__cols .dl__h3:first-child { margin-top: 0; }

/* The page's first decision, made in one look: the platforms side by side,
   each carrying its own files, sizes and checksums. Two columns holds the
   four builds as a square, and one column below 900px. */
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.25rem 0 0; }
.release-line__date { color: var(--text-dim); font-size: 0.9375rem; }
.page-head__note { margin: 1.25rem 0 0; max-width: 66ch; color: var(--text-dim); font-size: 0.9375rem; }
.platform-jumps { display: none; }
.page--download .page-head { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: 1.5rem; }
.page--download .platforms { padding-top: 1.5rem; }
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}
/* Cards in a row share the height of the tallest, so the space between the
   rows is the gap and not the difference between two content lengths: one
   card carrying a warning and two builds must not leave a hole under the one
   that carries neither. The slack goes above the download, which sits on the
   bottom edge of every card with the file it names — so the four actions land
   on a line the eye can follow instead of wherever the copy above them ended.
   Flex, not grid: only auto margins can absorb that slack. */
.platform { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.platform > .btn--block, .platform > .abi { margin-top: auto; }
.platform__head { display: flex; align-items: center; gap: 0.875rem; }
.platform__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-card);
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.28);
  color: var(--gold);
}
.platform__name { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); letter-spacing: -0.015em; }
.platform__name .chip--tag { margin-left: 0.5rem; vertical-align: middle; }
.platform__notice { display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.875rem 1rem; background: rgba(242, 193, 78, 0.04); border: 1px solid rgba(242, 193, 78, 0.15); border-radius: var(--r-card); }
.platform__notice > .icon { flex: none; color: var(--gold); margin-top: 0.1rem; }
.platform__notice p { margin: 0; color: var(--text-dim); font-size: 0.875rem; line-height: 1.55; }
.platform__req { margin: 0.125rem 0 0; color: var(--text-dim); font-size: 0.9375rem; }
.platform__note { margin: 0; color: var(--text-dim); font-size: 0.9375rem; }
.platform__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; }
.platform__meta div { display: grid; gap: 0.15rem; }
.platform__meta dt { font-size: 0.8125rem; color: var(--text-faint); }
.platform__meta dd { margin: 0; font-size: 0.9375rem; }
.platform__shalink { margin: 0; font-size: 0.9375rem; }
.platform .checksum { margin: 0; }
.btn--block { width: 100%; }

.abi { display: grid; gap: 0.75rem; padding: 1rem 0 0; border-top: 1px solid var(--stroke); }
/* Grid, not flex: the button sits at the right on every row, whatever the
   length of the label beside it. */
.abi__head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 0.875rem; }
.abi__text { min-width: 0; }
.abi__name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.abi__detail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; color: var(--text-dim); font-size: 0.8125rem; margin: 0.5rem 0 0; }
.abi__detail code { background: none; padding: 0; color: inherit; font-size: inherit; }
.abi__head > .btn { width: 100%; }
.abi-options { border-top: 1px solid var(--stroke); }
.abi-options summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; min-height: 2.75rem; padding-top: 0.25rem; color: var(--text-dim); font-size: 0.9375rem; list-style: none; }
.abi-options summary::-webkit-details-marker { display: none; }
.abi-options summary:hover { color: var(--text); }
.abi-options summary .icon { flex: none; transition: transform var(--t-fast) var(--ease); }
.abi-options[open] summary .icon { transform: rotate(180deg); }
.abi-options .abi { padding-top: 0.75rem; border-top: 0; }
.abi__tag {
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.35);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.abi__desc { margin: 0.25rem 0 0; color: var(--text-dim); font-size: 0.9375rem; }

.filelist--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem 2rem; }
.feed { margin-top: 1.25rem; }
.feed summary { cursor: pointer; color: var(--text-dim); font-weight: 600; font-size: 0.9375rem; }
.feed summary:hover { color: var(--text); }
.feed .code { margin-top: 0.75rem; }

/* ---------- features page ---------- */
/* A group is a composed section, not a heading over a bulleted list: its own
   mark in the app's gold-on-rounded-square language, a one-line lead, then
   the facts in two columns with an icon each. Hairlines set the rhythm. */
.fgroup { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.fgroup + .fgroup { margin-top: clamp(2.75rem, 5vw, 3.75rem); padding-top: clamp(2.75rem, 5vw, 3.75rem); border-top: 1px solid var(--stroke); }
.fgroup__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.fgroup__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.15rem;
  border-radius: var(--r-card);
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.28);
  color: var(--gold);
}
.fgroup__heading { min-width: 0; }
.fgroup__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); letter-spacing: -0.015em; }
.fgroup__lead { margin: 0.375rem 0 0; max-width: 54ch; color: var(--text); font-size: 1.0625rem; line-height: 1.5; }
.fgroup__shot { margin-bottom: 1.75rem; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.fitem { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.fitem__icon { display: grid; place-items: center; margin-top: 0.15rem; color: var(--gold); }
.fitem p { margin: 0; color: var(--text-dim); font-size: 0.9375rem; line-height: 1.5; }
.fgroup__chips, .fgroup__code, .fgroup__link, .fgroup__body { margin: 1.5rem 0 0; }
.fgroup__body { max-width: 60ch; color: var(--text-dim); }
/* An intro paragraph has space above it and none below, so a list that the
   sentence introduces sat flush against it and read as part of the prose. */
.fgroup__body + .recipe, .fgroup__body + .linklist,
.fgroup__body + .creditlist, .fgroup__body + .filelist { margin-top: 0.875rem; }
.fclose {
  display: grid;
  justify-items: start;
  gap: 0.375rem;
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  border-top: 1px solid var(--stroke);
}
.fclose__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); letter-spacing: -0.015em; }
.fclose__note { margin: 0; color: var(--text-dim); }
.fclose__action { margin: 1rem 0 0; }

/* ---------- faq ---------- */
.faq__item { margin-bottom: clamp(2rem, 4vw, 2.75rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.faq__q { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 0.625rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- addons page ---------- */
/* A page opens on its own subject: the screenshot sits above the first
   section, so the reader sees the screen the page describes. */
.page-shot { margin-bottom: clamp(2.25rem, 4vw, 3rem); }
.fitem__term { color: var(--text); font-weight: 600; }
.fgroup__fineprint { margin: 1rem 0 0; }
/* A plain fineprint closing a section never got the margin its __fineprint
   sibling has, so it sat flush against the list, table or columns above and
   read as one more entry in them. A little more than 1rem here: these follow
   a filelist whose own items are 0.875rem apart, and the point is to be
   plainly outside that list rather than the tightest thing next to it. */
.fgroup > .fineprint { margin-top: 1.25rem; }

/* The two bundled addons, as the app lists them: name, what it does, and
   the resources its manifest declares. Rows, not cards. */
.bundled { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bundled__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--stroke);
}
.bundled__row:last-child { border-bottom: 1px solid var(--stroke); }
.bundled__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
}
.bundled__text { min-width: 0; }
.bundled__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.bundled__role { margin: 0.125rem 0 0; color: var(--text-dim); font-size: 0.9375rem; }
.chips--tags { justify-content: flex-end; }
.chip--tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); min-height: 1.625rem; padding: 0 0.55rem; }

.manifest--wide { margin-bottom: 2rem; }
.manifest--wide .manifest__url { font-size: 0.875rem; padding: 0.75rem 1rem; }
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.scheme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0; }
.scheme div { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.scheme dt { font-size: 0.8125rem; font-weight: 600; color: var(--text-dim); }
.scheme dd { margin: 0; }
.scheme .code { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- faq page ---------- */
/* One panel, four columns, hairline-divided: the four answers the page can
   give before a question is asked. Not four cards, and no numbers. */
.nots {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-sheet);
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
}
.nots__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.nots__item { display: grid; align-content: start; gap: 0.375rem; padding-left: 1.5rem; border-left: 1px solid var(--stroke); }
.nots__item:first-child { padding-left: 0; border-left: 0; }
.nots__mark { color: var(--gold); }
.nots__term { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.nots__text { margin: 0; color: var(--text-dim); font-size: 0.875rem; line-height: 1.45; }

.qalist { display: grid; }
.qa { padding: 1.5rem 0; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.qa:first-child { padding-top: 0; }
.qa:last-child { padding-bottom: 0; }
.qa + .qa { border-top: 1px solid var(--stroke); }
.qa__q { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 0.625rem; }
.qa__a { color: var(--text-dim); }
.qa__a > p { margin-bottom: 0.75rem; }
.qa__a > p:last-child { margin-bottom: 0; }
.qa__a .note { margin: 0 0 1rem; }
.qa__a .chips { margin-top: 0.875rem; }
.qa__link { margin-top: 0.875rem; margin-bottom: 0; }

.fclose .fgroup__mark { margin-bottom: 0.75rem; }
/* The one warm moment on an answers page: the moth turns up where the page
   stops answering and asks you to write instead. Still, not drifting; this
   one is read past, not landed on. */
.fclose__moth { margin: 0 0 0.5rem; }

/* ---------- sync page ---------- */
/* The page opens on the one thing the whole feature is: the code. */
.codehero {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-sheet);
  background: linear-gradient(165deg, var(--ink-tint) 0%, var(--surface) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card), var(--bezel);
}
.codehero__label { margin: 0; font-size: 0.8125rem; color: var(--text-faint); }
.codehero__code { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.codehero__code span {
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-card);
  background: var(--bg);
  border: 1px solid rgba(242, 193, 78, 0.28);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.16em;
}
.codehero__caption { margin: 0; color: var(--text-dim); font-size: 0.9375rem; }

/* The page's argument, shown rather than asserted: the same row as your
   device holds it, and as the relay receives it. */
.opaque { margin: 0 0 1.5rem; }
.opaque__caption { margin-bottom: 0.75rem; font-size: 0.8125rem; color: var(--text-faint); }
.opaque__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.opaque__panel {
  align-self: stretch;
  padding: 1rem 1.125rem;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
}
.opaque__panel--clear { background: var(--surface); }
.opaque__panel--sealed { background: var(--bg); }
.opaque__label { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-dim); }
.opaque__panel--clear .opaque__label .icon { color: var(--gold); }
.opaque__panel--sealed .opaque__label .icon { color: var(--text-faint); }
.opaque__rows { display: grid; gap: 0.4rem; margin: 0; }
.opaque__rows div { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
.opaque__rows dt { font-size: 0.8125rem; color: var(--text-faint); }
.opaque__rows dd { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.opaque__panel--clear dd { color: var(--text); }
.opaque__panel--sealed dd { color: var(--text-faint); }
.opaque__seal {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.35);
  color: var(--gold);
}

.relaysteps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1.75rem; }
.relaystep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.relaystep .step__num { margin: 0; }
.relaystep__body { min-width: 0; }
.relaystep__body .step__text { margin-bottom: 0.75rem; }
.relaystep__body .code { margin-bottom: 0; }
.relaystep__body .fineprint { margin: 0.5rem 0 0; }

/* ---------- pass page ---------- */
/* Lead with the everyday benefit and a complete offer. The longer page
   follows through on household value, price, setup and common questions. */
.passhero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.passhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.passhero__title {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.875rem;
}
.passhero__lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 38ch;
}
.passhero__offer {
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.passhero__name { margin: 0 0 0.375rem; font-size: 1.125rem; }
.passhero__scope { margin: 0 0 1.25rem; color: var(--text-dim); font-size: 0.9375rem; }
.passhero__includes { list-style: none; margin: 0 0 1.25rem; padding: 1rem 0 0; border-top: 1px solid var(--stroke); display: grid; gap: 0.5rem; }
.passhero__includes li { display: flex; gap: 0.625rem; font-size: 0.875rem; line-height: 1.5; }
.passhero__includes .icon { flex: none; margin-top: 0.15em; color: var(--gold); }
.passhero__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.375rem; }
.passhero__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.passhero__once { color: var(--text-dim); font-size: 1.0625rem; }
.passhero__note { margin: 0 0 1.125rem; color: var(--text-dim); font-size: 0.875rem; line-height: 1.5; }
.passhero__trial { display: flex; align-items: flex-start; gap: 0.625rem; margin: 1.75rem 0 0; max-width: 42ch; font-size: 0.9375rem; color: var(--text); }
.passhero__trial .icon { flex: none; color: var(--gold); margin-top: 0.1em; }
.passhero__trial a { display: inline-block; margin-top: 0.375rem; }
.passhero__actions { margin: 0 0 0.875rem; }
.passhero__guarantee {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.passhero__guarantee .icon { color: var(--gold); flex: none; margin-top: 0.15em; }
.passhero__recover { margin: 0 0 0.875rem; font-size: 0.9375rem; }
.passhero__merchant { margin: 0; color: var(--text-faint); font-size: 0.8125rem; line-height: 1.5; }
.pass-benefits { margin-bottom: clamp(3rem, 6vw, 5rem); }
.pass-benefits h2 { margin: 0 0 0.625rem; font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); letter-spacing: -0.02em; }
.pass-benefits__lead { margin: 0 0 2rem; color: var(--text-dim); }
.pass-benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pass-benefits__list li { min-width: 0; }
.pass-benefits__list li + li { border-left: 1px solid var(--stroke); padding-left: 2rem; }
.pass-benefits__list .icon { color: var(--gold); margin-bottom: 1rem; }
.pass-benefits__list h3 { font-size: 1.125rem; margin: 0 0 0.625rem; }
.pass-benefits__list p { margin: 0; color: var(--text-dim); line-height: 1.65; }
.pass-close__trial { margin: 1.5rem 0 0; font-size: 0.9375rem; }

/* Reciprocity, laid out so the length of the list is the argument. */
.freelist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 0.625rem 1.5rem;
}
.freelist__item { display: flex; gap: 0.625rem; align-items: flex-start; }
.freelist__tick { color: var(--gold); flex: none; margin-top: 0.15em; }
.freelist__close { color: var(--text); font-weight: 600; }

/* The reason there is a price. Quieter type, one gold rule, no card: this is
   the only place on the site that speaks in the first person. */
.whyblock {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--gold);
  border-radius: 0;
}
.whyblock__title {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.whyblock__para { margin: 0 0 0.875rem; max-width: 62ch; }
.whyblock__para:last-child { margin-bottom: 0; }

.anchorblock {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 18px;
}
.anchorblock__title {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.625rem;
}
.anchorblock__body { margin: 0 0 0.875rem; max-width: 62ch; }
.anchorblock__note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; color: var(--text-dim); font-size: 0.9375rem; }
.anchorblock__note .icon { color: var(--gold); flex: none; margin-top: 0.15em; }

/* Two columns so the asymmetry is the point: a long list that survives the
   trial ending, and one line that pauses. */
.trialcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.trialcol {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 1rem 1.125rem;
}
.trialcol__title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.trialcol--keeps .trialcol__title .icon { color: var(--success); }
.trialcol--pauses .trialcol__title .icon { color: var(--text-faint); }
.trialcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.trialcol li { font-size: 0.9375rem; line-height: 1.5; }
.trialcol--keeps li { color: var(--text); }
.trialcol--pauses li { color: var(--text-dim); }

/* ---------- support page ---------- */
/* One action, then the things that make a first message answerable. There is
   no form here on purpose: the site ships form-action 'none'. */
.support__action { margin: 0 0 0.75rem; }
.support__plain { margin: 0 0 clamp(2rem, 4vw, 2.75rem); color: var(--text-dim); }

/* ---------- legal pages (privacy, terms) ---------- */
.legal__section { margin-bottom: clamp(2rem, 4vw, 2.75rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal__title { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem); letter-spacing: -0.012em; margin-bottom: 0.75rem; }
.legal p:last-child { margin-bottom: 0; }
.termlist { display: grid; gap: 1rem; margin: 0 0 1rem; }
.termlist div { display: grid; gap: 0.25rem; }
.termlist dt { font-weight: 600; color: var(--text); }
.termlist dd { margin: 0; color: var(--text-dim); }

/* ---------- press page ---------- */
/* A press kit reads as a document: facts and rules as term lists, reusable
   copy in bordered blocks, assets as a grid with the original file one click
   away. The screenshot previews reuse the app frames; the downloads are the
   originals under /press/screenshots/. */
.press-boiler { display: grid; gap: 1rem; }
.press-boiler__item {
  padding: 1.125rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
}
.press-boiler__label {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.press-boiler__text { margin: 0; color: var(--text); }
.press-assets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.press-asset { display: grid; gap: 0.5rem; align-content: start; }
.press-asset__preview {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--r-card);
}
.press-asset__preview img { max-width: 4.5rem; max-height: 4.5rem; }
.press-asset__name { margin: 0; font-weight: 600; }
.press-asset__meta { margin: 0; color: var(--text-faint); font-size: 0.875rem; }
.press-asset__link { margin: 0; }
.press-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.press-shot { display: grid; gap: 0.75rem; align-content: start; }
.press-shot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
}
.press-shot__name { color: var(--text-dim); font-size: 0.9375rem; }
.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
@media (max-width: 900px) {
  .press-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .press-assets { grid-template-columns: 1fr; }
}

/* ---------- changelog ---------- */
/* Sixty-nine versions is a wall, so the body is grouped by minor release:
   the newest group open, the rest one summary line each. The index keeps
   every version, so finding a specific one is still one click. */
.relgroup { border-top: 1px solid var(--stroke); }
.relgroup:first-of-type { border-top: 0; }
.relgroup__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.875rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}
.relgroup__summary::-webkit-details-marker { display: none; }
.relgroup__summary:hover .relgroup__title { color: var(--gold-bright); }
.relgroup__summary:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: var(--r-control); }
.relgroup__chev { display: grid; place-items: center; color: var(--gold); transition: transform var(--t-base) var(--ease); align-self: center; }
.relgroup[open] > .relgroup__summary .relgroup__chev { transform: rotate(90deg); }
.relgroup__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); letter-spacing: -0.015em; transition: color var(--t-fast) var(--ease); }
.relgroup__meta { color: var(--text-dim); font-size: 0.9375rem; }
.relgroup__chip { align-self: center; }
.relgroup__body { padding-bottom: 1.5rem; }

/* Added, Changed, Fixed, Removed, Notes: the icon carries the distinction,
   so the page keeps one accent. */
.relkind {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0.625rem;
  padding: 0.2rem 0.6rem 0.2rem 0.45rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  font: 600 0.8125rem/1.4 var(--font-body);
  color: var(--text-dim);
}
.relkind .icon { color: var(--gold); }
.release__body > .relkind:first-child { margin-top: 0; }

.reading--log { grid-template-columns: 13rem minmax(0, 1fr); }
.versions summary { cursor: pointer; font-weight: 600; color: var(--text-dim); padding: 0.35rem 0.75rem; }
.versions__list { margin-top: 0.5rem; max-height: min(60dvh, 34rem); overflow-y: auto; padding-right: 0.25rem; }
.release {
  padding: 1.5rem 1.25rem;
  margin: 0 -1.25rem 0.5rem;
  border-radius: var(--r-sheet);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  /* Sixty-nine releases are in the document. Skip the ones off screen. */
  content-visibility: auto;
  contain-intrinsic-size: auto 18rem;
}
.release__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.release__version { font-size: 1.5rem; letter-spacing: -0.015em; }
.release__version a { color: inherit; text-decoration: none; }
.release__version a:hover { color: var(--gold-bright); }
.release__head time { color: var(--text-faint); font-size: 0.9375rem; }
.release__dl { font-size: 0.9375rem; margin-left: auto; }

.release__body ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
.release__body p { margin-bottom: 0.75rem; }
.release__body strong { font-weight: 600; color: var(--text); }
.release:target, .release.is-target { background: linear-gradient(90deg, rgba(242, 193, 78, 0.08), rgba(242, 193, 78, 0.02) 70%, transparent); }
.release--latest .release__version { color: var(--gold); }

/* The engine's build recipe: the files anyone rebuilding it needs, as rows. */
.recipe { list-style: none; margin: 0 0 1rem; padding: 0; }
.recipe__row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.25rem 0.875rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--stroke);
}
.recipe__row:last-child { border-bottom: 1px solid var(--stroke); }
.recipe__icon { color: var(--gold); align-self: center; display: grid; place-items: center; }
.recipe__name { text-decoration: none; }
.recipe__desc { color: var(--text-dim); font-size: 0.9375rem; }

/* ---------- notices (rendered markdown) ---------- */
.notices { max-width: var(--measure); padding: 1.25rem 1.5rem; background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--r-sheet); }
.notices h2 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.notices h2:first-child { margin-top: 0; }
.notices ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.notices p:last-child, .notices ul:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding-top: clamp(3rem, 8vw, 6rem); }
/* The moth is transparent, so it takes no card shell. It drifts the way a
   moth holds station at a lamp: small, slow, and never still enough to be
   a background. 3.2s stays clear of the ~5s band that reads as swaying. */
.notfound__mark img { margin-bottom: 1.5rem; animation: mothdrift 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes mothdrift {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}
.notfound .lead { margin: 1rem 0 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  border-top: 1px solid var(--stroke);
  background: var(--bg);
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.site-footer__tagline { margin: 0.875rem 0 0; color: var(--text-dim); max-width: 36ch; }
.site-footer__nav > ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer__nav > ul > li > a { color: var(--text-dim); text-decoration: none; font-weight: 500; }
.site-footer__nav a:hover { color: var(--text); }
/* Twenty-six locales do not fit on a footer line, so the picker is a
   disclosure on its own row. No script involved: <details> does the job, which
   keeps it working with JavaScript off like the rest of the site. */
.site-footer__lang { flex-basis: 100%; margin-top: 0.5rem; }
.site-footer__lang-label { color: var(--text-faint); }
.langpick__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-dim);
  font-weight: 500;
}
.langpick__summary::-webkit-details-marker { display: none; }
.langpick__summary:hover { color: var(--text); }
.langpick__current { color: var(--text); }
.langpick[open] .langpick__summary .icon { transform: rotate(180deg); }
.langpick__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.langpick__list a { color: var(--text-dim); text-decoration: none; font-size: 0.9375rem; }
.langpick__list a:hover { color: var(--text); }
.langpick__list a[aria-current="true"] { color: var(--gold); }
.pending { color: var(--text-faint); border-bottom: 1px dashed var(--stroke-strong); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2rem; }
.site-footer__legal { margin: 0; color: var(--text-faint); font-size: 0.875rem; }
.site-footer__credit { margin: 0; font-size: 0.875rem; }
.site-footer__credit a { color: var(--text-faint); text-decoration: none; }
.site-footer__credit a:hover { color: var(--gold-bright); }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes warm {
  from { opacity: 0; }
  to { opacity: 1; }
}
.js [data-reveal].reveal-pending { opacity: 0; transform: translateY(12px); }
.js [data-reveal].reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js .reveal-in:nth-child(2) { transition-delay: 60ms; }
.js .reveal-in:nth-child(3) { transition-delay: 120ms; }
.js .reveal-in:nth-child(4) { transition-delay: 180ms; }
.js .reveal-in:nth-child(5) { transition-delay: 240ms; }
.shot__img { transition: transform var(--t-slow) var(--ease); }
.shot picture::after { transition: transform 700ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--gold-bright); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
  .btn--secondary:hover { background: var(--surface-hi); border-color: rgba(255, 255, 255, 0.2); }
  .copy:hover { background: var(--surface-hi); }
}
.shot picture::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal].reveal-pending { opacity: 1; transform: none; }
  .shot:hover .shot__img { transform: none; }
  .shot picture::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 899.98px) {
  :root { --header-h: 0rem; }
  .site-header { position: static; }
  .site-header__row { flex-wrap: wrap; gap: 0; padding-block: 0.5rem; min-height: 4.25rem; }
  .site-header__actions { margin-left: auto; gap: 0.125rem; }
  .header-download, .nav-toggle { padding-inline: 0.75rem; }
  .header-download { font-size: 0.8125rem; }
  .site-nav { width: 100%; margin: 0; order: 3; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; padding: 0.875rem 0 0.375rem; margin-top: 0.5rem; border-top: 1px solid var(--stroke); }
  .site-nav__link { display: flex; align-items: center; min-height: 2.75rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; white-space: normal; border-radius: var(--r-card); }
  .site-nav.is-open { animation: warm 180ms var(--ease); }
  .platform-jumps { display: flex; flex-wrap: wrap; gap: 0.625rem; padding-top: 1.25rem; }
  .platform-jumps a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; border: 1px solid var(--stroke-strong); border-radius: var(--r-pill); color: var(--text); font-size: 0.875rem; text-decoration: none; }
  .platform-jumps a:hover { border-color: var(--gold); background: var(--gold-soft); }
  .platform-jumps .icon { color: var(--gold); flex: none; }
  .platform-jumps a { padding-inline: 0.75rem; font-size: 0.8125rem; gap: 0.375rem; }
  .page--download .page-head { padding-bottom: 1.5rem; }
  /* Buttons are nowrap, which a one-word English label never notices. Other
     languages need the room: "Um einen Platz in der Android-Beta bitten" is a
     sentence, and "64 ビット版 APK をダウンロード" still runs past a 320px pill.
     A button that already owns the full width has nowhere to go, so let these
     wrap instead of overflowing. Inline buttons keep nowrap. */
  .download-testers > .btn { width: 100%; }
  .btn--block, .abi__head > .btn, .download-testers > .btn {
    white-space: normal;
    line-height: 1.3;
    padding-block: 0.625rem;
  }
  .shot .shot__pending { aspect-ratio: auto; min-height: 13rem; padding: 1.75rem 1rem; }
  .code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 3.25rem; }
  /* Stacked, the same segments turn and run down the column of numbers. */
  .step:not(:last-child)::after {
    left: -2rem;
    right: auto;
    top: 2.35rem;
    bottom: -1.5rem;
    width: 1px;
    height: auto;
  }
  .step__num { position: absolute; left: -3.25rem; top: -0.35rem; margin: 0; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .nots__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .nots__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .opaque__pair { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .opaque__panel { width: 100%; }
  .opaque__seal { transform: rotate(90deg); }
  .opaque__rows div { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .abi__head { grid-template-columns: minmax(0, 1fr); }
  .abi__head .btn { justify-self: stretch; }
  .dl__cols, .dl__cols--three { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filelist--two { grid-template-columns: minmax(0, 1fr); }
  .reading, .reading--log { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .recipe__row { grid-template-columns: auto minmax(0, 1fr); }
  .recipe__desc { grid-column: 2; }
  .steps--three { grid-template-columns: minmax(0, 1fr); }
  .scheme { grid-template-columns: minmax(0, 1fr); }
  .bundled__row { grid-template-columns: auto minmax(0, 1fr); }
  .chips--tags { grid-column: 1 / -1; justify-content: flex-start; }
  .fgroup__head { gap: 0.875rem; }
  .fgroup__mark { width: 2.375rem; height: 2.375rem; }
  .reading__index { position: static; }
  .reading__index ul { display: flex; flex-wrap: wrap; gap: 0.375rem; }
  .reading__index a { border: 1px solid var(--stroke); border-radius: var(--r-pill); font-size: 0.875rem; }
  .versions:not([open]) { margin-bottom: 0; }
  .versions__list { display: flex; flex-wrap: wrap; gap: 0.375rem; max-height: 8.5rem; overflow-y: auto; }
  .versions__list a { border: 1px solid var(--stroke); border-radius: var(--r-pill); font-size: 0.875rem; }
  .release { padding: 1.25rem 0.875rem; margin-inline: -0.875rem; }
  .release__dl { margin-left: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .passhero__grid { grid-template-columns: minmax(0, 1fr); }
  .passhero__lead { max-width: none; }
  .passhero__trial { margin-top: 1.25rem; }
  .passhero__offer { display: flex; flex-direction: column; }
  .passhero__includes { order: 1; margin: 0.5rem 0 1.25rem; }
  .passhero__recover { order: 2; }
  .passhero__merchant { order: 3; }
  .home-ownership__pass { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .home-ownership__offer { padding-top: 1.25rem; border-top: 1px solid var(--stroke); }
  .pass-benefits__list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pass-benefits__list li + li { border-left: 0; border-top: 1px solid var(--stroke); padding: 1.5rem 0 0; }
  .pass-benefits__list .icon { margin-bottom: 0.75rem; }
  .freelist { grid-template-columns: minmax(0, 1fr); }
  .trialcols { grid-template-columns: minmax(0, 1fr); }
  .checksum { grid-template-columns: minmax(0, 1fr); }
  .checksum .copy { justify-self: start; }
}
@media (max-width: 479.98px) {
  .nots__list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .nots__item { padding-left: 0; border-left: 0; }
  .nots__item + .nots__item { padding-top: 1rem; border-top: 1px solid var(--stroke); }
  .manifest__url { font-size: 0.75rem; padding: 0.55rem 0.7rem; gap: 0.4rem; }
}

@media (max-width: 379.98px) {
  .site-header .lockup { gap: 0.375rem; }
  .site-header .lockup__mark { width: 24px; height: 24px; }
  .site-header .lockup__word { font-size: 1rem; }
  .header-download, .nav-toggle { padding-inline: 0.5rem; }
  .header-download > .icon { display: none; }
  .home-hero__platforms { gap: 0.625rem; font-size: 0.75rem; }
  .home-hero__platforms li { gap: 0.375rem; }
  .home-hero__platforms .icon { width: 14px; height: 14px; }
}

/* ---------- ambient: the app's own backdrops, fixed behind the page ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.ambient__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.28) 0%, rgba(6, 7, 11, 0.6) 42%, rgba(6, 7, 11, 0.9) 78%, var(--bg) 100%);
}
.ambient__layer.is-active { opacity: var(--ambient-strength, 1); }

/* Inner pages carry no imagery. One quiet light from above the screen, a
   cool wash with a whisper of gold off to the right, and then clean ground:
   the app's own backdrops stay a home-page moment. */
.page:not(.page--home) .ambient {
  background:
    radial-gradient(100% 38rem at 50% -8rem, var(--wash-cool), transparent 70%),
    radial-gradient(48% 28rem at 84% -5rem, var(--wash-warm), transparent 72%);
}
.ambient__layer:first-child.is-active { animation: warm 1200ms var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .ambient__layer { transition: none; animation: none; }
  .notfound__mark img { animation: none; }
}

/* ---------- press feedback ---------- */
/* Buttons acknowledged a press and nothing else did. Anything you can click
   now answers under the finger. */
.site-nav__link,
.site-footer__nav a,
.reading__index a,
.versions__list a,
.chip,
.relgroup__summary,
.versions summary {
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-nav__link:active,
.site-footer__nav a:active,
.reading__index a:active,
.versions__list a:active,
.chip:active { transform: scale(0.97); }
/* A full-width row scaled looks wrong; it takes the press as a tint instead. */
.relgroup__summary:active,
.versions summary:active { background: rgba(255, 255, 255, 0.05); border-radius: var(--r-control); }
.link-quiet:active { color: var(--gold-bright); }
.link-quiet:active .icon { transform: translateX(3px); }

/* ---------- display modes ---------- */
/* Transparency off: the header keeps its job without the blur. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ambient { opacity: 0.25; }
}

/* More contrast: lift the dim greys and the hairlines, and take the wash
   out from behind the words. */
@media (prefers-contrast: more) {
  :root {
    --text-dim: #C7CEDB;
    --text-faint: #B2BAC8;
    --stroke: rgba(255, 255, 255, 0.24);
    --stroke-strong: rgba(255, 255, 255, 0.38);
    --gold: #FFD97A;
  }
  .ambient { display: none; }
  .site-header { background: var(--bg); }
}

/* Windows High Contrast paints its own palette, so the work here is making
   sure every surface still has an edge and the decoration gets out of the way. */
@media (forced-colors: active) {
  .ambient { display: none; }
  .shot__frame,
  .code,
  .note,
  .checksum,
  .opaque,
  .qa,
  .nots__item,
  .empty,
  .platform__mark,
  .step__num,
  .chip { border: 1px solid CanvasText; }
  .site-header { border-bottom: 1px solid CanvasText; }
  .icon { forced-color-adjust: auto; }
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

/* Privacy, terms and licenses are the pages people print. */
@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --bg-elev: #fff;
    --surface: #fff;
    --surface-hi: #fff;
    --ink-tint: #fff;
    --text: #000;
    --text-dim: #333;
    --text-faint: #555;
    --stroke: #bbb;
    --stroke-strong: #888;
    --gold: #6b5000;
    --gold-bright: #6b5000;
    --gold-soft: transparent;
    --wash-cool: transparent;
    --wash-warm: transparent;
    --shadow-card: none;
    --bezel: none;
    --scrim: transparent;
  }
  html, body { background: #fff; color: #000; }
  .site-header,
  .site-footer__nav,
  .ambient,
  .reading__index,
  .shot,
  .btn,
  .copy,
  .skip { display: none; }
  .wrap { width: auto; max-width: none; padding: 0; }
  .reading, .reading--wide, .reading--log { display: block; }
  .reading__body { max-width: none; }
  .section, .page-head { padding-block: 0.75rem; }
  h1, h2, h3, h4 { break-after: avoid; }
  li, tr, .release, .qa { break-inside: avoid; }
  /* A printed page has no links, so the address has to be on the paper. */
  .prose a[href^="http"]::after,
  .reading__body a[href^="http"]::after { content: " <" attr(href) ">"; font-size: 0.85em; word-break: break-all; }
  .release { content-visibility: visible; }
}
