/* The page around the devices: tokens, header, sections, buttons, form, FAQ, footer.
   One ink colour, one quiet grey, hairlines and whitespace, a sticky blurred header with quiet 13 px links, and an entrance of a slight blur and rise. */

:root {
  --background: #ffffff;
  --label: #0b0b0c;
  --secondary: #6a6a72; /* 5.4:1 on white */
  --button-hover: #2a2a2d;
  --hairline: rgba(11, 11, 12, 0.1);
  --line: #e5e5e8;
  --raised: #f4f4f6; /* a quiet ground for a device, a step off the page */
  --raised-2: #f2f2f4;
  --field: #ffffff;
  --danger: #c42f2f;
  --ring: rgba(11, 11, 12, 0.06);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --press: 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: 20px;
  --width: 1120px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --background: #000000;
  --label: #f5f5f7;
  --secondary: #9c9ca4; /* 7.2:1 on black */
  --button-hover: #ffffff;
  --hairline: rgba(255, 255, 255, 0.12);
  --line: #222225;
  --raised: #0d0d0f;
  --raised-2: #161618;
  --field: #0b0b0c;
  --danger: #ff6b6b;
  --ring: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
}

@media (min-width: 960px) {
  :root { --gutter: 48px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* A hidden line whose link can take focus: it shows under the header while the link has it. */
.sr-focusable:focus-within {
  position: fixed; z-index: 40; top: 62px; left: max(var(--gutter), env(safe-area-inset-left));
  width: auto; height: auto; max-width: calc(100% - 2 * var(--gutter)); overflow: visible;
  clip-path: none; white-space: normal;
  padding: 12px 16px; border-radius: 14px;
  background: var(--background); box-shadow: inset 0 0 0 1px var(--line), 0 4px 16px rgb(11 11 12 / 0.08);
  font-size: 15px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Flipping the theme is one crossfade of the whole page (theme.js), so nothing fades on its own clock. */
html[data-theme-flip] *, html[data-theme-flip] *::before, html[data-theme-flip] *::after {
  transition: none !important;
}

/* Header: a sticky bar, the name as a wordmark, quiet 13 px links, one small button. */
.top {
  position: sticky; top: 0; z-index: 30;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.wordmark {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.theme {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--secondary); cursor: pointer;
  transition: color var(--fast);
}
.theme-sun, [data-theme='dark'] .theme-moon { display: none; }
[data-theme='dark'] .theme-sun { display: block; }
@media (hover: hover) { .theme:hover { color: var(--label); } }
.top .btn { height: 34px; padding: 0 14px; font-size: 13px; font-weight: 500; margin-left: 6px; }

/* Buttons: a full pill in the page's ink with the page's colour for its label, a white one
   ringed by a hairline with a 1 px shadow, both 150 ms on hover and pressing down to 97 %. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--label); color: var(--background);
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--press), background-color var(--fast), box-shadow var(--fast);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { background: var(--button-hover); } }
.btn-white {
  background: var(--background); color: var(--label);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(11 11 12 / 0.05);
}
@media (hover: hover) { .btn.btn-white:hover { background: var(--raised-2); } }
.btn svg { flex: none; transition: transform 200ms var(--ease-out); }

/* Type */
.hero-title { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; }
.lede { margin-top: 16px; max-width: 30em; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: var(--secondary); text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; }
.kicker { font-size: 13px; font-weight: 500; color: var(--secondary); letter-spacing: 0; margin-bottom: 12px; }
.note { margin-top: 18px; font-size: 13px; color: var(--secondary); text-wrap: balance; }

/* Hero: the headline over the tour's own phone. The page opens on the pinned stage: the words centred at the top,
   the phone under them with its foot sinking into the page. The first scroll lifts the words away, docks the phone
   in its tour place and brings the first step in (page.js, the dock). */
.hero-text {
  position: absolute; z-index: 3; left: 0; right: 0; top: clamp(36px, 9vh, 104px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  will-change: opacity, transform, filter;
}
.hero-title, .hero-text .lede { margin-left: auto; margin-right: auto; }
.pin-fade {
  position: absolute; z-index: 2; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: 0; height: 200px;
  pointer-events: none; background: linear-gradient(to bottom, transparent, var(--background) 85%);
}
.dock { transform-origin: 50% 0; will-change: transform; }
.js .tour-words { opacity: 0; }

/* Entrance: heading and line come in from a slight blur and rise, 150 ms apart; the phone follows. */
@media (prefers-reduced-motion: no-preference) {
  .intro > * { animation: intro-in 1100ms var(--ease-out) both; }
  .intro > :nth-child(2) { animation-delay: 150ms; }
  .tour-device { animation: intro-in 1300ms var(--ease-out) 300ms both; }
}
@keyframes intro-in { from { opacity: 0.01; filter: blur(6px); transform: translateY(8px); } }
/* Reduced motion: the stage changes in one quiet fade instead of moving. */
@media (prefers-reduced-motion: reduce) {
  .hero-text, .tour-words, .pin-fade, .dock { transition: opacity 240ms ease; }
}

/* Sections */
.section { padding-top: clamp(96px, 14vh, 160px); }
.section-head { max-width: 40em; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .lede { margin-left: 0; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* The before: Telegram named once, then the turn. */
.before { padding-top: clamp(80px, 12vh, 140px); text-align: center; }
.before p { max-width: 24em; margin: 0 auto; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--secondary); text-wrap: balance; }
.before p strong { color: var(--label); font-weight: 500; }

/* The tour: the phone holds still while the words move on; each step changes what it shows. */
.tour { position: relative; }
.tour-pin {
  position: sticky; top: 54px;
  height: calc(100svh - 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.tour-words { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.tour-steps { position: relative; display: grid; }
.tour-step { grid-area: 1 / 1; max-width: 26em; transition: opacity 500ms ease, transform 700ms var(--ease-out), filter 500ms ease; }
.tour-step:not(.on) { opacity: 0; transform: translateY(10px); filter: blur(4px); pointer-events: none; }
.tour-step h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; }
.tour-step p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--secondary); }
.tour-dots { display: flex; gap: 6px; margin-top: 36px; }
.tour-dot {
  position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.tour-dot::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--hairline); transition: background var(--fast), width 300ms var(--ease-out); }
.tour-dot.on::before { width: 18px; background: var(--label); }
.tour-device { position: relative; display: grid; place-items: center; height: 100%; container-type: size; }
.tour-track { pointer-events: none; height: calc(70svh + var(--steps, 5) * 80svh); margin-top: calc(-100svh + 54px); }
@media (max-width: 859px) {
  .tour-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 16px; }
  .tour-words { align-self: auto; display: block; }
  .tour-step h3 { font-size: 24px; }
  .tour-step p { margin-top: 8px; font-size: 15px; }
  .tour-dots { margin: 6px 0 0 -8px; }
}

/* Mac band */
.mac-stage { position: relative; margin-top: 56px; display: grid; justify-items: center; }
/* On a phone the Mac would be too small to read: it keeps a readable size, anchored at its left edge (the sidebar
   with Needs you), and the rest fades off the page's edge. */
@media (max-width: 599px) {
  .mac-stage { justify-items: start; overflow: hidden; margin-right: calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
}

/* Trust: four facts on hairlines, each with a small line object that shows the fact and moves a little on hover
   (on touch screens, once as it comes into view: page.js). */
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hairline); }
.fact {
  display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start;
  padding: 32px 32px 32px 0; border-bottom: 1px solid var(--hairline);
  --ic-edge: #9a9aa2; --ic-mid: #babac1; --ic-lo: #d6d6db;
}
:root[data-theme='dark'] .fact { --ic-edge: #75757d; --ic-mid: #56565c; --ic-lo: #38383d; }
.fact:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--hairline); }
.fact h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.fact p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--secondary); }
.fact > div { padding-top: 10px; }

/* The objects: plates in the page's colour, three greys, and the moving part's edge goes dark. */
.ic { display: block; width: 112px; height: 106px; overflow: visible; }
.ic path {
  fill: var(--background); stroke: var(--ic-mid); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round; transition: stroke 260ms ease;
}
.ic .e { stroke: var(--ic-edge); }
.ic .l { stroke: var(--ic-lo); }
.ic .nf { fill: none; }
.ic .dash { stroke-dasharray: 1.5 3; }
.ic .ic-move { transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1); }

/* Each move, in the drawing's own units (the generator prints them). Nothing changes colour: the motion is the answer. */
:is(.fact:hover, .fact.play) .ic-plug .ic-move { transform: translate(-5.66px, -2.83px); }
:is(.fact:hover, .fact.play) .ic-card .ic-move { transform: translateY(-4.3px); }
:is(.fact:hover, .fact.play) .ic-tiles .ic-move { transform: translateY(-12.1px); }
.ic .ic-guides { opacity: 0; transition: opacity 200ms ease; }
:is(.fact:hover, .fact.play) .ic-guides { opacity: 1; transition: opacity 400ms ease 250ms; }
/* The badge swings on its loop: each keyframe is the turn in its own plane, as seen at this angle. */
.ic .ic-swing { transform-box: view-box; transform-origin: 0 0; }
:is(.fact:hover, .fact.play) .ic-swing { animation: ic-swing 1600ms cubic-bezier(0.37, 0, 0.63, 1) both; }
@keyframes ic-swing {
  0% { transform: matrix(1.0000, 0.0000, 0.0000, 1.0000, 0.000, 0.000); }
  16% { transform: matrix(0.9518, 0.1494, -0.0853, 1.0372, -3.548, 3.252); }
  36% { transform: matrix(1.0272, -0.1047, 0.0598, 0.9674, 2.399, -2.501); }
  55% { transform: matrix(0.9804, 0.0648, -0.0370, 1.0175, -1.522, 1.457); }
  72% { transform: matrix(1.0097, -0.0349, 0.0199, 0.9897, 0.808, -0.814); }
  86% { transform: matrix(0.9957, 0.0150, -0.0086, 1.0042, -0.349, 0.343); }
  100% { transform: matrix(1.0000, 0.0000, 0.0000, 1.0000, 0.000, 0.000); }
}
/* A lock that's tried: the shackle tugs up twice and holds. */
:is(.fact:hover, .fact.play) .ic-shackle { animation: ic-tug 900ms cubic-bezier(0.32, 0.72, 0, 1) 200ms both; }
@keyframes ic-tug {
  0% { transform: none; } 22% { transform: translateY(-1.4px); } 40% { transform: none; }
  58% { transform: translateY(-0.9px); } 76%, 100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ic .ic-move { transition: none; }
  :is(.fact:hover, .fact.play) :is(.ic-shackle, .ic-swing) { animation: none; }
}
@media (max-width: 719px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(even) { grid-template-columns: 80px 1fr; gap: 18px; padding: 24px 0; border-left: 0; }
  .ic { width: 80px; height: 76px; }
  .fact > div { padding-top: 4px; }
}

/* FAQ: native disclosure, a hairline between each, a plus that turns. */
.faq { margin: 40px auto 0; max-width: 760px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0;
  font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--secondary); transition: transform 300ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 40px 22px 0; font-size: 15px; line-height: 1.6; color: var(--secondary); }
.faq .a p + p { margin-top: 10px; }
@media (hover: hover) { .faq summary:hover svg { color: var(--label); } }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete; height: 0; overflow: clip; }
  .faq details[open]::details-content { height: auto; }
  @supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
}

/* Beta sign-up, in the site's own shapes: the agent as pill chips like the app's Deny and Allow, then the address in
   a pill like the app's composer, its button inside it. No card: it sits on the page like the hero does. */
/* The whole sign-up is one card on the raised ground the devices sit on: the page's destination, one object. */
.join-card { max-width: 560px; margin: 0 auto; padding: 0 40px 16px; border-radius: 32px; background: var(--raised); }
/* The icon sits across the card's top edge. A ring in the page's colour parts the edge around it, so it reads as
   resting on the card rather than pasted over it. */
.join-face { display: flex; justify-content: center; margin-bottom: 24px; }
.join-face img {
  display: block; width: 76px; height: 76px; margin-top: -34px;
  border-radius: 20px; box-shadow: 0 0 0 8px var(--background);
}
.join { margin: 32px auto 0; max-width: 480px; text-align: center; }
.join-q { font-size: 15px; color: var(--secondary); margin-bottom: 14px; }
/* Fields and chips share one look: a hairline at rest; focused or chosen, a soft grey halo outside the line. */
.join { --rest: inset 0 0 0 1.5px var(--line); --lit: inset 0 0 0 1px var(--line), 0 0 0 4px var(--ring);
  --bad: inset 0 0 0 1px var(--danger), 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent); }
.join-card { --ring: rgba(11, 11, 12, 0.08); }
[data-theme='dark'] .join-card { --field: #1a1a1c; --ring: rgba(255, 255, 255, 0.14); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.chips label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--field); color: var(--secondary);
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--rest);
  transition: transform var(--press), color var(--fast), box-shadow var(--fast);
}
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label:active { transform: scale(0.97); }
@media (hover: hover) { .chips label:hover { color: var(--label); } }
/* Chosen: an ink border and a check, so the choice reads at a glance and never by colour alone. The halo stays
   focus's alone, here as on the field, so a chosen chip and the field being typed in never look the same. */
.chips label::before {
  content: ''; flex: none; width: 0; height: 14px; margin-right: 0; opacity: 0; transform: scale(0.6);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: width 150ms var(--ease-out), margin-right 150ms var(--ease-out), opacity 150ms ease, transform 150ms var(--ease-out);
}
.chips label:has(input:checked) { color: var(--label); box-shadow: inset 0 0 0 1.5px var(--label); }
.chips label:has(input:checked)::before { width: 14px; margin-right: 6px; opacity: 1; transform: none; }
.chips label:has(input:focus-visible) { box-shadow: var(--lit); }
.chips label:has(input:checked:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--label), 0 0 0 4px var(--ring); }
@media (prefers-reduced-motion: reduce) { .chips label::before { transition: opacity 150ms ease; } }
.field {
  display: flex; align-items: center; gap: 8px; margin-top: 28px; height: 56px; padding: 6px 6px 6px 22px;
  border-radius: 999px; background: var(--field); text-align: left;
  box-shadow: var(--rest); transition: box-shadow var(--fast);
}
.field:focus-within { box-shadow: var(--lit); }
.field:has([aria-invalid='true']) { box-shadow: var(--bad); }
.field input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none;
  color: var(--label); font: inherit; font-size: 16px; caret-color: var(--label);
}
.field input::placeholder { color: var(--secondary); opacity: 0.8; }
.field { position: relative; }
.field .btn { flex: none; height: 44px; padding: 0 18px; transition: transform var(--press), background-color var(--fast), opacity 200ms ease; }
/* Until both steps are done the button rests at a third of its ink and doesn't press; it still takes hover and focus,
   so its tooltip can say what's left. */
.field .btn[aria-disabled='true'] { opacity: 0.35; cursor: default; }
.field .btn[aria-disabled='true']:active { transform: none; }
/* Sending: the button dims a little, so a press visibly took. */
.field .btn[aria-busy='true'] { opacity: 0.6; cursor: default; }
@media (hover: hover) { .field .btn[aria-disabled='true']:hover { background: var(--label); } }
/* The tooltip: a small raised card under the button, a 500 title over a quiet line. */
.tip {
  position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: max-content; max-width: 300px;
  display: grid; gap: 2px; padding: 8px 11px 9px; border-radius: 12px; text-align: left;
  background: var(--background); box-shadow: 0 0 0 1px var(--line), 0 6px 20px -4px rgb(11 11 12 / 0.12);
  font-size: 13px; line-height: 1.35; pointer-events: none;
  opacity: 0; transform: scale(0.96); transform-origin: top right;
  transition: opacity 100ms ease, transform 100ms ease;
}
.tip b { color: var(--label); font-weight: 500; }
.tip span { color: var(--secondary); font-size: 12px; }
.tip.on { opacity: 1; transform: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .tip { transform: none; } }
.err { min-height: 22px; margin-top: 10px; font-size: 15px; color: var(--danger); }
/* On a phone the button can't share the pill without cutting the address short: the address gets its own pill,
   the button goes full width under it, and the chips share one row. */
@media (max-width: 419px) {
  .join-card { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; border-radius: 0; }
  .chips { flex-wrap: nowrap; gap: 10px; }
  .chips label { flex: 1 1 auto; padding: 0 10px; }
  .field { flex-direction: column; align-items: stretch; gap: 12px; height: auto; padding: 0; background: none; }
  .field, .field:focus-within, .field:has([aria-invalid='true']) { box-shadow: none; }
  .field input {
    flex: none; height: 52px; padding: 0 20px; border-radius: 999px; background: var(--field);
    box-shadow: var(--rest); transition: box-shadow var(--fast);
  }
  .field input:focus { box-shadow: var(--lit); }
  .field input[aria-invalid='true'] { box-shadow: var(--bad); }
  .field .btn { height: 52px; }
  .tip { left: 0; right: 0; margin: 0 auto; transform-origin: top center; text-align: center; }
}
/* The narrowest phones (an iPhone SE in zoomed view): a little less room around each chip keeps the row whole. */
@media (max-width: 359px) {
  .chips { gap: 6px; }
  .chips label { padding: 0 8px; }
  .chips label:has(input:checked)::before { margin-right: 4px; }
}
/* A field people never see: whatever fills it is not a person, and the sign-up ignores it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.join-done { text-align: center; padding: 8px 0 32px; }
.join-done .check { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--label); color: var(--background); }
.join-done h3 { margin-top: 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.join-done p { margin: 8px auto 0; max-width: 34em; color: var(--secondary); font-size: 15px; line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .join-done > * { animation: intro-in 900ms var(--ease-out) both; }
  .join-done > :nth-child(2) { animation-delay: 100ms; }
  .join-done > :nth-child(3) { animation-delay: 200ms; }
}

.foot { margin-top: clamp(96px, 14vh, 160px); padding-top: 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--secondary); }
.foot a { color: var(--label); text-decoration: none; }
@media (hover: hover) { .foot a:hover { text-decoration: underline; } }

/* Sections fade up as they arrive, once. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 900ms ease, transform 1100ms var(--ease-out), filter 900ms ease; }
  .js .reveal:not(.seen) { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}
