/* Lest marketing site.
   Dark, phone-first, real footage from the app in real device frames.
   Motion is transforms and opacity only, and everything still reads with
   JavaScript off or with reduced motion on. */

:root {
  --ink: #0a0a0a; --ink-2: #131313; --paper: #f7f7f8;
  --muted: #8a8a8e; --muted-dark: #6e6e73;
  --accent: #10b981; --accent-2: #34d399;
  --line: rgba(255,255,255,0.09);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; background: var(--ink); color: #fff;
  font: 17px/1.5 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 700; }
h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 1.0; }
h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; }
h3 { font-size: clamp(21px, 2.5vw, 28px); line-height: 1.18; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.68); max-width: 540px; margin-top: 24px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(26px); animation: rise .95s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* words of the headline climb out of a mask */
h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.16em; }
h1 .w > i { display: inline-block; font-style: normal; transform: translateY(115%); animation: climb 1s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes climb { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  h1 .w > i { transform: none !important; animation: none !important; }
  .scroll-hint { display: none; }
}

/* ---------- the phone ---------- */
.phone {
  position: relative; width: var(--pw); aspect-ratio: 620 / 1344;
  border-radius: calc(var(--pw) * 0.132); background: #000;
  padding: calc(var(--pw) * 0.019);
  box-shadow: 0 2px 0 rgba(255,255,255,0.10) inset,
              0 0 0 1.5px #232326,
              0 60px 120px -30px rgba(0,0,0,0.9),
              0 20px 50px -20px rgba(0,0,0,0.8);
}
.phone video, .phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--pw) * 0.114); background: #0c0c0c;
}
.phone .ch { position: absolute; inset: calc(var(--pw) * 0.019); width: auto; height: auto;
             opacity: 0; transition: opacity .55s ease; }
.phone .ch.on { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 56px; align-items: center; max-width: var(--max); margin: 0 auto;
  padding: clamp(60px, 9vh, 120px) 24px clamp(80px, 12vh, 150px);
  min-height: 86svh;
}
.glow {
  position: absolute; z-index: -1; right: 4%; top: 18%;
  width: min(760px, 88vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16,185,129,0.20), rgba(16,185,129,0.05) 55%, transparent 72%);
  filter: blur(18px);
}
.hero-copy { position: relative; z-index: 1; }
.cta { display: flex; align-items: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.soon { font-size: 14px; color: rgba(255,255,255,0.58); }
.store {
  display: inline-flex; align-items: center; gap: 11px; background: #fff; color: var(--ink);
  padding: 12px 20px 12px 15px; border-radius: 13px; line-height: 1.05;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255,255,255,0.4); }
.store small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .7; }
.store span { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.store.dark { background: var(--ink); color: #fff; }
.store.dark:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6); }
.hero-phone { display: flex; justify-content: center; will-change: transform; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: rgba(255,255,255,0.55); animation: dip 1.9s ease-in-out infinite; }
@keyframes dip { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(11px); opacity: .25; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); background: rgba(10,10,10,0.62); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: rgba(255,255,255,0.75); }
.nav nav a:hover { color: #fff; }
.pill { background: #fff; color: var(--ink) !important; padding: 8px 15px; border-radius: 999px; font-weight: 600; transition: transform .2s ease; }
.pill:hover { transform: translateY(-1px); }
@media (max-width: 680px) { .nav nav a:not(.pill) { display: none; } }

/* ---------- kinds: the phone pins, the chapters scroll ---------- */
.kinds { padding: clamp(80px, 12vh, 150px) 0 0; scroll-margin-top: 72px; }
.kinds-head { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.rule { height: 5px; width: 128px; border-radius: 3px; background: var(--accent); margin-top: 34px; transform-origin: left center; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; opacity: 1; }
.rule.in { transform: scaleX(1); }
.kinds-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kinds-phone { position: sticky; top: 13vh; height: 74vh; display: flex; align-items: center; justify-content: center; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s ease; }
.chapters li.active { opacity: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(16,185,129,.42); border-radius: 999px; padding: 5px 11px; margin-bottom: 20px; }
.chapters h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
.chapters p { color: rgba(255,255,255,0.66); font-size: 18px; max-width: 420px; }

/* ---------- payoff ---------- */
.payoff { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: var(--max); margin: clamp(60px, 10vh, 130px) auto 0; padding: clamp(80px, 12vh, 150px) 24px; }
.payoff-bg { position: absolute; z-index: -1; inset: -30% -10% -30% -10%; pointer-events: none;
  background: radial-gradient(45% 40% at 62% 50%, rgba(93,63,211,0.22), transparent 70%),
              radial-gradient(38% 34% at 22% 62%, rgba(16,185,129,0.14), transparent 70%);
  filter: blur(10px); will-change: transform; }
.payoff-phone { display: flex; justify-content: center; will-change: transform; }

/* ---------- how (the one light field) ---------- */
.how { scroll-margin-top: 72px; background: var(--paper); color: var(--ink); padding: clamp(80px, 12vh, 140px) 0; margin-top: clamp(40px, 6vh, 80px); }
.how h2 { max-width: 820px; }
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: #fff; border-radius: 26px; padding: 32px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 16px 34px -18px rgba(0,0,0,.18); }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--muted-dark); }

/* ---------- privacy ---------- */
.privacy { padding: clamp(80px, 12vh, 140px) 0; text-align: center; }
.privacy .lede { margin-inline: auto; }
.privacy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- offer ---------- */
.offer { background: var(--accent); color: var(--ink); padding: clamp(80px, 12vh, 140px) 0; text-align: center; }
.offer .eyebrow { color: rgba(0,0,0,.58); }
.offer .lede { color: rgba(0,0,0,.72); margin-inline: auto; }
.offer .store { margin-top: 34px; }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq h2 { margin-bottom: 36px; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 26px; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 640px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; font-size: 14px; color: rgba(255,255,255,0.7); }
.foot .small { margin-top: 26px; }

/* ---------- phone and tablet ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; text-align: center; min-height: 0; padding-top: 48px; }
  .hero .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .glow { right: -20%; top: 30%; }
  .scroll-hint { display: none; }

  /* No pinning on a phone. A sticky element in a one-column grid row has
     almost no room to travel, so it jams at the top with its backdrop over
     the text. Each chapter carries its own phone instead. */
  .kinds-inner { grid-template-columns: 1fr; gap: 0; }
  .kinds-phone { display: none; }
  .chapters li { display: block; min-height: 0; opacity: 1; text-align: center;
                 padding: 0 0 clamp(64px, 11vh, 104px); }
  .chapters li .phone { --pw: min(274px, 70vw) !important; margin: 0 auto 32px; }
  .chapters .phone .ch { position: static; inset: auto; width: 100%; height: 100%; opacity: 1; }
  .chapters p { margin-inline: auto; }
  .tag { align-self: center; }

  .payoff { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .payoff .lede { margin-inline: auto; }
  .payoff-copy { order: 1; }
  .payoff-phone { order: 2; }

  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero .phone { --pw: min(300px, 78vw) !important; }
  .payoff .phone { --pw: min(292px, 76vw) !important; }
}

/* ---------- legal pages reuse a simpler layout ---------- */
main.doc { max-width: 720px; margin: 0 auto; padding: 60px 24px 100px; }
main.doc h1 { font-size: 40px; }
main.doc h2 { font-size: 24px; margin: 36px 0 10px; }
main.doc p, main.doc li { color: rgba(255,255,255,0.8); margin-bottom: 12px; }
main.doc a { text-decoration: underline; text-underline-offset: 3px; }
main.doc .muted { color: var(--muted); }
