/* remspeak.com home page. The page is one night, scrolled: dusk → night → dawn → morning. */

.home {
  --ink: var(--cream);
  --ink-soft: rgba(242, 230, 201, .7);
  --ink-faint: rgba(242, 230, 201, .14);
  --glass: rgba(29, 44, 47, .55);
  --line: rgba(242, 230, 201, .1);
  background: var(--night);
  color: var(--ink);
  overflow-x: clip;
}
.home ::selection { background: var(--lavender); color: var(--night); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--lavender); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: top .3s; }
.skip:focus { top: 12px; }

/* ── Sky ─────────────────────────────────────────── */
.sky-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home main, .site-footer { position: relative; z-index: 1; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lavender), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ── Type ────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 22px; font: 500 .74rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow.center { display: flex; justify-content: center; }
.spark { display: inline-block; width: .9em; height: .9em; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.home h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; margin: 0 0 20px; text-wrap: balance; }
.home h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 56ch; margin: 0 auto; text-wrap: pretty; }
.section-lead.left { margin: 0 0 28px; }
.home em { font-style: normal; color: var(--lavender); }

/* ── Motion primitives ───────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.25s var(--ease-out) calc(var(--d, 0s) + var(--wi, 0) * 55ms); }
.js [data-split].in .w > span { transform: none; }
.lit .lw { transition: opacity .35s linear, color .35s linear; opacity: .16; }
.lit .lw.on { opacity: 1; }
.no-motion .lit .lw { opacity: 1; }

/* ── Buttons on night ────────────────────────────── */
.home .btn { --primary: var(--lavender); --on-primary: var(--night); }
.btn-glow { box-shadow: 0 0 0 0 rgba(207, 203, 247, .0), 0 10px 40px -10px rgba(207, 203, 247, .55); overflow: hidden; }
.btn-glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 5.5s var(--ease-soft) 2.4s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-glow:hover { box-shadow: 0 0 0 6px rgba(207, 203, 247, .14), 0 18px 50px -10px rgba(207, 203, 247, .7); }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-soft); }

/* ── Top bar ─────────────────────────────────────── */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .5s, border-color .5s, transform .6s var(--ease-out); border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(22, 34, 36, .72); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); border-color: var(--line); }
.topbar.light { background: rgba(250, 246, 236, .8); border-color: rgba(22, 34, 36, .08); color: var(--night); }
.topbar.light .btn { --primary: var(--night); --on-primary: var(--cream); }
.topbar.hide { transform: translateY(-100%); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.topbar-logo { display: block; line-height: 0; margin-right: auto; }
.topbar-logo img { height: 42px; width: auto; }
.topbar-nav { display: flex; gap: 30px; }
.topbar-nav a { position: relative; color: inherit; text-decoration: none; font-size: .92rem; opacity: .82; transition: opacity .25s; }
.topbar-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.topbar-nav a:hover { opacity: 1; }
.topbar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; }
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero-title { font-size: clamp(2.7rem, 5.7vw, 5.2rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; margin: 0 0 28px; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .soft { font-weight: 300; color: var(--lavender); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; margin: 0 0 36px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-store { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s ease, opacity .2s ease; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 2px solid var(--lavender, #CFCBF7); outline-offset: 3px; }
.store-soon { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(242, 230, 201, .6); }
.hero-fine { margin: 22px 0 0; font-size: .84rem; color: rgba(242, 230, 201, .55); }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; text-align: left; }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(207, 203, 247, .12); translate: -50% -50%; animation: spin 80s linear infinite; }
.orbit-1 { width: 500px; height: 500px; }
.orbit-2 { width: 660px; height: 660px; border-style: dashed; border-color: rgba(242, 230, 201, .07); animation-duration: 130s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.orbiter { position: absolute; left: 50%; top: 0; translate: -50% -50%; }
.moonlet { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px 4px rgba(224, 174, 69, .45); }
.sparklet { width: 16px; height: 16px; background: var(--lavender-2); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); top: 50%; left: 100%; }

.float-note { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; font-size: .82rem; color: var(--ink); background: rgba(29, 44, 47, .72); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); animation: bob 7s var(--ease-soft) infinite alternate, note-in 1s var(--ease-out) both; }
.note-1 { left: -6%; bottom: 17%; animation-delay: -2s, 1.8s; }
.note-2 { right: -16%; top: 21%; animation-delay: -5s, 2.2s; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 12px var(--lavender); }
.note-dot.gold { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes note-in { from { opacity: 0; scale: .9; } }
@keyframes bob { from { translate: 0 -9px; } to { translate: 0 9px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(242, 230, 201, .3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: cue 2.2s var(--ease-soft) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Phone ───────────────────────────────────────── */
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 50px; padding: 9px; background: linear-gradient(160deg, #2C3D41, #0C1416 60%); box-shadow: inset 0 0 0 1px rgba(242, 230, 201, .12), 0 50px 100px -30px rgba(0, 0, 0, .75), 0 0 140px -30px rgba(207, 203, 247, .35); }
.tilt { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease-out); animation: bob 6s var(--ease-soft) infinite alternate; will-change: transform; }
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: radial-gradient(120% 60% at 50% -10%, #23363A 0%, var(--night) 60%); color: var(--cream); padding: 14px 15px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; line-height: 1.35; }
.p-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px; font-size: 11px; font-weight: 500; }
.p-island { position: absolute; left: 50%; top: 2px; translate: -50% 0; width: 84px; height: 24px; border-radius: 20px; background: #000; }
.p-icons { width: 34px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, var(--cream) 0 60%, transparent 60% 70%, var(--cream) 70%); opacity: .8; }
.p-greeting { font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 14px 2px 4px; }
#dreamer-name { color: var(--lavender); }
.p-card { background: rgba(242, 230, 201, .045); border: 1px solid rgba(242, 230, 201, .08); border-radius: 16px; padding: 11px 12px; }
.p-card p { margin: 0; }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-chip { font-size: 9.5px; color: var(--night); background: var(--lavender); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.p-label { color: var(--lavender); font-size: 10px; font-weight: 500; letter-spacing: .02em; margin-bottom: 2px !important; }
.p-label.gold { color: var(--gold); }
.p-title { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.p-muted { color: rgba(242, 230, 201, .6); font-size: 10.5px; margin-top: 2px !important; }
.p-link { display: inline-block; width: 9px; height: 9px; margin: 0 2px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.p-glow { border-color: rgba(224, 174, 69, .35); background: linear-gradient(135deg, rgba(224, 174, 69, .1), rgba(207, 203, 247, .04)); }
.p-dots { display: flex; gap: 5px; margin-top: 9px; }
.p-dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(242, 230, 201, .1); }
.p-dots i.on { background: var(--lavender); }
.js .p-dots i.on { animation: dot-on .5s var(--ease-out) both; animation-delay: calc(1.6s + var(--n, 0) * .08s); }
.p-dots i:nth-child(2) { --n: 1; } .p-dots i:nth-child(3) { --n: 2; } .p-dots i:nth-child(4) { --n: 3; } .p-dots i:nth-child(5) { --n: 4; }
@keyframes dot-on { from { background: rgba(242, 230, 201, .1); } }
.p-sound { display: flex; justify-content: space-between; align-items: center; }
.p-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.p-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--lavender); animation: eq 1.1s var(--ease-soft) infinite alternate; }
.p-wave i:nth-child(2) { animation-delay: -.4s; } .p-wave i:nth-child(3) { animation-delay: -.8s; } .p-wave i:nth-child(4) { animation-delay: -.2s; } .p-wave i:nth-child(5) { animation-delay: -.6s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.p-btn { margin-top: auto; background: var(--lavender); color: var(--night); border-radius: 999px; text-align: center; padding: 12px; font-weight: 500; font-size: 12.5px; }
.p-tabs { display: flex; justify-content: space-around; padding: 10px 6px 4px; }
.p-tabs span { width: 6px; height: 6px; border-radius: 50%; background: rgba(242, 230, 201, .25); }
.p-tabs .active { width: 18px; border-radius: 3px; background: var(--lavender); }
.js .p-in { opacity: 0; translate: 0 16px; animation: card-in 1s var(--ease-out) forwards; animation-delay: calc(1s + var(--i) * .12s); }
@keyframes card-in { to { opacity: 1; translate: 0 0; } }

/* ── Fragments marquee ───────────────────────────── */
.fragments { padding: 40px 0 30px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { overflow: hidden; padding: 6px 0; }
.track { display: flex; width: max-content; animation: marquee var(--dur, 50s) linear infinite; }
.marquee.reverse .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap; font-size: clamp(1.3rem, 2.8vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; color: rgba(242, 230, 201, .5); transition: color .3s; }
.marquee.reverse .track span { color: rgba(207, 203, 247, .45); }
.track span:hover { color: var(--cream); }
.track span::after { content: ''; width: .5em; height: .5em; background: var(--gold); opacity: .8; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Statement ───────────────────────────────────── */
.statement { padding: 22vh 0; }
.lit { max-width: 24ch; margin: 0 auto; text-align: center; font-size: clamp(1.8rem, 4.6vw, 3.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.16; text-wrap: balance; }

/* ── How it works ────────────────────────────────── */
.how { padding: 10vh 0 6vh; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.how-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 440px; opacity: .3; transition: opacity .6s var(--ease-out); }
.how-step.on { opacity: 1; }
.how-step h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -.04em; margin-bottom: 14px; }
.how-step > p { color: var(--ink-soft); font-size: 1.06rem; }
.step-num { font-size: .8rem; font-weight: 500; letter-spacing: .16em; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.step-num::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out) .2s; }
.how-step.on .step-num::after { transform: scaleX(1); }
.how-stage { position: sticky; top: calc(50vh - 340px); height: 680px; display: grid; place-items: center; }
.phone-lg { width: 320px; }
.mini-screen { display: none; }

.screens { padding: 0; }
.scr { position: absolute; inset: 0; padding: 50px 16px 18px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); pointer-events: none; }
.screens[data-active="0"] .scr-track, .screens[data-active="1"] .scr-catch, .screens[data-active="2"] .scr-know, .scr.solo { opacity: 1; transform: none; }
.scr-kicker { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.scr-kicker.center { text-align: center; }
.scr-big { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.scr-big small { font-size: 13px; font-weight: 400; color: rgba(242, 230, 201, .55); letter-spacing: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 6px; }
.bars i { flex: 1; height: 100%; border-radius: 8px; background: linear-gradient(180deg, var(--lavender), rgba(207, 203, 247, .25)); transform-origin: bottom; transform: scaleY(.04); transition: transform 1.1s var(--ease-out); }
.bars i:nth-child(5) { background: linear-gradient(180deg, var(--gold), rgba(224, 174, 69, .25)); }
.bars i:nth-child(1) { transition-delay: .05s; } .bars i:nth-child(2) { transition-delay: .1s; } .bars i:nth-child(3) { transition-delay: .15s; } .bars i:nth-child(4) { transition-delay: .2s; } .bars i:nth-child(5) { transition-delay: .25s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .35s; }
.bar-days { display: flex; gap: 8px; font-size: 10px; color: rgba(242, 230, 201, .5); }
.bar-days span { flex: 1; text-align: center; }
.meter { height: 6px; border-radius: 3px; background: rgba(242, 230, 201, .1); margin: 9px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--lavender); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .4s; }
.play .bars i { transform: scaleY(var(--h)); }
.play .meter i { transform: scaleX(var(--v)); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-row div { padding: 10px 12px; border-radius: 14px; background: rgba(242, 230, 201, .045); border: 1px solid rgba(242, 230, 201, .08); }
.stat-row small { display: block; font-size: 10px; color: rgba(242, 230, 201, .55); }
.stat-row b { font-weight: 500; font-size: 15px; letter-spacing: -.02em; }

.scr-catch { background: radial-gradient(90% 50% at 50% 55%, rgba(124, 114, 226, .22), transparent 70%), #0E1719; align-items: center; }
.wake-time { margin: 6px 0 0; font-size: 58px; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.motes { position: absolute; inset: 0; pointer-events: none; }
.motes i { position: absolute; bottom: -10px; left: var(--x); width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: var(--lavender); box-shadow: 0 0 10px var(--lavender); opacity: 0; animation: mote var(--t, 9s) linear infinite; animation-delay: var(--dl, 0s); }
.motes i:nth-child(1) { --x: 12%; --t: 9s; --dl: -1s; } .motes i:nth-child(2) { --x: 24%; --s: 3px; --t: 11s; --dl: -6s; } .motes i:nth-child(3) { --x: 38%; --t: 8s; --dl: -3s; } .motes i:nth-child(4) { --x: 52%; --s: 5px; --t: 12s; --dl: -8s; } .motes i:nth-child(5) { --x: 64%; --s: 3px; --t: 10s; --dl: -2s; } .motes i:nth-child(6) { --x: 76%; --t: 9.5s; --dl: -5s; } .motes i:nth-child(7) { --x: 88%; --s: 3px; --t: 13s; --dl: -9s; } .motes i:nth-child(8) { --x: 30%; --s: 2px; --t: 7s; --dl: -4s; } .motes i:nth-child(9) { --x: 70%; --s: 2px; --t: 8.5s; --dl: -7s; } .motes i:nth-child(10) { --x: 46%; --s: 3px; --t: 10.5s; --dl: -10s; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(14px, -560px); opacity: 0; } }
.orb { width: 92px; height: 92px; margin: 34px 0 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, var(--lavender) 30%, rgba(124, 114, 226, .5) 62%, transparent 72%); filter: blur(.3px); animation: breathe 4s var(--ease-soft) infinite alternate; }
@keyframes breathe { from { transform: scale(.9); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
.typed { min-height: 92px; width: 100%; margin: 0; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(207, 203, 247, .18); background: rgba(207, 203, 247, .05); font-size: 13px; line-height: 1.5; }
.typed::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; vertical-align: -2px; margin-left: 1px; background: var(--lavender); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.scr-catch .p-btn { width: 100%; }

.const { width: 100%; height: auto; margin: 4px 0; overflow: visible; }
.c-lines path { fill: none; stroke: rgba(207, 203, 247, .55); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); }
.c-lines path:nth-child(2) { transition-delay: .25s; } .c-lines path:nth-child(3) { transition-delay: .5s; } .c-lines path:nth-child(4) { transition-delay: .75s; } .c-lines path:nth-child(5) { transition-delay: 1s; }
.c-stars circle { fill: var(--lavender); filter: drop-shadow(0 0 6px rgba(207, 203, 247, .8)); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .8s var(--ease-out); }
.c-stars circle.gold { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(224, 174, 69, .8)); }
.c-stars circle:nth-child(2) { transition-delay: .15s; } .c-stars circle:nth-child(3) { transition-delay: .3s; } .c-stars circle:nth-child(4) { transition-delay: .45s; } .c-stars circle:nth-child(5) { transition-delay: .6s; } .c-stars circle:nth-child(6) { transition-delay: .75s; }
.play .c-lines path, .in .c-lines path { stroke-dashoffset: 0; }
.play .c-stars circle, .in .c-stars circle { transform: scale(1); animation: twinkle 3s var(--ease-soft) 1.5s infinite alternate; }
@keyframes twinkle { to { opacity: .55; } }
.scr-know .p-card { margin-top: auto; }

/* ── Dream Lock ──────────────────────────────────── */
.lock { padding: 18vh 0; }
.lock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.ticks li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(207, 203, 247, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23CFCBF7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lock-demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.alarm { position: relative; width: min(360px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.rings i { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid var(--lavender); opacity: 0; }
.alarm[data-state="ringing"] .rings i { animation: ring 2.4s var(--ease-out) infinite; }
.rings i:nth-child(2) { animation-delay: .8s !important; } .rings i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.alarm-face { position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 30%, #24373B, #111C1E 70%); border: 1px solid rgba(207, 203, 247, .2); box-shadow: inset 0 1px 0 rgba(242, 230, 201, .1), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(207, 203, 247, .35); transition: box-shadow .8s var(--ease-out), border-color .8s; }
.alarm[data-state="ringing"] .alarm-face { animation: jiggle 2.4s var(--ease-soft) infinite; }
@keyframes jiggle { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: -2.5deg; } 78% { rotate: 2.5deg; } 82% { rotate: -2deg; } 86% { rotate: 1.5deg; } 90% { rotate: 0deg; } }
.alarm[data-state="caught"] .alarm-face { border-color: rgba(224, 174, 69, .6); box-shadow: inset 0 1px 0 rgba(242, 230, 201, .1), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -10px rgba(224, 174, 69, .55); }
.alarm-time { margin: 0; font-size: clamp(3.4rem, 7vw, 4.6rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; }
.alarm-sub { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); }
.burst i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; }
.burst i:nth-child(even) { background: var(--lavender); width: 10px; height: 10px; margin: -5px; }
.alarm[data-state="caught"] .burst i { animation: burst 1.4s var(--ease-out) forwards; }
.burst i:nth-child(1) { --r: 0deg; } .burst i:nth-child(2) { --r: 45deg; } .burst i:nth-child(3) { --r: 90deg; } .burst i:nth-child(4) { --r: 135deg; } .burst i:nth-child(5) { --r: 180deg; } .burst i:nth-child(6) { --r: 225deg; } .burst i:nth-child(7) { --r: 270deg; } .burst i:nth-child(8) { --r: 315deg; }
@keyframes burst { 0% { opacity: 0; transform: rotate(var(--r)) translateY(0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--r)) translateY(-190px) scale(1.1) rotate(90deg); } }
.alarm-dream { min-height: 3.2em; max-width: 34ch; margin: 0; text-align: center; color: var(--lavender); font-size: .98rem; }

/* ── Features bento ──────────────────────────────── */
.features { padding: 12vh 0 14vh; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 30px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .4s, translate .6s var(--ease-out); }
.tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(207, 203, 247, .12), transparent 60%); opacity: 0; transition: opacity .4s; }
.tile:hover { border-color: rgba(207, 203, 247, .25); }
.tile:hover::before { opacity: 1; }
.tile p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.tile > :first-child { margin-bottom: auto; }
.t-draw { grid-column: span 2; }
.t-health { order: 5; }
.t-sound { order: 6; grid-column: span 2; }

.draw { width: 100%; max-width: 480px; height: auto; overflow: visible; }
.draw path { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-soft); }
.draw .lh { transition-delay: .9s; }
.draw .moon, .draw .star { stroke: var(--gold); transition-delay: 1.8s; }
.draw .beam { stroke: var(--gold); stroke-dasharray: .04 .04; opacity: 0; transition: opacity .8s 3s; }
.t-draw.in .draw path { stroke-dashoffset: 0; }
.t-draw.in .draw .beam { opacity: .7; animation: beam 1.2s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -.08; } }

.bedtime { display: grid; gap: 6px; }
.bt-label { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bt-time { font-size: 3rem; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.bt-time b { font-weight: 300; display: inline-block; transition: opacity .25s, transform .4s var(--ease-out); }
.bt-time b.flip { opacity: 0; transform: translateY(-10px); }
.bt-track { position: relative; height: 2px; margin: 22px 8px 0; border-radius: 1px; background: rgba(242, 230, 201, .18); }
.bt-track::before { content: ''; position: absolute; inset: -5px 0; background: linear-gradient(90deg, rgba(242, 230, 201, .35) 0 2px, transparent 2px) 0 0 / calc(33.333% - .67px) 100% repeat-x; }
.bt-ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: .74rem; color: rgba(242, 230, 201, .5); }
.bt-track i { position: absolute; top: 50%; left: var(--x, 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 6px rgba(207, 203, 247, .15); transition: left .9s var(--ease-out); }

.mini-const { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.t-const:hover .c-lines path { stroke: var(--lavender); }

.compare { display: grid; gap: 14px; }
.cmp { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; font-size: .82rem; color: var(--ink-soft); }
.cmp b { font-weight: 500; color: var(--cream); text-align: right; }
.cmp-bar { height: 10px; border-radius: 5px; background: rgba(242, 230, 201, .08); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 5px; background: var(--lavender); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
.cmp:first-child .cmp-bar i { background: var(--gold); }
.t-habits.in .cmp-bar i { transform: scaleX(var(--v)); }

.eq { display: flex; align-items: center; gap: 6px; height: 90px; }
.eq i { flex: 1; max-width: 10px; height: 100%; border-radius: 5px; background: linear-gradient(180deg, var(--lavender), rgba(124, 114, 226, .5)); animation: eq 1.4s var(--ease-soft) infinite alternate; }
.eq i:nth-child(3n) { animation-duration: 1.1s; } .eq i:nth-child(3n+1) { animation-duration: 1.7s; animation-delay: -.5s; } .eq i:nth-child(4n) { animation-delay: -.9s; } .eq i:nth-child(5n) { animation-duration: 2s; animation-delay: -1.2s; }

.health { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; background: rgba(242, 230, 201, .06); border: 1px solid var(--line); align-self: flex-start; font-weight: 500; }
.health svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(224, 174, 69, .16); fill: var(--gold); animation: pulse 1.6s var(--ease-soft) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }

/* ── Dawn ────────────────────────────────────────── */
.dawn { position: relative; min-height: 115vh; padding: 22vh 0 0; overflow: hidden; background: linear-gradient(180deg, transparent 0%, #1B2338 26%, #3A3463 44%, #8A7FCB 62%, #E5C8A6 80%, var(--paper) 100%); }
.dawn-lit { position: relative; z-index: 1; }
.horizon { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%); }
.sun { position: absolute; left: 50%; bottom: 0; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, #FFF3D1 0%, #F2C766 30%, rgba(224, 174, 69, .4) 52%, transparent 70%); transform: translateY(calc(60% - var(--rise, 0) * 45%)); opacity: calc(.4 + var(--rise, 0) * .6); }

/* ── Morning (light) ─────────────────────────────── */
.morning { position: relative; background: var(--paper); color: var(--night); --ink: var(--night); --ink-soft: #4A5758; --line: rgba(22, 34, 36, .1); }
.morning .btn { --primary: var(--night); --on-primary: var(--cream); }
.morning .eyebrow { color: var(--violet-ink); }
.morning em { color: var(--violet-ink); }
.morning section { padding: 12vh 0; }

.billing { position: relative; display: flex; width: max-content; margin: -24px auto 44px; padding: 5px; border-radius: 999px; background: #EFE8D7; }
.billing button { position: relative; z-index: 1; font: 500 .92rem var(--font); color: var(--night); background: none; border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; transition: color .4s; }
.billing button.active { color: var(--cream); }
.billing-pill { position: absolute; top: 5px; bottom: 5px; left: var(--l, 50%); width: var(--w, 50%); border-radius: 999px; background: var(--night); transition: left .55s var(--ease-out), width .55s var(--ease-out); }
.save { font-size: .72rem; color: var(--gold); margin-left: 6px; font-weight: 600; }
.billing button:not(.active) .save { color: var(--violet-ink); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: 30px; background: #fff; border: 1px solid rgba(22, 34, 36, .08); box-shadow: 0 30px 60px -40px rgba(22, 34, 36, .35); }
.plan.featured { background: var(--night); color: var(--cream); border: 0; isolation: isolate; }
.plan.featured::before { content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: 31.5px; background: conic-gradient(from var(--a, 0deg), var(--lavender), var(--gold), var(--violet), var(--lavender)); animation: rotate-a 6s linear infinite; }
.plan.featured::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 30px; background: radial-gradient(120% 70% at 100% 0%, #24373B, var(--night) 60%); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotate-a { to { --a: 360deg; } }
.plan.featured .btn { --primary: var(--lavender); --on-primary: var(--night); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-head h3 { font-size: 1.7rem; margin: 0; letter-spacing: -.03em; }
.badge { background: var(--gold); color: var(--night); font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.price { margin: 22px 0 2px; font-size: 3rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 400; letter-spacing: 0; opacity: .6; }
.per { font-size: .86rem; opacity: .65; margin: 8px 0 18px; }
.plan-intro { font-weight: 500; margin: 0 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 30px; }
.plan li { position: relative; padding: 7px 0 7px 28px; font-size: .96rem; }
.plan li::before { content: ''; position: absolute; left: 0; top: .78em; width: 13px; height: 13px; background: var(--violet); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.plan.featured li::before { background: var(--gold); }
.plan .btn { margin-top: auto; }
.plan .btn-outline { color: var(--night); border-color: rgba(22, 34, 36, .2); }

.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promises li { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: 24px; background: #fff; border: 1px solid rgba(22, 34, 36, .07); transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.promises li:hover { translate: 0 -4px; box-shadow: 0 24px 50px -30px rgba(22, 34, 36, .35); }
.promises strong { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.promises span:not(.p-ico) { color: #4A5758; font-size: .93rem; }
.p-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #ECEAFD; margin-bottom: 12px; }
.p-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--violet-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid header { position: sticky; top: 120px; }
.faq-more { color: #4A5758; }
.faq-more a { color: var(--violet-ink); }
.faq-list details { border-bottom: 1px solid rgba(22, 34, 36, .12); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #EFE8D7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23162224' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform .5s var(--ease-out), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--lavender); }
.faq-body p { margin: 0 0 24px; color: #4A5758; max-width: 60ch; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

.join { text-align: center; padding-bottom: 16vh !important; }
.join .section-lead { margin-bottom: 36px; }
.assemble { position: relative; width: 190px; margin: 0 auto 22px; }
.assemble::before { content: ''; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(167, 159, 239, .28), transparent 62%); opacity: 0; transition: opacity 1.6s var(--ease-out) .8s; }
.assemble.in::before { opacity: 1; }
.assemble svg { display: block; width: 100%; height: auto; overflow: visible; }
.assemble g { transform-box: view-box; }
.js .a-cloud { opacity: 0; transform: translateY(70px); transition: opacity .8s var(--ease-out), transform 1.2s cubic-bezier(.34, 1.56, .64, 1); }
.js .a-moon { opacity: 0; transform-origin: 320px 420px; transform: rotate(-70deg); transition: opacity .8s var(--ease-out) .35s, transform 1.6s var(--ease-out) .35s; }
.js .a-spark { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-90deg); transition: opacity .3s 1.3s, transform .9s cubic-bezier(.34, 1.56, .64, 1) 1.3s; }
.js .a-eyes path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .7s var(--ease-out) 1.7s; }
.assemble.in .a-cloud, .assemble.in .a-moon { opacity: 1; transform: none; }
.assemble.in .a-spark { opacity: 1; transform: none; }
.assemble.in .a-eyes path { stroke-dashoffset: 0; }

.waitlist { display: flex; gap: 6px; max-width: 520px; margin: 0 auto; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(22, 34, 36, .1); box-shadow: 0 30px 60px -36px rgba(22, 34, 36, .45); transition: box-shadow .4s, border-color .4s; }
.waitlist:focus-within { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(124, 114, 226, .14), 0 30px 60px -36px rgba(22, 34, 36, .45); }
.waitlist input[type=email] { flex: 1; min-width: 0; min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--night); font: 400 1rem var(--font); }
.waitlist input[type=email]:focus-visible { outline: none; }
.waitlist input::placeholder { color: #8A9393; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.6em; margin: 16px 0 0; font-weight: 500; }
.status.ok { color: #2F6B4F; }
.status.err { color: #A2402C; }
.join-fine { font-size: .84rem; color: #6A7576; margin: 4px 0 0; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: var(--paper); color: var(--night); border-top: 1px solid rgba(22, 34, 36, .08); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-grid { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-right: auto; }
.site-footer nav a { color: #4A5758; text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--night); }
.site-footer .fine { margin: 0; color: #6A7576; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-store { justify-content: center; }
  .hero-stage { min-height: 600px; }
  .orbit-1 { width: 440px; height: 440px; }
  .orbit-2 { width: 560px; height: 560px; }
  .note-1 { left: 2%; } .note-2 { right: 2%; }
  .how-grid { grid-template-columns: 1fr; }
  .how-stage { display: none; }
  .how-step { min-height: 0; opacity: 1; max-width: 520px; margin: 0 auto 80px; text-align: center; align-items: center; }
  .step-num::after { display: none; }
  .mini-screen { display: block; margin-top: 28px; text-align: left; }
  .mini-screen .phone { width: 270px; }
  .lock-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .section-lead.left { margin: 0 auto 28px; }
  .ticks { justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-draw, .t-sound { grid-column: span 2; }
  .promises { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid header { position: static; text-align: center; }
}
@media (max-width: 720px) {
  .topbar-nav { display: none; }
  .topbar-inner { min-height: 62px; gap: 12px; }
  .topbar-logo img { height: 34px; }
  .hero { padding-top: 100px; }
  .hero-stage { min-height: 560px; }
  .hero-stage .phone { width: 260px; }
  .orbit-1 { width: 340px; height: 340px; }
  .orbit-2 { width: 460px; height: 460px; }
  .float-note { display: none; }
  .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-draw, .t-sound { grid-column: auto; }
  .tile { min-height: 280px; padding: 26px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px 24px; }
  .promises { grid-template-columns: 1fr; }
  .sun { width: 380px; height: 380px; margin-left: -190px; }
  .waitlist { flex-direction: column; border-radius: 26px; }
  .waitlist .btn { width: 100%; }
  .footer-grid { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; margin: 0; }
}

/* ── Reduced motion: everything visible, nothing drifting ── */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-split] .w > span, .js .p-in, .js .a-cloud, .js .a-moon, .js .a-spark { opacity: 1 !important; transform: none !important; filter: none !important; translate: none !important; }
  .js .a-eyes path { stroke-dashoffset: 0 !important; }
  .track { animation: none; }
  .tilt { transform: none !important; }
  .bars i { transform: scaleY(var(--h)); }
  .meter i { transform: scaleX(var(--v)); }
  .cmp-bar i { transform: scaleX(var(--v)); }
  .draw path, .c-lines path { stroke-dashoffset: 0; }
  .c-stars circle { transform: scale(1); }
}

/* Hero phone: Dream Lock row */
.p-alarm { display: flex; justify-content: space-between; align-items: center; }
.p-toggle { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--lavender); }
.p-toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); }
.catch-stats { display: flex; justify-content: space-between; width: 100%; margin: 4px 0 auto !important; font-size: 10.5px; color: rgba(242, 230, 201, .55); }
.scr-know .const { margin: auto 0; }
