/* focusup.app — one stylesheet for every page.
   Palette, type and motion are the app's own: src/theme/tokens.ts, DESIGN.md, MOTION.md. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* tokens.ts colors */
  --bg: #101415;
  --surface-lowest: #0b0f10;
  --surface-low: #191c1e;
  --surface: #1d2022;
  --surface-high: #272a2c;
  --surface-highest: #323537;
  --on-surface: #e0e3e5;
  --on-surface-variant: #cbc3d7;
  --outline: #958ea0;
  --outline-variant: #494454;
  --primary: #d0bcff;
  --primary-container: #a078ff;
  --on-primary: #3c0091;
  --secondary: #ffb4a6;
  --secondary-container: #882617;
  --error: #ffb4ab;
  --gold: #f5c451; /* kintsugi only — the word "gold" and the light beside it */

  --glass-fill: rgba(255, 255, 255, 0.04);
  --glass-line: rgba(255, 255, 255, 0.12);

  /* tokens.ts fonts */
  --font-headline: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* tokens.ts radii */
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-card: 28px;

  /* easing.ts — CALM (the world) and SPARK (the touch) */
  --calm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --calm-exit: cubic-bezier(0.4, 0, 0.7, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --spring-press: cubic-bezier(0.34, 1.4, 0.64, 1);
  --calm-enter: 1120ms;
  --calm-stagger: 90ms;
  --breath: 7s;

  --gutter: 24px;
  --column: 440px;
  --reading: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #e4d8ff;
}

[tabindex='-1']:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(160, 120, 255, 0.4);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus {
  transform: translateY(76px);
}

/* ── The living backdrop — AmbientBackground on the web: three faint blobs drifting on slow,
      independent rhythms, moved by transform only. ─────────────────────────────────────────── */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  will-change: transform;
}
.ambient span:nth-child(1) {
  left: -45vmax;
  top: -40vmax;
  background: radial-gradient(closest-side, rgba(160, 120, 255, 0.16), rgba(160, 120, 255, 0));
  animation: drift-a 46s ease-in-out infinite alternate;
}
.ambient span:nth-child(2) {
  right: -50vmax;
  top: 20vh;
  background: radial-gradient(closest-side, rgba(255, 180, 166, 0.08), rgba(255, 180, 166, 0));
  animation: drift-b 58s ease-in-out infinite alternate;
}
.ambient span:nth-child(3) {
  left: -20vmax;
  bottom: -60vmax;
  background: radial-gradient(closest-side, rgba(208, 188, 255, 0.09), rgba(208, 188, 255, 0));
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to { transform: translate3d(14vmax, 10vmax, 0) scale(1.08); }
}
@keyframes drift-b {
  to { transform: translate3d(-12vmax, 14vmax, 0) scale(0.94); }
}
@keyframes drift-c {
  to { transform: translate3d(10vmax, -12vmax, 0) scale(1.06); }
}

/* ── Type ─────────────────────────────────────────────────────────────────────────────────── */

.kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-headline);
  color: var(--on-surface);
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 7.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede {
  margin: 20px 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  text-wrap: pretty;
}

/* ── Layout ───────────────────────────────────────────────────────────────────────────────── */

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.site-header--static {
  position: relative;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  text-decoration: none;
}
.wordmark:hover {
  color: #fff;
}
.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.wordmark:has(img) {
  min-width: 44px;
}
@media (max-width: 420px) {
  .wordmark:has(img) .wordmark__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-nav a {
    padding: 0 10px;
    letter-spacing: 0.1em;
  }
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Glass — GlassCard: faint white fill, a hairline that catches the light, glow not shadow ── */

.glass {
  position: relative;
  border-radius: var(--r-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    var(--glass-fill);
  border: 1px solid var(--glass-line);
  padding: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ── The button — PrimaryButton: violet fill, mono caps, squish on press, warm flare ────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 260ms var(--spring-press);
}
.btn::after {
  /* the warm cream inner flare (usePressFlare) */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 50% 120%, rgba(255, 236, 214, 0.9), rgba(255, 236, 214, 0));
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.btn:hover {
  color: var(--on-primary);
}
.btn:active {
  transform: scale(0.97) translateY(1px);
  transition-duration: 90ms;
  transition-timing-function: var(--ease-out);
}
.btn:active::after {
  opacity: 0.45;
  transition-duration: 90ms;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 260ms var(--spring-press);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.6;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 166, 0.55);
}
.btn--ghost:hover {
  color: var(--secondary);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 260ms var(--spring-press), color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.icon-btn:hover {
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.08);
}
.icon-btn:active {
  transform: scale(0.94);
  transition-duration: 90ms;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Form fields ──────────────────────────────────────────────────────────────────────────── */

.field-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: no iOS zoom on focus */
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.input::placeholder {
  color: var(--outline);
  opacity: 1;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(208, 188, 255, 0.06);
}
.input[aria-invalid='true'] {
  border-color: var(--error);
}
.field-help {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--outline);
}
.field-error {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--error);
}
.field-error:empty {
  display: none;
}

/* ── Waitlist ─────────────────────────────────────────────────────────────────────────────── */

.waitlist {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  text-align: left;
}
.waitlist__row {
  display: grid;
  gap: 10px;
}
.waitlist__row .btn {
  width: 100%;
}
@media (min-width: 560px) {
  .waitlist__row {
    grid-template-columns: 1fr auto;
  }
  .waitlist__row .btn {
    width: auto;
  }
}
.waitlist__done {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(208, 188, 255, 0.35);
  background: rgba(208, 188, 255, 0.07);
  color: var(--on-surface);
}
.waitlist__done svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary);
}
.waitlist.is-done .waitlist__form {
  display: none;
}
.waitlist.is-done .waitlist__done {
  display: flex;
  animation: settle-in 900ms var(--calm-ease) both;
}
.hp {
  display: none;
}
@keyframes settle-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ── The orb (a recording of the real <Orb>; never redrawn) ───────────────────────────────── */

.orb {
  position: relative;
  width: min(74vw, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.orb__halo {
  /* GlowLayer: light behind the orb, breathing on the app's ~7s master breath */
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(160, 120, 255, 0.5) 52%,
    rgba(160, 120, 255, 0.22) 66%,
    rgba(160, 120, 255, 0.07) 82%,
    rgba(160, 120, 255, 0) 100%
  );
  animation: breathe var(--breath) ease-in-out infinite;
  will-change: transform, opacity;
}
.orb video,
.orb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the recording's dark backdrop gives way to the halo behind it — the orb itself is untouched */
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 88%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 88%, transparent 100%);
}
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ── Reveal — text rises and sharpens from a soft blur. Where the browser supports scroll-driven
   animation it moves with the scroll itself (arrives as you scroll, waits when you stop); elsewhere
   it's a timed CALM cascade. The hero (data-reveal="load") always plays on load. ─────────────── */

.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}
.js [data-reveal].is-in > * {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--calm-enter) var(--calm-ease),
    transform var(--calm-enter) var(--calm-ease),
    filter var(--calm-enter) var(--calm-ease);
  transition-delay: calc(var(--i, 0) * var(--calm-stagger));
}
@supports (animation-timeline: view()) {
  .js [data-reveal]:not([data-reveal='load']) > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: rise cubic-bezier(0.3, 0.7, 0.4, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
/* No blur on the film: blurring playing video while scrolling costs too much on a phone. The motion
   sits on the video itself: animating a parent would cut the video's blend off from the page. */
.js .film [data-reveal] > * {
  filter: none;
}
@supports (animation-timeline: view()) {
  .js .film [data-reveal] > * {
    animation-name: rise-plain;
  }
}
@keyframes rise-plain {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
/* Same for the orb: its video moves, not the wrapper, so its blend still reaches the halo and page */
@supports (animation-timeline: view()) {
  .js [data-reveal]:not([data-reveal='load']) > .orb {
    animation: none;
  }
  .js [data-reveal]:not([data-reveal='load']) > .orb video {
    animation: rise-plain cubic-bezier(0.3, 0.7, 0.4, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--outline);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-left: -12px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--on-surface);
}
.site-footer p {
  margin: 0;
}
@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .site-footer .fine {
    grid-column: 1 / -1;
  }
}

/* ══ Landing ═════════════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 88px 0 56px;
  text-align: center;
}
.hero .orb {
  width: min(64vw, 340px);
  margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(3rem, 13.5vw, 6.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .lit {
  background: linear-gradient(100deg, var(--primary) 10%, #f0d6ff 50%, var(--secondary) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 30ch;
  margin: 20px auto 32px;
}
.hero .kicker {
  margin-top: 20px;
}

.section {
  position: relative;
  overflow-x: clip;
  padding: clamp(88px, 16vw, 168px) 0;
}

/* The gate */
.gate {
  display: grid;
  gap: 56px;
  align-items: center;
}
.gate__text {
  max-width: 34rem;
}
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px;
  align-items: baseline;
  color: var(--on-surface-variant);
  font-size: 1.0625rem;
}
.steps .n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--secondary);
}
.film {
  width: min(100%, 400px);
  margin: 0 auto;
}
.film__stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  /* no box: the film's dark backdrop gives way to the page, and its edges dissolve */
  mix-blend-mode: lighten;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 6%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.film__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.film__controls .icon-btn {
  width: 44px;
  padding: 0;
}
@media (min-width: 900px) {
  .gate {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
  }
}

/* Two tracks */
.tracks__head {
  max-width: 44rem;
  margin-bottom: 48px;
}
.tracks {
  display: grid;
  gap: 16px;
}
.track {
  padding: 28px;
}
.track h3 {
  margin-bottom: 12px;
}
.track p {
  margin: 0;
  color: var(--on-surface-variant);
}
.track .kicker {
  margin-bottom: 20px;
}
.track--coral .kicker {
  color: var(--secondary);
}
@media (min-width: 760px) {
  .tracks {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .track {
    padding: 36px;
  }
}

/* The settle — a buzzing pile, covered in badges. The scroll clears the noise and straightens the
   cards; when the last one lands, the lights come on in the quiet. */
.settle-section {
  overflow-x: clip;
}
.settle {
  position: relative;
  isolation: isolate;
  max-width: 560px;
  margin: 0 auto;
  view-timeline-name: --settle;
}
.settle__stack {
  display: grid;
  gap: 10px;
}
.scard {
  --k: 0;
  --x: 0px;
  --dy: 0px;
  --r: 0deg;
  --n: 0;
  --mess: translate(var(--x), calc(var(--k) * (100% + 10px) + var(--dy))) rotate(var(--r));
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(155deg, #272b2e, #191c1e 70%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}
/* where each card lies in the pile: drawn toward the stack's middle, tilted, overlapping */
.scard:nth-child(1) { --k: 1.45; --x: -14px; --dy: 10px; --r: -8deg; --n: 0; z-index: 2; }
.scard:nth-child(2) { --k: 0.5; --x: 20px; --dy: -8px; --r: 6deg; --n: 1; z-index: 4; }
.scard:nth-child(3) { --k: -0.45; --x: -22px; --dy: 12px; --r: 11deg; --n: 2; z-index: 1; }
.scard:nth-child(4) { --k: -1.5; --x: 12px; --dy: -14px; --r: -5deg; --n: 3; z-index: 3; }
.scard p {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
/* the card's edge catches the light once it lands, and keeps a little of it */
.scard::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(208, 188, 255, 0.55), 0 0 26px rgba(160, 120, 255, 0.28);
  opacity: 0;
  pointer-events: none;
}
.scard__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px 2px rgba(208, 188, 255, 0.55);
}
.scard__dot--gold {
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(245, 196, 81, 0.5);
}
.scard__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--primary);
  opacity: 0;
}
.scard__dot--gold::after {
  color: var(--gold);
}
/* The noise: red appears nowhere else on the site, and it doesn't stay */
.scard__badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #ff5c4d;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 60, 40, 0.45);
}
.settle__noise {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.chip {
  --cx: 0px;
  --cy: 0px;
  --cr: 0deg;
  --m: 0;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2c3033;
  color: #e6e2ea;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transform: rotate(var(--cr));
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5c4d;
}
.chip:nth-child(1) { top: 13%; left: 3%; --cx: -34px; --cy: -26px; --cr: -7deg; --m: 2; }
.chip:nth-child(2) { top: 18%; right: 0; --cx: 34px; --cy: -30px; --cr: 5deg; --m: 0; }
.chip:nth-child(3) { top: 41%; left: -2%; --cx: -44px; --cy: 0px; --cr: 6deg; --m: 4; }
.chip:nth-child(4) { top: 53%; right: -2%; --cx: 44px; --cy: 6px; --cr: -5deg; --m: 1; }
.chip:nth-child(5) { bottom: 16%; left: 6%; --cx: -30px; --cy: 30px; --cr: 4deg; --m: 3; }
.chip:nth-child(6) { bottom: 11%; right: 6%; --cx: 30px; --cy: 32px; --cr: -8deg; --m: 5; }
.settle__bloom {
  position: absolute;
  inset: -16% -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(160, 120, 255, 0.55), rgba(160, 120, 255, 0.2) 55%, transparent);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
@media (min-width: 760px) {
  .scard {
    min-height: 96px;
    padding: 22px 26px;
  }
  .scard p {
    font-size: 1.375rem;
  }
}
/* Timed version for browsers without scroll-driven animation; the JS releases it in view */
.js .scard__badge,
.js .settle__noise {
  display: block;
}
.js .scard {
  transform: var(--mess);
  opacity: 0.86;
  will-change: transform;
  animation: settle-buzz 2.7s linear infinite;
  animation-delay: calc(var(--n) * -700ms);
}
.js .scard p {
  opacity: 0.3;
}
.js .chip {
  animation: settle-buzz 2.7s linear infinite;
  animation-delay: calc(var(--m) * -500ms);
}
.js .scard__dot {
  opacity: 0;
  transform: scale(0.3);
}
.js .settle.is-calm .chip {
  animation: none;
}
.js .settle.is-released .scard {
  transform: none;
  opacity: 1;
  animation: none;
  transition: transform 1000ms var(--calm-ease), opacity 800ms var(--calm-ease);
  transition-delay: calc(var(--n) * 90ms);
}
.js .settle.is-released .scard p {
  opacity: 1;
  transition: opacity 700ms ease-out 300ms;
}
.js .settle.is-released .chip {
  opacity: 0;
  transform: translate(var(--cx), var(--cy)) scale(0.9);
  transition: opacity 500ms ease-out, transform 700ms var(--calm-ease);
}
.js .settle.is-released .scard__badge {
  opacity: 0;
  transform: translateY(-10px) scale(0.5);
  transition: opacity 300ms ease-out, transform 400ms ease-out;
}
/* The release itself runs on its own clock, in every browser */
.js .settle.is-released .scard__dot {
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease-out, transform 620ms cubic-bezier(0.2, 1.5, 0.4, 1);
  transition-delay: calc(var(--n) * 130ms);
}
.js .settle.is-released .scard__dot::after {
  animation: settle-ring 900ms ease-out both;
  animation-delay: calc(var(--n) * 130ms);
}
.js .settle.is-released .scard::before {
  animation: settle-edge 1500ms ease-out both;
  animation-delay: calc(var(--n) * 130ms);
}
.js .settle.is-released .settle__bloom {
  animation: settle-bloom 2200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Where supported, everything before the release follows the scroll */
@supports (animation-timeline: view()) {
  .js .scard,
  .js .settle.is-released .scard {
    animation: card-settle cubic-bezier(0.3, 0.6, 0.3, 1) both, settle-buzz 2.7s linear infinite;
    animation-timeline: --settle, auto;
    animation-range: cover calc(25% + var(--n) * 4%) cover calc(40% + var(--n) * 4%), normal;
    animation-delay: 0s, calc(var(--n) * -700ms);
    transition: none;
  }
  .js .settle.is-calm .scard,
  .js .settle.is-released .scard {
    animation-name: card-settle, none;
  }
  .js .scard p,
  .js .settle.is-released .scard p {
    animation: card-text linear both;
    animation-timeline: --settle;
    animation-range: cover calc(34% + var(--n) * 4%) cover calc(44% + var(--n) * 4%);
    transition: none;
  }
  .js .scard__badge,
  .js .settle.is-released .scard__badge {
    animation: badge-off ease-in both;
    animation-timeline: --settle;
    animation-range: cover calc(23% + var(--n) * 4%) cover calc(31% + var(--n) * 4%);
    transition: none;
  }
  .js .chip,
  .js .settle.is-calm .chip,
  .js .settle.is-released .chip {
    animation: chip-off ease-in both, settle-buzz 2.7s linear infinite;
    animation-timeline: --settle, auto;
    animation-range: cover calc(20% + var(--m) * 2.5%) cover calc(30% + var(--m) * 2.5%), normal;
    animation-delay: 0s, calc(var(--m) * -500ms);
    transition: none;
  }
  .js .settle.is-calm .chip,
  .js .settle.is-released .chip {
    animation-name: chip-off, none;
  }
}
@keyframes settle-buzz {
  0%, 86%, 100% { translate: 0 0; }
  88% { translate: 1.6px 0; }
  90% { translate: -1.6px 0; }
  92% { translate: 1.2px 0; }
  94% { translate: -1.2px 0; }
  96% { translate: 0.6px 0; }
}
@keyframes card-settle {
  from { transform: var(--mess); opacity: 0.86; }
  to { transform: none; opacity: 1; }
}
@keyframes card-text {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
@keyframes badge-off {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-10px) scale(0.5); }
}
@keyframes chip-off {
  from { opacity: 1; transform: rotate(var(--cr)); }
  to { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.9); }
}
@keyframes settle-ring {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(5.5); }
}
@keyframes settle-edge {
  0% { opacity: 0; }
  28% { opacity: 1; }
  100% { opacity: 0.22; }
}
@keyframes settle-bloom {
  0% { opacity: 0; transform: scale(0.6); }
  38% { opacity: 1; }
  100% { opacity: 0.62; transform: none; }
}
.gold {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(245, 196, 81, 0.35);
}

/* Closing */
.closing {
  text-align: center;
}
.closing .orb {
  width: min(44vw, 220px);
  margin-bottom: 32px;
}
.closing .lede {
  margin: 16px auto 32px;
  max-width: 28rem;
}
.closing .note {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}

/* ══ Reading pages (privacy, terms, support) ═════════════════════════════════════════════════ */

.page {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 32px var(--gutter) 96px;
}
.page h1 {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.page .updated {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}
.page .intro {
  margin: 24px 0 0;
  font-size: 1.125rem;
  color: var(--on-surface-variant);
}
.short {
  margin: 40px 0 0;
}
.short ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.short li {
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
}
.short li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(208, 188, 255, 0.6);
}
.toc {
  margin: 48px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
@media (min-width: 620px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}
.toc li {
  break-inside: avoid;
}
.toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 0;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.toc a:hover {
  color: var(--on-surface);
}
.toc a span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--outline);
}
.legal section {
  padding-top: 48px;
  scroll-margin-top: 16px;
}
.legal h2 {
  font-size: clamp(1.5rem, 5.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.legal h2 .num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--primary);
}
.legal h3 {
  margin-top: 28px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
}
.legal p,
.legal li {
  color: var(--on-surface-variant);
}
.legal p {
  margin: 14px 0 0;
}
.legal ul,
.legal ol {
  margin: 14px 0 0;
  padding-left: 1.25rem;
}
.legal li {
  margin: 8px 0;
}
.legal li::marker {
  color: var(--outline);
}
.legal strong {
  color: var(--on-surface);
  font-weight: 600;
}
.legal .caps {
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.table-wrap {
  margin: 18px 0 0;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th,
.legal td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-surface-variant);
}
.legal th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
  background: rgba(255, 255, 255, 0.03);
}
.legal tr:last-child td {
  border-bottom: 0;
}
.legal td:first-child {
  color: var(--on-surface);
  font-weight: 600;
}
/* Support */
.contact {
  margin: 40px 0 0;
  display: grid;
  gap: 18px;
}
.contact p {
  margin: 0;
  color: var(--on-surface-variant);
}
.contact .btn {
  justify-self: start;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}
.faq-group {
  margin-top: 56px;
}
.faq-group > h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  min-height: 44px;
  font-family: var(--font-headline);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
  transform: rotate(45deg);
  transition: transform 360ms var(--calm-ease), border-color 200ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  border-color: var(--primary);
}
.faq summary:hover {
  color: #fff;
}
.faq .answer {
  padding: 0 0 22px;
  color: var(--on-surface-variant);
}
.faq details[open] .answer {
  animation: settle-in 700ms var(--calm-ease) both;
}
.faq .answer p {
  margin: 0 0 12px;
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ══ Reset password — an app screen ═════════════════════════════════════════════════════════ */

.app-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}
.app-screen .card {
  width: 100%;
  max-width: var(--column);
  padding: 32px 24px;
}
.app-screen .orb {
  width: 140px;
  margin-bottom: 28px;
}
.app-screen h1 {
  font-size: clamp(1.875rem, 8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.app-screen .lede {
  margin: 14px 0 0;
  font-size: 1rem;
}
.app-screen form {
  margin-top: 28px;
  text-align: left;
}
.app-screen .btn {
  width: 100%;
  margin-top: 20px;
}
.state[hidden] {
  display: none;
}
.state.is-entering > * {
  animation: settle-in var(--calm-enter) var(--calm-ease) both;
}
.state.is-entering > *:nth-child(2) { animation-delay: 90ms; }
.state.is-entering > *:nth-child(3) { animation-delay: 180ms; }
.state.is-entering > *:nth-child(4) { animation-delay: 270ms; }
.state.is-entering > *:nth-child(5) { animation-delay: 360ms; }
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 64px;
}
.password-wrap .icon-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  min-height: 44px;
  border: 0;
  background: transparent;
}
.loader {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
}
.loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dot 1.4s ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: 0.18s; }
.loader span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(208, 188, 255, 0.1);
  border: 1px solid rgba(208, 188, 255, 0.3);
  color: var(--primary);
}
.status-icon--coral {
  background: rgba(255, 180, 166, 0.1);
  border-color: rgba(255, 180, 166, 0.3);
  color: var(--secondary);
}
.status-icon svg {
  width: 26px;
  height: 26px;
}
.app-screen .foot {
  margin: 28px 0 0;
  font-size: 0.875rem;
  color: var(--outline);
}

/* ══ 404 ══════════════════════════════════════════════════════════════════════════════════════ */

.lost .btn {
  margin-top: 28px;
}

/* ══ Reduced motion — gentles, never zeroes: fades stay, drift and lift stop ═══════════════════ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ambient span,
  .orb__halo,
  .loader span {
    animation: none;
  }
  .orb__halo {
    transform: none;
    opacity: 0.85;
  }
  .js [data-reveal] > * {
    transform: none;
    filter: none;
  }
  .js [data-reveal].is-in > * {
    transition: opacity 600ms ease-out;
    transition-delay: 0ms;
  }
  .js [data-reveal]:not([data-reveal='load']) > * {
    animation-name: fade-only;
  }
  .js [data-reveal]:not([data-reveal='load']) > .orb video {
    animation-name: fade-only;
  }
  .settle__noise,
  .scard__badge,
  .js .settle__noise,
  .js .scard__badge {
    display: none;
  }
  .js .scard,
  .js .settle.is-released .scard {
    transform: none;
    translate: none;
    opacity: 1;
    animation: none;
    transition: none;
  }
  .js .scard p,
  .js .settle.is-released .scard p {
    opacity: 1;
    animation: none;
    transition: none;
  }
  .js .scard__dot,
  .js .settle.is-released .scard__dot {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .settle.is-released .scard__dot::after,
  .js .settle.is-released .scard::before {
    animation: none;
  }
  .js .settle.is-released .settle__bloom {
    animation: none;
    transform: none;
    opacity: 0.62;
    transition: opacity 500ms ease-out;
  }
  .state.is-entering > *,
  .waitlist.is-done .waitlist__done,
  .faq details[open] .answer {
    animation: fade-only 500ms ease-out both;
  }
  .btn,
  .icon-btn,
  .btn svg {
    transition: none;
  }
  .btn:active,
  .icon-btn:active {
    transform: none;
  }
}
@keyframes fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}
