:root {
  --night: #0e0f12;
  --night-2: #16181d;
  --night-3: #1f2229;
  --ink: #f4f1ea;
  --muted: #b5b0a6;
  --amber: #f2a541;
  --amber-dark: #d98a22;
  --line: #2c2f37;
  --bubble-shop: #2a2d35;
  --bubble-me: #f2a541;
  --radius: 16px;
  --max: 1120px;
  font-size: 17px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.08; margin: 0 0 0.45em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--amber); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--amber); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--amber); margin-bottom: 14px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--night-2); color: var(--ink); padding: 8px 12px; z-index: 50; }

header.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { font-size: 1.15rem; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.logo span { color: var(--amber); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #1a1206;
  text-decoration: none; font-weight: 750;
  padding: 14px 26px; border-radius: 999px; min-height: 50px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn.small { padding: 9px 18px; min-height: 44px; font-size: 0.92rem; white-space: nowrap; }
.link { color: var(--ink); font-weight: 600; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---------- Scroll film ---------- */
.film { position: relative; height: 520vh; }
.no-js .film { height: auto; }
.no-js .film .film-stage { position: relative; }
.no-js .film .beats, .no-js .scroll-hint { display: none; }
.no-js .story { display: block; }
.film-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.film-stage video, .film-stage .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.film-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,18,0.55) 0%, rgba(14,15,18,0.15) 40%, rgba(14,15,18,0.85) 100%);
}
.beats { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; }
.beat {
  position: absolute; left: 0; right: 0; bottom: 12vh;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.beat.on { opacity: 1; transform: none; }
.beat h1, .beat h2 { max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.beat p { max-width: 46ch; color: #e6e1d8; font-size: 1.15rem; }
.beat .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 18px; }
.scroll-hint { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 2; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.beat .phone { position: absolute; right: 22px; bottom: 0; }

/* Phones and reduced motion: no scrubbing, stacked story */
.film.static { height: auto; }
.film.static .film-stage { position: relative; height: 78vh; min-height: 520px; }
.film.static .beats { display: none; }
.film.static .scroll-hint { display: none; }
.story { display: none; }
.film.static + .story { display: block; }
.story { padding: 48px 0 8px; }
.story .step { padding: 22px 0; border-bottom: 1px solid var(--line); }
.story .step:last-child { border-bottom: 0; }
.story .num { color: var(--amber); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; }
.hero-static { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8vh; }
.js .film:not(.static) .hero-static { display: none; }

/* ---------- Phone mockup ---------- */
.phone {
  width: 290px; background: #050506; border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.phone .screen { background: #101114; border-radius: 30px; padding: 18px 14px 20px; min-height: 330px; }
.phone .who { text-align: center; font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.phone .who strong { display: block; color: var(--ink); font-size: 0.9rem; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 0.86rem; line-height: 1.4; margin-bottom: 9px; }
.bubble.shop { background: var(--bubble-shop); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--bubble-me); color: #1a1206; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.note { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 0.78rem; max-width: 100%; }
.example { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Sections ---------- */
section.block { padding: 110px 0; }
section.block.tight { padding: 80px 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

.grid { display: grid; gap: 22px; }
@media (min-width: 820px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
.split { align-items: center; }

.card {
  background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card .tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--amber); margin-bottom: 8px; letter-spacing: 0.04em; }
.card p:last-child { margin-bottom: 0; }

.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); filter: brightness(0.82) saturate(0.95); }

ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night-3); color: var(--amber); font-weight: 800; font-size: 0.9rem;
}

.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card.feature { border: 1px solid var(--amber); background: linear-gradient(180deg, #221b12 0%, var(--night-2) 60%); }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin-bottom: 6px; }

.founding {
  margin-top: 26px; padding: 24px 28px; border-radius: var(--radius);
  background: #1d160c; border: 1px solid #5a3e17;
}
.founding strong { color: var(--amber); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; background: var(--night-2); }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--night-3); font-size: 0.9rem; }
table.compare td:nth-child(2) { color: var(--ink); font-weight: 600; }
table.compare td:nth-child(3) { color: var(--muted); }

details { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; min-height: 28px; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { text-align: center; padding: 120px 0; background: radial-gradient(ellipse at center, #2a1d0b 0%, var(--night) 70%); }
.cta-band .lead { margin: 0 auto 28px; }

footer { padding: 40px 0; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
footer a { color: var(--muted); display: inline-block; min-height: 24px; }

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

/* Legal pages */
.legal { max-width: 760px; padding: 120px 22px 72px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: #d9d4ca; }
.legal .updated { color: var(--muted); }

@media (max-width: 820px) {
  .beat .phone { display: none; }
  section.block { padding: 80px 0; }
}
@media (max-width: 420px) {
  .logo { font-size: 1.02rem; }
  .btn.small { padding: 9px 14px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .beat { transition: none; opacity: 1; transform: none; }
}
