/* ═══════════════════════════════════════════════════════════
   YVO — black / white + liquid glass
═══════════════════════════════════════════════════════════ */

:root {
  --bg: #000000;
  --ink: #F5F5F5;
  --muted: #A1A1A1;
  --faint: #6B6B6B;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --glass-elev:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  --btn-bg: #F5F5F5;
  --btn-fg: #0A0A0A;
  --device-bezel: #1C1C1E;
  --device-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 16px 32px -20px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  --accent: #35BDC7;

  --page-inset: clamp(20px, 5vw, 72px);
  --max-w: 1120px;
  --nav-h: 64px;
  --radius: 22px;
  --ease: cubic-bezier(0.32, 1.1, 0.5, 1);
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --device-screen-w: 402;
  --device-screen-h: 874;
  --hero-dot: #FFFFFF;
  --hero-link: rgba(53, 189, 199, 0.55);
}

[data-theme="light"] {
  /* Soft field so frosted glass can read against the page */
  --bg: #EDEEF1;
  --ink: #0A0A0A;
  --muted: #525252;
  --faint: #737373;
  --line: rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-border: rgba(0, 0, 0, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-elev:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.10),
    0 28px 56px -24px rgba(0, 0, 0, 0.16);
  --btn-bg: #0A0A0A;
  --btn-fg: #FFFFFF;
  --device-bezel: #0B0B0D;
  --device-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.45),
    0 16px 40px -16px rgba(0, 0, 0, 0.30),
    inset 0 0 0 2px rgba(255, 255, 255, 0.07);
  --accent: #20808D;
  --hero-dot: #1A1A1A;
  --hero-link: rgba(32, 128, 141, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background: var(--bg);
  color-scheme: dark;
  /* Keep anchored sections clear of the fixed floating nav */
  scroll-padding-top: calc(var(--nav-h) + 36px);
}
html[data-theme="light"] { color-scheme: light; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--page-inset);
}

/* ── Liquid glass ───────────────────────────────────────── */
.liquid-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.35),
    var(--glass-elev);
}
[data-theme="light"] .liquid-glass {
  /* Extra edge definition on light surfaces */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%),
    var(--glass);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    var(--glass-elev);
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 20px;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.btn-ink:hover { transform: scale(1.03); }
.btn-ink:active,
.btn-ink.is-pressed { transform: scale(0.96); }
.btn-ink:disabled { opacity: 0.6; cursor: wait; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px var(--page-inset) 0;
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-w);
  margin-inline: auto;
  height: var(--nav-h);
  padding: 8px 12px 8px 20px;
  border-radius: 999px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 32px; height: 32px; border-radius: 9px; }
.nav-wordmark {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links { display: none; gap: 22px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-cta--desktop { display: none; }

.theme-toggle {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-icon { position: absolute; transition: opacity 0.25s, transform 0.25s; }
.theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-icon-moon { opacity: 1; }
[data-theme="light"] .theme-icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.nav-hamburger {
  width: 40px; height: 40px;
  border: none; background: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; color: var(--ink);
  position: relative;
  z-index: 3;
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.nav-menu.is-open { opacity: 1; pointer-events: all; }
.nav-menu-link {
  font-family: var(--font-body);
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.nav-menu-cta { margin-top: 8px; height: 52px; padding-inline: 28px; font-size: 16px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta--desktop { display: inline-flex; }
  .nav-hamburger { display: none; }
}

/* ── Device — bezel/radius from --device-w (set at each call site) ─ */
.device {
  --bezel: calc(var(--device-w) * 0.022);
  --frame-r: calc(var(--device-w) * 0.138);
  --screen-r: calc(var(--device-w) * 0.116);
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--device-w);
  max-width: 100%;
  aspect-ratio: var(--device-screen-w) / var(--device-screen-h);
  border: var(--bezel) solid var(--device-bezel);
  border-radius: var(--frame-r);
  background: #000;
  overflow: hidden;
  box-shadow: var(--device-shadow);
}
.device img,
.device .app-screenshot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--screen-r);
}
.app-screenshot { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(72px, 9vh, 120px)) 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  /* Wide horizontally — only soft fade at top/bottom edges */
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 78%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 6%, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
[data-theme="light"] .hero-dots {
  opacity: 0.72;
}

.hero-stage {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: min(640px, calc(100% - 2 * var(--page-inset)));
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: rise 0.7s var(--ease) both;
}
.hero-brand-title {
  margin: 0;
  line-height: 0;
}
.hero-brand-icon {
  display: block;
  width: clamp(100px, 20vw, 160px);
  height: auto;
  border-radius: 22.5%;
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .hero-brand-icon {
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  animation: rise 0.7s var(--ease) 80ms both;
}
.hero-line .hero-word-roll,
.hero-line .hero-word-text,
.hero-line .hero-word-measure {
  font-family: var(--font-display);
  font-style: italic;
}

.hero-word-roll {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  transition: width 0.7s ease-in-out;
}
.hero-word-measure {
  position: absolute; visibility: hidden; pointer-events: none;
  white-space: nowrap; height: 0; overflow: hidden; font-style: italic;
}
.hero-word-text { display: inline-block; font-style: italic; }
.hero-word-letter {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  animation: letterIn 0.5s ease forwards;
}
.hero-word-letter.is-static { opacity: 1; filter: none; animation: none; }
@keyframes letterIn { to { opacity: 1; filter: blur(0); } }

.hero-desc {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.7s var(--ease) 140ms both;
}

.hero-waitlist {
  width: min(480px, 100%);
  margin-top: 8px;
  animation: rise 0.7s var(--ease) 200ms both;
}
.hero-form {
  border-radius: 999px;
  padding: 4px;
}
/* Waitlist field needs more body than page glass — readable over the graph */
.hero-form.liquid-glass {
  background: rgba(18, 18, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 36px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .hero-form.liquid-glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 32px rgba(0, 0, 0, 0.12);
}
.hero-form-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
}
.hero-email-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding-inline: 16px;
  font-size: 14px;
  outline: none;
  grid-column: 1;
  grid-row: 1;
}
.hero-email-input::placeholder { color: var(--muted); }
.hero-form-btn.btn-ink {
  height: 40px;
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
}
.hero-waitlist-confirm { display: none; padding: 18px; text-align: center; }
[data-waitlist-joined] .hero-form { display: none; }
[data-waitlist-joined] .hero-waitlist-confirm { display: block; }

.waitlist-message {
  grid-column: 1 / -1;
  font-size: 13px;
  min-height: 0;
  padding: 0 12px;
  text-align: center;
}
.waitlist-message:empty { display: none; }
.waitlist-message.error { color: #E05A6A; }
.waitlist-confirm-title { font-weight: 600; margin-bottom: 4px; }
.waitlist-confirm-email { color: var(--muted); font-size: 14px; }
.waitlist-confirm-sub { color: var(--faint); font-size: 13px; margin-top: 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Three phones — overhead tilt, sides angled out */
.hero-phones {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin-top: clamp(12px, 2vh, 28px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 48%, transparent 100%);
}
.hero-phones-track {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(-48px, -5vw, -16px);
  width: 100%;
  height: 100%;
  margin-inline: auto;
  perspective: 560px;
  perspective-origin: 50% -8%;
  transform-style: preserve-3d;
  animation: rise 0.9s var(--ease) 280ms both;
}
.hero-phones .device {
  max-width: none;
  aspect-ratio: auto;
  height: calc(var(--device-w) * (var(--device-screen-h) / var(--device-screen-w)) * 0.58);
  border-bottom: none;
  border-radius: var(--frame-r) var(--frame-r) 0 0;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-phones .device .app-screenshot {
  inset: 0 0 auto 0;
  width: 100%;
  height: calc(100% / 0.58);
  border-radius: var(--screen-r) var(--screen-r) 0 0;
  object-fit: cover;
  object-position: top center;
  transform: none;
}
.hero-phones .device--hero {
  --device-w: min(420px, 48vw);
  width: var(--device-w);
  z-index: 2;
  transform: rotateX(58deg) scale(1.06);
}
.hero-phones .device--side {
  --device-w: min(340px, 36vw);
  width: var(--device-w);
  z-index: 1;
  opacity: 0.92;
}
.hero-phones .device--side-left {
  transform: rotateX(58deg) rotateY(26deg) translate3d(8%, 4%, -80px) scale(0.94);
}
.hero-phones .device--side-right {
  transform: rotateX(58deg) rotateY(-26deg) translate3d(-8%, 4%, -80px) scale(0.94);
}

@media (max-width: 899px) {
  .hero {
    height: auto;
    min-height: auto;
    padding-bottom: 8px;
  }
  .hero-phones {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    margin-top: clamp(8px, 1.5vh, 20px);
    mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  }
  .hero-phones-track {
    gap: 0;
    perspective: 480px;
    perspective-origin: 50% -6%;
  }
  .hero-phones .device--side {
    display: none;
  }
  .hero-phones .device--hero {
    --device-w: min(300px, 58vw);
    height: calc(var(--device-w) * (var(--device-screen-h) / var(--device-screen-w)) * 0.58);
    transform: rotateX(52deg) scale(1.04);
  }
}

@media (max-width: 700px) {
  .hero-form { border-radius: 22px; }
  .hero-form-inner {
    grid-template-columns: 1fr;
  }
  .hero-email-input,
  .hero-form-btn.btn-ink {
    grid-column: 1;
  }
  .hero-email-input { grid-row: 1; }
  .hero-form-btn.btn-ink {
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
  .waitlist-message { grid-row: 3; }
}

/* ── Trust ──────────────────────────────────────────────── */
.trust {
  border-block: 1px solid var(--line);
  padding-block: 22px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.trust-asterisk {
  font-size: 0.85em;
  vertical-align: super;
  line-height: 0;
}
.footer-note {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding-inline: var(--page-inset);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--faint);
}
.footer-note .trust-asterisk {
  margin-right: 2px;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding-block: clamp(56px, 9vw, 96px);
}
.section[id] {
  scroll-margin-top: calc(var(--nav-h) + 36px);
}
.section-head {
  max-width: 560px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Bento — 1 → 2 → 3 columns ──────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* Tablet / iPad: two cards side by side */
@media (min-width: 600px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}
/* Desktop: three across */
@media (min-width: 980px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bento-card {
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 24px) clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  height: 100%;
}
.bento-copy {
  flex: 0 0 auto;
  min-height: 0;
}
@media (min-width: 600px) {
  .bento-copy {
    min-height: 6.5em; /* equal text block so phones line up */
  }
}
.bento-card h3 {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.bento-card p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  max-width: 32ch;
}
.bento-media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
  max-height: none;
  overflow: visible;
}
.bento-media .device {
  --device-w: min(168px, 48vw);
}
@media (min-width: 600px) {
  .bento-media .device {
    --device-w: min(156px, 28vw);
  }
}
@media (min-width: 980px) {
  .bento-media .device {
    --device-w: min(168px, 18vw);
  }
}

/* Markdown callout — beside 3rd card on iPad; below cards elsewhere */
.bento-aside {
  display: flex;
  padding: clamp(12px, 2vw, 20px) clamp(4px, 1vw, 12px);
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  grid-column: 1 / -1;
}
@media (min-width: 600px) and (max-width: 979px) {
  .bento-aside {
    grid-column: auto;
    min-height: 100%;
    padding: clamp(8px, 1.5vw, 16px) clamp(12px, 2vw, 20px);
  }
}
@media (max-width: 599px) {
  .bento-aside {
    text-align: center;
    align-items: center;
    padding-top: 8px;
  }
  .bento-aside-body {
    max-width: 32ch;
  }
}
@media (min-width: 980px) {
  .bento-aside {
    padding-block: clamp(16px, 2.5vw, 28px) 4px;
  }
}
.bento-aside-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.bento-aside-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 5.2vw, 52px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
}
.bento-aside-body {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 28ch;
}

/* ── Showcase carousel ──────────────────────────────────── */
.showcase-section {
  overflow: visible;
}
.carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  padding-bottom: 8px;
}
.carousel-track {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--page-inset);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  padding: 12px var(--page-inset) 28px;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  scroll-behavior: auto;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  --device-w: clamp(200px, 22vw, 260px);
  flex: 0 0 var(--device-w);
  scroll-snap-align: start;
  text-align: left;
  /* Keep gestures on the track, not stolen by images */
  -webkit-user-drag: none;
  user-select: none;
}
.carousel-item .device {
  width: var(--device-w);
  max-height: none;
  overflow: visible;
  pointer-events: none;
}
.carousel-item .app-screenshot {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.carousel-caption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}
.carousel-caption strong { color: var(--ink); font-weight: 600; }
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--glass-elev);
  transition: transform 0.25s var(--ease), opacity 0.2s;
  /* Don't cover the whole phone strip — only the button itself */
  pointer-events: auto;
}
.carousel-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-arrow--prev { left: max(8px, calc(var(--page-inset) - 8px)); }
.carousel-arrow--next { right: max(8px, calc(var(--page-inset) - 8px)); }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 8px;
  padding-inline: var(--page-inset);
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0;
  background: var(--line);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--ink); }

@media (max-width: 700px) {
  .carousel-arrow { display: none; }
  .carousel-item {
    --device-w: min(220px, 58vw);
  }
}
@media (min-width: 701px) {
  .carousel-dots { display: none; }
}

/* ── Privacy ────────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .privacy-grid { grid-template-columns: repeat(3, 1fr); }
}
.privacy-item {
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy-item strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.privacy-item span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 880px;
}
@media (min-width: 720px) {
  .pricing-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pricing-card {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 4vw, 36px);
  display: flex;
  flex-direction: column;
}
.pricing-card--premium {
  border-color: color-mix(in srgb, var(--ink) 28%, var(--glass-border));
}
.pricing-plan {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-body);
  font-size: clamp(44px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-period { color: var(--muted); font-size: 16px; }
.pricing-cancel { color: var(--faint); font-size: 14px; margin-bottom: 24px; }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pricing-features li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.pricing-waitlist {
  max-width: 520px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 0;
  border-top: none;
}
.pricing-waitlist-heading {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.bottom-form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bottom-email-input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding-inline: 16px;
  outline: none;
}
.bottom-email-input:focus { border-color: var(--ink); }
.bottom-form-btn { width: 100%; height: 48px; }
.pricing-waitlist-confirm { display: none; }
[data-waitlist-joined] .pricing-form { display: none; }
[data-waitlist-joined] .pricing-waitlist-confirm { display: block; }

/* ── Waitlist hero (half-screen CTA) ────────────────────── */
.waitlist-hero {
  position: relative;
  min-height: 50svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 10vh, 96px) var(--page-inset);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  /* Dark mode: deeper teal */
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(53, 189, 199, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    linear-gradient(155deg, #061518 0%, #0d3a42 42%, #0a2a30 100%);
  color: #fff;
}
[data-theme="light"] .waitlist-hero {
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 90%, rgba(15, 70, 78, 0.45) 0%, transparent 50%),
    linear-gradient(155deg, #176872 0%, #35BDC7 48%, #20808D 100%);
}
.waitlist-hero-inner {
  width: min(520px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.waitlist-hero-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #fff;
}
.waitlist-hero-sub {
  margin: 0 0 10px;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32ch;
}
.waitlist-hero-slot {
  width: 100%;
}
.waitlist-hero-form {
  width: 100%;
}
.waitlist-hero-row {
  width: 100%;
}
.waitlist-hero .bottom-email-input {
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #0A0A0A;
  border-radius: 999px;
  height: 52px;
  padding-inline: 20px;
}
.waitlist-hero .bottom-email-input::placeholder {
  color: rgba(10, 10, 10, 0.4);
}
.waitlist-hero .bottom-email-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-color: transparent;
}
.waitlist-hero .bottom-form-btn.btn-ink {
  background: #0A0A0A;
  color: #fff;
  height: 52px;
  border-radius: 999px;
  padding-inline: 22px;
}
.waitlist-hero .waitlist-message {
  color: #fff;
}
.waitlist-hero .waitlist-message.error {
  color: #FFE0E4;
}
.waitlist-hero .pricing-waitlist-confirm {
  color: #fff;
}
.waitlist-hero .waitlist-confirm-title {
  color: #fff;
}
.waitlist-hero .waitlist-confirm-email,
.waitlist-hero .waitlist-confirm-sub {
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 520px) {
  .waitlist-hero-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
  }
  .waitlist-hero .bottom-email-input {
    flex: 1 1 auto;
    background: transparent;
    height: 44px;
    border-radius: 999px;
  }
  .waitlist-hero .bottom-email-input:focus {
    outline: none;
  }
  .waitlist-hero .bottom-form-btn.btn-ink {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
  }
  .waitlist-hero .waitlist-message {
    flex: 1 1 100%;
  }
}

@media (min-width: 520px) {
  .bottom-form-row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .bottom-email-input { flex: 1 1 180px; }
  .bottom-form-btn { flex: 0 0 auto; width: auto; }
  .waitlist-message { flex: 1 1 100%; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--page-inset) 28px;
}
.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-app-icon { width: 40px; height: 40px; border-radius: 11px; }
.footer-wordmark {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.footer-tagline { color: var(--muted); font-size: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
}
.footer-link { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-link:hover { color: var(--ink); }
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  margin-top: 12px;
}

/* ── Reveals ────────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade,
  .reveal-stagger > *, .hero-brand, .hero-line, .hero-desc, .hero-waitlist, .hero-phones-track {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .hero-word-letter { animation: none !important; opacity: 1 !important; filter: none !important; }
  .hero-phones .device--hero {
    transform: rotateX(40deg) scale(1.04);
  }
  .hero-phones .device--side-left {
    transform: rotateX(40deg) rotateY(18deg) translate3d(6%, 2%, -40px) scale(0.94);
  }
  .hero-phones .device--side-right {
    transform: rotateX(40deg) rotateY(-18deg) translate3d(-6%, 2%, -40px) scale(0.94);
  }
}

/* ── Legal pages (shared) ───────────────────────────────── */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; padding-top: 108px; }
.nav-link.is-active { color: var(--ink); }
.nav-menu-link.is-active { color: var(--ink); }
.legal-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.legal-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h); gap: 16px;
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--page-inset);
}
.legal-nav-logo { display: flex; align-items: center; gap: 10px; }
.legal-nav-actions { display: flex; align-items: center; gap: 12px; }
.legal-nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 10px; border-radius: 10px;
}
.legal-nav-link.is-active,
.legal-nav-link:hover { color: var(--ink); }
.legal-main { flex: 1; padding-block: clamp(40px, 6vw, 72px); }
.legal-doc {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--page-inset);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.legal-doc h1 {
  font-family: var(--font-body);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.legal-doc h2 {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 36px 0 12px;
}
.legal-doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  background: var(--glass);
  padding: 1px 6px;
  border-radius: 6px;
}
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--page-inset);
}
.legal-footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--faint);
}
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer-links a { color: var(--muted); }
.legal-footer-links a:hover { color: var(--ink); }
.nav-wordmark { color: var(--ink); }

html.theme-ready .theme-icon {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
