/* Club Elsewhere / Design A "The Horizon". Tokens in DESIGN.md. */

@font-face { font-family: "Archivo W112"; src: url("../fonts/Archivo-W112-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo W106"; src: url("../fonts/Archivo-W106-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/Atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("../fonts/Atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --chalk: #EDEDEA;
  --chalk-raised: #F6F6F3;
  --chalk-sunk: #DCDCD7;
  --graphite: #141514;
  --graphite-2: #1D1F1D;
  --graphite-line: #343633;
  --ink: #141514;
  --ink-muted: #55574F;
  --chalk-muted: #A9AAA4;
  --ember: #FF5B33;
  --ember-deep: #E2471E;
  --ember-ink: #B4381A;

  --f-display: "Archivo W112", "Arial Narrow", Arial, system-ui, sans-serif;
  --f-head: "Archivo W106", "Arial Narrow", Arial, system-ui, sans-serif;
  --f-body: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section: clamp(72px, 8.5vw, 124px);
  --header-h: 68px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--ember-ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--ember); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--graphite); color: var(--chalk);
  padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--graphite); --btn-fg: var(--chalk);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-chalk { --btn-bg: var(--chalk); --btn-fg: var(--graphite); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-quiet { --btn-fg: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk-muted); }
.btn .glyph { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { --btn-bg: var(--chalk-sunk); --btn-fg: var(--ink-muted); cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: #2A2C2A; }
  .btn-chalk:hover { --btn-bg: #FFFFFF; }
  .btn-quiet:hover { --btn-bg: rgba(20,21,20,0.06); }
  .on-dark .btn-quiet:hover { --btn-bg: rgba(237,237,234,0.08); }
  .btn[aria-disabled="true"]:hover { --btn-bg: var(--chalk-sunk); }
}

.link {
  color: inherit; font-weight: 700; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 237, 234, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--chalk-sunk); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--chalk); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; border-radius: 8px; }
.brand img { height: 24px; width: auto; }
@media (max-width: 400px) { .brand img { height: 20px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.9375rem; color: var(--ink-muted);
  transition: color 160ms ease, background-color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--ink); background: rgba(20,21,20,0.05); } }
.nav .btn { min-height: 44px; padding: 0 18px; margin-left: 10px; font-size: 0.9375rem; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .nav { display: none; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink);
    font-weight: 700; font-size: 0.9375rem; cursor: pointer;
    transition: transform 140ms var(--ease-out);
  }
  .js .menu-btn:active { transform: scale(0.97); }
  .menu-btn .bars { width: 16px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 200ms var(--ease-out); }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }
  /* Without JS the links simply show as a row under the logo */
  html:not(.js) .nav { display: flex; flex-wrap: wrap; position: static; }
  html:not(.js) .header-row { height: auto; flex-wrap: wrap; padding-block: 8px; }
  .js .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(var(--header-h) - 4px); right: var(--gutter); left: var(--gutter);
    padding: 10px; border-radius: 22px; background: var(--chalk-raised);
    box-shadow: 0 1px 0 var(--chalk-sunk), 0 18px 40px -18px rgba(20,21,20,0.35);
    transform-origin: top right;
    animation: menu-in 200ms var(--ease-out);
  }
  .js .nav.is-open a:not(.btn) { min-height: 48px; padding: 0 14px; font-size: 1.0625rem; color: var(--ink); }
  .js .nav.is-open .btn { margin: 6px 0 0; min-height: 52px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* ---------- Hero: here / horizon / elsewhere ---------- */
.hero { position: relative; isolation: isolate; }
.here { position: relative; padding-top: clamp(32px, 4.4vw, 60px); padding-bottom: clamp(28px, 3.4vw, 44px); }
.here-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.55rem, 5.9vw, 5.4rem);
  line-height: 0.96; letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}
.lede { max-width: 34rem; margin-top: 22px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--ink-muted); }
.lede strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.ios-note { font-size: 0.9375rem; color: var(--ink-muted); }
.ios-note b { color: var(--ink); }

/* Squad nodes (shared look) */
.node {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 6px 6px; margin: -6px 0 0 -6px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.node:active { transform: scale(0.97); }
.node-dot { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--graphite); box-shadow: inset 0 0 0 2px var(--chalk-muted); transition: background-color 260ms ease, box-shadow 260ms ease; }
.node-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember); opacity: 0; pointer-events: none; }
.node-text { display: grid; line-height: 1.2; }
.node-name { font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.node-place { font-size: 0.875rem; color: var(--chalk-muted); }
.node-live { display: none; margin-left: 2px; font-size: 0.8125rem; font-weight: 700; color: var(--ember); }
@media (hover: hover) and (pointer: fine) { .node:hover { background: rgba(237,237,234,0.07); } }

.elsewhere .node.is-alerted .node-dot, .elsewhere .node.is-spotting .node-dot { background: var(--chalk); box-shadow: 0 0 0 5px rgba(237,237,234,0.12), 0 0 22px 2px rgba(237,237,234,0.35); }
.node.is-live .node-dot { background: var(--ember); box-shadow: 0 0 0 5px rgba(255,91,51,0.18), 0 0 26px 4px rgba(255,91,51,0.45); }
.node.is-live .node-live { display: inline; }

/* Tempe node sits above the horizon, on chalk */
.here .node { color: var(--ink); }
.here .node-dot { background: var(--chalk); box-shadow: inset 0 0 0 2px var(--ink-muted); }
.here .node-place { color: var(--ink-muted); }
.here .node.is-alerted .node-dot, .here .node.is-spotting .node-dot { background: var(--graphite); box-shadow: 0 0 0 5px rgba(20,21,20,0.08); }
.here .node.is-live .node-dot { background: var(--ember-deep); box-shadow: 0 0 0 5px rgba(226,71,30,0.16), 0 0 22px 2px rgba(226,71,30,0.35); }
.here .node-live, .here .node-ring { color: var(--ember-ink); border-color: var(--ember-deep); }
@media (hover: hover) and (pointer: fine) { .here .node:hover { background: rgba(20,21,20,0.05); } }

/* Jalen sits above the horizon, in flow */
.here-node-slot { display: flex; }
.here .node { position: relative; left: auto; top: auto; margin: 0 0 0 -6px; }
.node-time:not(:empty)::before { content: " · "; }

.elsewhere { position: relative; background: var(--graphite); color: var(--chalk); }
.elsewhere::before { /* low light rising from the horizon */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 60% 0%, rgba(237,237,234,0.06), transparent 60%);
}
/* The tag straddles the horizon: half chalk, half graphite */
.horizon-tag {
  position: absolute; z-index: 4; right: var(--gutter); top: 0; transform: translateY(-50%);
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--chalk-raised); color: var(--ink); box-shadow: 0 0 0 1px var(--graphite);
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stage { position: relative; min-height: 460px; }

.readout { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; max-width: 24rem; }
.readout-count { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; }
.readout-count .n { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; color: var(--ember); font-variant-numeric: tabular-nums; min-width: 1.1ch; display: inline-block; }
.readout-line { margin-top: 8px; min-height: 4.65em; color: var(--chalk); }
.readout-hint { margin-top: 10px; font-size: 0.875rem; color: var(--chalk-muted); }
html:not(.js) .readout-count, html:not(.js) .readout-hint { display: none; }


.links-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.links-layer path { fill: none; stroke-width: 1.5; stroke-linecap: round; opacity: 0; }
.links-layer .on-here path { stroke: rgba(20,21,20,0.5); }
.links-layer .on-elsewhere path { stroke: rgba(237,237,234,0.55); }
.pulses { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.pulse { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; will-change: transform, opacity; opacity: 0; }
.pulse-alert { background: var(--ember); box-shadow: 0 0 12px 3px rgba(255,91,51,0.55); }
.pulse-spot { background: #fff; mix-blend-mode: difference; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.node { z-index: 2; }

/* Stage nodes: dot on top, name centred below, anchored by the dot centre.
   Cables attach to the top of these dots, so they never cross a name. */
.stage .node { flex-direction: column; align-items: center; gap: 8px; padding: 6px 10px 8px; margin: 0; text-align: center; transform: translate(-50%, -15px); }
.stage .node:active { transform: translate(-50%, -15px) scale(0.97); }
.stage .node-text { justify-items: center; }

/* Positions loosely follow geography (Mumbai west, Hyderabad inland, Bengaluru south); not a map. */
.stage .node[data-id="sneha"]  { --x: 21%; --y: 76px; }
.stage .node[data-id="arjun"]  { --x: 50%; --y: 150px; }
.stage .node[data-id="ishaan"] { --x: 77%; --y: 224px; }
.stage .node-place { white-space: nowrap; }

@media (min-width: 760px) {
  .here-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .here-node-slot { justify-content: flex-start; padding-left: clamp(0px, 8vw, 120px); padding-bottom: 8px; }
  .stage { min-height: 352px; }
  .stage .node[data-id="sneha"]  { --x: 12%; --y: 84px; }
  .stage .node[data-id="arjun"]  { --x: 27%; --y: 150px; }
  .stage .node[data-id="ishaan"] { --x: 41%; --y: 226px; }
  .readout { left: auto; right: var(--gutter); bottom: 36px; width: min(24rem, 40%); }
}
@media (max-width: 759px) {
  .stage { min-height: 486px; }
}
@media (prefers-reduced-motion: reduce) { .stage .node:active { transform: translate(-50%, -15px); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
/* Adjacent sections share one gap instead of stacking two. */
.section + .section { padding-top: 0; scroll-margin-top: 28px; }
.section-head { max-width: 40rem; }
.section h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.05rem, 4.2vw, 3.55rem); line-height: 1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-intro { margin-top: 18px; color: var(--ink-muted); max-width: 36rem; }
.on-dark { background: var(--graphite); color: var(--chalk); }
.on-dark .section-intro { color: var(--chalk-muted); }

/* ---------- How a session goes ---------- */
.how-grid { display: grid; gap: 40px; margin-top: 48px; }
.steps { list-style: none; display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 14px; width: 100%;
  padding: 16px 16px 16px 14px; border: 0; border-radius: 18px; background: transparent; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, transform 140ms var(--ease-out);
}
.step:active { transform: scale(0.985); }
.step-n { grid-row: span 2; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.55; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.step-title { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink-muted); transition: color 200ms ease; }
.step-desc { margin-top: 6px; color: var(--ink-muted); max-width: 30rem; transition: color 200ms ease; }
.step[aria-selected="true"] .step-desc { color: var(--ink); }
.step[aria-selected="true"] { background: var(--chalk-raised); box-shadow: inset 3px 0 0 var(--ember-deep), 0 1px 0 var(--chalk-sunk); }
.step[aria-selected="true"] .step-title { color: var(--ink); }
.step[aria-selected="true"] .step-n { color: var(--ember-ink); }
@media (hover: hover) and (pointer: fine) { .step:hover .step-title { color: var(--ink); } .step[aria-selected="false"]:hover { background: rgba(20,21,20,0.035); } }


.phone-stage { position: relative; display: grid; justify-items: center; align-content: start; gap: 14px; }
.phone {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 20;
  padding: 9px; border-radius: 40px; background: var(--graphite);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 40px 60px -40px rgba(20,21,20,0.55), 0 0 0 1px rgba(20,21,20,0.12);
}
.screens { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--chalk); }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .screens img { opacity: 0; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); transform: translateY(6px); }
.js .screens img.is-shown { opacity: 1; transform: none; }
html:not(.js) .screens img:not(:first-child) { display: none; }
.demo-tag { font-size: 0.8125rem; color: var(--ink-muted); }
.step-caption { display: none; }

/* Mobile: phone and step list side by side so the screen you pick is always in view;
   the chosen step's description sits underneath as a caption. */
@media (max-width: 759px) {
  .how-grid { grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 18px 12px; margin-top: 36px; align-items: start; }
  .phone-stage { order: -1; gap: 10px; }
  .phone { width: 100%; border-radius: 26px; padding: 6px; }
  .screens { border-radius: 21px; }
  .demo-tag { font-size: 0.75rem; text-align: center; line-height: 1.35; }
  .steps { gap: 2px; }
  .step { grid-template-columns: 1.7rem minmax(0, 1fr); column-gap: 6px; padding: 10px 10px 10px 8px; border-radius: 14px; }
  .step-n { font-size: 0.9rem; line-height: 1.45; }
  .step-title { font-size: 1rem; line-height: 1.25; }
  .js .step .step-desc { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .step-caption { display: block; grid-column: 1 / -1; padding: 14px 16px; border-radius: 16px; background: var(--chalk-raised); box-shadow: inset 3px 0 0 var(--ember-deep); color: var(--ink); }
}
@media (min-width: 760px) {
  .how-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 56px; }
  .phone-stage { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Friends only: the horizon ledger ---------- */
.ledger { margin-top: 24px; }
.ledger-half { padding-block: 36px 40px; }
.ledger-half h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em; }
.ledger-list { list-style: none; display: grid; gap: 18px 48px; margin-top: 20px; }
.ledger-list li { display: grid; gap: 4px; align-content: start; }
.ledger-list b { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.012em; }
.ledger-list span { color: var(--ink-muted); }
.ledger-here { border-top: 0; }
.ledger-elsewhere { position: relative; background: var(--graphite); color: var(--chalk); border-radius: 0; }
.ledger-elsewhere .ledger-list span { color: var(--chalk-muted); }
.ledger-elsewhere-inner { padding-block: 36px 44px; }
.ledger-foot { margin-top: 28px; color: var(--chalk-muted); }
.ledger-foot .link { color: var(--chalk); }
@media (min-width: 760px) { .ledger-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Download ---------- */
.download-grid { display: grid; gap: 48px; margin-top: 44px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; margin: 0; }
.facts dt, .facts dd { padding-block: 12px; border-top: 1px solid var(--chalk-sunk); margin: 0; }
.facts dt { color: var(--ink-muted); }
.facts dd { font-weight: 700; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download-note { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-muted); max-width: 32rem; }
.install { list-style: none; counter-reset: inst; display: grid; gap: 18px; }
.install li { counter-increment: inst; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; }
.install li::before { content: counter(inst); font-family: var(--f-display); font-size: 1.05rem; line-height: 1.5; color: var(--ember-ink); font-variant-numeric: tabular-nums; }
.install h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.install p { color: var(--ink-muted); margin-top: 4px; }
.subhead { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 18px; }
.platforms { display: grid; gap: 0; margin-top: 56px; border-top: 1.5px solid var(--ink); }
.platform { display: grid; gap: 6px; padding-block: 22px; border-bottom: 1px solid var(--chalk-sunk); }
.platform h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.125rem; }
.platform p { color: var(--ink-muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember-deep); }
.status.is-later::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
@media (min-width: 760px) {
  .download-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .platform { border-bottom: 0; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1.5px solid var(--ink); max-width: 52rem; }
.faq-intro { margin-top: 16px; color: var(--ink-muted); max-width: 22rem; }
@media (min-width: 900px) {
  .faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .faq-grid .faq { margin-top: 8px; }
}
.faq details { border-bottom: 1px solid var(--chalk-sunk); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq .answer { padding-bottom: 22px; max-width: 42rem; color: var(--ink-muted); display: grid; gap: 10px; }
.faq .answer b { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--ember-ink); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--chalk); padding-block: 72px 40px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--chalk-muted); max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-cols h2 { font-family: var(--f-head); font-weight: 700; font-size: 0.9375rem; color: var(--chalk-muted); margin-bottom: 10px; letter-spacing: 0; }
.footer-cols ul { list-style: none; display: grid; gap: 2px; }
.footer-cols a { display: inline-block; padding-block: 9px; text-decoration: none; font-weight: 700; color: var(--chalk); }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.footer-symbol { width: 40px; height: auto; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--graphite-line); font-size: 0.875rem; color: var(--chalk-muted); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .footer-cols { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

/* ---------- Document pages (privacy, deletion, release notes, help) ---------- */
.doc-hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 36px; }
.doc-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 0.98; letter-spacing: -0.033em; max-width: 16ch; text-wrap: balance; }
.doc-meta { margin-top: 18px; color: var(--ink-muted); }
.doc-horizon { height: 0; border-top: 1.5px solid var(--ink); }
.doc { display: grid; gap: 40px; padding-top: 40px; padding-bottom: var(--section); }
.doc-toc { font-size: 0.9375rem; }
.doc-toc h2 { font-family: var(--f-head); font-weight: 700; font-size: 0.9375rem; color: var(--ink-muted); margin-bottom: 8px; }
.doc-toc ol { list-style: none; display: grid; gap: 0; }
.doc-toc a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--ink-muted); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .doc-toc a:hover { color: var(--ink); } }
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--ink-muted); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--chalk-sunk); padding: 0.1em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
.prose .path { font-weight: 700; }
.callout { padding: 18px 20px; border-radius: 18px; background: var(--chalk-raised); box-shadow: inset 3px 0 0 var(--ember-deep); }
.callout p + p { margin-top: 8px; }
.release { padding-top: 8px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.release-head h2 { margin-top: 0; }
.release-date { color: var(--ink-muted); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: var(--graphite); color: var(--chalk); }
@media (min-width: 900px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .btn:active, .node:active, .step:active, .menu-btn:active { transform: none; }
  .js .screens img { transform: none; transition: opacity 200ms ease; }
}
