:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f3f3f3;
  --line: #e4e4e4;
  --muted: #6b6b6b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f5f5f5; --paper: #000000; --soft: #111111; --line: #222222; --muted: #9a9a9a; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.bar nav a { margin-left: 22px; text-decoration: none; color: var(--muted); font-size: 15px; }
.bar nav a:hover { color: var(--ink); }

section { padding: 96px 20px; max-width: 1120px; margin: 0 auto; }
h1 { font-size: clamp(52px, 9vw, 112px); line-height: .95; letter-spacing: -0.055em; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
h3 { font-size: 20px; letter-spacing: -0.02em; margin: 10px 0 6px; }
.eyebrow { font-size: 14px; color: var(--muted); letter-spacing: .02em; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 30em; margin-top: 22px; }
.sub { color: var(--muted); font-size: 19px; margin-top: 14px; }

/* Hero */
.hero {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 60px); padding-top: 56px;
}
.hero-text { position: relative; z-index: 2; }
.float { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.float span {
  position: absolute; bottom: -60px; font-size: 34px; opacity: 0;
  animation: rise linear forwards;
}
@keyframes rise {
  0% { transform: translateY(0) scale(.6) rotate(0); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-110vh) scale(1.15) rotate(var(--r, 20deg)); opacity: 0; }
}
.cta { display: flex; gap: 14px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 11px 20px 11px 16px; border-radius: 14px;
  font-weight: 700; font-size: 19px; line-height: 1;
}
.store small { display: block; font-weight: 500; font-size: 11px; margin-bottom: 3px; opacity: .8; }
.age { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--muted); }

/* Phone */
.phone {
  position: relative; z-index: 2; justify-self: center;
  height: min(620px, 76vh); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 0 0 1px var(--line);
  transform: rotate(-4deg);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-10px); } }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.video {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #f6d365, #fda085 45%, #f093fb);
  transition: background 1s ease;
}
.vid-emoji { font-size: 110px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); transition: transform .5s; }
.card {
  position: absolute; left: 14px; right: 60px; bottom: 120px; color: #fff; display: flex; gap: 10px; align-items: center;
  font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.card small { opacity: .85; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #fff, #bbb); flex: none; border: 2px solid #fff; }
.dial {
  position: absolute; left: 50%; bottom: -120px; width: 260px; height: 260px; margin-left: -130px;
  border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.3);
  animation: spin 26s linear infinite;
}
.dial span { position: absolute; left: 50%; top: 50%; font-size: 24px; width: 32px; height: 32px; margin: -16px; text-align: center; line-height: 32px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pop { position: absolute; inset: 0; pointer-events: none; }
.pop span { position: absolute; left: 50%; bottom: 140px; font-size: 40px; animation: pop 1.6s ease-out forwards; }
@keyframes pop {
  0% { transform: translate(-50%, 0) scale(.3); opacity: 0; }
  20% { transform: translate(-50%, -20px) scale(1.25); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x, 0px)), -260px) scale(.9); opacity: 0; }
}

/* Reaction chips */
.reactions { text-align: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.chips li {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: 16px;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
  opacity: 0; transform: translateY(16px);
}
.chips li.in { opacity: 1; transform: none; transition: opacity .5s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.chips li:hover { transform: scale(1.08) rotate(-2deg); }
.chips li span { font-size: 24px; }

/* Steps / trust */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid article { background: var(--soft); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.grid p { color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 800;
}
.trust .grid article > span { font-size: 34px; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text p:not(.eyebrow) { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 28em; }
.dna, .scout { background: var(--soft); border: 1px solid var(--line); border-radius: 32px; padding: 30px; }
.dna-row { display: grid; grid-template-columns: 34px 1fr 70px; gap: 12px; align-items: center; margin: 14px 0; font-size: 15px; }
.dna-row span { font-size: 24px; }
.dna-row i { display: block; height: 12px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.dna-row i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--ink); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.dna.in .dna-row i::after { width: var(--w); }
.dna-row b { font-weight: 600; color: var(--muted); }
.rank { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; font-weight: 600; }
.rank b { width: 22px; color: var(--muted); }
.rank em { margin-left: auto; font-style: normal; color: var(--muted); }
.rank.me { background: var(--paper); border: 1px solid var(--line); }
.a1 { background: linear-gradient(135deg, #ffd1dc, #ff8fab); }
.a2 { background: linear-gradient(135deg, #c3f0ff, #72c6ff); }
.a3 { background: linear-gradient(135deg, #d9ffd1, #8be28b); }

/* Final */
.final { text-align: center; padding-bottom: 120px; }
.final p { color: var(--muted); font-size: 19px; margin: 16px 0 30px; }
.button { display: inline-block; background: var(--ink); color: var(--paper); padding: 16px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; }

footer {
  border-top: 1px solid var(--line); padding: 30px 20px calc(30px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  max-width: 1120px; margin: 0 auto; color: var(--muted); font-size: 14px;
}
footer nav a { margin-left: 18px; text-decoration: none; }
footer nav a:first-child { margin-left: 0; }
footer nav a:hover { color: var(--ink); }

/* Legal and support pages */
.page { max-width: 760px; padding-top: 64px; }
.page h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-size: clamp(34px, 6vw, 64px); margin-bottom: 32px; }
.page h2 { font-size: 22px; letter-spacing: -0.02em; margin: 34px 0 8px; }
.page p, .page li { color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.page ul { padding-left: 20px; }
.page .draft { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .hero { min-height: auto; text-align: center; padding-top: 40px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .phone { height: 500px; margin-top: 20px; }
  .feature.flip .feature-text { order: 0; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 64px 16px; }
  .bar nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chips li { opacity: 1; transform: none; }
  .dna-row i::after { width: var(--w); }
}
