/* Mirrors mobile/src/ui/theme — keep tokens in sync with the app. */
:root {
  color-scheme: dark;
  --ink: #0b0e16;
  --surface: #141925;
  --surface-raised: #1a2030;
  --fill: #202738;
  --label: #f5f7ff;
  --secondary: rgba(225, 229, 242, 0.68);
  --tertiary: rgba(225, 229, 242, 0.42);
  --separator: rgba(210, 218, 240, 0.1);
  --primary: #8492ff;
  --on-primary: #090b13;
  --success: #45d69a;
  --danger: #ff657a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-xxl: 28px;
  --shadow-raised: 0 6px 18px rgba(0, 0, 0, 0.18);
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--label);
  background:
    linear-gradient(160deg, rgba(132, 146, 255, 0.09), rgba(132, 146, 255, 0.02) 38%, transparent 70%),
    var(--ink);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: clip;
}

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: #a3adff; }

img { display: block; max-width: 100%; }

.wrap {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 22, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--separator);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--label);
  text-decoration: none;
}

.lockup:hover { color: var(--label); }

.lockup-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.lockup-mark img { width: 44px; height: 44px; transform: scale(1.3); }

.lockup-text { display: flex; flex-direction: column; line-height: 1; }

.lockup-eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lockup-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--label); }

/* ── Shared type & controls ─────────────────────────────── */

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-label {
  margin: 0 0 0.6rem;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: var(--secondary);
  font-size: 1.12rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.6rem;
  border-radius: var(--radius-lg);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease;
}

.button:active { transform: scale(0.97); }

.button-primary { background: var(--primary); color: var(--on-primary); }
.button-primary:hover { color: var(--on-primary); opacity: 0.92; }

.button-secondary {
  background: var(--fill);
  color: var(--label);
  border: 1px solid var(--separator);
}
.button-secondary:hover { color: var(--label); background: var(--surface-raised); }

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  font-size: 0.85rem;
}

.assurances li + li { margin-top: 0; }

.assurances li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--success);
  font-weight: 900;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 0 3.5rem;
}

.hero .pill { margin-bottom: 1.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.store-note {
  margin: 0.9rem 0 0;
  color: var(--tertiary);
  font-size: 0.85rem;
}

.hero-art {
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
}

.stack { position: relative; width: 190px; height: 324px; }

.video-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(210, 218, 240, 0.12);
  box-shadow: var(--shadow-overlay);
  overflow: hidden;
}

.video-card.left {
  background: linear-gradient(160deg, #3b2740, #151a26);
  transform: translate(-118px, 18px) rotate(-12deg) scale(0.86);
}

.video-card.right {
  background: linear-gradient(160deg, #1d3a38, #141925);
  transform: translate(118px, 18px) rotate(12deg) scale(0.86);
}

.video-card.front {
  background: linear-gradient(160deg, #2e3566, #151a2b);
  border-color: rgba(132, 146, 255, 0.45);
  animation: float 2.8s ease-in-out infinite alternate;
}

.feed-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(245, 247, 255, 0.5);
}

.feed-tabs strong { color: var(--label); font-weight: 800; }

.card-center { flex: 1; display: grid; place-items: center; }

.mystery {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: rgba(132, 146, 255, 0.18);
  font-size: 42px;
  font-weight: 900;
}

.play-glyph { color: rgba(245, 247, 255, 0.28); font-size: 34px; }

.card-footer { display: flex; align-items: flex-end; gap: 10px; }

.caption-lines { flex: 1; display: grid; gap: 6px; }

.caption-lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(245, 247, 255, 0.22);
}

.caption-lines span:first-child { width: 55%; height: 7px; background: rgba(245, 247, 255, 0.4); }
.caption-lines span:nth-child(2) { width: 85%; }
.caption-lines span:nth-child(3) { width: 60%; }

.likes { display: grid; justify-items: center; font-size: 11px; font-weight: 700; }
.likes .heart { color: var(--danger); font-size: 22px; line-height: 1; }

.front .card-footer { padding-bottom: 30px; }

.front .pill {
  position: absolute;
  left: 50%;
  bottom: 12px;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.friend {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  animation: float 2.4s ease-in-out infinite alternate;
}

.friend .avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  font-size: 20px;
  font-weight: 800;
}

.quip {
  margin-left: 20px;
  padding: 6px 11px;
  border-radius: var(--radius-md);
  border-top-left-radius: 4px;
  border: 1px solid var(--separator);
  background: var(--surface-raised);
  color: var(--label);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.friend.m { top: 22px; left: 4%; color: #65b7ff; }
.friend.j { top: 70px; right: 6%; color: #f2b86b; animation-delay: -0.6s; }
.friend.j .avatar { width: 46px; height: 46px; font-size: 18px; }
.friend.c { bottom: 40px; left: 10%; color: #45d69a; animation-delay: -1.2s; }
.friend.a { bottom: 64px; right: 12%; color: #ff8fb1; animation-delay: -0.3s; }
.friend.a .avatar { width: 42px; height: 42px; font-size: 16px; }

@keyframes float {
  from { translate: 0 0; }
  to { translate: 0 -7px; }
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 4rem 0; scroll-margin-top: 48px; }

.section-head { max-width: 40rem; margin-bottom: 2.2rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li + li { margin-top: 0; }

.card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--separator);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(132, 146, 255, 0.16);
  color: var(--primary);
  font-weight: 900;
}

.card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--secondary); }

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 3rem;
}

.phone {
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 1.25rem;
  border-radius: 36px;
  border: 1px solid var(--separator);
  background: var(--ink);
  box-shadow: var(--shadow-overlay), 0 0 0 8px var(--surface);
}

.round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.round-head strong { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.round-head span { color: var(--secondary); font-size: 0.8rem; }

.timer {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-size: 1.3rem;
  font-weight: 800;
}

.mini-video {
  height: 150px;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #2e3566, #151a2b);
  display: grid;
  place-items: center;
  color: rgba(245, 247, 255, 0.35);
  font-size: 30px;
}

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--separator);
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.choice.selected {
  border-color: var(--primary);
  background: rgba(132, 146, 255, 0.13);
  color: var(--label);
}

.choice.dim { opacity: 0.45; }

.dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.dot.m { color: #65b7ff; }
.dot.j { color: #f2b86b; }
.dot.c { color: #45d69a; }
.dot.a { color: #ff8fb1; }

.check-list { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.check-list li + li { margin-top: 0; }

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(69, 214, 154, 0.14);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.check-list strong { display: block; color: var(--label); }
.check-list span { color: var(--secondary); }

.plus {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-xxl);
  border: 1px solid rgba(132, 146, 255, 0.28);
  background:
    linear-gradient(140deg, rgba(132, 146, 255, 0.14), rgba(132, 146, 255, 0.02) 60%),
    var(--surface);
}

.plus .pill { margin-bottom: 1rem; }
.plus .check-list { margin: 0; }

.support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.support h2 { margin: 0 0 0.3rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.support p { margin: 0; color: var(--secondary); }
.support-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.support-links .button { min-height: 44px; padding: 0 1.1rem; font-size: 15px; }

/* ── Legal pages ────────────────────────────────────────── */

.legal-main { width: min(100% - 2.5rem, 780px); margin-inline: auto; padding: 3.5rem 0 4.5rem; }

.legal-main .display { font-size: clamp(2.6rem, 7vw, 4rem); }

.updated {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 146, 255, 0.35);
  background: rgba(132, 146, 255, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.legal {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border-radius: var(--radius-xxl);
  border: 1px solid var(--separator);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.legal h2 {
  margin: 2.5rem 0 0.65rem;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.5rem 0 0.45rem; font-size: 1rem; font-weight: 700; }
.legal p, .legal ul { margin: 0.65rem 0; color: var(--secondary); }
.legal ul { padding-left: 1.3rem; }
.legal li + li { margin-top: 0.45rem; }
.legal strong { color: var(--label); }

.callout {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(69, 214, 154, 0.3);
  background: rgba(69, 214, 154, 0.08);
  color: var(--label);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--separator); margin-top: 2rem; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.6rem 0 2.6rem;
  color: var(--tertiary);
  font-size: 0.82rem;
}

.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--secondary); text-decoration: none; }
.footer-links a:hover { color: var(--label); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero, .feature, .plus { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-actions, .hero .assurances { justify-content: center; }
  .hero-art { height: 400px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav .nav-optional { display: none; }
  .site-nav { gap: 1rem; }
  .hero-art { height: 380px; transform: scale(0.88); }
  .hero-actions .button { width: 100%; }
  .section { padding: 3rem 0; }
}

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