@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
/* Tokens mirror the app's "Aura" design (Shared/DesignSystem/DesignTokens.swift):
   neutral surfaces, a cobalt accent and a cobalt-to-cyan glow along the top. */
:root {
  --ground: #f5f7fc;
  --surface: #ffffff;
  --ink: #111a24;
  --text: var(--ink);
  --body: #4c5663;
  --muted: #66707d;
  --faint: #9aa3af;
  --accent: #2f5bff;
  --accent-end: #4f8cff;
  --on-accent: #ffffff;
  --line: rgb(10 30 60 / 0.08);
  --border: rgb(10 30 60 / 0.07);
  --aura-cobalt: #c9d6ff;
  --aura-cyan: #bfefff;
  --success: #22b8a5;
  --danger: #f43f5e;
  /* Space, shape, tracking and depth: the "Web tokens" in docs/design-system.md. */
  --space-hairline: 2px;  --space-tight: 4px;   --space-compact: 6px; --space-inner: 8px;
  --space-row: 10px;      --space-gap: 12px;    --space-group: 16px;  --space-section: 20px;
  --space-wide: 24px;     --space-page: 28px;
  --radius-sheet: 16px;   --radius-card: 12px;  --radius-control: 8px; --radius-row: 6px;
  --radius-pill: 20px;
  --tracking-display: -0.027em;
  --tracking-title: -0.018em;
  --ring: 0 0 0 1px var(--border);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --shadow-resting: 0 4px 12px rgb(10 30 60 / 0.06);
  --shadow-floating: 0 6px 16px rgb(10 30 60 / 0.14);
  /* A card: no border, separated by a ring, a top highlight and a soft shadow. */
  --card: var(--highlight), var(--ring), var(--shadow-resting);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c0f18;
    --surface: #151a1f;
    --ink: #eef1f4;
    --body: #b3bbc5;
    --muted: #9aa3ae;
    --faint: #6b7480;
    --accent: #4c74ff;
    --accent-end: #6aa0ff;
    --line: rgb(255 255 255 / 0.08);
    --border: rgb(255 255 255 / 0.08);
    --aura-cobalt: #1e2f7a;
    --aura-cyan: #0b4660;
    --highlight: inset 0 1px 0 rgb(255 255 255 / 0.07);
    --shadow-resting: 0 4px 12px rgb(0 0 0 / 0.22);
    --shadow-floating: 0 6px 16px rgb(0 0 0 / 0.34);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* The aura: two soft glows along the top, cobalt on the left and cyan on the right. */
.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background:
    radial-gradient(62% 100% at 18% -12%, var(--aura-cobalt), transparent 100%),
    radial-gradient(50% 90% at 95% -12%, var(--aura-cyan), transparent 100%);
  pointer-events: none;
  z-index: -1;
}

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

/* Bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: max(var(--space-section), env(safe-area-inset-top)) var(--space-wide) 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-row);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: var(--tracking-title);
}
.wordmark img { border-radius: var(--radius-row); }
.platforms { color: var(--faint); font-size: 14px; }

/* Hero */
main { flex: 1; width: 100%; }

.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--space-wide) 32px;
  text-align: center;
}

.mark {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 26px auto 52px;
}
.mark img { position: relative; display: block; width: 112px; height: 112px; }
.orbit {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-end);
}
@media (prefers-reduced-motion: no-preference) {
  .orbit { animation: orbit 24s linear infinite; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

.offer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-inner);
  margin: 0 0 var(--space-section);
  padding: var(--space-compact) var(--space-group);
  border-radius: 999px; /* capsule */
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--card);
}
.offer .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(34 184 165 / 0.2);
}

h1 {
  margin: 0 0 var(--space-group);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.lede {
  margin: 0 auto 40px;
  max-width: 34em;
  color: var(--body);
  font-size: 17px;
  text-wrap: pretty;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-row);
  max-width: 400px;
  margin: 0 auto;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-group) 0 var(--space-gap);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card);
}
.unit .value {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.unit .label {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.launch-date { margin: var(--space-gap) 0 32px; color: var(--faint); font-size: 14px; }

/* Signup */
.signup { max-width: 440px; margin: 0 auto; }
.field {
  display: flex;
  gap: var(--space-inner);
  padding: var(--space-compact);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card);
  transition: box-shadow 160ms ease;
}
.field:focus-within {
  box-shadow: var(--highlight), 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--shadow-resting);
}
.field input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-row);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus. */
  outline: none;
}
.field input::placeholder { color: var(--faint); }
.field button {
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-section);
  border: 0;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: transform 140ms var(--ease-out), opacity 140ms ease;
}
.field button:active { transform: scale(0.97); }
.field button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field button[disabled] { opacity: 0.6; cursor: default; }

.form-message { min-height: 1.55em; margin: var(--space-row) 0 0; font-size: 14px; color: var(--muted); }
.form-message[data-tone="error"] { color: var(--danger); }

.signup[data-done] .field { display: none; }
.signup[data-done] .form-message {
  margin: 0;
  padding: var(--space-group);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card);
  color: var(--text);
  font-size: 15px;
  animation: enter 280ms var(--ease-out);
}
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .signup[data-done] .form-message { animation: fade 200ms ease; }
  @keyframes fade { from { opacity: 0; } }
}

/* Spots left */
.spots { max-width: 440px; margin: var(--space-section) auto 0; }
.meter {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter .fill {
  width: var(--claimed);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  transition: width 600ms var(--ease-out);
}
.spots p { margin: var(--space-row) 0 0; color: var(--muted); font-size: 14px; }
.spots strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fine-print { margin: var(--space-compact) 0 0; color: var(--faint); font-size: 13px; }

/* Sold-out swaps */
.when-sold-out { display: none; }
body[data-sold-out] .when-open { display: none; }
body[data-sold-out] .when-sold-out { display: inline; }
body[data-sold-out] p.when-sold-out { display: block; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-gap);
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 var(--space-wide);
}
.features article {
  padding: var(--space-wide);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card);
}
.features h2 { margin: 0 0 var(--space-compact); font-size: 16px; font-weight: 800; letter-spacing: var(--tracking-title); }
.features p { margin: 0; color: var(--body); font-size: 15px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px var(--space-wide) max(var(--space-page), env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 13px;
}
footer p { margin: 0; }
footer em { color: var(--muted); }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding-top: 40px; }
  .unit .value { font-size: 26px; }
  .field { flex-direction: column; }
  .field input[type="email"] { min-height: 44px; }
  footer { flex-direction: column; gap: 4px; }
}
