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

:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #525252;
  --faint: #737373;
  --line: rgba(0, 0, 0, 0.10);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.12);
  --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.08),
    0 28px 56px -24px rgba(0, 0, 0, 0.12);
  --btn-bg: #0A0A0A;
  --btn-fg: #FFFFFF;
  --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-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --device-screen-w: 402;
  --device-screen-h: 874;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #525252;
  --faint: #737373;
  --line: rgba(0, 0, 0, 0.10);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.12);
  --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.08),
    0 28px 56px -24px rgba(0, 0, 0, 0.12);
  --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;
}

*, *::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: #FFFFFF;
  color-scheme: only light;
  /* Keep anchored sections clear of the fixed floating nav */
  scroll-padding-top: calc(var(--nav-h) + 36px);
}

body {
  font-family: var(--font-body);
  background: #FFFFFF;
  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;
  /* Transparent on purpose: Safari 26 tints its bars from a fixed element's
     own background. Glass lives on .nav-shell, which is not fixed. */
  background: transparent;
  padding: max(14px, env(safe-area-inset-top, 0px)) 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;
}

/* Always the light bar — Safari chrome and legal pages stay on this too */
.nav-shell.liquid-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.05),
    0 10px 36px rgba(0, 0, 0, 0.10),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.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;
  color: var(--ink);
}

.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; }

.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 {
  /* display:none while closed — opacity:0 still tints Safari's toolbars */
  display: none;
  position: fixed; inset: 0;
  background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  z-index: 1;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-menu.is-open { display: flex; }
.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: sticky;
  top: 0;
  z-index: 0;
  min-height: 100svh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(28px, 4vh, 48px)) var(--page-inset) clamp(40px, 6vh, 72px);
  /* No background-color here. Safari 26 samples sticky/fixed backgrounds
     and paints that color into the status bar and toolbar. The black fill
     lives on ::before, which Safari does not sample. */
  background-color: transparent;
  overflow: hidden;
  color: #f5f5f5;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Phone sits left in the photo — keep it visible on the left half */
  object-position: 38% 46%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.62) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: min(520px, 100%);
  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);
}

.hero-line {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
  color: #f5f5f5;
  animation: rise 0.7s var(--ease) 80ms both;
}
.hero-line-top,
.hero-line-bottom {
  display: block;
}
.hero-line .hero-word-roll,
.hero-line .hero-word-text,
.hero-line .hero-word-measure {
  font: inherit;
}

.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: inherit;
}
.hero-word-text { display: inline-block; font-style: inherit; }
.hero-word-letter {
  display: inline;
  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: rgba(245, 245, 245, 0.78);
  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 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Waitlist field needs more body than page glass — readable over the photo */
.hero-form-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
  border-radius: 999px;
  padding: 4px;
  background: rgba(18, 18, 20, 0.72);
  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);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hero-email-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: none;
  background: transparent;
  color: #f5f5f5;
  padding-inline: 16px;
  font-size: 14px;
  outline: none;
  grid-column: 1;
  grid-row: 1;
}
.hero-email-input::placeholder { color: rgba(245, 245, 245, 0.55); }
.hero-form-btn.btn-ink {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  margin: 0;
  background: #f5f5f5;
  color: #0a0a0a;
}
.hero-send-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.hero-form-btn.is-sending .hero-send-icon { visibility: hidden; }
.hero-form-btn.is-sending::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  border-right-color: transparent;
  animation: hero-send-spin 0.7s linear infinite;
}
@keyframes hero-send-spin { to { transform: rotate(360deg); } }
.hero-waitlist-confirm { display: none; padding: 18px; text-align: center; color: #f5f5f5; }
[data-waitlist-joined] .hero-form { display: none; }
[data-waitlist-joined] .hero-waitlist-confirm { display: block; }

.waitlist-message {
  font-size: 13px;
  min-height: 0;
  padding: 0 12px;
  text-align: center;
}
.waitlist-message:empty { display: none; }
.waitlist-message.error {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #ffd5da;
  background: rgba(255, 90, 110, 0.14);
  border: 1px solid rgba(255, 150, 165, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: waitlist-error-in 0.28s var(--ease) both;
}
.waitlist-message.error::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff8a97;
  box-shadow: 0 0 0 3px rgba(255, 138, 151, 0.18);
}
@keyframes waitlist-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.hero-form:has(.waitlist-message.error) .hero-form-inner {
  border-color: rgba(255, 150, 165, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 120, 140, 0.18),
    0 12px 36px rgba(0, 0, 0, 0.45);
}
.hero-email-input[aria-invalid="true"] {
  color: #fff;
}
.waitlist-confirm-title { font-weight: 600; margin-bottom: 4px; }
.waitlist-confirm-email { color: rgba(245, 245, 245, 0.72); 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; }
}

/* Desktop: full-bleed lifestyle photo, form on the right */
@media (min-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    overflow: hidden;
    z-index: 0;
  }
  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    /* Slide only — no scale/zoom as the viewport grows */
    transform: translateX(-10vw);
  }
  /* Soft black fades so hard edge cuts dissolve into the page */
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(90deg, #000 0%, transparent 12%, transparent 42%, rgba(0, 0, 0, 0.55) 68%, #000 100%),
      linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.55) 82%, #000 100%);
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0.28) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.4) 100%);
  }
  .hero-stage {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: min(400px, 34vw);
    margin: 0;
    margin-right: clamp(64px, 10vw, 180px);
    text-align: left;
    align-items: flex-start;
  }
  .hero-brand { align-items: flex-start; }
  .hero-desc { max-width: 36ch; }
  .hero-waitlist { width: 100%; }
  .hero-waitlist-confirm { text-align: left; padding-inline: 0; }
  .waitlist-message { text-align: left; padding-inline: 4px; }
  .waitlist-message.error {
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    padding-inline: 12px;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .hero-bg {
    transform: translateX(-8vw);
  }
  .hero-stage {
    width: min(280px, 32vw);
    margin-right: clamp(24px, 4vw, 48px);
  }
  .hero-brand-icon {
    width: clamp(88px, 12vw, 120px);
  }
  .hero-line {
    font-size: clamp(24px, 3.2vw, 32px);
  }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .hero-stage {
    width: min(360px, 32vw);
    margin-right: clamp(48px, 8vw, 120px);
  }
}

@media (min-width: 1400px) {
  .hero-media::after {
    background:
      linear-gradient(90deg, #000 0%, transparent 14%, transparent 36%, rgba(0, 0, 0, 0.5) 58%, #000 100%),
      linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.5) 78%, #000 100%);
  }
  .hero-stage {
    width: min(420px, 28vw);
    margin-right: clamp(100px, 12vw, 220px);
  }
}

@media (min-width: 1700px) {
  .hero-media::after {
    background:
      linear-gradient(90deg, #000 0%, transparent 16%, transparent 32%, rgba(0, 0, 0, 0.55) 55%, #000 100%),
      linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.55) 75%, #000 100%);
  }
  .hero-stage {
    margin-right: clamp(140px, 14vw, 280px);
  }
}

/* Mobile + tablet: phone below signup — image shifts down, black fills the top.
   100lvh + viewport-fit=cover lets the hero run under Safari's toolbars so
   those areas are the photo, not a separate black strip. */
@media (max-width: 899px) {
  .hero {
    height: 100lvh;
    min-height: 100lvh;
    justify-content: flex-start;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + clamp(56px, 10vh, 112px));
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(40px, 6vh, 72px));
    background-color: transparent;
  }
  .hero-media {
    /* Start earlier so the phone reads larger under the form */
    top: 42%;
    bottom: -6%;
    height: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 100%);
  }
  .hero-bg {
    object-fit: cover;
    object-position: 30% 12%;
    transform: scale(1.42);
    transform-origin: 32% 10%;
  }
  .hero::after {
    background:
      linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.4) 52%, rgba(0, 0, 0, 0.06) 68%, rgba(0, 0, 0, 0.45) 100%);
  }
  .hero-stage {
    gap: 14px;
  }
  .hero-waitlist {
    margin-top: 4px;
  }
}

/* Tablet: bigger phone, less empty black, centered under the form */
@media (min-width: 600px) and (max-width: 899px) {
  .hero {
    padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 96px));
  }
  .hero-stage {
    width: min(440px, 72vw);
    gap: 16px;
  }
  .hero-brand-icon {
    width: clamp(112px, 16vw, 140px);
  }
  .hero-media {
    top: 30%;
    bottom: -4%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
  }
  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 32% 22%;
    transform: scale(1.34);
    transform-origin: 34% 16%;
  }
  .hero::after {
    background:
      linear-gradient(180deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.45) 38%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0.4) 100%);
  }
}
.page-stack {
  position: relative;
  z-index: 2;
  /* Sit on the hero so the curve reads against the photo, not white-on-white */
  margin-top: -36px;
  background: #fff;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.18);
  will-change: transform;
}
@media (max-width: 719px) {
  /* Transformed ancestors break nested horizontal overflow on iOS */
  .page-stack {
    transform: none !important;
    margin-bottom: 0 !important;
    will-change: auto;
  }
}
[data-theme="light"] .page-stack {
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
}
.page-stack > main > :first-child {
  border-radius: 32px 32px 0 0;
  background: #fff;
}

/* ── Trust / references (above pricing) ─────────────────── */
.trust {
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 7vw, 72px);
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--page-inset);
}
.trust-head {
  margin-bottom: clamp(28px, 4vw, 40px);
}
.trust-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}
.trust-title-aside {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.trust-scroller {
  width: 100%;
}
.trust-lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.trust-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  min-height: 100%;
  padding: 22px 22px 20px;
  text-align: left;
  border-radius: 20px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}
.trust-quote-text {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
}
.trust-quote-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.trust-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #0C4A52;
  background: #C5EEF1;
}
.trust-avatar[data-tone="peach"] { color: #7A3812; background: #FBE0CC; }
.trust-avatar[data-tone="violet"] { color: #3D3180; background: #E4DFF8; }
.trust-avatar[data-tone="sage"] { color: #145236; background: #D4EFE2; }
.trust-avatar[data-tone="rose"] { color: #842848; background: #F8DCE4; }
.trust-avatar[data-tone="slate"] { color: #2E3C5C; background: #DEE4F0; }
.trust-quote-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--faint);
}
@media (max-width: 719px) {
  .trust {
    padding-block: clamp(40px, 8vw, 56px) 28px;
  }
  .trust-inner {
    padding-inline: 0;
  }
  .trust-head {
    padding-inline: var(--page-inset);
    margin-bottom: 22px;
  }
  /* Same gesture model as the feature carousel */
  .trust-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--page-inset);
    scrollbar-width: none;
    padding-inline: 0;
    padding-bottom: 8px;
    cursor: grab;
    --fade-left: 0px;
    --fade-right: 40px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 var(--fade-left),
      #000 calc(100% - var(--fade-right)),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 var(--fade-left),
      #000 calc(100% - var(--fade-right)),
      transparent 100%
    );
  }
  .trust-scroller.has-more { --fade-right: 48px; }
  .trust-scroller.is-scrolled { --fade-left: 24px; }
  .trust-scroller::-webkit-scrollbar { display: none; }
  .trust-scroller.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    scroll-behavior: auto;
  }
  .trust-lines {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    max-width: none;
    padding-inline: var(--page-inset);
  }
  .trust-quote {
    flex: 0 0 auto;
    width: min(300px, calc(100vw - 64px));
    min-width: min(300px, calc(100vw - 64px));
    max-width: min(300px, calc(100vw - 64px));
    scroll-snap-align: start;
    min-height: 168px;
  }
}
@media (min-width: 720px) {
  .trust-lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 16px;
  }
}
.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);
}

/* ── Features — title + app carousel ─────────────────────── */
.features {
  padding-bottom: clamp(28px, 4vw, 48px);
  background: #fff;
  color: var(--ink);
}
.features .section-title,
.features .privacy-rail-title,
.features .privacy-rail-list strong,
.features .carousel-caption strong {
  color: var(--ink);
}
.features .section-sub,
.features .privacy-rail-list span,
.features .carousel-caption {
  color: var(--muted);
}
.features .carousel-arrow {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}
.features .carousel-dot { background: var(--line); }
.features .carousel-dot.is-active { background: var(--ink); }

.feature-carousel .carousel-track {
  /* Room for the last phone to scroll fully into view */
  padding-inline-end: calc(100% - clamp(200px, 22vw, 260px));
}

.privacy-rail {
    display: grid;
  gap: 22px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-inline: clamp(4px, 1vw, 8px);
}
.privacy-rail-title {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.privacy-rail-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.privacy-rail-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.privacy-rail-list strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.privacy-rail-list span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 32ch;
}

@media (min-width: 860px) {
  .privacy-rail {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  .privacy-rail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 28px;
    padding-top: 8px;
  }
}

@media (max-width: 700px) {
  .feature-carousel .carousel-track {
    padding-inline-end: calc(100% - min(220px, 58vw));
  }
}

/* Navbar glass, with a little more white so cards read lighter */
.pricing-card.liquid-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.28),
    0 8px 32px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .pricing-card.liquid-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(1.85);
  -webkit-backdrop-filter: blur(40px) saturate(1.85);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 1),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.04),
    0 10px 36px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
/* ── Showcase carousel ──────────────────────────────────── */
.carousel {
  position: relative;
    width: 100%;
  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: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Horizontal swipe moves the phones; vertical swipe scrolls the page */
  touch-action: pan-x pan-y;
  cursor: grab;
  /* Room for a soft shadow without clipping it into a slab */
  padding: 8px 0 20px;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  --fade-left: 0px;
  --fade-right: 0px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-left),
    #000 calc(100% - var(--fade-right)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-left),
    #000 calc(100% - var(--fade-right)),
    transparent 100%
  );
}
.carousel-track.has-more { --fade-right: 88px; }
.carousel-track.is-scrolled { --fade-left: 48px; }
.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: hidden;
  pointer-events: none;
  /* Tight drop — the default device shadow gets sliced by the scroller */
  box-shadow:
    0 8px 18px -10px rgba(0, 0, 0, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.06);
}
.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: -6px; }
.carousel-arrow--next { right: -6px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.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; }
}

/* ── 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%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.waitlist-hero-row {
  width: 100%;
  transition: box-shadow 0.25s var(--ease);
}
.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.error {
  align-self: center;
  color: #fff;
  background: rgba(10, 10, 10, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.waitlist-hero .waitlist-message.error::before {
  background: #ffb4bc;
  box-shadow: 0 0 0 3px rgba(255, 180, 188, 0.22);
}
.waitlist-hero-form:has(.waitlist-message.error) .waitlist-hero-row {
  box-shadow: 0 0 0 2px rgba(255, 200, 210, 0.55);
}
.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;
  }
}

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

/* ── 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; }
  .page-stack { transform: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade,
  .reveal-stagger > *, .hero-brand, .hero-line, .hero-desc, .hero-waitlist {
    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-form-btn.is-sending::after { animation: none; }
}

/* ── 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: #f4f4f5;
  padding: 1px 6px;
  border-radius: 6px;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
}
.legal-doc th,
.legal-doc td {
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  background: #fff;
}
.legal-doc th {
  background: #f3f3f4;
  font-weight: 600;
}
.legal-doc tr + tr td,
.legal-doc tr + tr th {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.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;
}
