/*
 * beta.css — the design system for the public beta pages (/beta, /features,
 * the console). Paper, from the app: ivory ground, near-black ink, system
 * faces (no third-party font requests); colour only where it carries meaning (status, category,
 * validation, avatars). Page layouts live in landing.css and board.css.
 *
 * Rules this file keeps:
 * - Light is the default, always — the owner's call ("by default the colors
 *   should be white"). Tokens on :root are light; dark lives ONLY under
 *   [data-theme="dark"], which the toggle sets. No prefers-color-scheme
 *   anywhere: an OS in dark mode must not turn the site dark on its own.
 * - Nothing is hidden for an entrance animation unless html.js is set, and
 *   entrance animations fill BACKWARDS only: a `both` fill would pin
 *   transform:none over every hover lift for the life of the page.
 * - prefers-reduced-motion: reduce → no transforms, no loops, instant.
 * Contrast (WCAG AA) for every text/token pair is noted beside the tokens.
 */

/* ── tokens ─────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  /* a near-white ground (lighter than the app's Paper) so the page reads white */
  --bg: #f8f6f1;
  --bg-raised: rgba(248, 246, 241, 0.8);
  --card: #ffffff;
  --lane: #ebe6d9;
  --plate: #e5dfd0;
  --line: #ded8c9;
  --line-strong: #cfc7b4;
  /* a control's only boundary (boxed inputs): ≥3:1 on --bg (3.3) and --card (3.7) */
  --line-control: #8a857b;
  /* ink 16.8:1 on bg · 18.1 card · 14.5 lane · 13.6 plate */
  --ink: #14161a;
  /* dim 6.5 bg · 7.1 card · 5.7 lane · 5.3 plate */
  --dim: #5c5851;
  /* faint 5.2 bg · 5.6 card · 4.5 lane — never on --plate (4.2) */
  --faint: #6b6760;
  --on-accent: #ffffff;
  --gain: #1f7a45;
  --loss: #b42318;
  /* error 6.1 bg · 6.6 card · 5.4 on --error-bg */
  --error: #b42318;
  --error-bg: #f6e5e3;
  --error-line: #e9c3bf;
  --error-soft: rgba(180, 35, 24, 0.14);
  /* success 5.0 bg · 5.4 card · 4.5 on --success-bg — text only on bg/card */
  --success: #1f7a45;
  --success-bg: #e4efe9;
  /* focus ring 5.8 bg · 6.3 card */
  --focus: #2459c9;
  --focus-soft: rgba(36, 89, 201, 0.16);
  /* the boxed field: white, a 1px edge, a soft shadow. The edge is the box's
     only boundary — the fill is 1.08:1 on the page, 1:1 on a card, and the
     join form's labels are for screen readers — so it meets WCAG 1.4.11's
     3:1 (3.05 on --bg, 3.3 on white). It was the owner's #e4e0d6 hairline
     (1.22:1); raise or lower it here, in one place, if that call changes. */
  --field-bg: #ffffff;
  --field-line: #928d84;
  --field-line-hover: #6b6760;
  --field-shadow: 0 1px 2px rgba(20, 22, 26, 0.04);
  --field-shadow-focus: 0 10px 28px -14px rgba(20, 22, 26, 0.28);
  --toast-accent: #5fcf8c;
  /* the alert toast's mark on the ink pill: 8.1:1 */
  --toast-alert: #ff8e80;

  /* tones: text on its own tint ≥4.5 (stone 5.9 · indigo 6.1 · amber 5.0 ·
     green 4.5 · blue 5.3 · teal 4.6 · violet 5.5 · rose 5.2). Tints are
     opaque, so the ratio holds on any surface. */
  --t-stone: #5c5851;
  --t-stone-bg: #ebebea;
  --t-indigo: #3a4db0;
  --t-indigo-bg: #e7eaf6;
  --t-amber: #8a5a00;
  --t-amber-bg: #f1ebe0;
  --t-amber-dot: #d98e04;
  --t-green: #1f7a45;
  --t-green-bg: #e4efe9;
  --t-blue: #2459c9;
  --t-blue-bg: #e5ebf9;
  --t-teal: #0f766e;
  --t-teal-bg: #e2efee;
  --t-violet: #6d3fc9;
  --t-violet-bg: #ede8f9;
  --t-rose: #b4235a;
  --t-rose-bg: #f6e5eb;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 22, 26, 0.05), 0 14px 30px -14px rgba(20, 22, 26, 0.24);
  --shadow-lg: 0 2px 6px rgba(20, 22, 26, 0.05), 0 30px 64px -26px rgba(20, 22, 26, 0.38);
  --shadow-btn: 0 10px 22px -12px rgba(20, 22, 26, 0.55);

  /* the phone */
  --titanium: linear-gradient(140deg, #e6e2d9 0%, #b8b3a9 18%, #dcd7cd 38%, #9e998f 62%, #d2cdc3 82%, #a7a297 100%);
  --titan-btn: #a9a499;
  --phone-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 60px 80px -48px rgba(20, 22, 26, 0.5),
    0 26px 44px -30px rgba(20, 22, 26, 0.4);
  /* the captures' own ground (the app's Paper), behind a capture as it loads */
  --screen-bg: #f4f0e6;
  --status-ink: #14161a;
  --glare: 0.5;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* the app's pen: constant velocity, then one quarter-arc landing */
  --ease-pen: cubic-bezier(0.3, 0.35, 0.45, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 560ms;
  --carry-y: 8px;
  --flood-dur: 360ms;

  --gutter: 16px;
  --wrap-max: 1160px;
  --header-h: 64px;
  --r-sm: 10px;
  --r: 14px;
  --r-card: 16px;
  --r-lg: 22px;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --ease-pen: linear(0, 0.833 71.4%, 0.943 78.6%, 0.978 85.7%, 0.995 92.9%, 1);
  }
}

/* dark: only ever chosen by the toggle */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #131211;
  --bg-raised: rgba(19, 18, 17, 0.78);
  --card: #1b1a18;
  --lane: #181715;
  --plate: #2a2825;
  --line: #2f2d2a;
  --line-strong: #3d3a36;
  --line-control: #6f6a62;
  --ink: #f5f3ef;
  --dim: #a8a39a;
  --faint: #8a8579;
  --on-accent: #131211;
  --gain: #5fcf8c;
  --loss: #ff8e80;
  --error: #ff8e80;
  --error-bg: #362824;
  --error-line: #5a3a34;
  --error-soft: rgba(255, 142, 128, 0.18);
  --success: #5fcf8c;
  --success-bg: #233026;
  --focus: #8fb2ff;
  --focus-soft: rgba(143, 178, 255, 0.22);
  --field-bg: #1b1a18;
  /* 3.49 on --bg, 3.24 on the field */
  --field-line: #6f6a62;
  --field-line-hover: #8a8579;
  --field-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --field-shadow-focus: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
  --toast-accent: #1f7a45;
  /* 5.9:1 on the light pill */
  --toast-alert: #b42318;
  --t-stone: #a8a39a;
  --t-stone-bg: #2c2a28;
  --t-indigo: #a8b4ff;
  --t-indigo-bg: #2c2c34;
  --t-amber: #f2b84b;
  --t-amber-bg: #352d1e;
  --t-amber-dot: #f2b84b;
  --t-green: #5fcf8c;
  --t-green-bg: #233026;
  --t-blue: #8fb2ff;
  --t-blue-bg: #292c34;
  --t-teal: #5eead4;
  --t-teal-bg: #23332f;
  --t-violet: #c4a7ff;
  --t-violet-bg: #2f2b34;
  --t-rose: #ff9cc0;
  --t-rose-bg: #362a2c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -14px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 32px 70px -26px rgba(0, 0, 0, 0.85);
  --shadow-btn: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
  --titanium: linear-gradient(140deg, #5a5752 0%, #2d2b28 20%, #4a4742 40%, #201e1b 64%, #403d38 84%, #282623 100%);
  --titan-btn: #3d3a36;
  --phone-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 60px 90px -44px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  --screen-bg: #131211;
  --status-ink: #f5f3ef;
  --glare: 0.8;
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}
@media (min-width: 1180px) {
  :root {
    --gutter: 40px;
  }
}

/* ── reset & base ───────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}
main {
  flex: 1 0 auto;
}
main:focus {
  outline: none;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: inherit;
  font-size: inherit;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex: none;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--ink);
  color: var(--on-accent);
}
.i,
.mark {
  display: block;
  flex: none;
}

/* focus: one ring, everywhere — 2px of --focus, 3px out */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* clipped away (not moved off-screen: a fixed element pushed up by a
   transform printed on every page), released on focus */
.skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-accent);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}
.skip:focus {
  width: auto;
  height: auto;
  padding: 12px 18px;
  overflow: visible;
  clip-path: none;
}

.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;
}

/* ── layout ─────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap--text {
  --wrap-max: 640px;
}
.wrap--narrow {
  --wrap-max: 760px;
}
.wrap--wide {
  --wrap-max: 1400px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}
.section--line {
  position: relative;
}
/* the rule sits inside the gutters, aligned with the content, not the padding */
.section--line::before {
  content: '';
  position: absolute;
  top: 0;
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  height: 1px;
  background: var(--line);
}
.section__head {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 16px);
}
.stack--xs {
  --gap: 6px;
}
.stack--sm {
  --gap: 10px;
}
.stack--lg {
  --gap: 28px;
}
.stack--xl {
  --gap: 44px;
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, 12px);
}
.cluster--tight {
  --gap: 8px;
}
.cluster--between {
  justify-content: space-between;
}
.grid {
  display: grid;
  gap: var(--gap, 20px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr));
}
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.center {
  text-align: center;
}
.measure {
  max-width: 38em;
}
.nowrap {
  white-space: nowrap;
}
.pre-line {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.prose > * + * {
  margin-top: 0.9em;
}
.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}
@media (max-width: 719.98px) {
  .hide-sm {
    display: none !important;
  }
}
@media (min-width: 720px) {
  .show-sm {
    display: none !important;
  }
}

/* inline pieces keep their own width inside a .stack or a grid cell */
.kicker,
.btn,
.chip,
.pill,
.textlink,
.byline,
.meta {
  width: fit-content;
  max-width: 100%;
}
.btn--block {
  width: 100%;
}

/* ── type ───────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font: 600 18px/1.35 var(--sans);
  letter-spacing: -0.012em;
}
.h4 {
  font: 600 15px/1.4 var(--sans);
  letter-spacing: -0.006em;
}
.display i,
.h1 i,
.h2 i,
.serif-i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dim);
}
.lede {
  max-width: 34em;
  color: var(--dim);
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.6;
  text-wrap: pretty;
}
/* a centred lede is short: balance it, so it never ends on one word */
.section__head--center .lede,
.panel--center .lede {
  text-wrap: balance;
}
.muted {
  color: var(--dim);
}
.faint {
  color: var(--faint);
}
.small {
  font-size: 14px;
  line-height: 1.55;
}
.tiny {
  font-size: 12.5px;
  line-height: 1.5;
}
.mono,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font: 600 11.5px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker--pill {
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--dim);
  letter-spacing: 0.08em;
}
.live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  /* two beats and still — motion that starts on its own stops inside 5s
     (WCAG 2.2.2), since nothing on the page could pause it */
  animation: pulse 2.4s var(--ease-out) 2;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.textlink:hover {
  background-size: 100% 1.5px, 100% 1.5px;
}
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur-fast);
}
.link:hover {
  text-decoration-color: currentColor;
}
.textlink .i-arrow,
.btn .i-arrow {
  transition: transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .textlink:hover .i-arrow,
  .btn:hover .i-arrow {
    transform: translate3d(3px, 0, 0);
  }
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: var(--bg-raised);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg);
  }
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(20, 22, 26, 0.45);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font: 600 17px/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-header__tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font: 500 12px/1 var(--mono);
}
.site-nav {
  display: none;
}
.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
/* the bar never overflows: the brand gives way first, and on the narrowest
   phones the join pill tightens (it was clipped at the right edge at 320) */
.site-header__inner > .brand {
  flex: 0 1 auto;
  min-width: 0;
}
@media (max-width: 379.98px) {
  .site-header__inner {
    gap: 8px;
  }
  .site-header__actions {
    gap: 8px;
  }
  .site-header__actions .btn--sm {
    padding: 0 13px;
    font-size: 13.5px;
  }
}
@media (min-width: 720px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
  }
  .site-nav + .site-header__actions {
    margin-left: 14px;
  }
}
/* Sign in: a quiet word beside the one filled button (Create account) */
.site-header__signin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  font: 500 14.5px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast);
}
.site-header__signin:hover {
  background: var(--plate);
}
/* on a small phone the two doors outrank the theme toggle */
@media (max-width: 419.98px) {
  .site-header__actions .theme-toggle {
    display: none;
  }
  .site-header__signin {
    padding: 0 6px;
  }
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--dim);
  font: 500 14.5px/1 var(--sans);
  text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--plate);
}
.site-nav a[aria-current='page'] {
  color: var(--ink);
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

/* the theme toggle — the app's: 40px, hairline, card, draws the NEXT mode */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
}
.theme-toggle:hover {
  border-color: var(--ink);
}
.theme-toggle:active {
  transform: scale(0.94);
}
.theme-toggle__glyph {
  grid-area: 1 / 1;
}
.theme-toggle__sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle__sun {
  display: block;
}
:root[data-theme='dark'] .theme-toggle__moon {
  display: none;
}
.theme-toggle.is-turning .theme-toggle__glyph {
  animation: land 320ms var(--ease-pen) backwards;
}

/* the page flip: the incoming theme is painted OVER the outgoing one, never
   blended (a blend makes greys the palette does not contain). beta.js clips
   the top layer; these only fix the stacking and silence the UA cross-fade. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
:root[data-flood]::view-transition-old(root) {
  z-index: 0;
}
:root[data-flood]::view-transition-new(root) {
  z-index: 1;
}
:root[data-flood='drain']::view-transition-old(root) {
  z-index: 1;
}
:root[data-flood='drain']::view-transition-new(root) {
  z-index: 0;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: grid;
  gap: 36px;
  padding-top: 52px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 48px;
  }
}
.site-footer__brand {
  display: grid;
  gap: 12px;
  align-content: start;
}
.site-footer__brand p {
  max-width: 24em;
  color: var(--dim);
  font-size: 14px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
}
.site-footer__h {
  margin-bottom: 10px;
  color: var(--faint);
  font: 600 11.5px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__nav ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav a {
  display: inline-block;
  padding: 7px 0;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast);
}
.site-footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-accent);
  --btn-line: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 16px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
@media (hover: hover) {
  .btn:hover {
    transform: translate3d(0, -1px, 0);
    box-shadow: var(--shadow-btn);
  }
}
.btn:active {
  transform: scale(0.98);
  box-shadow: none;
  transition-duration: 60ms;
}
.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
}
.btn--quiet:hover {
  --btn-bg: var(--card);
  --btn-line: var(--ink);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: transparent;
}
.btn--ghost:hover {
  --btn-bg: var(--plate);
  box-shadow: none;
}
.btn--card {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-line: var(--line);
}
.btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--error);
  --btn-line: var(--error-line);
}
.btn--lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 17px;
}
.btn--sm {
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--sm::after {
  content: '';
  position: absolute;
  inset: -3px -2px;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn--icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn[aria-busy='true'] {
  opacity: 1;
  cursor: progress;
}
.spinner {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ── surfaces ───────────────────────────────────────────────────────────── */

.card {
  --card-pad: 22px;
  position: relative;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
@media (min-width: 720px) {
  .card {
    --card-pad: 28px;
  }
}
.card.card--tight {
  --card-pad: 16px;
}
.card.card--lg {
  --card-pad: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
}
.card--raised {
  box-shadow: var(--shadow-md);
}
.card--hover {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur-fast);
}
@media (hover: hover) {
  .card--hover:hover {
    transform: translate3d(0, -2px, 0);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
}
.card--flat {
  border-color: transparent;
  background: var(--plate);
}
.card--dashed {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}
/* whole-card link: the ::after covers the card; controls opt above it */
.stretched {
  text-decoration: none;
}
.stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.stretched:focus-visible {
  outline: none;
}
.stretched:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.above {
  position: relative;
  z-index: 1;
}
.plate {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--plate);
  color: var(--ink);
}
.plate--round {
  border-radius: 50%;
}
.plate--lg {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.plate--tone {
  background: var(--tone-bg);
  color: var(--tone);
}
.callout {
  padding: 14px 18px;
  border-left: 3px solid var(--tone, var(--ink));
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--tone-bg, var(--plate));
  color: var(--ink);
}
.callout__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--tone, var(--dim));
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--plate);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}
.notice > .i {
  margin-top: 2px;
}
.notice:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.notice--error {
  background: var(--error-bg);
}
.notice--error > .i {
  color: var(--error);
}
.notice--success {
  background: var(--success-bg);
}
.notice--success > .i {
  color: var(--success);
}
.notice--info {
  background: var(--t-blue-bg);
}
.notice--info > .i {
  color: var(--t-blue);
}
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}
.ruled {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.ruled > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .ruled--2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}
.panel {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 560px;
  margin-inline: auto;
}
.panel--center {
  justify-items: center;
  text-align: center;
}

/* ── tones, chips, pills, dots, counts, avatars ─────────────────────────── */

.tone-stone {
  --tone: var(--t-stone);
  --tone-bg: var(--t-stone-bg);
  --tone-dot: var(--t-stone);
}
.tone-indigo {
  --tone: var(--t-indigo);
  --tone-bg: var(--t-indigo-bg);
  --tone-dot: var(--t-indigo);
}
.tone-amber {
  --tone: var(--t-amber);
  --tone-bg: var(--t-amber-bg);
  --tone-dot: var(--t-amber-dot);
}
.tone-green {
  --tone: var(--t-green);
  --tone-bg: var(--t-green-bg);
  --tone-dot: var(--t-green);
}
.tone-blue {
  --tone: var(--t-blue);
  --tone-bg: var(--t-blue-bg);
  --tone-dot: var(--t-blue);
}
.tone-teal {
  --tone: var(--t-teal);
  --tone-bg: var(--t-teal-bg);
  --tone-dot: var(--t-teal);
}
.tone-violet {
  --tone: var(--t-violet);
  --tone-bg: var(--t-violet-bg);
  --tone-dot: var(--t-violet);
}
.tone-rose {
  --tone: var(--t-rose);
  --tone-bg: var(--t-rose-bg);
  --tone-dot: var(--t-rose);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tone-bg, var(--plate));
  color: var(--tone, var(--dim));
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 3px 11px 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--tone-bg, var(--plate));
  color: var(--tone, var(--dim));
  font: 600 12.5px/1.2 var(--sans);
  white-space: nowrap;
}
.pill--pending,
.pill--declined {
  border-style: dashed;
  border-color: var(--line-control);
  background: transparent;
  color: var(--dim);
}
.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone-dot, var(--tone, var(--faint)));
}
.dot--ring {
  box-shadow: 0 0 0 3px var(--tone-bg, var(--plate));
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--plate);
  color: var(--dim);
  font: 600 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.avatar {
  --size: 28px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--tone-bg, var(--plate));
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--tone, var(--dim));
  font: 600 calc(var(--size) * 0.4) / 1 var(--sans);
  letter-spacing: 0.02em;
  user-select: none;
}
.avatar--sm {
  --size: 22px;
}
.avatar--lg {
  --size: 40px;
}
.avatar .i,
.avatar .mark {
  width: 56%;
  height: 56%;
}
.avatar--owner {
  background: var(--ink);
  box-shadow: none;
  color: var(--on-accent);
}
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.3;
}
.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font: 500 13px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

/* ── the vote ───────────────────────────────────────────────────────────── */

.vote-form {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin: 0;
}
.vote-form--lg {
  display: flex;
  width: 100%;
}
.vote {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  min-height: 36px;
  padding: 0 12px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 14px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast),
    border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur);
}
/* 36px drawn, 44px to a finger */
.vote::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
}
button.vote:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, -1px, 0);
}
button.vote:active {
  transform: scale(0.96);
}
.vote[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-accent);
}
.vote .i-up {
  transition: transform var(--dur) var(--ease-spring);
}
button.vote:hover .i-up {
  transform: translate3d(0, -2px, 0);
}
.vote__count {
  display: inline-block;
}
.vote.is-bump .vote__count,
.vote.is-bump .i-up {
  animation: bump 380ms var(--ease-spring);
}
.vote--sm {
  min-width: 50px;
  min-height: 30px;
  font-size: 13px;
}
.vote--lg {
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  font-size: 24px;
}
.vote__label {
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.02em;
}
.vote--static {
  border-color: transparent;
  background: var(--plate);
  color: var(--dim);
  cursor: default;
}

/* ── fields: a white box, a hairline, a soft halo ───────────────────────── */

/* 20px between labelled fields; a form of self-evident boxes (the join form)
   sets --form-gap: 12px */
.form {
  display: grid;
  gap: var(--form-gap, 20px);
}
.form-row {
  display: grid;
  gap: var(--form-gap, 20px) 12px;
}
@media (min-width: 440px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.field {
  position: relative;
  display: block;
  min-width: 0;
}
.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font: 500 14px/1.35 var(--sans);
  cursor: pointer;
}
.field .opt {
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}
/* the box: 56px, radius 14, a hairline — focus is drawn here, not on the input */
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--field-bg);
  box-shadow: var(--field-shadow);
  transition: border-color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
}
.field__control:hover {
  border-color: var(--field-line-hover);
}
/* 1px border + 1px spread = a 2px --focus edge, then a soft halo */
.field__control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus), 0 0 0 5px var(--focus-soft), var(--field-shadow-focus);
}
/* the in-box button has its own ring; the box stays quiet under it */
.field__control:has(.field__go:focus-visible) {
  border-color: var(--field-line);
  box-shadow: var(--field-shadow);
}
.field--error .field__control,
.field--error .field__control:hover {
  border-color: var(--error);
}
.field--error .field__control:focus-within {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error), 0 0 0 5px var(--error-soft), var(--field-shadow-focus);
}
.field--icon .field__control > .i:first-child {
  position: absolute;
  left: 16px;
  color: var(--faint);
  pointer-events: none;
  transition: color var(--dur-fast);
}
.field--icon .field__control:focus-within > .i:first-child {
  color: var(--focus);
}
.field input,
.field textarea,
.field select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0 44px 0 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.3 var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field--icon input,
.field--icon select {
  padding-left: 46px;
}
.field textarea {
  height: auto;
  min-height: 128px;
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 1.5;
  resize: vertical;
}
.field--textarea .field__control {
  align-items: stretch;
}
.field select {
  padding-right: 76px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.field select:invalid {
  color: var(--faint);
}
.field select option {
  color: var(--ink);
  background: var(--field-bg);
}
.field--select .i-chevron-down {
  position: absolute;
  right: 16px;
  color: var(--dim);
  pointer-events: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset;
  transition: background-color 100000s 0s;
}
.field__check {
  position: absolute;
  top: 50%;
  right: 16px;
  margin-top: -9px;
  color: var(--success);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}
.field--textarea .field__check {
  top: 16px;
  margin-top: 0;
}
.field--select .field__check {
  right: 44px;
}
.field__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 380ms var(--ease-out) 60ms;
}
.field--valid .field__check {
  opacity: 1;
}
.field--valid .field__check path {
  stroke-dashoffset: 0;
}

/* a round submit inside the box's right end (the join form): a real
   <button type="submit"> with an aria-label, 46px — over the 44px target */
.field--action {
  --go: 46px;
}
.field--action input {
  padding-right: calc(var(--go) + 44px);
}
.field--action .field__check {
  right: calc(var(--go) + 18px);
}
.field__go {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--go);
  height: var(--go);
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-accent);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field__go .i {
  transition: transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .field__go:hover {
    box-shadow: var(--shadow-btn);
  }
  .field__go:hover .i-arrow {
    transform: translate3d(2px, 0, 0);
  }
}
.field__go:active {
  transform: scale(0.94);
}
.field__go:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.field__go[aria-busy='true'] {
  cursor: progress;
}
.field__go[disabled] {
  cursor: progress;
}
/* beta.js's busy label ("Joining…") is heard, not squeezed into the circle */
.field__go > span:not(.spinner) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.field__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--error);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}
.msg:not(:empty) {
  margin-top: 8px;
  padding-left: 2px;
  animation: msg-in 220ms var(--ease-out) backwards;
}
.msg .i {
  margin-top: 2px;
}
.field__count {
  margin-top: 8px;
  margin-left: auto;
  color: var(--faint);
  font: 500 12px/1.45 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.field__count.is-near {
  color: var(--dim);
}
.field__count.is-over {
  color: var(--error);
  font-weight: 600;
}
.hint {
  margin-top: 8px;
  padding-left: 2px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}
.suggest:not(:empty) {
  margin-top: 8px;
}
/* inline-block, not flex: a flex row drops the space before the address
   and added its own gap before the "?" ("Did you mean x ?") */
.suggest button {
  display: inline-block;
  min-height: 32px;
  padding: 6px 12px;
  text-align: left;
  border: 1px dashed var(--t-blue);
  border-radius: 999px;
  background: var(--t-blue-bg);
  color: var(--t-blue);
  font: 500 13.5px/1.3 var(--sans);
  animation: msg-in 220ms var(--ease-out) backwards;
}
.suggest button:hover {
  border-style: solid;
}
.suggest b {
  font-weight: 700;
}
/* the honeypot: off-canvas, not display:none — some bots skip hidden inputs */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--error-line);
  border-radius: var(--r);
  background: var(--error-bg);
  color: var(--ink);
  animation: land 320ms var(--ease-pen) backwards;
}
.error-summary:focus {
  outline: 2px solid var(--error);
  outline-offset: 3px;
}
.error-summary__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--error);
  font: 600 15px/1.3 var(--sans);
}
.error-summary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 26px;
}
.error-summary a {
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: underline;
  text-decoration-color: var(--error);
  text-underline-offset: 3px;
}

/* boxed toolbar controls (search, filters): the field's box at 44px */
.control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--field-bg);
  box-shadow: var(--field-shadow);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.control:hover {
  border-color: var(--field-line-hover);
}
.control:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus), 0 0 0 4px var(--focus-soft);
}
.control > .i {
  position: absolute;
  left: 12px;
  color: var(--dim);
  pointer-events: none;
}
.control > .i-chevron-down {
  left: auto;
  right: 12px;
}
.control input,
.control select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: 400 16px/1.2 var(--sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.control > .i:first-child ~ input,
.control > .i:first-child ~ select {
  padding-left: 40px;
}
.control select {
  padding-right: 38px;
  cursor: pointer;
}
.control select option {
  color: var(--ink);
  background: var(--card);
}
.control input::placeholder {
  color: var(--faint);
  opacity: 1;
}
.control input::-webkit-search-decoration,
.control input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* segmented links (sort) and tabs (lanes) */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--plate);
}
.segmented a,
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: 600 13.5px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.segmented a:hover,
.segmented button:hover {
  color: var(--ink);
}
.segmented [aria-current],
.segmented [aria-pressed='true'] {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--dim);
  font: 600 13.5px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast);
}
.tabs a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.tabs a[aria-current='true'],
.tabs a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-accent);
}
.tabs a[aria-current='true'] .count,
.tabs a.is-active .count {
  background: rgba(127, 127, 127, 0.28);
  color: var(--on-accent);
}

/* the FAQ: <details>, so it opens with a keyboard and without a script */
.disclosure {
  border-bottom: 1px solid var(--line);
}
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  font: 600 17px/1.4 var(--sans);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.disclosure summary::-webkit-details-marker {
  display: none;
}
.disclosure__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--dim);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast);
}
.disclosure summary:hover .disclosure__icon {
  color: var(--ink);
  border-color: var(--ink);
}
.disclosure[open] .disclosure__icon {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-accent);
}
.disclosure__body {
  max-width: 44em;
  padding: 0 48px 24px 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.65;
}
.disclosure[open] .disclosure__body {
  animation: land 320ms var(--ease-pen) backwards;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 14px;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.crumbs a {
  display: inline-block;
  padding: 6px 0;
  color: var(--dim);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs .i {
  color: var(--faint);
}
.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 500;
}

/* ── the toast ──────────────────────────────────────────────────────────── */

/* without JS: an in-flow notice where it is rendered */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--success-bg);
  color: var(--ink);
  font: 500 14.5px/1.45 var(--sans);
}
.toast > .i {
  color: var(--success);
}
/* with JS: lifted out of the flow from the first frame — no layout shift */
html.js .toast {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 10px 8px 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  color: var(--on-accent);
  animation: toast-in 460ms var(--ease-spring) backwards;
}
html.js .toast > .i {
  color: var(--toast-accent);
}
/* something did not happen (a vote that did not count): the caution mark */
.toast--alert {
  background: var(--error-bg);
}
.toast--alert > .i {
  color: var(--error);
}
html.js .toast--alert {
  background: var(--ink);
}
html.js .toast--alert > .i {
  color: var(--toast-alert);
}
html.js .toast-stack .toast {
  position: relative;
  bottom: auto;
}
.toast-stack {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  pointer-events: none;
}
.toast-stack > * {
  pointer-events: auto;
}
.toast.is-leaving {
  animation: toast-out 260ms var(--ease-out) forwards;
}
.toast__close {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.85;
}
.toast__close:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.22);
}

/* ── the phone: an iPhone 15 Pro, drawn ─────────────────────────────────── */

/*
 * Every inner measure is in --u = 1% of the phone's width (container units
 * where supported, a calc of --phone-w where not), taken from the device:
 * 393×852pt screen, 55pt screen radius, 126×37pt island 11pt down, a 3.9%
 * bezel+rim. So the whole drawing scales as one object at any size.
 */
.phone {
  --phone-w: 260px;
  --u: calc(var(--phone-w) / 100);
  position: relative;
  flex: none;
  width: var(--phone-w);
  max-width: 100%;
  container-type: inline-size;
}
@supports (width: 1cqw) {
  .phone > * {
    --u: 1cqw;
  }
}
.phone--sm {
  --phone-w: clamp(150px, 40vw, 204px);
}
.phone--md {
  --phone-w: clamp(196px, 58vw, 262px);
}
.phone--lg {
  --phone-w: clamp(236px, 76vw, 332px);
}
.phone__body {
  position: relative;
  padding: calc(var(--u) * 1.15);
  border-radius: calc(var(--u) * 16.8);
  background: var(--titanium);
  box-shadow: var(--phone-shadow);
}
/* action button + volume rocker, left; side button, right */
.phone__body::before,
.phone__body::after {
  content: '';
  position: absolute;
  width: calc(var(--u) * 0.8);
}
.phone__body::before {
  left: calc(var(--u) * -0.6);
  top: 17%;
  height: 21%;
  border-radius: calc(var(--u) * 0.5) 0 0 calc(var(--u) * 0.5);
  background: linear-gradient(
    to bottom,
    var(--titan-btn) 0 16%,
    transparent 16% 31%,
    var(--titan-btn) 31% 62%,
    transparent 62% 70%,
    var(--titan-btn) 70% 100%
  );
}
.phone__body::after {
  right: calc(var(--u) * -0.6);
  top: 27%;
  height: 11%;
  border-radius: 0 calc(var(--u) * 0.5) calc(var(--u) * 0.5) 0;
  background: var(--titan-btn);
}
.phone__screen {
  position: relative;
  box-sizing: content-box;
  overflow: hidden;
  aspect-ratio: 393 / 852;
  border: calc(var(--u) * 2.75) solid #050506;
  border-radius: calc(var(--u) * 15.65);
  background: var(--screen-bg);
  isolation: isolate;
}
.phone__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone__img--dark {
  display: none;
}
:root[data-theme='dark'] .phone__img--light {
  display: none;
}
:root[data-theme='dark'] .phone__img--dark {
  display: block;
}
.phone--one .phone__img--light {
  display: block !important;
}
/* a light-only capture stays light inside a dark page: its ground and ink */
:root[data-theme='dark'] .phone--one {
  --screen-bg: #f4f0e6;
  --status-ink: #14161a;
  --cap-top: #f3f0e6;
}
/* over a capture that carries the simulator's own status bar: its ground,
   the bar's height, so the drawn bar is the only one */
.phone__mask {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--u) * 13.84);
  background: var(--cap-top, #f3f0e6);
}
:root[data-theme='dark'] .phone:not(.phone--one) .phone__mask {
  background: var(--cap-top-dark, #141211);
}
/* under a sheet that floats above the bottom edge: the side margins' colour,
   over the dimmed screen behind it */
.phone__foot {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cap-foot-h);
  background: var(--cap-foot);
}
:root[data-theme='dark'] .phone:not(.phone--one) .phone__foot {
  background: var(--cap-foot-dark);
}
.phone__status {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr calc(var(--u) * 29.6) 1fr;
  align-items: center;
  height: calc(var(--u) * 13.84);
  color: var(--status-ink);
  font: 600 calc(var(--u) * 3.95) / 1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--sans);
  letter-spacing: -0.01em;
  pointer-events: none;
}
.phone__time {
  justify-self: center;
  padding-left: calc(var(--u) * 1.6);
  font-variant-numeric: tabular-nums;
}
.phone__icons {
  grid-column: 3;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.3);
  padding-right: calc(var(--u) * 1.4);
}
.phone__icons svg {
  display: block;
  height: auto;
}
.phone__signal {
  width: calc(var(--u) * 4.1);
}
.phone__wifi {
  width: calc(var(--u) * 3.75);
}
.phone__battery {
  width: calc(var(--u) * 6.2);
}
.phone__island {
  position: absolute;
  z-index: 3;
  top: calc(var(--u) * 2.58);
  left: 50%;
  width: calc(var(--u) * 29.56);
  height: calc(var(--u) * 8.68);
  margin-left: calc(var(--u) * -14.78);
  border-radius: 999px;
  background: #000;
}
.phone__island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(var(--u) * 2.9);
  width: calc(var(--u) * 2.5);
  height: calc(var(--u) * 2.5);
  margin-top: calc(var(--u) * -1.25);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #34405e 0 22%, #121828 48%, #06080d 70%);
}
.phone__glare {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: var(--glare);
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 24%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}

/* ── motion ─────────────────────────────────────────────────────────────── */

@keyframes land {
  from {
    opacity: 0;
    transform: translate3d(0, calc(var(--carry-y) * -1), 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translate3d(0, -8px, 0);
  }
}
@keyframes pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}
@keyframes bump {
  0% {
    transform: none;
  }
  35% {
    transform: translate3d(0, -3px, 0) scale(1.2);
  }
  100% {
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* land: the hero's sequence — children drop 8px onto their line, 60ms apart.
   --i is the step (nth-child by default; set it inline to reorder). */
html.js [data-land] > * {
  animation: land var(--land-dur, 560ms) var(--ease-pen) backwards;
  animation-delay: calc(min(var(--i, 0), 12) * 60ms + var(--land-delay, 0ms));
}
[data-land] > :nth-child(2) { --i: 1; }
[data-land] > :nth-child(3) { --i: 2; }
[data-land] > :nth-child(4) { --i: 3; }
[data-land] > :nth-child(5) { --i: 4; }
[data-land] > :nth-child(6) { --i: 5; }
[data-land] > :nth-child(7) { --i: 6; }
[data-land] > :nth-child(8) { --i: 7; }
[data-land] > :nth-child(9) { --i: 8; }
[data-land] > :nth-child(10) { --i: 9; }
[data-land] > :nth-child(11) { --i: 10; }
[data-land] > :nth-child(n + 12) { --i: 11; }
/* a headline lands word by word: .w spans from words(), each with --w */
html.js [data-land] > .land-words {
  animation: none;
}
html.js .land-words .w {
  display: inline-block;
  animation: land var(--land-dur, 560ms) var(--ease-pen) backwards;
  animation-delay: calc(var(--w, 0) * 60ms + var(--land-delay, 0ms));
}

/* rise: phones come up 24px and fade in, 120ms apart */
html.js [data-rise] > * {
  animation: rise 900ms var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 120ms + var(--rise-delay, 180ms));
}
[data-rise] > :nth-child(2) { --i: 1; }
[data-rise] > :nth-child(3) { --i: 2; }
[data-rise] > :nth-child(4) { --i: 3; }
[data-rise] > :nth-child(n + 5) { --i: 4; }
/* float: once the phones have risen, each lifts and settles once, one
   after another — a single breath, done inside five seconds (WCAG 2.2.2:
   an idle loop beside the form had no way to be paused) */
.phone--float .phone__body {
  animation: float 2.6s ease-in-out 1 backwards;
  animation-delay: calc(1.1s + var(--float, 0) * 0.35s);
}
.phone--float:nth-child(2) {
  --float: 1;
}
.phone--float:nth-child(3) {
  --float: 2;
}

/* reveal: rises 16px and fades in once 15% is on screen (beta.js adds .is-in,
   then .is-done so the element's own transitions — hover lifts — come back) */
html.js [data-reveal]:not(.is-done) {
  transition: opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 800ms var(--ease-out) var(--reveal-delay, 0ms);
}
html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
html.js [data-reveal-stagger]:not(.is-done) > * {
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 12) * 70ms + var(--reveal-delay, 0ms));
}
html.js [data-reveal-stagger]:not(.is-in) > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
/* draw: inside a [data-reveal] / [data-reveal-stagger], an SVG stroke with
   pathLength="1" (.draw) or a CSS rule line (.draw-x / .draw-y) draws itself
   when revealed. Outside one, they are simply drawn. --draw-delay orders them. */
html.js [data-reveal] .draw,
html.js [data-reveal-stagger] .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--draw-dur, 1400ms) var(--ease-out) var(--draw-delay, 200ms);
}
html.js [data-reveal].is-in .draw,
html.js [data-reveal-stagger].is-in .draw {
  stroke-dashoffset: 0;
}
.draw-x,
.draw-y {
  transition: transform var(--draw-dur, 1200ms) var(--ease-out) var(--draw-delay, 200ms);
}
.draw-x {
  transform-origin: left center;
}
.draw-y {
  transform-origin: center top;
}
html.js [data-reveal]:not(.is-in) .draw-x,
html.js [data-reveal-stagger]:not(.is-in) .draw-x {
  transform: scaleX(0);
}
html.js [data-reveal]:not(.is-in) .draw-y,
html.js [data-reveal-stagger]:not(.is-in) .draw-y {
  transform: scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal],
  html.js [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js [data-reveal] .draw,
  html.js [data-reveal-stagger] .draw {
    stroke-dashoffset: 0 !important;
  }
  .draw-x,
  .draw-y,
  .phone--float .phone__body,
  .btn:hover,
  .btn:active,
  .card--hover:hover,
  button.vote:hover,
  button.vote:active,
  .theme-toggle:active {
    transform: none !important;
  }
  .phone--float .phone__body,
  .live-dot::after,
  .spinner {
    animation: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    clip-path: none !important;
  }
}

/* print (and Save as PDF): everything the reveal would show, shown — a
   printout never scrolls, so no IntersectionObserver ever fires for it */
@media print {
  html.js [data-reveal],
  html.js [data-reveal-stagger] > *,
  html.js [data-land] > *,
  html.js .land-words .w,
  html.js [data-rise] > *,
  html.js .dash__text,
  html.js .dash__pin {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  html.js .dash__ledger {
    clip-path: none !important;
    transition: none !important;
  }
  .skip,
  .theme-toggle,
  .toast-stack {
    display: none !important;
  }
}

/* ── the console (owner only) ───────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stats > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
.stats dt {
  color: var(--faint);
  font: 600 11px/1.2 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stats dd {
  margin: 6px 0 0;
  font: 500 30px/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table.list {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
table.list th,
table.list td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.list tr:last-child td {
  border-bottom: 0;
}
table.list th {
  color: var(--faint);
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
table.list td.mono {
  font-size: 13px;
}
.queue {
  display: grid;
  gap: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.inline-field {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.inline-field > .field {
  flex: 1 1 220px;
}
textarea.copy {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid var(--line-control);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 12.5px/1.5 var(--mono);
}
