@font-face {
  font-family: Geist;
  src: url("/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --text-title: #18181b;
  --text-subtitle: #57534e;
  --surface-default: #fff;
  --border-default: #dedee3;
  --brand: #2950db;
  --brand-solid: #2950db;
  font: 14px/1.5 Geist, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, p, ul, fieldset { margin: 0; }
fieldset, ul { border: 0; padding: 0; min-width: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.wordmark svg { width: 29px; height: 29px; color: var(--brand); }

.line-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waitlist-fields > div > label { font-weight: 500; }
.waitlist-fields > div > input {
  display: block;
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-default);
  color: inherit;
  font-family: inherit;
}

#form-error {
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff0ec;
  color: #9a251a;
}

.orbit {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
  color: var(--brand);
}

.orbit-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid #2950db21;
  border-radius: 50%;
}

.orbit-ring::after {
  position: absolute;
  inset: 25%;
  border: 1px solid #2950db16;
  border-radius: inherit;
  content: "";
}

.orbit-centre {
  position: absolute;
  inset: 37%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffffeb;
  box-shadow: 0 8px 20px #15285d13;
}

.orbit-centre svg { width: 42px; height: 42px; }

.orbit-tile {
  position: absolute;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
}

.orbit-tile:nth-of-type(3) { top: 12%; left: 58%; --tilt: -7deg; --delay: 0s; }
.orbit-tile:nth-of-type(4) { top: 28%; left: 82%; --tilt: 5deg; --delay: -.9s; }
.orbit-tile:nth-of-type(5) { top: 58%; left: 89%; --tilt: -4deg; --delay: -1.8s; }
.orbit-tile:nth-of-type(6) { top: 82%; left: 72%; --tilt: 7deg; --delay: -2.7s; }
.orbit-tile:nth-of-type(7) { top: 89%; left: 42%; --tilt: -5deg; --delay: -3.6s; }
.orbit-tile:nth-of-type(8) { top: 72%; left: 18%; --tilt: 4deg; --delay: -4.5s; }
.orbit-tile:nth-of-type(9) { top: 42%; left: 12%; --tilt: -7deg; --delay: -5.4s; }
.orbit-tile:nth-of-type(10) { top: 18%; left: 28%; --tilt: 5deg; --delay: -6.3s; }

.tile-icon {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  rotate: var(--tilt);
  border: 4px solid white;
  border-radius: 10px;
  background: #f1f4ff;
  box-shadow: 0 6px 12px #15285d17;
}

.tile-icon > svg:first-child {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-pin, .tile-check { position: absolute; width: 20px; height: 20px; }
.tile-pin { top: -7px; right: -7px; }
.tile-check {
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #16883f;
  color: white;
  font-size: 11px;
}

@media (prefers-reduced-motion: no-preference) {
  .tile-icon { animation: orbit-float 7s var(--delay) ease-in-out infinite; }
  .waitlist-submit { transition: background-color 150ms; }
}

@keyframes orbit-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
.waitlist-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 16px 16px 0;
  color: var(--text-title);
  background: var(--surface-default);
}

.waitlist-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
}

.waitlist-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 54px);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 20% 0%, #d6defa, transparent 65%),
    radial-gradient(ellipse at 95% 0%, #ffe4cc, transparent 70%);
}

.waitlist-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(color-mix(in srgb, var(--brand) 26%, transparent) 1px, transparent 1px) 0 0 / 20px 20px;
  mask-image: radial-gradient(ellipse 85% 70% at 74% 67%, black, transparent);
}

.waitlist-hero-copy h1 {
  max-width: 650px;
  margin-top: clamp(32px, 3.9vh, 56px);
  font-size: clamp(40px, 3.92vw, 67px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.waitlist-hero-copy em {
  color: var(--brand);
  font-style: normal;
}

.waitlist-hero-copy p {
  max-width: 475px;
  margin-top: 18px;
  color: var(--text-subtitle);
  font-size: 16px;
  line-height: 1.55;
}

.waitlist-art {
  display: grid;
  flex: 1;
  min-height: 260px;
  place-items: center;
  padding: 12px 0;
}



.waitlist-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

.waitlist-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.waitlist-steps svg { color: var(--brand); flex: none; }

.waitlist-signup {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 44px clamp(24px, 5vw, 88px);
}

.waitlist-signup-inner { width: min(100%, 390px); }

.waitlist-beta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 100px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface-default));
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.waitlist-beta::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.waitlist-signup h2 {
  font-size: clamp(31px, 3.4vw, 49px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.waitlist-signup-description {
  margin-top: 10px;
  color: var(--text-subtitle);
  font-size: 15px;
}

.waitlist-form { margin-top: 27px; }

.waitlist-fields {
  display: grid;
  min-width: 0;
  gap: 17px;
}

.waitlist-fields legend {
  font-size: 14px;
  font-weight: 500;
}

.waitlist-fields input:not([type="radio"]) {
  height: 46px;
  margin-top: 7px;
  font-size: 16px;
}

.waitlist-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 7px;
  padding: 4px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface-default));
  position: relative;
  isolation: isolate;
}

/* One shared pill that slides to the chosen option. */
.waitlist-options::before {
  content: "";
  box-sizing: border-box; /* * {} does not reach pseudo-elements; without this the border pushes the pill 6px past the track */
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 14px) / 3);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 7px;
  background: var(--surface-default);
  box-shadow: 0 1px 3px #132b6512, 0 4px 12px -6px #132b6526;
  opacity: 0;
  transform: translateX(0) scale(0.92);
}
.waitlist-options:has(input:checked)::before { opacity: 1; transform: translateX(0) scale(1); }
.waitlist-options:has(label:nth-child(2) input:checked)::before { transform: translateX(calc(100% + 3px)) scale(1); }
.waitlist-options:has(label:nth-child(3) input:checked)::before { transform: translateX(calc(200% + 6px)) scale(1); }

.waitlist-options label { position: relative; cursor: pointer; }

.waitlist-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist-options span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-subtitle);
  font-size: 13px;
  font-weight: 500;
}

.waitlist-options label:hover span { color: var(--brand); }

.waitlist-options input:checked + span { color: var(--brand); }

@media (prefers-reduced-motion: no-preference) {
  .waitlist-options::before {
    transition: transform 380ms cubic-bezier(0.34, 1.32, 0.5, 1), opacity 180ms ease-out;
  }
  .waitlist-options span { transition: color 200ms ease-out; }
  .waitlist-options label:active span { transform: scale(0.97); transition: transform 120ms ease-out, color 200ms ease-out; }
}

.waitlist-options input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.waitlist-submit {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 49px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  justify-content: space-between;
  padding-inline: 17px;
  background: var(--brand-solid);
  color: white;
}

.waitlist-submit:hover:not(:disabled) {
  background: color-mix(in srgb, var(--brand-solid) 88%, black);
}

.waitlist-submit:disabled { opacity: .65; }

.waitlist-success-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--brand);
}

.waitlist-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 15px clamp(8px, 2vw, 28px);
  color: var(--text-subtitle);
  font-size: 12px;
}

.waitlist-footer a { padding-block: 3px; }
.waitlist-footer p { padding-block: 3px; }
.waitlist-footer a span { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .waitlist-page {
    --gutter-left: max(22px, env(safe-area-inset-left), (100vw - 440px) / 2);
    --gutter-right: max(22px, env(safe-area-inset-right), (100vw - 440px) / 2);
    padding: 0;
  }

  .waitlist-layout {
    grid-template-columns: calc(var(--gutter-left) + 104px) minmax(0, 1fr);
    grid-template-areas:
      "intro intro"
      "signup signup"
      "art steps";
    align-content: start;
    reading-flow: grid-rows;
  }

  .waitlist-hero { display: contents; }

  .waitlist-hero-copy {
    grid-area: intro;
    position: relative;
    isolation: isolate;
    padding: calc(20px + env(safe-area-inset-top)) var(--gutter-right) 16px var(--gutter-left);
    background:
      radial-gradient(ellipse at 16% 0%, #d6defa, transparent 72%),
      radial-gradient(ellipse at 99% 0%, #ffe4cc, transparent 70%);
  }

  .waitlist-hero-copy::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: radial-gradient(#2950db38 1px, transparent 1px) 0 0 / 16px 16px;
    mask-image: radial-gradient(ellipse at 94% 8%, black, transparent 68%);
  }

  .wordmark { gap: 6px; font-size: 21px; }
  .wordmark svg { width: 25px; height: 25px; }

  .waitlist-hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(25px, 7.25vw, 38px);
    line-height: 1.06;
    letter-spacing: -.055em;
    text-wrap: balance;
  }

  .waitlist-hero-copy em { display: inline-block; }
  .waitlist-hero-copy p { margin-top: 10px; font-size: 14px; line-height: 1.45; }

  .waitlist-signup {
    grid-area: signup;
    justify-items: stretch;
    padding: 12px var(--gutter-right) 28px var(--gutter-left);
  }

  .waitlist-signup-inner { width: 100%; }
  .waitlist-signup h2 { font-size: 27px; }
  .waitlist-signup-description { margin-top: 5px; font-size: 14px; }
  .waitlist-form { margin-top: 16px; }
  .waitlist-fields { gap: 12px; }
  .waitlist-fields input:not([type="radio"]) { margin-top: 5px; }
  .waitlist-options { margin-top: 5px; }
  .waitlist-options span { min-height: 44px; }

  .waitlist-art,
  .waitlist-steps {
    min-height: 0;
    border: 0;
    padding-block: 20px;
    background: #f5f7ff;
  }

  .waitlist-art {
    grid-area: art;
    padding-inline-start: var(--gutter-left);
  }

  .orbit { width: 96px; }
  .orbit-centre svg { width: 16px; height: 16px; }
  .orbit-tile { width: 21px; height: 21px; }
  .tile-icon { border-width: 2px; border-radius: 5px; }
  .tile-icon > svg:first-child { width: 11px; height: 11px; }
  .tile-pin { top: -4px; right: -5px; width: 9px; height: 9px; }
  .tile-check { right: -5px; bottom: -4px; width: 10px; height: 10px; border-width: 1px; font-size: 6px; }

  .waitlist-steps {
    grid-area: steps;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
    padding-inline: 15px var(--gutter-right);
  }

  .waitlist-steps li { flex-direction: row; align-items: center; font-size: 12px; }
  .waitlist-steps svg { width: 16px; height: 16px; }

  .waitlist-footer {
    padding: 12px var(--gutter-right) calc(12px + env(safe-area-inset-bottom)) var(--gutter-left);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-page * { transition: none !important; }
}

/* Programmatic focus target after sign-up: no ring */
#waitlist-success-title:focus { outline: none; }

/* Entry choreography. Left panel builds first, the form follows a beat later, then the orbit assembles.
   Only runs when the visitor allows motion; otherwise everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.5, 0.64, 1);
  }

  .waitlist-hero { animation: panel-in 800ms var(--ease-out) both; }

  .waitlist-hero-copy > *,
  .waitlist-steps li,
  #signup-content > h2,
  #signup-content > .waitlist-signup-description,
  .waitlist-fields > :not([hidden]),
  #signup-success > *,
  .waitlist-footer {
    animation: rise 700ms var(--ease-out) both;
    animation-delay: var(--in, 0ms);
  }

  .waitlist-hero-copy > :nth-child(1) { --in: 120ms; }
  .waitlist-hero-copy > :nth-child(2) { --in: 200ms; }
  .waitlist-hero-copy > :nth-child(3) { --in: 300ms; }

  #signup-content > h2 { --in: 260ms; }
  #signup-content > .waitlist-signup-description { --in: 330ms; }
  .waitlist-fields > :nth-child(1) { --in: 400ms; }
  .waitlist-fields > :nth-child(2) { --in: 460ms; }
  .waitlist-fields > :nth-child(3) { --in: 520ms; }
  .waitlist-fields > .waitlist-submit { --in: 600ms; }

  .orbit-ring { animation: ring-in 900ms 320ms var(--ease-out) both; }
  .orbit-centre { animation: pop-in 650ms 420ms var(--ease-spring) both; }
  .orbit-tile { animation: pop-in 560ms var(--ease-spring) both; animation-delay: var(--in); }
  .orbit-tile:nth-of-type(3) { --in: 520ms; }
  .orbit-tile:nth-of-type(4) { --in: 580ms; }
  .orbit-tile:nth-of-type(5) { --in: 640ms; }
  .orbit-tile:nth-of-type(6) { --in: 700ms; }
  .orbit-tile:nth-of-type(7) { --in: 760ms; }
  .orbit-tile:nth-of-type(8) { --in: 820ms; }
  .orbit-tile:nth-of-type(9) { --in: 880ms; }
  .orbit-tile:nth-of-type(10) { --in: 940ms; }
  .tile-check, .tile-pin { animation: pop-in 420ms 1150ms var(--ease-spring) both; }

  .waitlist-steps li:nth-child(1) { --in: 760ms; }
  .waitlist-steps li:nth-child(2) { --in: 830ms; }
  .waitlist-steps li:nth-child(3) { --in: 900ms; }
  .waitlist-footer { --in: 1000ms; animation-name: fade-in; }

  /* Success swaps in after submit: the tick lands, then the words follow. */
  #signup-success > .waitlist-success-icon { animation: pop-in 520ms var(--ease-spring) both; }
  #signup-success > h2 { --in: 90ms; }
  #signup-success > p { --in: 160ms; }

  @media (max-width: 800px) {
    .waitlist-hero { animation: none; }
    .waitlist-hero-copy > :nth-child(1) { --in: 50ms; }
    .waitlist-hero-copy > :nth-child(2) { --in: 100ms; }
    .waitlist-hero-copy > :nth-child(3) { --in: 150ms; }
    #signup-content > h2 { --in: 190ms; }
    #signup-content > .waitlist-signup-description { --in: 230ms; }
    .waitlist-fields > :nth-child(1) { --in: 270ms; }
    .waitlist-fields > :nth-child(2) { --in: 310ms; }
    .waitlist-fields > :nth-child(3) { --in: 350ms; }
    .waitlist-fields > .waitlist-submit { --in: 390ms; }
    .waitlist-hero-copy > *,
    #signup-content > *,
    .waitlist-fields > :not([hidden]) { animation-duration: 500ms; }
  }
}

@keyframes panel-in {
  from { opacity: 0; scale: 0.985; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 14px; filter: blur(4px); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes ring-in {
  from { opacity: 0; scale: 0.82; }
}

@keyframes pop-in {
  from { opacity: 0; scale: 0.6; }
}

.waitlist-fields input::placeholder { color: #a1a1aa; opacity: 1; }
