/* Direction A, V5 (the human's pick, 2026-11-16: "be more creative with the overall layout, especially on the desktop
   ... think of what Apple would do"). One big moment per screen: the first screen is one large line with the room
   under it as the hero object; then the topics as one centred control and one large post; gifts on a full-bleed band;
   the receipt as an object with its line beside it; the last call as one line under one light. Depth comes from light
   (bezels, top highlights, beams, a floor glow), not from shadows under cards.
   The stage's colours are the app's (web/app/theme.css) with the softer dark of 2026-11-16; light is the same stage in
   daylight. Also styles /how-it-works and /rubric (lib/pages/how.ts). */

@font-face {
  font-family: "TN Sans";
  src: url("/fonts/tn-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}
/* Before the font arrives (slow data): local faces sized to the compressed width, so the headline keeps its lines and
   the button stays on the first screen (launch/checks: "font blocked"). Gone once TN Sans loads. */
@font-face { font-family: "tn-fb-rc"; src: local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"), local("sans-serif-condensed"); font-weight: 700 800; size-adjust: 89%; }
@font-face { font-family: "tn-fb-an"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"); font-weight: 700 800; size-adjust: 93%; }
@font-face { font-family: "tn-fb-ar"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700 800; size-adjust: 76%; }

/* =====================================================================
   Tokens. Dark is the default (the human); the head script sets data-theme="light" when the member chose it.
   ===================================================================== */
:root {
  --stage: #121316; --raised: #1d1f23; --step: #2a2c31; --edge: #3b3e45;
  --on: #ffffff; --on-quiet: #b4b7be; --floor: #5cb3ff; --false-on-stage: #ff8a80;
  --ink: #000000; --on-ink: #000000; --on-floor: #000000;
  --band: #18191d;                       /* the full-bleed bands, a step off the ground */
  --tile: #1f2125; --tile-hi: rgb(255 255 255 / 0.06);
  --figure: #121316; --beam: #ffffff; --beam-op: 0.075;
  --bezel-hi: #2b2d33; --bezel-lo: #17181b; --bezel-line: rgb(255 255 255 / 0.06);
  --hi: rgb(255 255 255 / 0.1);          /* the top edge of a lit object */
  --glow: rgb(92 179 255 / 0.22);        /* the floor's light under the room */
  --cone: rgb(255 255 255 / 0.045);      /* one step of a posterised spotlight */
  --pill-off: rgb(0 0 0 / 0.55); --shade: rgb(0 0 0 / 0.35); --backdrop: rgb(10 11 13 / 0.6);
  --nav: rgb(18 19 22 / 0.78);

  --pad: 20px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: linear(0, 0.06 3%, 0.22 7%, 0.46 12%, 0.7 18%, 0.86 24%, 0.96 31%, 1.02 39%, 1.035 46%, 1.03 54%, 1.012 66%, 1.002 80%, 1);

  --f: "TN Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "TN Sans", "tn-fb-rc", "tn-fb-an", "tn-fb-ar", sans-serif;
  /* the scale: one hero line, one section line, one closing line; everything else body or caption */
  --t-hero: clamp(3rem, 1.1rem + 6.4vw, 7.5rem);
  --t-section: clamp(2.25rem, 1.15rem + 4.4vw, 5.75rem);
  --t-close: clamp(4.25rem, 1.2rem + 10vw, 12rem);
  --t-large: clamp(2rem, 1.45rem + 2.4vw, 3.75rem);
  --t-intro: 17px;
  --t-body: 17px;
  --t-cap: 13px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --stage: #ffffff; --raised: #f2f2f4; --step: #e5e5ea; --edge: #c7c7cc;
  --on: #000000; --on-quiet: #5e5e5e; --floor: #0a6cc0; --false-on-stage: #c8261b;
  --on-ink: #ffffff; --on-floor: #ffffff;
  --band: #f5f5f7;
  --tile: #e8e8ed; --tile-hi: rgb(255 255 255 / 0.9);
  --figure: #1c1c1e; --beam: #ffffff; --beam-op: 0.8;
  --bezel-hi: #fbfbfc; --bezel-lo: #d8d8df; --bezel-line: rgb(0 0 0 / 0.08);
  --hi: rgb(255 255 255 / 0.95);
  --glow: rgb(10 108 192 / 0.16);
  --cone: rgb(10 108 192 / 0.045);
  --pill-off: rgb(255 255 255 / 0.88); --shade: rgb(0 0 0 / 0.12); --backdrop: rgb(0 0 0 / 0.32);
  --nav: rgb(255 255 255 / 0.8);
  color-scheme: light;
}

/* =====================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--stage); color: var(--on);
  font-family: var(--f); font-size: 17px; line-height: 1.5; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--floor); outline-offset: 3px; border-radius: 6px; }
.site { overflow-x: clip; }

/* type voices: compressed (the scoreboard and the large lines), regular (talking), expanded (the wordmark) */
.display, .head, .clock, .topic-claim {
  font-family: var(--f-display); font-stretch: 75%; font-weight: 800; letter-spacing: -0.015em; font-variant-numeric: tabular-nums;
}
.display { font-size: var(--t-hero); line-height: 0.96; text-wrap: balance; }
.head { font-size: var(--t-section); line-height: 0.98; text-wrap: balance; }
.label { font-size: var(--t-cap); font-weight: 650; color: var(--on-quiet); }
.line, .body-q { font-size: var(--t-intro); line-height: 1.45; color: var(--on-quiet); max-width: 34em; text-wrap: pretty; }
.body-strong { font-size: var(--t-body); line-height: 1.45; font-weight: 700; }
.fine { font-size: var(--t-cap); line-height: 1.35; color: var(--on-quiet); font-weight: 500; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--floor); flex: none; animation: live 2.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgb(92 179 255 / 0.55); } 60% { box-shadow: 0 0 0 7px rgb(92 179 255 / 0); } }

/* buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--on); color: var(--on-ink); font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 100ms var(--ease-out), background 220ms;
}
.cta:active { transform: scale(0.98); }
.cta:disabled { background: var(--on-quiet); }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--edge); background: transparent; color: var(--on);
  font-size: 17px; font-weight: 650; text-decoration: none;
}
.ghost-btn:active { transform: scale(0.98); }
.accept {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--floor); color: var(--on-floor); font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 100ms var(--ease-out);
}
.accept:active { transform: scale(0.96); }

/* =====================================================================
   The bar
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 20; background: var(--stage); border-bottom: 1px solid var(--step); }
.nav-in { display: flex; align-items: center; gap: 8px; height: 56px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wordmark {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 0; text-decoration: none; white-space: nowrap;
  font-stretch: 125%; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; line-height: 1;
}
.wm-mark { display: inline-flex; gap: 2px; flex: none; }
.wm-mark i { width: 9px; height: 16px; border-radius: 3px 1px 1px 3px; background: var(--floor); }
.wm-mark i + i { border-radius: 1px 3px 3px 1px; background: var(--edge); }
.wm-name { overflow: hidden; text-overflow: ellipsis; }
.nav-end { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: -12px; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--floor); color: var(--on-floor); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 260ms;
}
/* it arrives once the first screen's button has scrolled away (client/a.ts); without script it is always there */
html:not(.no-js):not(.past-hero) .nav-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; }
.theme-toggle {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-quiet); cursor: pointer;
}
.theme-toggle:hover { color: var(--on); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .t-moon { display: none; }
:root[data-theme="light"] .theme-toggle .t-sun { display: none; }
:root[data-theme="light"] .theme-toggle .t-moon { display: block; }

/* =====================================================================
   The first screen and the room
   ===================================================================== */
.hero { padding: 28px var(--pad) 0; }
.hero-copy { max-width: var(--max); margin: 0 auto; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; font-weight: 600; }
.inv-name { color: var(--floor); }
.hero .display { margin-top: 10px; }
.sub { margin-top: 14px; font-size: var(--t-intro); line-height: 1.45; color: var(--on-quiet); max-width: 36em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 22px; }
.how-link, .sub-link a, .faq details p a { color: var(--floor); text-underline-offset: 3px; }
.how-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 650; }
.joined .hero-copy :is(.kicker, h1.display, .sub) { display: none; }
.joined .hero-actions { margin-top: 0; }
.hero-actions .thanks { flex-basis: 100%; }

.feature { max-width: var(--max); margin: 36px auto 0; }
/* the room: a device-grade object. A bezel lit from above, a title bar, two equal tiles, the clock and the motion. */
.room {
  position: relative; isolation: isolate; margin: 0; padding: 6px; border-radius: 26px;
  background: linear-gradient(180deg, var(--bezel-hi), var(--bezel-lo));
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--bezel-line);
}
.room::before {
  content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -36px; height: 96px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.feature-cap { display: flex; align-items: baseline; gap: 10px; padding: 0 0 12px; }
.feature-title { font-size: 15px; line-height: 1.3; font-weight: 700; }
.tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 20px 20px 6px 6px; overflow: hidden; }
.tile { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, var(--tile-hi), transparent 70%); }
.tile-fig { position: absolute; left: 50%; bottom: 0; height: 86%; width: auto; aspect-ratio: 4 / 5; transform: translateX(-50%); fill: none; }
.tile[data-slot-name="b"] .tile-fig { transform: translateX(-50%) scaleX(-1); }
.tile-fig .cone polygon { fill: var(--beam); fill-opacity: var(--beam-op); }
.tile-fig .body { fill: var(--figure); }
.tile-fig .rim { fill: none; stroke: var(--floor); stroke-width: 2.6; stroke-linecap: round; }
.tile-fig .mic-stick { stroke: var(--edge); stroke-width: 4; stroke-linecap: round; }
.tile-fig .mic { fill: var(--floor); }
.tile:not(.lit) .tile-fig :is(.cone, .rim, .mic-stick, .mic) { display: none; }
.tile-side { position: absolute; top: 12px; left: 14px; z-index: 1; font-size: 13px; font-weight: 650; }
.tile[data-slot-name="b"] .tile-side { left: auto; right: 14px; }
.mic-pill {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: var(--pill-off); color: var(--on-quiet);
}
.tile[data-slot-name="b"] .mic-pill { left: auto; right: 10px; }
.mic-pill svg { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tile.lit .mic-pill { background: var(--floor); color: var(--on-floor); }
.tile.lit .mic-pill svg rect { fill: currentColor; }
.tile:not(.lit) .mic-pill::before { content: ""; position: absolute; left: 7.5px; top: 13px; width: 15px; height: 1.6px; background: currentColor; transform: rotate(-45deg); }
.seam-light {
  position: absolute; top: 0; left: 0; z-index: 3; width: 50%; height: 100%; pointer-events: none;
  box-shadow: inset 0 0 0 2.5px var(--floor); border-radius: 20px 0 0 6px;
  transition: transform 600ms var(--spring), border-radius 600ms;
}
.room[data-floor="b"] .seam-light { transform: translateX(100%); border-radius: 0 20px 6px 0; }
.third { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px; margin-top: 3px; }
.clock-row { display: grid; align-content: center; gap: 4px; padding: 12px 16px; border-radius: 6px 6px 6px 20px; background: var(--tile); }
.clock { font-size: 40px; line-height: 0.9; letter-spacing: -0.02em; }
.clock-who { font-size: 12px; font-weight: 600; color: var(--on-quiet); white-space: nowrap; }
.motion-box { padding: 12px 14px; border-radius: 6px 6px 20px 6px; background: var(--tile); }
.motion-tag { display: flex; align-items: center; gap: 7px; font-size: var(--t-cap); font-weight: 650; color: var(--floor); }
.motion { margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 700; text-wrap: pretty; }

/* =====================================================================
   Sections. Every section sits on the bar's grid: the same 1180 px measure and the same outer edges.
   ===================================================================== */
.sec { padding: 64px max(var(--pad), calc((100% - var(--max)) / 2)) 56px; }
.sec-head { display: grid; gap: 12px; }
.sec-body { margin-top: 28px; }

/* any topic: the chips, then every post in one row that runs off the right edge */
.chips {
  display: flex; gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar, .topic-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--edge); background: transparent; color: var(--on); font-size: 14px; font-weight: 650; white-space: nowrap;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.chip[aria-pressed="true"] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
.chip.more { border-style: dashed; color: var(--on-quiet); }
.topic-row {
  --edge-in: max(var(--pad), calc((100vw - var(--max)) / 2));
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px;
  width: 100vw; margin: 16px 0 0 calc(50% - 50vw); padding: 2px var(--pad) 4px var(--edge-in);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge-in); scrollbar-width: none; overscroll-behavior-x: contain;
}
.topic-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 216px; padding: 18px 18px 14px; border-radius: 22px;
  background: linear-gradient(180deg, var(--bezel-hi), var(--raised) 60%); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--bezel-line);
  transition: box-shadow 260ms var(--ease-out);
}
.topic-card[aria-current="true"] { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 2px var(--floor); }
.claim-topic { font-size: var(--t-cap); font-weight: 650; color: var(--on-quiet); }
.topic-claim { margin: 6px 0 18px; font-size: 30px; line-height: 1; text-wrap: balance; }
.topic-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: var(--t-cap); }
.corner { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.corner::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.corner.lit { font-weight: 650; }
.corner.lit::before { background: var(--floor); }
.corner.empty { color: var(--on-quiet); margin-right: auto; }
.corner.empty::before { border: 1.5px dashed var(--on-quiet); width: 10px; height: 10px; }
.topics-sec .fine { margin-top: 10px; }

/* gifts: a full-bleed band; gifts landing over one debater, live (no tiles: the human) */
.gifts-sec { background: var(--band); }
.gift-live {
  position: relative; isolation: isolate; aspect-ratio: 4 / 3.4; margin-top: 24px; border-radius: 22px; overflow: hidden;
  background: var(--tile); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--bezel-line);
}
.gift-live::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 36% 0%, var(--tile-hi), transparent 70%); }
.gl-fig { left: 36%; height: 90%; }
.gl-third {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: min(64%, 360px); padding: 10px 14px 12px; border-radius: 14px;
  background: var(--pill-off); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.gl-who { display: flex; align-items: center; gap: 8px; font-size: var(--t-cap); font-weight: 650; color: var(--on-quiet); }
.gl-claim { margin-top: 2px; font-size: 15px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.gl-stream { position: absolute; right: 12px; bottom: 76px; top: 16px; width: 160px; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.gl-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--stage); color: var(--on); font-size: var(--t-cap); font-weight: 650; box-shadow: 0 6px 18px var(--shade);
}
.gl-chip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--floor); stroke-width: 1.4; stroke-linejoin: round; }
.gl-stream.flow { display: block; }
.gl-stream.flow .gl-chip { position: absolute; right: 0; bottom: 0; animation: gl-float 4.5s var(--ease-out) forwards; }
@keyframes gl-float {
  0% { opacity: 0; transform: translateY(14px); }
  12% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-118px); }
}
.gifts-copy { display: grid; gap: 12px; margin-top: 24px; }
.gifts-copy .fine { margin-top: -6px; }

/* the receipt: one object, the source the hero of each row */
.receipt {
  position: relative; isolation: isolate; max-width: 560px; padding: 22px 22px 6px; border-radius: 22px;
  background: linear-gradient(180deg, var(--bezel-hi), var(--raised) 40%); box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--bezel-line);
}
.receipt::before {
  content: ""; position: absolute; z-index: -1; inset: -60px -40px auto; height: 260px;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.7; pointer-events: none;
}
.rc-label { font-size: var(--t-cap); font-weight: 650; color: var(--on-quiet); }
.rc-claim { margin-top: 6px; font-size: var(--t-body); line-height: 1.4; color: var(--on-quiet); text-wrap: balance; }
.rc-verdict { margin-top: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-wins { font-size: var(--t-body); font-weight: 700; }
.rc-pts { font-size: var(--t-body); font-weight: 600; color: var(--on-quiet); font-variant-numeric: tabular-nums; }
.rc-pts span { color: var(--on); font-weight: 700; }
.rc-pts span + span { color: var(--on-quiet); font-weight: 600; }
.rc-bars { display: grid; gap: 6px; margin-top: 12px; }
.rc-bars i { display: block; height: 6px; width: calc(var(--w) * 100%); border-radius: 999px; background: var(--edge); }
.rc-bars i.win { background: var(--floor); }
/* the tear: a dashed line with a notch cut from each edge, as on a paper receipt */
.rc-rows { position: relative; margin: 24px -22px 0; padding: 6px 22px 0; border-top: 1.5px dashed var(--edge); }
.rc-rows::before, .rc-rows::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--stage); }
.rc-rows::before { left: -9px; }
.rc-rows::after { right: -9px; }
.rc-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "host word" "what what"; column-gap: 12px; padding: 12px 0; }
.rc-rows li + li { border-top: 1px solid var(--step); }
.rc-host { grid-area: host; font-size: 19px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.rc-word { grid-area: word; align-self: center; font-size: var(--t-cap); font-weight: 650; }
.rc-word.ok { color: var(--floor); }
.rc-word.bad { color: var(--false-on-stage); }
.rc-what { grid-area: what; margin-top: 2px; font-size: var(--t-cap); color: var(--on-quiet); }
.receipt-v4 .fine { margin-top: 14px; }

/* the last call: one line under one light */
.last { position: relative; isolation: isolate; overflow: hidden; padding: 72px var(--pad) 64px; text-align: center; background: var(--band); }
.last-light { position: absolute; z-index: -1; top: 0; left: 50%; width: min(900px, 160%); height: 100%; transform: translateX(-50%); pointer-events: none; }
.last-light, .last-light::before, .last-light::after { background: var(--cone); clip-path: polygon(47% 0, 53% 0, 82% 100%, 18% 100%); }
.last-light::before, .last-light::after { content: ""; position: absolute; inset: 0; }
.last-light::before { clip-path: polygon(48% 0, 52% 0, 70% 100%, 30% 100%); }
.last-light::after { clip-path: polygon(49% 0, 51% 0, 59% 100%, 41% 100%); }
.lead-in { font-size: var(--t-intro); font-weight: 650; text-wrap: balance; }
.last-head { margin-top: 6px; font-size: var(--t-close); line-height: 0.92; }
.last .body-q { margin: 14px auto 0; }
.last .join-slot { margin: 28px auto 0; max-width: 360px; }

/* questions */
.faq { max-width: calc(840px + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 32px; }
.faq-head { font-size: var(--t-large); margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--step); }
.faq details:last-child { border-bottom: 1px solid var(--step); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 8px 0; font-size: var(--t-body); font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--on-quiet); border-bottom: 2px solid var(--on-quiet); transform: rotate(45deg) translate(-2px, -2px); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 16px; font-size: var(--t-body); color: var(--on-quiet); max-width: 36em; }

/* the foot */
.foot { padding: 14px var(--pad) 22px; font-size: 14px; color: var(--on-quiet); border-top: 1px solid var(--step); }
.foot-in, .sub-page .foot { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }
.foot-in { max-width: var(--max); margin: 0 auto; }
.foot-name { flex-basis: 100%; font-stretch: 125%; font-weight: 800; color: var(--on); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* =====================================================================
   The form, the sheet and the thank-you
   ===================================================================== */
.join { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-cap); font-weight: 650; }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--stage); color: var(--on);
  font-size: 17px; outline: none; transition: border-color 220ms, box-shadow 220ms; scroll-margin: 120px 0 200px;
}
.field input::placeholder { color: #6e6e73; }
.field input:focus { border-color: var(--floor); box-shadow: 0 0 0 3px rgb(92 179 255 / 0.3); }
.field.bad input { border-color: var(--false-on-stage); }
.hint { font-size: var(--t-cap); line-height: 1.35; color: var(--on-quiet); }
.err { font-size: var(--t-cap); line-height: 1.35; color: var(--false-on-stage); font-weight: 600; }
.err:empty, .join .form-err:empty { display: none; }
/* the email typo: "Did you mean ada@gmail.com?", the address a tap target that fixes the field */
.err .fix-email {
  display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; padding: 0 2px; border: 0;
  background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.consent { font-size: var(--t-cap); line-height: 1.45; color: var(--on-quiet); }
.consent a { color: var(--on); text-underline-offset: 3px; }

.sheet { display: none; }
.sheet.open { display: block; position: fixed; inset: 0; z-index: 50; }
html.sheet-open { overflow: hidden; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); animation: sheet-fade 220ms var(--ease-out); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px var(--pad) calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--raised); box-shadow: 0 -12px 40px var(--shade), inset 0 1px 0 var(--hi); outline: none;
  animation: sheet-rise 300ms var(--ease-out); transition: transform 200ms var(--ease-out);
}
.sheet-grab { display: flex; justify-content: center; padding: 4px 0 6px; }
.sheet-grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--edge); }
.sheet-close { position: absolute; top: 6px; right: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--on-quiet); font-size: 15px; font-weight: 650; }
.sheet .join-head { margin: 22px 0 6px; padding-right: 72px; font-size: var(--t-large); }
.sheet .cta { width: 100%; }
@keyframes sheet-rise { from { transform: translateY(100%); } }
@keyframes sheet-fade { from { opacity: 0; } }
@keyframes sheet-pop { from { opacity: 0; transform: translate(-50%, -48%); } }
/* without script the form is a plain section at the foot of the page, and every "Join waitlist" links to it */
.no-js .sheet { display: block; padding: 0 var(--pad) 56px; }
.no-js .sheet-backdrop, .no-js .sheet-grab, .no-js .sheet-close { display: none; }
.no-js .sheet-panel { position: static; max-height: none; box-shadow: none; animation: none; padding: 24px; border-radius: 22px; }

.thanks { display: grid; gap: 14px; outline: none; animation: open 420ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }
.thanks-head { font-size: var(--t-large); }
.thanks-line { font-size: var(--t-body); color: var(--on-quiet); }
.link-box { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--raised); border: 1.5px dashed var(--edge); }
.link-host { font-size: var(--t-cap); color: var(--on-quiet); overflow-wrap: anywhere; }
.link-code { font-size: var(--t-body); line-height: 1.3; font-weight: 700; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share .share-wa, .share .share-more { grid-column: 1 / -1; }
.thanks-under { font-size: var(--t-cap); color: var(--on-quiet); }
.role { display: grid; gap: 10px; padding-top: 6px; }
.role-q { font-size: 15px; font-weight: 650; }
.role-opts { display: flex; gap: 8px; }
.role-opts button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--edge); background: transparent; font-size: 15px; font-weight: 650; }
.role-opts button[aria-pressed="true"] { background: var(--on); color: var(--on-ink); border-color: var(--on); }
.role-done { font-size: 15px; font-weight: 650; color: var(--floor); }

/* =====================================================================
   /how-it-works and /rubric: A's look, calm; one large line at the top, numbered steps as a quiet list
   ===================================================================== */
.sub-bar { position: relative; display: flex; align-items: center; min-height: 64px; padding: 10px var(--pad) 0; }
.sub-bar .theme-toggle { margin-left: auto; margin-right: -10px; }
.sub-main { padding: 24px var(--pad) 32px; max-width: 760px; }
.sub-top .display { font-size: var(--t-large); line-height: 1; }
.sub-top .body-q { margin-top: 12px; }
.steps { margin-top: 40px; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--edge); font-size: var(--t-cap); font-weight: 700; color: var(--on-quiet); font-variant-numeric: tabular-nums; }
.step-t { font-size: var(--t-body); line-height: 1.35; font-weight: 700; }
.step-x { margin-top: 4px; font-size: var(--t-body); line-height: 1.5; color: var(--on-quiet); }
.sub-block { margin-top: 56px; }
.title { font-size: 22px; line-height: 1.2; font-weight: 700; }
.sub-block > .body-q, .sub-block > .defs, .sub-block > .nevers { margin-top: 12px; }
.bond-card { margin-top: 14px; padding: 20px; border-radius: 20px; background: var(--raised); display: grid; gap: 12px; box-shadow: inset 0 1px 0 var(--hi); }
.bond-card .body-strong { margin-top: 6px; }
.defs { display: grid; gap: 10px; }
.defs div { display: grid; gap: 2px; }
.defs dt { font-size: var(--t-body); font-weight: 700; }
.defs dd { margin: 0; font-size: var(--t-body); line-height: 1.45; color: var(--on-quiet); }
.bond-card .defs { padding: 4px 0 4px 14px; border-left: 2px solid var(--step); }
.nevers { display: grid; gap: 8px; }
.nevers li { position: relative; padding-left: 18px; font-size: var(--t-body); line-height: 1.45; color: var(--on-quiet); }
.nevers li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--edge); }
.sub-link { margin-top: 18px; font-size: var(--t-body); font-weight: 650; }
.sub-link a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.sub-close { margin-top: 64px; display: grid; gap: 18px; }
.sub-close .cta { max-width: 360px; }
.rubric-result { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--raised); font-size: var(--t-body); font-weight: 600; color: var(--on-quiet); font-variant-numeric: tabular-nums; }
.rubric-result span { color: var(--on); font-weight: 700; margin-right: 6px; }
.how-index { display: none; }

/* =====================================================================
   Wider screens
   ===================================================================== */
@media (min-width: 600px) {
  :root { --pad: 32px; }
  .cta { width: auto; min-width: 240px; }
  .share { grid-template-columns: max-content max-content max-content; justify-content: start; }
  .share .share-wa, .share .share-more { grid-column: auto; }
  .room { margin: 0; padding: 8px; border-radius: 30px; }
  .tiles { border-radius: 22px 22px 6px 6px; }
  .tile { aspect-ratio: 16 / 13; }
  .seam-light { border-radius: 22px 0 0 6px; }
  .room[data-floor="b"] .seam-light { border-radius: 0 22px 6px 0; }
  .clock-row { border-radius: 6px 6px 6px 22px; padding: 16px 22px; min-width: 160px; }
  .motion-box { border-radius: 6px 6px 22px 6px; padding: 16px 20px; }
  .clock { font-size: 52px; }
  .motion { font-size: var(--t-body); }
}

@media (min-width: 768px) {
  .nav { background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  /* the join is a centred dialog on a wide screen */
  .sheet-panel {
    left: 50%; right: auto; top: 50%; bottom: auto !important; width: min(480px, 92vw); max-height: 90vh;
    transform: translate(-50%, -50%) !important; border-radius: 24px; padding: 8px 28px 28px; animation: sheet-pop 220ms var(--ease-out);
  }
  .sheet-grab { display: none; }
  .sheet .join-head { margin-top: 40px; }
  .no-js .sheet-panel { transform: none !important; width: auto; max-width: 560px; }
}

@media (min-width: 1024px) {
  :root { --pad: 48px; --t-intro: 21px; }
  .nav-in { height: 64px; }
  .wordmark { font-size: 20px; }
  .wm-mark i { width: 10px; height: 18px; }

  /* The first screen: centred, one line, the room under it filling the screen's lower half and rising as it nears. */
  .hero { padding-top: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .kicker { font-size: 17px; }
  .hero .display { margin-top: 16px; }
  .sub { margin-top: 20px; max-width: 38em; }
  .hero-actions { justify-content: center; margin-top: 32px; }
  .hero-actions .cta { min-width: 220px; }
  .hero-actions .thanks { max-width: 560px; margin: 0 auto; text-align: left; }
  .feature { margin-top: 52px; }
  .room { padding: 10px; border-radius: 36px; }
  .room::before { bottom: -60px; height: 160px; }
  .feature-cap { justify-content: center; padding: 10px 16px 16px; }
  .feature-title { font-size: 17px; }
  .tiles { border-radius: 26px 26px 8px 8px; }
  .tile { aspect-ratio: 16 / 10.5; }
  .tile-fig { height: 90%; }
  .tile-side { top: 20px; left: 24px; font-size: 15px; }
  .tile[data-slot-name="b"] .tile-side { right: 24px; }
  .mic-pill { left: 18px; bottom: 18px; height: 32px; padding: 0 12px 0 10px; font-size: 14px; }
  .tile[data-slot-name="b"] .mic-pill { right: 18px; }
  .seam-light { border-radius: 26px 0 0 8px; box-shadow: inset 0 0 0 3px var(--floor); }
  .room[data-floor="b"] .seam-light { border-radius: 0 26px 8px 0; }
  .third { margin-top: 4px; gap: 4px; }
  .clock-row { border-radius: 8px 8px 8px 26px; padding: 22px 32px; min-width: 240px; text-align: left; }
  .motion-box { border-radius: 8px 8px 26px 8px; padding: 22px 32px; text-align: left; display: grid; align-content: center; }
  .clock { font-size: 80px; }
  .clock-who { font-size: 14px; }
  .motion { font-size: 24px; line-height: 1.25; }

  /* sections: a different composition each, on the bar's grid */
  .sec { padding-top: 144px; padding-bottom: 144px; }
  .sec-head { gap: 18px; }
  .label { font-size: 15px; }

  /* any topic: head and chips on the left, the posts a row that runs off the right edge */
  .topics-sec .sec-head { max-width: 900px; }
  .topics-sec .sec-body { margin-top: 44px; }
  .chips {
    width: max-content; max-width: 100%; margin: 0; padding: 4px; gap: 2px; overflow: visible; flex-wrap: wrap;
    border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--bezel-line);
  }
  .chip { min-height: 44px; padding: 0 20px; border-color: transparent; font-size: 15px; }
  .chip.more { border-color: transparent; }
  .chip:not([aria-pressed="true"]):hover { color: var(--on); background: var(--step); }
  .topic-row { grid-auto-columns: 460px; gap: 20px; margin-top: 28px; padding-right: var(--pad); }
  .topic-card { min-height: 360px; padding: 32px 36px 28px; border-radius: 32px; }
  .claim-topic { font-size: 15px; }
  .topic-claim { margin: 14px 0 32px; font-size: 56px; line-height: 0.96; }
  .topic-foot { font-size: 15px; }
  .topics-sec .fine { margin-top: 16px; }

  /* gifts: the live picture large on the left, the words beside it; a tighter band */
  .gifts-sec {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto 1fr;
    grid-template-areas: "pic ." "pic head" "pic copy"; column-gap: 72px; padding-top: 112px; padding-bottom: 112px;
  }
  .gifts-sec .sec-head { grid-area: head; }
  .gift-live { grid-area: pic; margin: 0; aspect-ratio: 4 / 3.3; border-radius: 32px; }
  .gifts-copy { grid-area: copy; align-self: start; margin-top: 28px; gap: 16px; }
  .gifts-copy .body-q { font-size: 21px; }
  .gl-fig { height: 92%; }
  .gl-third { left: 24px; bottom: 24px; padding: 14px 20px 16px; border-radius: 18px; }
  .gl-who { font-size: 15px; }
  .gl-claim { font-size: 21px; }
  .gl-stream { right: 28px; bottom: 120px; top: 28px; width: 220px; gap: 10px; }
  .gl-chip { padding: 9px 14px; font-size: 15px; }
  .gl-chip svg { width: 17px; height: 17px; }
  .gl-stream.flow .gl-chip { animation-name: gl-float-wide; }
  @keyframes gl-float-wide {
    0% { opacity: 0; transform: translateY(16px); }
    12% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-240px); }
  }

  /* the receipt: the line across the top, then the scorecard as one wide object, the tear running down it */
  .receipt-v4 .sec-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "label label" "head line"; column-gap: 72px; align-items: end;
  }
  .receipt-v4 .label { grid-area: label; }
  .receipt-v4 .head { grid-area: head; }
  .receipt-v4 .line { grid-area: line; padding-bottom: 8px; }
  .receipt-v4 .sec-body { margin-top: 56px; }
  .receipt {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "label rows" "claim rows" "verdict rows" "bars rows";
    max-width: none; padding: 44px 0 44px 48px; border-radius: 36px;
  }
  .receipt::before { inset: -120px auto auto -80px; width: 760px; height: 480px; }
  .rc-label { grid-area: label; font-size: 15px; }
  .rc-claim { grid-area: claim; font-size: 21px; max-width: 18em; }
  .rc-verdict { grid-area: verdict; align-self: end; margin-top: 40px; }
  .rc-wins, .rc-pts { font-size: 24px; }
  .rc-bars { grid-area: bars; gap: 8px; margin-top: 16px; }
  .rc-bars i { height: 8px; }
  .rc-rows { grid-area: rows; margin: -44px 0 -44px 56px; padding: 20px 48px; border-top: 0; border-left: 1.5px dashed var(--edge); }
  .rc-rows::before, .rc-rows::after { left: -10px; right: auto; }
  .rc-rows::before { top: -9px; }
  .rc-rows::after { top: auto; bottom: -9px; }
  .rc-rows li { padding: 22px 0; align-items: center; }
  .rc-host { font-size: 34px; letter-spacing: -0.01em; }
  .rc-word, .rc-what { font-size: 15px; }
  .receipt-v4 .fine { margin-top: 18px; }

  .last { padding: 176px var(--pad) 168px; }
  .lead-in { font-size: 24px; }
  .last-head { margin-top: 12px; }
  .last .body-q { margin-top: 24px; font-size: 21px; }
  .last .join-slot { margin-top: 40px; }
  .last .cta { min-width: 300px; }

  /* questions on the grid: the heading on the left, the list on the right */
  .faq {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 72px; align-items: start;
    max-width: none; padding: 128px max(var(--pad), calc((100% - var(--max)) / 2)) 112px;
  }
  .faq-head { position: sticky; top: 104px; margin: 0; }
  .faq summary { min-height: 64px; font-size: 19px; }
  .faq details p { font-size: 17px; }
  .foot { padding: 20px var(--pad) 36px; }
  .foot-name { flex-basis: auto; margin-right: auto; }

  /* /how-it-works: a sticky left column with the title and an index of the steps; the steps on the right */
  .sub-bar { padding-top: 22px; }
  .sub-page .sub-main { max-width: 1440px; margin: 0 auto; padding: 48px var(--pad) 72px; }
  .how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .how-side { position: sticky; top: 40px; }
  .how-body { max-width: 680px; }
  .how-body .steps { margin-top: 8px; gap: 36px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; }
  .step-n { width: 32px; height: 32px; font-size: 14px; }
  .step-t { font-size: 24px; line-height: 1.25; }
  .step-x { margin-top: 6px; }
  .how-index { display: grid; gap: 2px; margin-top: 36px; }
  .how-index ol { display: grid; gap: 2px; }
  .how-index a { display: flex; align-items: center; gap: 12px; min-height: 36px; color: var(--on-quiet); text-decoration: none; font-size: 15px; font-weight: 600; }
  .how-index a:hover { color: var(--on); }
  .how-index a span { width: 22px; font-variant-numeric: tabular-nums; color: var(--on-quiet); font-size: 13px; }
  .how-index-more { padding-left: 34px; }
  .how-body .sub-block { margin-top: 72px; }
  .how-body .title { font-size: 28px; }
  .bond-card { padding: 28px; }
}

/* =====================================================================
   Motion, tied to the scroll where the browser can (no script): the room rises and comes up to full light as it
   nears, the receipt's bars fill as it comes into view. With reduced motion everything is still and whole.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .room { animation: room-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes room-rise { from { transform: translateY(48px) scale(0.92); } to { transform: none; } }
    .room::before { animation: room-glow linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes room-glow { from { opacity: 0; } to { opacity: 1; } }
    .rc-bars i { animation: rc-fill linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    @keyframes rc-fill { from { width: 0; } }
    .last-head { animation: last-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes last-in { from { opacity: 0.25; transform: scale(0.94); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
