/* Landing page. Self-contained and always black. Scroll scenes are driven by landing.js. */

:root {
  color-scheme: dark;
  --bg: oklch(0.1 0.003 250);
  --card: oklch(0.155 0.004 250);
  --raised: oklch(0.21 0.005 250);
  --ink: oklch(0.97 0.002 250);
  --muted: oklch(0.7 0.008 250);
  --faint: oklch(0.55 0.008 250);
  --edge: oklch(0.97 0.002 250 / .08);
  --brand: oklch(0.94 0.22 118);
  --pop-lip: oklch(0.7 0.17 118);
  --ok: oklch(0.76 0.17 155);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --gut: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.banner { position: relative; z-index: 60; padding: 7px 16px; text-align: center; font-size: 13px; color: oklch(0.82 0.15 80); background: oklch(0.82 0.15 80 / .13); }
.banner.err { color: oklch(0.72 0.18 27); background: oklch(0.63 0.22 27 / .15); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border: 0; border-radius: 11px;
  background: var(--ink); color: var(--bg); font: 500 15px/1 var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .2s, background .2s;
}
.btn:hover { transform: scale(1.035); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-pop { background: var(--brand); color: oklch(0.15 0.01 120); font-weight: 600; box-shadow: 0 3px 0 var(--pop-lip); }
.btn-pop:hover { background: var(--brand); }
.btn-pl { background: oklch(0.97 0.002 250 / .12); color: var(--ink); box-shadow: 0 3px 0 oklch(0.97 0.002 250 / .07); }
.btn-pl:hover { background: oklch(0.97 0.002 250 / .18); }
.btn-pl:disabled { opacity: .55; }
.btn-quiet { background: oklch(0.97 0.002 250 / .1); color: var(--ink); }
.btn-quiet:hover { background: oklch(0.97 0.002 250 / .16); }

.nav { position: absolute; z-index: 40; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.025em; }
.logo-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.logo-mark::after { content: ''; width: 10px; height: 2px; border-radius: 2px; background: var(--bg); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:not(.btn) { transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* --- film -------------------------------------------------------------- */

.film { position: relative; height: 420vh; }
.film-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* A dark planet with a lit rim: the page's one light source. Drawn as one viewport-wide
   gradient rather than a giant blurred circle, so moving it stays cheap. */
.horizon-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; animation: rise 2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12%); } }
.horizon {
  --r: 130vmax; --glow: 420px;
  position: absolute; left: 0; right: 0; top: calc(74% - var(--glow)); height: calc(var(--glow) + 60vh); will-change: transform;
  background: radial-gradient(circle at 50% calc(var(--glow) + var(--r)),
    var(--bg) var(--r),
    oklch(0.98 0.1 118) calc(var(--r) + 1px),
    oklch(0.92 0.2 118 / .8) calc(var(--r) + 5px),
    oklch(0.8 0.2 125 / .42) calc(var(--r) + 34px),
    oklch(0.65 0.17 135 / .2) calc(var(--r) + 120px),
    oklch(0.55 0.13 145 / .08) calc(var(--r) + 250px),
    transparent calc(var(--r) + var(--glow)));
}
.film .horizon { transform: translateY(var(--hy, 0)); }

.frame { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gut); will-change: transform, opacity; }
.frame-a { justify-content: center; padding-bottom: 12vh; }
.frame h1 { font: 700 clamp(42px, 8.4vw, 136px)/.96 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.ln span { display: block; animation: line-up 1.3s var(--ease) both; }
.ln + .ln span { animation-delay: .1s; }
@keyframes line-up { from { transform: translateY(105%); } }
.lede { max-width: 560px; margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.frame-a .lede, .frame-a .ctas { animation: soft-in 1.2s .45s var(--ease) both; }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); } }
.ctas { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.frame-d { justify-content: center; opacity: 0; visibility: hidden; padding-bottom: 14vh; }
.frame-d h2 { font: 700 clamp(84px, 21vw, 330px)/.9 var(--display); letter-spacing: -.055em; text-transform: uppercase; color: var(--brand); }

.cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 1px; height: 44px; margin-left: -.5px; overflow: hidden; }
.cue i { display: block; width: 100%; height: 100%; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* --- specs ------------------------------------------------------------- */

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 20vh var(--gut) 24vh; max-width: 1500px; margin: 0 auto; }
.spec b { display: block; font: 700 clamp(56px, 7.4vw, 116px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.spec span { display: block; margin-top: 12px; max-width: 200px; font-size: 15px; color: var(--muted); }

/* --- steps ------------------------------------------------------------- */

.steps { position: relative; height: 340vh; }
.steps-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; max-width: 1400px; margin: 0 auto; padding: 0 var(--gut); }
.steps-copy { position: relative; height: 380px; }
.steps-tick { display: flex; gap: 6px; }
.steps-tick i { width: 28px; height: 3px; border-radius: 3px; background: var(--raised); transition: background .3s; }
.steps-tick i.on { background: var(--ink); }
.step { position: absolute; top: 44px; left: 0; right: 0; will-change: transform, opacity; }
.step h2 { font: 700 clamp(56px, 8.4vw, 128px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.step p { margin-top: 22px; max-width: 440px; font-size: 19px; color: var(--muted); }

.pile { position: relative; height: 420px; max-width: 480px; width: 100%; justify-self: center; }
.mock {
  position: absolute; inset: 0 0 auto; height: 380px; padding: 24px; border-radius: 26px; transform-origin: 50% 100%; will-change: transform, opacity;
  background: radial-gradient(90% 200px at 100% 0, oklch(0.94 0.22 118 / .07), transparent), var(--card);
  box-shadow: inset 0 0 0 1px var(--edge), 0 40px 90px oklch(0 0 0 / .6);
}
.mock-bar { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transform: scaleX(var(--w)); transform-origin: 0 50%; }
.mock-label { margin-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mock-title { margin: 6px 0 20px; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.mock-input { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border-radius: 14px; background: oklch(0.12 0.003 250); box-shadow: inset 0 0 0 1.5px var(--brand); }
.mock-input span { padding: 5px 12px; border-radius: 99px; background: var(--raised); font-size: 14.5px; font-weight: 500; }
.mock-btn { margin-top: 18px; height: 46px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; }
.mock-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 14.5px; opacity: .45; }
.mock-row.on { opacity: 1; }
.mock-row u { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }
.mock-row.on u { background: var(--brand); box-shadow: none; }
.mock-row em { font-style: normal; color: var(--brand); }
.mock-ring { display: grid; place-items: center; }
.ringbox { position: relative; width: 240px; height: 240px; }
.ringbox svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringbox circle { fill: none; stroke-width: 5; }
.rb { stroke: var(--raised); }
.rf { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ringbox div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ringbox b { font-size: 62px; line-height: 1; font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ringbox span { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* --- receipt ----------------------------------------------------------- */

.receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1400px; margin: 0 auto; padding: 18vh var(--gut); }
.receipt h2, .pricing h2, .faq h2 { font: 700 clamp(40px, 5.8vw, 88px)/1.02 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.receipt-copy p { margin-top: 22px; max-width: 460px; font-size: 19px; color: var(--muted); }
.slip { padding: 28px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), 0 40px 90px oklch(0 0 0 / .6); }
.slip-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.slip-title { margin: 6px 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.slip-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; }
.slip-row s {
  text-decoration: none; color: var(--muted); background: linear-gradient(var(--faint), var(--faint)) 0 56% / 0 1px no-repeat;
  transition: background-size .9s var(--ease) calc(.5s + var(--i) * .28s);
}
.slip.in .slip-row s { background-size: 100% 1px; }
.slip-row b { flex: none; color: var(--ok); font-weight: 500; font-size: 14px; opacity: 0; transition: opacity .4s calc(1.1s + var(--i) * .28s); }
.slip.in .slip-row b { opacity: 1; }

/* --- words ------------------------------------------------------------- */

.words { padding: 16vh var(--gut); max-width: 1400px; margin: 0 auto; }
.words p { font-size: clamp(34px, 5.4vw, 84px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.words span { opacity: .14; }

/* --- pricing ----------------------------------------------------------- */

.pricing { padding: 16vh var(--gut); max-width: 1400px; margin: 0 auto; }
.pricing .sub { margin-top: 16px; font-size: 19px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; align-items: stretch; }
.plans.plans-one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plan {
  display: flex; flex-direction: column; padding: 24px; border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--edge);
}
.plan-hot { background: linear-gradient(180deg, var(--card) 30%, oklch(0.38 0.1 120)); box-shadow: inset 0 0 0 1.5px var(--brand); }
.plan-big { background: linear-gradient(180deg, var(--card) 30%, oklch(0.32 0.11 250)); }
.plan-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.plan h3 { margin: 0; font: 700 24px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.save { padding: 3px 8px; border-radius: 6px; background: var(--brand); color: oklch(0.15 0.01 120); font-size: 12px; font-weight: 600; font-style: italic; transform: skewX(-6deg); }
.plan-tag { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 18px; font: 700 46px/1 var(--display); letter-spacing: -.04em; }
.plan-price small { font: 400 14px/1 var(--font); letter-spacing: 0; color: var(--muted); }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; }
.plan li { display: flex; gap: 9px; align-items: center; }
.plan li::before { content: ''; width: 12px; height: 7px; flex: none; margin-top: -3px; border: solid var(--brand); border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) scale(.8); }
.plan .btn { width: 100%; height: 46px; }

/* --- faq --------------------------------------------------------------- */

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; max-width: 1400px; margin: 0 auto; padding: 14vh var(--gut); }
.faq-list { display: grid; gap: 8px; align-content: start; }
.faq details { padding: 0 22px; border-radius: 18px; background: var(--card); }
.faq summary { padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-size: 20px; line-height: 1.2; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 20px; color: var(--muted); font-size: 16px; }

/* --- close ------------------------------------------------------------- */

.final { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.final .horizon { top: calc(66% - var(--glow)); }
.final-in { position: relative; z-index: 2; height: 66%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 0 var(--gut); text-align: center; }
.final h2 { font: 700 clamp(56px, 12vw, 196px)/.95 var(--display); letter-spacing: -.05em; text-transform: uppercase; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--gut) 36px; font-size: 13.5px; color: var(--faint); }
.foot nav { display: flex; gap: 22px; }
.foot nav a:hover { color: var(--ink); }
.foot .logo { color: var(--ink); font-size: 16px; }

/* --- reveal ------------------------------------------------------------ */

.rv { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* --- small screens ----------------------------------------------------- */

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .faq, .receipt { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; padding: 14vh var(--gut); }
  .steps-stick { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 20px; }
  .steps-copy { height: 216px; }
  .step { top: 20px; }
  .step h2 { font-size: 56px; }
  .step p { margin-top: 10px; font-size: 16px; }
  .pile { height: 350px; max-width: 360px; }
  .mock { height: 320px; padding: 20px; }
  .mock-title { font-size: 22px; margin-bottom: 14px; }
  .ringbox { width: 200px; height: 200px; }
  .ringbox b { font-size: 50px; }
}
@media (max-width: 620px) {
  .frame h1 { font-size: 11.6vw; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .ctas .btn { flex: 1; }
}

/* Reduced motion: no scroll film, everything simply laid out */
.still .film, .still .steps { height: auto; }
.still .film-stick { position: relative; height: auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 72px; padding: 120px 0 200px; }
.still .frame { position: relative; inset: auto; padding-bottom: 0; }
.still .frame-d { opacity: 1; visibility: visible; }
.still #dust, .still .cue, .still .pile, .still .steps-tick { display: none; }
.still .steps-stick { position: relative; height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 60px; padding-bottom: 60px; }
.still .steps-copy { height: auto; display: grid; gap: 48px; }
.still .step { position: static; }
.still .words span { opacity: 1; }
.still .rv { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
