/* ==========================================================================
   RISN — risn.app
   Tokens and roles mirror the app's DESIGN.md (0.5): matte charcoal, warm off-white,
   Volt for effort, Iris for recovery. Barlow declares. Inter explains and acts. Geist Mono
   measures. Only Barlow leans, and nothing else is set in capitals.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --canvas: #1E1E1E;
  --surface: #252525;
  --inset: #2C2C2C;
  --ink: #F5F4EF;
  --muted: #C8BBC5;
  --meta: #A0949E;
  --rule: #383838;
  --volt: #E8FF86;
  --iris: #A596FF;
  --live: #FF8686; /* recording sessions only */
  --fixed-ink: #1E1E1E;
  --chalk: #F6F5F1;
  --rail: #303030;
  --graphite: #6B6F77;
  --error: #FF4D2E;
  --dim: #4A4648;
  --bar: #3F3F3F;
  --pressed: #363636;
  --selected-tile: #2A2A2A;
  --switch-off: #505054;
  --faint: #6C666A;
  --device: #0B0B0B;
  --device-edge: #3A3C40;
  --device-bezel: #26282B;
  --header-veil: rgba(30, 30, 30, .94);
  --scrim: rgba(12, 12, 12, .78);
  --rule-on-volt: rgba(30, 30, 30, .25);

  /* Soft depth (DESIGN.md, Elevation and depth): light from straight above, vertical only. Controls you press are
     raised (a hairline lip along the top, one soft shadow); tracks, wells and fields are sunken (a dark lip and short
     inner shadow at the top, a light lip along the bottom); cards get a hairline edge, lighter at the top. Content stays
     flat, and pressing never changes the depth. */
  --face: #2E2E2E;
  --well: #1A1A1A;
  --depth-raised: 0 1.5px 3.5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .11);
  --depth-raised-accent: 0 1.5px 3.5px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
  --depth-sunken: inset 0 1px 0 rgba(0, 0, 0, .55), inset 0 3px 2px -1px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .09);
  --depth-card: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .025);

  --fs-display: clamp(56px, min(8.6vw, 13svh), 160px);
  --fs-headline: clamp(56px, 8vw, 140px);
  --fs-title: clamp(44px, 5.6vw, 88px);
  --fs-lede: clamp(17px, 1.35vw, 20px);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--fixed-ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.join :focus-visible, .marquee :focus-visible { outline-color: var(--fixed-ink); }
.join .join-panel :focus-visible { outline-color: var(--volt); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 12px 16px; border-radius: 14px; background: var(--volt); color: var(--fixed-ink); font-weight: 800; transform: translateY(-160%); }
.skip:focus { transform: none; }

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

/* ---------- Type roles ---------- */
/* Barlow declares. Inter explains and acts. Geist Mono measures. Only Barlow leans,
   and nothing else is set in capitals: labels are sentence case, as in the app. */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  padding-right: .06em; /* italic overhang */
}
.eyebrow { font: 500 13px/1.35 var(--body); color: var(--meta); font-variant-numeric: tabular-nums; }
.eyebrow em { font-style: normal; font-weight: 400; color: var(--meta); margin-left: .5em; }
.mono { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.section-title { font-size: var(--fs-headline); }
.section-lede { max-width: 32em; margin-top: clamp(20px, 3vh, 28px); color: var(--muted); font-size: var(--fs-lede); }

/* Feature lists: an upright section title over a supporting line, divided by rules. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vh, 52px); }
.features li { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.features li:nth-child(2n) { transition-delay: .06s; }
.features h3 { font: 600 17px/1.35 var(--body); }
.features p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .features li { padding: 16px 0 18px; } }

/* ---------- Buttons ---------- */
/* BrandButton: one Volt action, Inter SemiBold in sentence case, at least 54px tall. */
.btn {
  --bg: var(--volt);
  --fg: var(--fixed-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--depth-raised-accent);
  transition: transform .25s var(--ease-out), background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { --bg: var(--inset); --fg: var(--meta); cursor: progress; box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
/* Label rolls up to a copy of itself on hover (copy drawn with text-shadow). */
.btn-label { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; }
.btn-roll { display: inline-block; text-shadow: 0 1.3em 0 currentColor; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn-roll { transform: translateY(-1.3em); } }
.btn-icon { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn-icon { transform: translateX(4px); } }

/* ---------- Chrome ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--header-veil); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden:focus-within { transform: none; }
.brand { justify-self: start; display: block; padding: 10px 0; color: var(--ink); }
.brand svg { width: 104px; height: auto; fill: currentColor; }
.site-header .btn { justify-self: end; }

/* ---------- Hero ---------- */
/* Copy on charcoal beside a full-height photograph. No gradient over the photo: the type never sits on it. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 100svh;
}
.hero-copy {
  position: relative; z-index: 2;
  align-self: center;
  width: 100%;
  max-width: calc(var(--max) * .54);
  margin-left: auto;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) clamp(24px, 4vw, 64px) clamp(56px, 9vh, 104px) var(--gutter);
}
.hero-title { font-size: clamp(64px, min(9.4vw, 15svh), 176px); }
.line { display: block; overflow: hidden; padding: 0 .1em .04em 0; margin: 0 -.1em -.06em 0; }
.line > span { display: inline-block; }
.volt-dot { font-style: inherit; color: var(--volt); }
.lede { max-width: 30em; margin-top: clamp(22px, 3vh, 32px); font-size: var(--fs-lede); color: var(--muted); }

.hero-photo { position: relative; min-height: 100%; background: var(--surface); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-note {
  position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(24px, 6vh, 64px); right: clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 12px;
  max-width: 360px; padding: 12px 14px 12px 12px;
  border-radius: 20px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--rule), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 15px; line-height: 1.35;
}
.hero-note-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); }
.hero-note-ic svg { width: 22px; height: 22px; }
.hero-note p { flex: 1; min-width: 0; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 600; }
.hero-note-time { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--meta); }

.quick-join { display: flex; gap: 10px; max-width: 540px; margin-top: clamp(28px, 4vh, 40px); }
.quick-join input, .field input[type="email"], .field input[type="text"] {
  width: 100%; min-width: 0; height: 54px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--well); color: var(--ink); font-size: 17px;
  box-shadow: var(--depth-sunken);
  transition: border-color .2s, background-color .2s;
}
.quick-join input::placeholder, .field input::placeholder { color: var(--meta); }
.quick-join input:hover, .field input:hover { border-color: var(--graphite); }
.quick-join input:focus, .field input:focus { outline: none; border-color: var(--volt); }
.quick-join input[aria-invalid="true"], .field input[aria-invalid="true"] { border-color: var(--error); }
.field { display: grid; gap: 10px; position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field .eyebrow { color: var(--muted); }
legend.eyebrow { padding: 0; margin-bottom: 10px; }
.fineprint { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--muted); }
.fineprint:empty { display: none; }
.fineprint.is-error { color: var(--error); }
.fineprint.is-done { color: var(--volt); }

/* Entrance: the headline rises line by line, then the rest fades up. */
.js [data-hero-in] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.is-loaded [data-hero-in] { opacity: 1; transform: none; }
.is-loaded .lede { transition-delay: .5s; }
.is-loaded .quick-join { transition-delay: .6s; }
.is-loaded .fineprint { transition-delay: .7s; }
.js .hero-photo[data-hero-in] { transform: none; }
.is-loaded .hero-photo { transition-delay: .1s; }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-title .line:nth-child(1) > span { transition-delay: .15s; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .23s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; height: min(68svh, 640px); min-height: 0; }
  .hero-copy { max-width: none; margin: 0; padding: 28px var(--gutter) 64px; }
  .site-header:not(.is-scrolled) { background: transparent; }
}

/* ---------- Statement ---------- */
.statement { padding: clamp(96px, 16vh, 200px) 0 clamp(80px, 12vh, 160px); }
.statement-text { max-width: 22em; font-size: clamp(28px, 3.6vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 9vh, 104px); }
.facts li { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.fact-n { font-size: clamp(56px, 6vw, 96px); line-height: .86; color: var(--volt); }
.facts li > span:last-child { max-width: 15em; color: var(--muted); font-size: 16px; line-height: 1.4; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* ---------- The app: three chapters ---------- */
.app { padding: clamp(56px, 8vh, 96px) 0 clamp(40px, 6vh, 80px); border-top: 1px solid var(--rule); }
.app > .wrap { padding-top: clamp(40px, 6vh, 72px); }
.chapter { padding: clamp(64px, 11vh, 140px) 0; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 120px); align-items: center; }
.chapter-flip .chapter-copy { order: 2; }
.chapter-tab { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--face); box-shadow: var(--depth-raised); font-size: 15px; font-weight: 600; }
.chapter-tab svg { width: 18px; height: 18px; --tf: currentColor; color: var(--volt); }
.chapter-title { margin-top: 24px; font-size: var(--fs-title); }
.chapter-lede { max-width: 30em; margin-top: 24px; font-size: var(--fs-lede); color: var(--muted); }
.ticks { display: grid; gap: 0; max-width: 32em; margin-top: 32px; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 7px; border: solid var(--volt); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

/* The tab's own shape, huge and in Volt, sits behind the phone: square, triangle or circle. */
.chapter-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: clamp(24px, 4vw, 56px) 0; }
.chapter-shape { position: absolute; left: 50%; top: 50%; width: min(100%, 600px); height: auto; aspect-ratio: 1 / 1; background: var(--volt); transform: translate(-50%, -50%); }
.shape-home { width: min(78%, 460px); border-radius: 15%; }
.shape-profile { width: min(84%, 500px); border-radius: 50%; }
.shape-train { width: min(88%, 520px); clip-path: polygon(10% 0, 100% 50%, 10% 100%); border-radius: 0; }
.chapter-stage .phone { position: relative; width: clamp(240px, 24vw, 330px); transform: translateX(22%); }
/* The shape sits off to one side so it reads whole beside the phone. */
.chapter-stage .chapter-shape { left: 38%; }
.chapter-flip .chapter-stage .phone { transform: translateX(-22%); }
.chapter-flip .chapter-stage .chapter-shape { left: 62%; }

@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-flip .chapter-copy { order: 0; }
  .chapter-copy { display: contents; }
  .chapter-stage { order: 1; padding: 40px 0; }
  .ticks { order: 2; margin-top: 8px; }
  .shape-home { width: min(62%, 340px); }
  .shape-profile { width: min(66%, 360px); }
  .shape-train { width: min(66%, 360px); }
  .chapter-stage .phone { width: min(64vw, 270px); transform: translateX(14%); }
  .chapter-flip .chapter-stage .phone { transform: translateX(-14%); }
  .chapter-stage .chapter-shape { left: 34%; }
  .chapter-flip .chapter-stage .chapter-shape { left: 66%; }
}

/* ---------- However you move ---------- */
.kinds { padding: clamp(96px, 14vh, 180px) 0; background: var(--surface); }
.kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(40px, 7vh, 72px); }
.kind { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--canvas); box-shadow: var(--depth-card); }
.kind:nth-child(2) { transition-delay: .08s; }
.kind:nth-child(3) { transition-delay: .16s; }
.kind img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; }
.kind-body { display: grid; align-content: start; gap: 12px; padding: clamp(20px, 2.4vw, 32px); }
.kind-title { font-size: clamp(40px, 4vw, 64px); }
.kind-body p { color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) {
  .kind-grid { grid-template-columns: 1fr; }
  .kind { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .kind img { height: 100%; aspect-ratio: auto; min-height: 260px; }
}
@media (max-width: 560px) {
  .kind { display: flex; }
  .kind img { aspect-ratio: 4 / 3.4; min-height: 0; }
}

/* ---------- Programs ---------- */
.programs { padding: clamp(96px, 14vh, 180px) 0 clamp(80px, 12vh, 140px); }
.programs-head .section-lede { margin-top: 20px; }
.programs-track {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(40px, 6vh, 64px);
  padding: 0 var(--gutter) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
@media (min-width: 1440px) { .programs-track { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.programs-track:focus-visible { outline-offset: -2px; }
.program {
  position: relative; flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: clamp(240px, 24vw, 340px); aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden; background: var(--surface);
}
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
@media (hover: hover) { .program:hover img { transform: scale(1.04); } }
.program-body { position: relative; margin: 10px; padding: 16px 18px 18px; border-radius: 16px; background: var(--canvas); }
.program-body h3 { font-size: clamp(30px, 2.6vw, 40px); }
.program-body p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.program-more { justify-content: space-between; padding: 24px; background: var(--volt); color: var(--fixed-ink); }
.program-more .display { font-size: var(--fs-headline); }
.program-more-copy { font-size: 16px; line-height: 1.45; }

/* ---------- On your wrist ---------- */
.everywhere { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--rule); }
.everywhere-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.every-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.every-list li { padding: 20px 0 24px; border-top: 1px solid var(--rule); }
.every-list h3 { font: 600 17px/1.35 var(--body); }
.every-list p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) { .everywhere-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .every-list { grid-template-columns: 1fr; } }

/* ---------- Header links ---------- */
.site-header:has(.site-nav) { grid-template-columns: auto 1fr auto; column-gap: clamp(16px, 3vw, 40px); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font: 500 15px/1 var(--body); text-decoration: none; transition: color .2s, background-color .2s; }
@media (hover: hover) { .site-nav a:hover { color: var(--ink); background: var(--surface); } }
@media (max-width: 860px) {
  .site-nav { display: none; }
}

/* ---------- Phone (built in HTML; sized off a 300px screen, so 1px ≈ 0.333cqi) ---------- */
.phone {
  width: clamp(260px, min(25vw, calc((100svh - var(--header-h) - 90px) * 300 / 650)), 340px);
  aspect-ratio: 300 / 650;
  padding: 3.2%;
  border-radius: 17% / 7.8%;
  background: var(--device);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 5px var(--device), inset 0 0 0 6px var(--device-bezel);
}
.p-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 14% / 6.5%;
  background: var(--canvas);
  color: var(--ink);
  container-type: inline-size;
  font-family: var(--body);
  line-height: 1.3;
}
.p-screen svg { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.12em; }
.p-screen p { margin: 0; }
.p-status { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 12cqi; padding: 0 8cqi; font-weight: 600; font-size: 4.8cqi; }
.p-island { position: absolute; left: 50%; top: 3cqi; width: 30cqi; height: 9cqi; margin-left: -15cqi; border-radius: 99px; background: #000; }
.p-sig { display: flex; gap: 1.2cqi; align-items: flex-end; }
.p-sig i { width: 1.4cqi; border-radius: .4cqi; background: currentColor; }
.p-sig i:nth-child(1) { height: 1.6cqi; } .p-sig i:nth-child(2) { height: 2.4cqi; } .p-sig i:nth-child(3) { height: 3.2cqi; }
.p-sig b { position: relative; width: 7cqi; height: 3.6cqi; border: .5cqi solid currentColor; border-radius: 1.2cqi; }
.p-sig b::after { content: ""; position: absolute; inset: .4cqi 1.6cqi .4cqi .4cqi; border-radius: .4cqi; background: currentColor; }

.p-scene {
  position: absolute;
  inset: 12cqi 0 0;
  padding: 2cqi 5cqi 26cqi;
  display: flex; flex-direction: column; gap: 3.2cqi;
  opacity: 0; visibility: hidden;
  transform: translateY(4cqi);
  transition: opacity .4s ease, transform .6s var(--ease-out), visibility 0s .4s;
}
.p-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .05s ease, transform .7s .05s var(--ease-out), visibility 0s; }
.p-scene-bleed { inset: 0; padding: 0 0 26cqi; gap: 0; }

.p-m { font: 600 3.2cqi/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.p-mono { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.p-meta { color: var(--meta); }
.p-volt { color: var(--volt); }
.p-ttl { font: italic 700 8.4cqi/.9 var(--display); text-transform: uppercase; padding-right: .06em; }
.p-ttl.p-xl { font-size: 12.4cqi; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; }
.p-sub { display: flex; align-items: center; gap: 1cqi; font-size: 3.4cqi; color: var(--meta); }
.p-rail { height: 3.6cqi; padding: .6cqi; border-radius: 99px; background: var(--rail); box-shadow: inset 0 .3cqi 0 rgba(0, 0, 0, .55), inset 0 .8cqi .5cqi -.3cqi rgba(0, 0, 0, .32), 0 .3cqi 0 var(--graphite); }
.p-rail i { display: block; height: 100%; border-radius: 99px; background: var(--volt); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 99px); }
.p-av { display: grid; place-items: center; flex: none; width: 10cqi; height: 10cqi; border-radius: 50%; background: var(--inset); font-size: 3.4cqi; font-weight: 600; }
.p-ic { position: relative; display: inline-flex; font-size: 6.2cqi; }

/* Home */
.p-appbar { display: flex; align-items: center; gap: 4.6cqi; padding: 1cqi 0 .6cqi; }
.p-screen .p-logo { width: 22cqi; height: auto; margin-right: auto; fill: var(--ink); }
.p-dot::after { content: ""; position: absolute; top: -.6cqi; right: -.8cqi; width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: var(--error); }
.p-clubs { display: flex; gap: 2cqi; overflow: hidden; white-space: nowrap; }
.p-clubs span { display: inline-flex; align-items: center; gap: 1.6cqi; flex: none; height: 10.4cqi; padding: 0 3.8cqi; border-radius: 99px; background: var(--face); box-shadow: 0 .4cqi 1cqi rgba(0, 0, 0, .3), inset 0 .25cqi 0 rgba(255, 255, 255, .11); font-size: 3.8cqi; font-weight: 600; }
.p-clubs span.is-on { padding: 0 4.6cqi; background: var(--ink); color: var(--fixed-ink); font-size: 5cqi; }
.p-clubs b { color: var(--meta); font-size: 3.4cqi; font-weight: 600; }
.p-filter { display: inline-flex; align-items: center; gap: 1.6cqi; width: max-content; height: 9.4cqi; padding: 0 3.6cqi; border-radius: 99px; background: var(--face); box-shadow: 0 .4cqi 1cqi rgba(0, 0, 0, .3), inset 0 .25cqi 0 rgba(255, 255, 255, .11); font-size: 3.7cqi; font-weight: 600; }
.p-post { display: flex; flex-direction: column; gap: 2.6cqi; margin: 0 -5cqi; padding: 3.4cqi 5cqi 0; border-top: .3cqi solid var(--rule); }
.p-who { display: flex; align-items: center; gap: 2.6cqi; font-size: 3.9cqi; }
.p-who .p-meta { font-weight: 400; }
.p-cap { font-size: 4cqi; line-height: 1.4; }
.p-stat { margin: 0 -5cqi; padding: 4cqi 5cqi; background: var(--surface); }
.p-huge { margin-top: 2cqi !important; padding-right: .06em; font: italic 700 21cqi/.9 var(--display); color: var(--volt); font-variant-numeric: tabular-nums; }
.p-huge small { margin-left: 1.4cqi; font: 600 4.4cqi/1 var(--body); color: var(--meta); }
.p-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3cqi; font-size: 3.2cqi; color: var(--meta); }
.p-strip b { display: block; font: 600 4.2cqi/1.25 var(--mono); color: var(--ink); }
.p-acts { display: flex; gap: 5cqi; font-size: 3.8cqi; font-weight: 600; color: var(--muted); }
.p-acts span { display: inline-flex; align-items: center; gap: 1.4cqi; }
.p-acts svg { font-size: 5.6cqi; }
.p-acts .is-on { color: var(--volt); }

/* Train: the graphite Next up header, then the list on canvas */
.p-hero { display: flex; flex-direction: column; gap: 3cqi; padding: 14cqi 5cqi 5.4cqi; border-radius: 0 0 8cqi 8cqi; background: var(--selected-tile); }
.p-kinds { display: flex; align-items: baseline; gap: 3.6cqi; font: italic 700 7cqi/1 var(--display); text-transform: uppercase; color: rgba(245, 244, 239, .42); }
.p-kinds .is-on { font-size: 10.4cqi; color: var(--volt); padding-right: .06em; }
.p-kinds svg { align-self: center; margin-left: auto; font-size: 6cqi; color: var(--ink); }
.p-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 3cqi 0; border-radius: 5cqi; background: var(--well); box-shadow: inset 0 .3cqi 0 rgba(0, 0, 0, .55), inset 0 .8cqi .5cqi -.3cqi rgba(0, 0, 0, .32), 0 .3cqi 0 rgba(255, 255, 255, .07); }
.p-ticket > div { display: flex; flex-direction: column; gap: 1.2cqi; min-width: 0; padding: 0 4cqi; font-size: 4.4cqi; font-weight: 500; white-space: nowrap; overflow: hidden; }
.p-ticket > div + div { border-left: .3cqi solid var(--rule); }
.p-ticket .p-mono { font-size: 6.4cqi; }
.p-ticket .p-sub { font-size: 3.2cqi; }
.p-label { font-size: 3.8cqi; font-weight: 500; color: var(--volt); }
.p-why { font-size: 3.6cqi; line-height: 1.4; color: var(--muted); }
.p-inner { display: flex; flex-direction: column; gap: 3cqi; padding: 4.4cqi 5cqi 0; }
.p-listhead { padding-bottom: 2.4cqi; border-bottom: .3cqi solid var(--rule); font-size: 4.2cqi; }
.p-ex { display: grid; grid-template-columns: 11cqi minmax(0, 1fr) auto; align-items: center; gap: 3cqi; }
.p-thumb { display: grid; place-items: center; width: 11cqi; height: 11cqi; border-radius: 3cqi; background: var(--chalk); color: #5D5A57; font-size: 5.6cqi; }
.p-ex > div { display: flex; flex-direction: column; gap: .8cqi; min-width: 0; font-size: 4cqi; }
.p-ex .p-mono { font-size: 3.2cqi; }
.p-swap { display: grid; place-items: center; width: 8.4cqi; height: 8.4cqi; border-radius: 50%; background: var(--face); box-shadow: 0 .4cqi 1cqi rgba(0, 0, 0, .3), inset 0 .25cqi 0 rgba(255, 255, 255, .11); color: var(--muted); font-size: 4.2cqi; }
.p-more { padding-left: 14cqi; font-size: 3.6cqi; color: var(--meta); }
.p-start { position: absolute; left: 5cqi; right: 5cqi; bottom: 24cqi; display: flex; align-items: center; justify-content: center; gap: 2cqi; height: 12.4cqi; border-radius: 4.4cqi; background: var(--volt); color: var(--fixed-ink); font: 600 4.4cqi/1 var(--body); box-shadow: 0 .4cqi 1cqi rgba(0, 0, 0, .3), inset 0 .25cqi 0 rgba(255, 255, 255, .55); }

/* Profile */
.p-userbar { font-size: 4.8cqi; }
.p-me { display: flex; align-items: center; gap: 5cqi; }
.p-av-lg { width: 19cqi; height: 19cqi; font-size: 5.4cqi; }
.p-counts { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.p-counts b { display: block; font: 600 5cqi/1.25 var(--mono); }
.p-counts span { font-size: 3.1cqi; color: var(--meta); }
.p-name { font-size: 4.4cqi; font-weight: 600; }
.p-bio { margin-top: .6cqi !important; font-size: 3.6cqi; line-height: 1.4; color: var(--muted); }
.p-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; }
.p-pair span { display: grid; place-items: center; height: 9.6cqi; border-radius: 3.4cqi; background: var(--face); box-shadow: 0 .4cqi 1cqi rgba(0, 0, 0, .3), inset 0 .25cqi 0 rgba(255, 255, 255, .11); font-size: 3.7cqi; font-weight: 600; }
.p-now { display: flex; flex-direction: column; gap: 2cqi; padding: 4cqi; border-radius: 6cqi; background: var(--selected-tile); box-shadow: inset 0 0 0 .3cqi var(--rule), inset 0 .3cqi 0 rgba(255, 255, 255, .08); }
.p-label-sm { font-size: 3.4cqi; color: var(--muted); }
.p-iris-chip { display: inline-flex; align-items: center; gap: 1cqi; padding: .8cqi 2.2cqi; border-radius: 99px; background: var(--iris); color: var(--fixed-ink); font-size: 3cqi; font-weight: 600; }
.p-tabs { display: flex; border-bottom: .3cqi solid var(--rule); font-size: 3.8cqi; font-weight: 600; color: var(--meta); }
.p-tabs span { flex: 1; padding: 2cqi 0 2.4cqi; text-align: center; }
.p-tabs .is-on { color: var(--ink); box-shadow: inset 0 -.6cqi 0 var(--ink); }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqi; margin: -1.6cqi -5cqi 0; }
.p-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .6cqi; aspect-ratio: 1; padding: 2.6cqi; overflow: hidden; background: var(--surface); }
.p-tile i { font-style: normal; font-size: 2.9cqi; font-weight: 500; }
.p-tile b { font: italic 700 5.4cqi/.95 var(--display); text-transform: uppercase; padding-right: .06em; }
.p-tile-photo { padding: 0; }
.p-tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.p-tile-volt { background: var(--volt); color: var(--fixed-ink); }
.p-tile-iris { background: var(--iris); color: var(--fixed-ink); }

/* Tab bar: Home, Train and Profile, named, with the current tab filled in ink. */
.p-tabbar {
  position: absolute; z-index: 4;
  left: 10cqi; right: 10cqi; bottom: 4.4cqi;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  height: 16cqi; padding: 1.4cqi;
  border-radius: 99px;
  background: rgba(44, 44, 44, .96);
  box-shadow: inset 0 0 0 .3cqi var(--rule), inset 0 .3cqi 0 rgba(255, 255, 255, .1), 0 .6cqi 1.6cqi rgba(0, 0, 0, .35);
}
.p-tabbar > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqi; height: 100%; border-radius: 99px; font-size: 2.9cqi; font-weight: 600; color: var(--meta); transition: color .3s, background-color .3s; }
.p-tabbar svg { font-size: 6cqi; }
.p-tabbar > span.is-on { color: var(--ink); background: rgba(245, 244, 239, .09); --tf: currentColor; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--volt);
  color: var(--fixed-ink);
  padding: clamp(10px, 1.4vw, 20px) 0 clamp(6px, 1vw, 14px);
  border-block: 1px solid var(--volt);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(20px, 2.4vw, 40px);
  padding-right: clamp(20px, 2.4vw, 40px);
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-headline);
  line-height: .9;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track b { font-size: .34em; font-style: normal; font-family: var(--body); font-weight: 800; transform: translateY(-.1em); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 12vh, 160px) 0 clamp(120px, 16vh, 200px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; padding: 20px 0;
  list-style: none; cursor: pointer;
  font-size: var(--fs-lede); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--face); box-shadow: var(--depth-raised); transition: background-color .3s, transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 3px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--volt); color: var(--fixed-ink); box-shadow: var(--depth-raised-accent); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
@media (hover: hover) { .faq summary:hover i { background: #343434; } .faq details[open] summary:hover i { background: var(--volt); } }
.faq details p { max-width: 38em; padding: 0 0 28px; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Join ---------- */
.join { background: var(--volt); color: var(--fixed-ink); padding: clamp(96px, 14vh, 180px) 0; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 1000px) { .join-grid { grid-template-columns: 1fr; } }
.join-title { font-size: var(--fs-headline); }
.js .join-title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.js .join-title.is-in .line > span { transform: none; }
.js .join-title.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.join-lede { max-width: 28em; margin: 32px 0 36px; font-size: var(--fs-lede); line-height: 1.5; }
.join-list { border-top: 1.5px solid var(--fixed-ink); max-width: 30em; }
.join-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--rule-on-volt); font-weight: 600; }
.join-list .mono { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fixed-ink); color: var(--volt); font-size: 13px; }

.join-panel { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--canvas); color: var(--ink); box-shadow: var(--depth-card); }
.join-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 12px;
  border: 0; border-radius: 14px;
  background: var(--face);
  box-shadow: var(--depth-raised);
  font-weight: 600; font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
  pointer-events: none;
}
.choice:hover span { background: #343434; }
.choice input:checked + span { background: var(--volt); color: var(--fixed-ink); box-shadow: var(--depth-raised-accent); }
.choice input[type="checkbox"]:checked + span::before { content: ""; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice input:active + span { transform: scale(.97); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Invisible unless Cloudflare needs an interaction; negative margins cancel the grid gap while empty. */
.turnstile-slot { margin-block: -11px; }
.turnstile-slot iframe { max-width: 100%; }
.form-status { min-height: 1.4em; font-size: 15px; font-weight: 500; margin-top: -8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-legal { font-size: 14px; color: var(--meta); line-height: 1.5; }
.is-busy .btn-icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.join-done { display: grid; justify-items: start; gap: 16px; padding: 12px 0; }
.join-done[hidden] { display: none; }
.join-done:focus { outline: none; }
.done-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); }
.done-check svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.join-done:not([hidden]) .done-check { animation: pop .6s var(--ease-out) both; }
.join-done:not([hidden]) .done-check svg { animation: check 0.6s .25s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes check { to { stroke-dashoffset: 0; } }
.done-title { font-size: var(--fs-title); }
.done-copy { color: var(--muted); max-width: 26em; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--meta); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Sheet ---------- */
.sheet {
  width: min(600px, calc(100vw - 24px));
  max-height: min(92svh, 860px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--canvas);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .5s var(--ease-out), overlay .5s allow-discrete, display .5s allow-discrete;
}
.sheet:not([open]) { opacity: 0; transform: translateY(40px); }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(40px); } }
.sheet::backdrop { background: rgba(12, 12, 12, 0); transition: background-color .4s, overlay .4s allow-discrete, display .4s allow-discrete; }
.sheet[open]::backdrop { background: var(--scrim); }
@starting-style { .sheet[open]::backdrop { background: rgba(12, 12, 12, 0); } }
.sheet-inner { padding: clamp(22px, 3vw, 36px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; color: var(--volt); }
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--inset); color: var(--ink); }
.sheet-close svg { width: 22px; height: 22px; transform: rotate(45deg); }
.sheet-title { font-size: var(--fs-title); margin: 18px 0 10px; }
.sheet-lede { color: var(--muted); margin-bottom: 26px; }
.sheet-inner:has(.join-done:not([hidden])) :is(.sheet-title, .sheet-lede) { display: none; }
.sheet .join-done { padding-top: 20px; }
html.sheet-open { overflow: hidden; }
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 94svh; }
  .sheet:not([open]) { transform: translateY(100%); }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(96px, 14vh, 160px) 0 24px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-line { font-size: var(--fs-headline); }
.footer-links { display: grid; gap: 0; justify-items: end; font-size: 18px; font-weight: 500; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease-out); }
.footer-links a:hover { background-size: 100% 1.5px; }
@media (max-width: 600px) { .footer-links { justify-items: start; } }
.footer-mark { position: relative; margin: clamp(56px, 10vh, 120px) var(--gutter) 24px; }
.footer-mark svg { width: 100%; height: auto; fill: var(--surface); }
.footer-mark svg + svg { position: absolute; inset: 0; fill: var(--volt); clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-in-out); }
.footer-mark.is-in svg + svg { clip-path: inset(0 0 0 0); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; color: var(--meta); font-size: 14px; }

/* ---------- Document pages (privacy, support, invite, 404) ---------- */
.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.doc-header { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.doc-header .brand img { width: 104px; height: auto; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.doc-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--meta); font: 500 15px/1 var(--body); text-decoration: none; transition: color .2s, background-color .2s; }
.doc-nav a:hover { color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--inset); color: var(--ink); }
.doc { flex: 1; max-width: 920px; margin: 0; padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(80px, 12vh, 140px); }
@media (min-width: 1000px) { .doc { margin-left: max(0px, calc((100vw - var(--max)) / 2)); } }
.doc-title { font-size: var(--fs-headline); }
.doc-lede { max-width: 36em; margin: 32px 0 56px; font-size: var(--fs-lede); line-height: 1.55; }
.doc section { padding: 28px 0 30px; border-top: 1px solid var(--rule); }
.doc section h2 { margin-bottom: 12px; color: var(--ink); font: 600 20px/1.3 var(--body); letter-spacing: -.01em; }
.doc section p { max-width: 42em; color: var(--muted); }
.doc section p + p { margin-top: 14px; }
.doc a:not(.btn) { color: var(--ink); text-decoration-color: var(--volt); text-decoration-thickness: 1.5px; }
.doc a:not(.btn):hover { color: var(--volt); }
.doc-list { display: grid; gap: 10px; max-width: 42em; margin-top: 14px; }
.doc-list li { position: relative; padding-left: 22px; color: var(--muted); }
.doc-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.doc-list b { color: var(--ink); font-weight: 600; }
.doc-steps { counter-reset: s; display: grid; gap: 10px; max-width: 42em; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; color: var(--muted); }
.doc-steps li::before { content: counter(s); font: 600 14px/1 var(--mono); color: var(--volt); }
.doc-updated { margin-top: 40px; color: var(--meta); }
.invite-actions { display: grid; justify-items: start; gap: 18px; }
.join-code { display: inline-grid; gap: 6px; margin: -24px 0 36px; padding: 16px 22px 14px; border-radius: 20px; background: var(--volt); color: var(--fixed-ink); }
.join-code .display { font-size: 44px; letter-spacing: .04em; }
.doc-note { max-width: 32em; color: var(--meta); font-size: 15px; }
.doc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); color: var(--meta); }
.doc-footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.doc-footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.doc-footer-links a:hover { color: var(--ink); }

/* Home footer: policy links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--meta); text-decoration: none; font: 500 14px/1.3 var(--body); }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Phones & touch ---------- */
button, a, summary, label { -webkit-tap-highlight-color: transparent; }

@media (max-width: 600px) {
  .faq { padding: 64px 0 88px; }
  .join { padding: 80px 0; }
  .join-lede { margin: 24px 0 28px; }
  .site-footer { padding-top: 80px; }
  .footer-mark { margin: 48px var(--gutter) 20px; }
  .sheet-inner { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: .2s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-hero-in] { opacity: 1; transform: none; }
  .js .hero-title .line > span, .js .join-title .line > span { transform: none; }
  .footer-mark svg + svg { clip-path: none; }
}
