/* PR launch site — tokens mirror the app theme (buildTheme('dark','none')) */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_500Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter_700Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #000;
  --bg-subtle: #0e0e0e;
  --bg-card: #161616;
  --bg-sheet: #1c1c1e;
  --text: #fff;
  --muted: #888;
  --dim: #555;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --inverted: #fff;
  --on-inverted: #000;
  --nav-bg: rgba(0, 0, 0, 0.65);
  --phone-bg: #050505;
  --phone-border: rgba(255, 255, 255, 0.14);
  --phone-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9);
  --glow: rgba(255, 255, 255, 0.07);
  --radius-card: 28px;
  --content: 1120px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--text); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  max-width: 34em;
}

.body { color: var(--muted); max-width: 32em; }
.body strong { color: var(--text); font-weight: 600; }
.body em { color: var(--text); font-style: normal; font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow svg { width: 12px; height: 12px; flex: none; }
.eyebrow.center { display: flex; justify-content: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--inverted); color: var(--on-inverted); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn:focus-visible,
.beta-cta:focus-visible,
.footer-links a:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.35s ease;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }

.nav-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { border-radius: 22%; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; margin-right: 12px; }
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-beta { gap: 9px; }
.beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
  flex: none;
}

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

.hero {
  padding: clamp(120px, 18vh, 180px) 24px 0;
  text-align: center;
  position: relative;
}

.hero-inner { max-width: 860px; margin: 0 auto; }

.greeting {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero .sub { margin: 26px auto 0; }

.cta-note {
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  margin-top: 18px;
}

/* ---------- TestFlight CTA ---------- */

.beta-actions {
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 38px auto 0;
}

.beta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.beta-cta {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--inverted);
  color: var(--on-inverted);
  border: 1px solid var(--inverted);
  border-radius: 22px;
  padding: 12px 18px 12px 12px;
  text-align: left;
  box-shadow: 0 18px 50px -24px rgba(255, 255, 255, 0.32);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.beta-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px -24px rgba(255, 255, 255, 0.4);
}
.beta-cta:active { transform: translateY(0) scale(0.99); }
.beta-cta img { width: 52px; height: 52px; border-radius: 13px; }
.beta-cta-copy { display: grid; gap: 2px; line-height: 1.2; }
.beta-cta-copy small {
  opacity: 0.58;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.beta-cta-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.beta-cta-arrow {
  font-size: 22px;
  line-height: 1;
  opacity: 0.62;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.beta-cta:hover .beta-cta-arrow { opacity: 1; transform: translate(2px, -2px); }
.beta-actions .cta-note { margin-top: 15px; }
.beta-actions-final { margin-top: 34px; }

@media (prefers-reduced-motion: no-preference) {
  .beta-kicker .beta-dot { animation: beta-pulse 2.4s ease-out infinite; }
}
@keyframes beta-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14); }
  75% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); }
}

/* ---------- hero phone fan ---------- */

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.hero-phones::before {
  content: '';
  position: absolute;
  inset: -8% -20% 0;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, var(--glow), transparent 70%);
  pointer-events: none;
}

.phone {
  position: relative;
  background: var(--phone-bg);
  border: 1px solid var(--phone-border);
  border-radius: 56px;
  padding: 11px;
  box-shadow: var(--phone-shadow);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.phone img { border-radius: 46px; width: 100%; height: auto; }

.phone-center { width: min(320px, 78vw); z-index: 2; }
.phone-side { width: 264px; z-index: 1; }
.phone-left { transform: rotate(-7deg) translateY(48px); margin-right: -44px; }
.phone-right { transform: rotate(7deg) translateY(48px); margin-left: -44px; }

/* ---------- features ---------- */

.features {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0;
  scroll-margin-top: 80px;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }

.feature-copy h2 { margin: 16px 0 18px; }

.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(320px, 80vw); }

.feature-media-live {
  flex-direction: column;
  align-items: center;
}

.up-next-demo {
  width: min(430px, 100%);
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 90px -54px rgba(255, 255, 255, 0.3);
}

.up-next-demo-preview {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--text);
  text-align: left;
}

.up-next-demo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
}

.up-next-demo-bolt {
  width: 11px;
  height: 14px;
  flex: none;
  background: var(--muted);
  clip-path: polygon(52% 0, 11% 57%, 44% 57%, 30% 100%, 89% 40%, 57% 40%);
}

.up-next-demo-name {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 28px;
}

.up-next-demo-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.up-next-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.up-next-demo-chips span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.up-next-demo-start {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--inverted);
  color: var(--on-inverted);
  font-size: 16px;
  font-weight: 600;
}

.chips { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.stat-strip {
  display: flex;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  border-radius: 20px;
  margin-top: 24px;
  overflow: hidden;
}
.stat-strip > div {
  flex: 1;
  text-align: center;
  padding: 16px 6px;
}
.stat-strip > div + div { border-left: 1px solid var(--border-soft); }
.stat-strip b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.ticks { list-style: none; margin-top: 24px; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15.5px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

/* ---------- light mode showcase ---------- */

.lightmode {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px;
  text-align: center;
  scroll-margin-top: 80px;
}
.lightmode h2 { margin: 16px auto 20px; }
.lightmode .sub { margin: 0 auto; }

.mode-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(44px, 6vw, 64px);
  flex-wrap: wrap;
}
.mode-pair figure { margin: 0; }
.mode-pair .phone { width: min(300px, 80vw); }

/* Static app-theme comparison in classic black bezels. */
.mode-pair .phone {
  background: #050505;
  border-color: rgba(255, 255, 255, 0.14);
}
.mode-pair figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- philosophy ---------- */

.philosophy {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: clamp(80px, 11vw, 140px) 24px;
  margin-top: clamp(40px, 6vw, 80px);
}

.philosophy-inner { max-width: var(--content); margin: 0 auto; }
.philosophy h2 { margin: 16px auto 20px; }
.philosophy .sub { margin: 0 auto; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(44px, 6vw, 72px);
}

.tile {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tile:hover { border-color: var(--border); transform: translateY(-3px); }
.tile h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.tile p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

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

.cta-final {
  text-align: center;
  padding: clamp(100px, 14vw, 170px) 24px;
}
.cta-mark { border-radius: 22%; margin: 0 auto 28px; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final .sub { margin: 0 auto 36px; }

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

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 24px;
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { border-radius: 22%; }
.footer-tag { color: var(--dim); font-weight: 500; font-size: 14px; margin-left: 6px; }
.footer-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--muted); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--dim); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .phone-side { width: 220px; }
  .phone-left { margin-right: -56px; }
  .phone-right { margin-left: -56px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }

  .phone { border-radius: 48px; padding: 9px; }
  .phone img { border-radius: 40px; }

  .hero-phones {
    width: calc(100% + 48px);
    height: clamp(430px, 132vw, 560px);
    margin-left: -24px;
    padding-bottom: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  }
  .hero-phones::before { inset: -8% 0 0; }
  .hero-phones .phone-center {
    width: min(68vw, 286px);
    flex: none;
  }
  .hero-phones .phone-side {
    display: block;
    position: absolute;
    top: 56px;
    left: 50%;
    width: min(48vw, 205px);
    margin: 0;
    opacity: 0.72;
    filter: brightness(0.72);
  }
  .hero-phones .phone-left {
    transform: translateX(-118%) rotate(-6deg);
  }
  .hero-phones .phone-right {
    transform: translateX(18%) rotate(6deg);
  }

  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: left;
  }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-media { order: 2; }

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

  .nav-beta .beta-dot { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.3rem, 11.5vw, 2.9rem); }
  .nav-inner { padding: 0 16px; }
  .nav-beta { padding-inline: 16px; }
  .beta-cta { min-height: 70px; border-radius: 20px; }
  .beta-cta img { width: 46px; height: 46px; border-radius: 12px; }
  .beta-cta-copy strong { font-size: 16.5px; }
  .tiles { grid-template-columns: 1fr; }
  .stat-strip b { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body, .btn, .beta-cta, .beta-cta-arrow, .tile, .nav, .phone { transition: none; }
}
