/* =========================================================================
   Orbit - marketing site styles
   Light + dark: system default (prefers-color-scheme) with a manual override
   via [data-theme] on <html> (persisted by app.js). Component styling reads
   theme-aware custom properties so there is only one set of dark rules.
   Warm peach -> rose -> lavender signature.
   ========================================================================= */

:root {
  /* Signature gradient stops (constant across themes) */
  --grad-1: #FFE9D7;
  --grad-2: #FFD7A0;
  --grad-3: #E8B4B8;
  --grad-4: #D2BCFF;

  /* Brand (constant) */
  --amethyst: #43257D;
  --amethyst-deep: #2E184F;
  --lav-1: #EADDFF;
  --lav-2: #C9B8FF;

  /* ---- Light theme (default) ---- */
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --surface-2: #FFF4E9;
  --surface-3: #FBEFFE;
  --text: #241C36;
  --text-muted: #5C546B;
  --border: rgba(67, 37, 125, 0.12);
  --border-strong: rgba(67, 37, 125, 0.24);

  --link: var(--amethyst);
  --accent-ink: var(--amethyst);         /* eyebrows, logo, icons, checks */
  --btn-bg: var(--amethyst);
  --btn-ink: #FFFFFF;
  --pill-bg: rgba(67, 37, 125, 0.08);
  --pill-ink: var(--amethyst);
  --ring: rgba(67, 37, 125, 0.45);
  --danger: #B3261E;

  /* Hero backdrop */
  --hero-grad:
    radial-gradient(120% 90% at 10% 0%, var(--grad-1) 0%, transparent 55%),
    radial-gradient(120% 100% at 90% 5%, var(--grad-4) 0%, transparent 55%),
    linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 32%, var(--grad-3) 62%, var(--grad-4) 100%);
  --hero-grad-opacity: 0.95;

  /* Phone mock screen */
  --phone-screen-bg: linear-gradient(160deg, var(--grad-1), var(--grad-3) 55%, var(--grad-4));
  --phone-chrome: rgba(255, 255, 255, 0.55);

  /* Vote bar fill */
  --bar-fill: linear-gradient(90deg, var(--grad-3), var(--amethyst));

  /* CTA band */
  --cta-grad: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 30%, var(--grad-3) 62%, var(--grad-4) 100%);
  --cta-ink: #2A184F;
  --cta-ink-soft: #4A3A63;
  --cta-field-bg: rgba(255, 255, 255, 0.78);

  /* Memory tiles (kept pastel in light) */
  --mem-a: var(--grad-2);
  --mem-b: var(--grad-3);
  --mem-c: var(--grad-4);
  --mem-d: var(--lav-1);

  --shadow-sm: 0 1px 2px rgba(36, 28, 54, 0.06), 0 2px 8px rgba(36, 28, 54, 0.05);
  --shadow-md: 0 8px 24px rgba(67, 37, 125, 0.10), 0 2px 6px rgba(36, 28, 54, 0.06);
  --shadow-lg: 0 24px 60px rgba(67, 37, 125, 0.18), 0 8px 20px rgba(36, 28, 54, 0.08);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --header-h: 75px;
  --maxw: 1120px;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---- Dark theme tokens (shared block, applied two ways) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1B1A;
    --surface: #211F1E;
    --surface-2: #2A2724;
    --surface-3: #272231;
    --text: #F5EFE6;
    --text-muted: #B7ADA0;
    --border: rgba(245, 239, 230, 0.14);
    --border-strong: rgba(245, 239, 230, 0.26);

    --link: var(--lav-2);
    --accent-ink: var(--lav-2);
    --btn-bg: var(--lav-2);
    --btn-ink: #23103F;
    --pill-bg: rgba(201, 184, 255, 0.16);
    --pill-ink: var(--lav-1);
    --ring: rgba(201, 184, 255, 0.6);
    --danger: #FFB4AB;

    --hero-grad:
      radial-gradient(120% 90% at 12% 0%, rgba(255, 215, 160, 0.16), transparent 55%),
      radial-gradient(110% 100% at 88% 6%, rgba(180, 140, 255, 0.24), transparent 58%),
      linear-gradient(135deg, #241B33 0%, #2B2140 42%, #34264D 72%, #1F1A2C 100%);
    --hero-grad-opacity: 1;

    --phone-screen-bg: linear-gradient(160deg, #2A2438, #2E2340 55%, #34264D);
    --phone-chrome: rgba(255, 255, 255, 0.10);

    --bar-fill: linear-gradient(90deg, var(--grad-4), var(--lav-2));

    --cta-grad: linear-gradient(135deg, #2B2140 0%, #3A2A57 42%, #4A2E63 72%, #2A1F3E 100%);
    --cta-ink: #F5EFE6;
    --cta-ink-soft: #CDBFE4;
    --cta-field-bg: rgba(18, 14, 26, 0.55);

    --mem-a: #3a2f52; --mem-b: #45324f; --mem-c: #4a3a63; --mem-d: #38304f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #1C1B1A;
  --surface: #211F1E;
  --surface-2: #2A2724;
  --surface-3: #272231;
  --text: #F5EFE6;
  --text-muted: #B7ADA0;
  --border: rgba(245, 239, 230, 0.14);
  --border-strong: rgba(245, 239, 230, 0.26);

  --link: var(--lav-2);
  --accent-ink: var(--lav-2);
  --btn-bg: var(--lav-2);
  --btn-ink: #23103F;
  --pill-bg: rgba(201, 184, 255, 0.16);
  --pill-ink: var(--lav-1);
  --ring: rgba(201, 184, 255, 0.6);
  --danger: #FFB4AB;

  --hero-grad:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 215, 160, 0.16), transparent 55%),
    radial-gradient(110% 100% at 88% 6%, rgba(180, 140, 255, 0.24), transparent 58%),
    linear-gradient(135deg, #241B33 0%, #2B2140 42%, #34264D 72%, #1F1A2C 100%);
  --hero-grad-opacity: 1;

  --phone-screen-bg: linear-gradient(160deg, #2A2438, #2E2340 55%, #34264D);
  --phone-chrome: rgba(255, 255, 255, 0.10);

  --bar-fill: linear-gradient(90deg, var(--grad-4), var(--lav-2));

  --cta-grad: linear-gradient(135deg, #2B2140 0%, #3A2A57 42%, #4A2E63 72%, #2A1F3E 100%);
  --cta-ink: #F5EFE6;
  --cta-ink-soft: #CDBFE4;
  --cta-field-bg: rgba(18, 14, 26, 0.55);

  --mem-a: #3a2f52; --mem-b: #45324f; --mem-c: #4a3a63; --mem-d: #38304f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------- base ---- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--pill-bg);
  color: var(--pill-ink);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--border);
  word-break: break-word;
}

/* anchor targets clear the sticky header */
section, .feature { scroll-margin-top: 96px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  text-wrap: balance;
}

.muted { color: var(--text-muted); }

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

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

/* skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------- logo ----- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo .mark { color: var(--accent-ink); flex: 0 0 auto; }
.logo .wordmark { color: var(--text); }

/* -------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled], .btn.is-loading { opacity: 0.7; cursor: progress; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--pill-bg); transform: translateY(-2px); }

/* inert "coming soon" store badge (used on the invite page) */
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-ink);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.98rem;
}
.store-pill[aria-disabled="true"] { opacity: 0.8; cursor: not-allowed; }
.store-pill .glyph { flex: 0 0 auto; opacity: 0.95; }
.store-pill .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-pill .lines small {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: var(--pill-bg); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* ---------------------------------------------------------------- nav ------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-hamburger:hover { background: var(--pill-bg); }
.nav-hamburger .bars, .nav-hamburger .bars::before, .nav-hamburger .bars::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-hamburger .bars::before { position: absolute; top: -6px; }
.nav-hamburger .bars::after { position: absolute; top: 6px; }

/* mobile slide-over */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 15, 30, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  z-index: 80;
  width: min(320px, 86vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mobile-nav .close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem; line-height: 1;
}
.mobile-nav .close:hover { background: var(--pill-bg); }
.mobile-nav a.mnav-link {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 8px;
  border-radius: 12px;
}
.mobile-nav a.mnav-link:hover { background: var(--pill-bg); text-decoration: none; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- hero ----- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 10vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  z-index: -2;
  background: var(--hero-grad);
  opacity: var(--hero-grad-opacity);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 0.22em;
  max-width: 15ch;
}
.hero .subline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.6em;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero-actions .secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- waitlist ---- */

.waitlist { width: 100%; max-width: 32rem; margin: 0; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-input {
  flex: 1 1 13rem;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist .btn { flex: 0 0 auto; }
.waitlist-msg {
  margin: 10px 4px 0;
  font-size: 0.9rem;
  min-height: 1.25em;
  color: var(--text-muted);
}
.waitlist-msg[data-state="error"] { color: var(--danger); font-weight: 600; }
.waitlist-msg[data-state="success"] { color: var(--accent-ink); font-weight: 600; }
.waitlist.is-done .waitlist-row { display: none; }

/* ------------------------------------------------------------- phone mock -- */

.hero-visual { display: flex; justify-content: center; margin: 0; }
.phone {
  --mock-scale: 1;
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  border-radius: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phone:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 40px 80px rgba(67,37,125,0.16); }
.phone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--phone-screen-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Internal mock type scales off --mock-scale, expressed in em below. */
  font-size: calc(13px * var(--mock-scale));
  color: var(--text);
}

/* Android punch-hole camera (centered) */
.punch-hole {
  position: absolute;
  top: 0.7em; left: 50%; transform: translateX(-50%);
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  z-index: 4;
}

/* status bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55em 1.2em 0.15em;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
}
.status-bar .sb-icons { display: flex; align-items: center; gap: 0.35em; }
.status-bar .sb-icons svg { width: 1.15em; height: 1.15em; display: block; }

/* top app bar */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55em 1.1em 0.7em;
}
.app-bar .app-bar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2em;
  color: var(--text);
}
.app-bar .app-bar-avatar {
  width: 2em; height: 2em;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-3);
  color: #3a2560;
  font-size: 0.8em;
  font-weight: 700;
}

/* content stage (holds the 3 states, stacked) */
.phone-content {
  flex: 1;
  min-height: 0;
  padding: 0.4em 0.95em 0.6em;
  overflow: hidden;
}
.mock-stage { display: grid; height: 100%; align-content: start; }
.mock-state {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.mock-state.active { opacity: 1; }
.mock-stage[data-static="true"] .mock-state:not(.active) { display: none; }

.chip-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 1.25em;
  padding: 0.9em 1em;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
/* label/value stack cleanly (was display:inline -> ran together) */
.chip-card .k, .chip-card .v { display: block; }
.chip-card .k {
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.chip-card .v {
  font-family: var(--font-display);
  font-size: 1.18em;
  font-weight: 600;
  line-height: 1.15;
}
.chip-row { display: flex; gap: 0.5em; flex-wrap: wrap; margin-top: 0.6em; align-items: center; }
.mini-pill {
  font-size: 0.78em;
  font-weight: 600;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.mini-pill.win { background: var(--amethyst); color: #fff; }
:root[data-theme="dark"] .mini-pill.win { background: var(--lav-2); color: #23103F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mini-pill.win { background: var(--lav-2); color: #23103F; }
}
.avatars { display: flex; }
.avatars span {
  width: 2.1em; height: 2.1em; border-radius: 50%;
  margin-left: -0.55em;
  border: 2px solid var(--surface);
  display: grid; place-items: center;
  font-size: 0.72em; font-weight: 700; color: #3a2560;
}
.avatars span:first-child { margin-left: 0; }
.a1 { background: var(--grad-2); }
.a2 { background: var(--grad-3); }
.a3 { background: var(--grad-4); }
.a4 { background: var(--lav-1); }

/* mini vote bars inside the mock */
.mock-vote { display: flex; flex-direction: column; gap: 0.25em; margin-top: 0.5em; }
.mock-vote .row { display: flex; justify-content: space-between; font-size: 0.82em; font-weight: 600; }
.mock-bar { height: 0.5em; border-radius: 999px; background: var(--pill-bg); overflow: hidden; }
.mock-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--bar-fill); }

/* bottom nav + FAB */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5em 0.5em calc(0.55em + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--phone-chrome);
  backdrop-filter: blur(4px);
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-muted);
}
.bottom-nav .nav-item svg { width: 1.6em; height: 1.6em; display: block; }
.bottom-nav .nav-item.active { color: var(--accent-ink); }
.phone .fab {
  position: absolute;
  right: 1em; bottom: 3.4em;
  width: 2.8em; height: 2.8em;
  border-radius: 1em;
  border: none;
  display: grid; place-items: center;
  background: var(--amethyst);
  color: #fff;
  box-shadow: var(--shadow-md);
  z-index: 3;
  cursor: default;
}
:root[data-theme="dark"] .phone .fab { background: var(--lav-2); color: #23103F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone .fab { background: var(--lav-2); color: #23103F; }
}
.phone .fab svg { width: 1.4em; height: 1.4em; }

/* ------------------------------------------------------ how it works ------- */

.how { background: var(--surface-2); border-block: 1px solid var(--border); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
  counter-reset: step;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.how-step .num {
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--accent-ink);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.how-step .num::before { content: counter(step); }
.how-step h3 { font-size: 1.25rem; }
.how-step p { color: var(--text-muted); margin-bottom: 0; font-size: 1rem; }

/* --------------------------------------------------------------- sections -- */

section { padding-block: clamp(56px, 9vw, 104px); }

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(36px, 6vw, 60px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 20ch; }
.section-head.center h2 { margin-inline: auto; }
.section-head p { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 0; }
.section-head.center p { margin-inline: auto; }

/* alternating feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 8vw, 92px); }
/* DOM order already alternates: non-reverse = copy,media (copy left);
   reverse = media,copy (media left). No desktop reordering needed. */

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface-3);
  color: var(--accent-ink);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.feature h3 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); max-width: 18ch; }
.feature p { color: var(--text-muted); font-size: 1.05rem; }
.feature ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.feature li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.99rem;
}
.feature li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent-ink); }

/* generic illustrative card used in feature media */
.showcase {
  --mock-scale: 1;
  font-size: calc(14px * var(--mock-scale));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--grad-3) 20%, transparent),
    color-mix(in srgb, var(--grad-4) 18%, transparent));
  opacity: 0.6;
}
.showcase > * { position: relative; z-index: 1; }
.showcase-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15em;
  margin-bottom: 1em;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1em 1.25em;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile + .tile { margin-top: 0.85em; }
.tile .label { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.tile .label b { font-weight: 600; font-size: 1em; }
.tile .label small { color: var(--text-muted); font-size: 0.86em; }
.tile .mini-pill { font-size: 0.8em; }
/* pills must never break mid-phrase */
.tile .pill, .tile .mini-pill { white-space: nowrap; flex-shrink: 0; }

/* vote bar (in-page showcase) */
.vote { margin-top: 0.7em; }
.vote + .vote { margin-top: 1em; }
.vote .row { display: flex; justify-content: space-between; font-size: 0.95em; margin-bottom: 0.4em; }
.vote .row b { font-weight: 600; }
.bar {
  height: 0.85em;
  border-radius: 999px;
  background: var(--pill-bg);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--bar-fill);
}

.settle-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.5em;
  padding-top: 1em;
  border-top: 1px dashed var(--border-strong);
}
.settle-total .amt { font-family: var(--font-display); font-size: 1.5em; font-weight: 600; }

/* memory grid (theme-aware, no fixed light pastels) */
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.memory-grid .cell { aspect-ratio: 1; border-radius: 14px; }
.memory-grid .cell:nth-child(1) { background: linear-gradient(150deg, var(--mem-a), var(--mem-b)); }
.memory-grid .cell:nth-child(2) { background: linear-gradient(150deg, var(--mem-b), var(--mem-c)); }
.memory-grid .cell:nth-child(3) { background: linear-gradient(150deg, var(--mem-c), var(--mem-d)); }
.memory-grid .cell:nth-child(4) { background: linear-gradient(150deg, var(--mem-d), var(--mem-a)); }
.memory-grid .cell:nth-child(5) { background: linear-gradient(150deg, var(--mem-a), var(--mem-c)); }
.memory-grid .cell:nth-child(6) { background: linear-gradient(150deg, var(--mem-b), var(--mem-d)); }

/* ------------------------------------------------------------- trust ------- */

.trust {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-card .feature-icon { margin-bottom: 16px; }
.trust-card h3 { font-size: 1.2rem; }
.trust-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.98rem; }

/* --------------------------------------------------------------- faq ------- */

.faq-list { max-width: 760px; margin: 12px auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  color: var(--accent-ink);
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- cta ------- */

.cta-band {
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-inner {
  background: var(--cta-grad);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) 24px;
  box-shadow: var(--shadow-md);
}
.cta-inner h2 { color: var(--cta-ink); font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 22ch; margin-inline: auto; }
.cta-inner p { color: var(--cta-ink-soft); max-width: 44ch; margin-inline: auto; margin-bottom: 1.4em; }
.cta-inner .waitlist { margin-inline: auto; }
.cta-inner .waitlist-input {
  background: var(--cta-field-bg);
  border-color: rgba(42, 24, 79, 0.22);
  color: var(--cta-ink);
}
.cta-inner .waitlist-input::placeholder { color: var(--cta-ink-soft); opacity: 0.85; }
:root[data-theme="dark"] .cta-inner .waitlist-input { border-color: rgba(245, 239, 230, 0.24); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-inner .waitlist-input { border-color: rgba(245, 239, 230, 0.24); color: var(--text); }
}
.cta-inner .waitlist-msg { color: var(--cta-ink-soft); }
.cta-inner .waitlist-msg[data-state="success"] { color: var(--cta-ink); }
.cta-note { margin-top: 18px; font-size: 0.92rem; color: var(--cta-ink-soft); }

/* -------------------------------------------------------------- footer ----- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
  background: var(--bg);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 34ch; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 12px; margin-bottom: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  padding-block: 10px; /* >=44px tap target */
  line-height: 1.2;
}
.footer-col a:hover { color: var(--link); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------------------------------------------------- legal (doc) pages ---- */

.doc {
  padding-block: clamp(48px, 8vw, 88px);
}
.doc .container { max-width: 960px; }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.doc-toc h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
  padding: 0; border: 0;
}
.doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.doc-toc li { margin: 0; }
.doc-toc a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 7px 4px;
  text-decoration: none;
  line-height: 1.3;
}
.doc-toc a:hover { color: var(--link); }
.doc-article h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 0.2em; }
.doc .updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.2em; }
.doc-article h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.doc-article h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 700; }
.doc p, .doc li { color: var(--text); }
.doc-article ul, .doc-article ol { padding-left: 1.3em; }
.doc-article li { margin-bottom: 0.5em; }
.doc-article a { text-decoration: underline; text-underline-offset: 2px; }
.doc .lead { font-size: 1.12rem; color: var(--text-muted); }
.doc .callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 1.6em 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

/* ============================ responsive ================================== */
/* Standardized breakpoints: 480 / 768 / 1024 / 1280 / 1536 */

/* Tablet: reduce hero mock scale, keep it inline beside copy */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
  .phone { --mock-scale: 0.9; }
  .feature { grid-template-columns: 1.1fr 0.9fr; }
  .how-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Below tablet: single column everywhere */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }   /* CTA lives in the slide-over */
  .nav-hamburger { display: inline-flex; }

  .eyebrow { letter-spacing: 0.10em; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero .subline { margin-inline: auto; }
  .hero-actions { align-items: center; }
  .hero-visual { margin-top: 8px; }
  .phone { --mock-scale: 1; }
  .waitlist { margin-inline: auto; }
  .waitlist-row { justify-content: center; }

  .feature { grid-template-columns: 1fr; gap: 28px; }
  /* copy precedes media on mobile in every row (reverse rows have media first in DOM) */
  .feature.reverse .feature-copy { order: -1; }

  .trust-grid { grid-template-columns: 1fr; }

  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; }
}

/* Landscape phones: don't let the mock balloon to 78vw */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; text-align: left; }
  .hero h1, .hero .subline, .waitlist { margin-inline: 0; }
  .hero-actions { align-items: flex-start; }
  .phone { width: min(230px, 34vw); --mock-scale: 0.82; }
}

/* Small phones */
@media (max-width: 480px) {
  body { font-size: 16px; }
  p, li { hyphens: auto; -webkit-hyphens: auto; }
  .waitlist-row { flex-direction: column; }
  /* in a column flex row, reset the horizontal flex-basis so it isn't read as height */
  .waitlist-input { flex: 0 0 auto; width: 100%; }
  .waitlist .btn { width: 100%; }
  .btn { width: 100%; }
  .nav-cta { gap: 8px; }
  .footer-cols { gap: 32px; }
}

/* Wide desktop: roomier container */
@media (min-width: 1280px) {
  .feature { gap: 96px; }
}
@media (min-width: 1536px) {
  :root { --maxw: 1280px; }
}

/* ---------------------------------------------------- accessibility prefs -- */

@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--text);
    --border: var(--border-strong);
  }
  .btn-ghost { border-color: var(--text); }
  .nav-links a { color: var(--text); }
  .cta-inner p, .cta-note { color: var(--cta-ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
