/* Noodle · noodlesleep.com */
:root {
  --night: #0B1030;
  --navy: #141B3D;
  --deep: #070A22;
  --lav: #B9A8F0;
  --soft: #D9CFFF;
  --moon: #FFE08A;
  --cream: #FFF6E5;
  --ink: rgba(255, 246, 229, .92);
  --muted: rgba(255, 246, 229, .66);
  --faint: rgba(255, 246, 229, .42);
  --line: rgba(217, 207, 255, .14);
  --glass: rgba(28, 34, 78, .48);
  --glass-strong: rgba(30, 36, 84, .72);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
  --r-lg: 32px;
  --r-md: 22px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--soft); text-decoration-color: rgba(217, 207, 255, .4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--soft); }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(185, 168, 240, .45); }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--moon);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 60, "opsz" 120; }
h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; }
h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; }
h3 { font-size: 24px; line-height: 1.2; font-variation-settings: "SOFT" 60, "opsz" 36; }
h1 em, h2 em { font-style: italic; color: var(--soft); font-weight: 400; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 33em; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin: 18px 0 18px; }
.section-head .lede { margin: 0 auto; }

/* ---------- Background sky ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 50% at 78% 8%, rgba(185, 168, 240, .20), transparent 60%),
    radial-gradient(60% 50% at 10% 30%, rgba(80, 70, 170, .22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--night) 45%, var(--deep) 100%);
}
#stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  transition: transform .5s var(--ease);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
}
.nav-bar {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 14px; border-radius: 999px;
  background: rgba(14, 18, 52, .38);
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav.scrolled .nav-bar {
  background: rgba(14, 18, 52, .62); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 600 20px/1 var(--serif); letter-spacing: -.01em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .3s; }
.nav-links a:hover { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  color: var(--night);
  background: linear-gradient(180deg, #E4DAFF 0%, var(--lav) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -8px rgba(185, 168, 240, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 40px -10px rgba(185, 168, 240, .7); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(217, 207, 255, .4); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Waitlist form ---------- */
.waitlist { width: 100%; max-width: 480px; }
.field {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(14, 18, 52, .55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, box-shadow .3s;
}
.field:focus-within { border-color: rgba(217, 207, 255, .5); box-shadow: 0 0 0 6px rgba(185, 168, 240, .12); }
.field input {
  flex: 1; min-width: 0; height: 50px; padding: 0 18px; background: transparent; border: 0; outline: 0;
  font-size: 16px; color: var(--cream);
}
.field input::placeholder { color: var(--faint); }
.field .btn { height: 50px; }
.form-note { margin: 14px 4px 0; font-size: 14px; color: var(--faint); }
.form-note strong { color: var(--muted); font-weight: 500; }
.form-error { margin: 12px 4px 0; font-size: 14px; color: #FFB4B4; min-height: 0; }
.waitlist.is-loading .btn { pointer-events: none; opacity: .75; }
.waitlist .done { display: none; }
.waitlist.is-done .field, .waitlist.is-done .form-note { display: none; }
.waitlist.is-done .done { display: flex; animation: rise .8s var(--slow) both; }
.done {
  align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 24px;
  background: var(--glass-strong); border: 1px solid var(--line);
}
.done img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.done p { margin: 0; font-size: 15px; color: var(--muted); }
.done strong { display: block; color: var(--cream); font: 500 19px/1.3 var(--serif); margin-bottom: 2px; }
.done button { background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }

/* App Store state (flip html[data-launch="live"] at launch) */
.appstore { display: none; }
html[data-launch="live"] .waitlist { display: none; }
html[data-launch="live"] .appstore { display: inline-flex; }
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 24px 0 20px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25);
}
.appstore-btn svg { width: 26px; height: 26px; }
.appstore-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.appstore-btn small { font-size: 11px; opacity: .8; }
.appstore-btn b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero .phone { width: min(300px, 78vw, calc((100svh - 220px) * 952 / 2104 + 20px)); }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; animation: lineUp 1.2s var(--slow) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
.hero .lede { margin: 0 0 34px; animation: rise 1.2s var(--slow) .3s both; }
.hero .waitlist, .hero .appstore { animation: rise 1.2s var(--slow) .45s both; }
.hero .eyebrow { animation: rise 1s var(--slow) both; }

.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeIn 1.6s var(--ease) .2s both; }
.halo {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(185, 168, 240, .38) 0%, rgba(185, 168, 240, .08) 45%, transparent 70%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}
.moon {
  position: absolute; top: -6%; right: 2%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF3C4, var(--moon) 55%, #F5C95C);
  box-shadow: 0 0 60px 10px rgba(255, 224, 138, .28), 0 0 160px 40px rgba(255, 224, 138, .1);
  animation: drift 14s ease-in-out infinite;
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--night); transform: translate(26%, -14%); opacity: .0; }

/* Phone */
.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 952 / 2104; border-radius: 52px;
  padding: 10px; background: linear-gradient(160deg, #3A3F6E, #161A3C 40%, #0D1030);
  box-shadow:
    0 0 0 1px rgba(217, 207, 255, .16),
    0 50px 120px -30px rgba(0, 0, 0, .8),
    0 30px 80px -40px rgba(185, 168, 240, .5);
  transform-style: preserve-3d;
  transition: transform .9s var(--slow);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #0B0F2A; }
.phone-screen video { opacity: 0; transition: opacity .8s var(--ease); }
.phone-screen video.playing { opacity: 1; }
.phone-screen > img, .phone-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 26px; border-radius: 20px; background: #05061a; z-index: 3;
}
.hero .phone { animation: float 10s ease-in-out infinite; }
.phone-time {
  position: absolute; top: 72px; left: 0; right: 0; text-align: center; z-index: 2;
  font: 500 15px/1 var(--sans); color: rgba(255, 246, 229, .7); letter-spacing: .02em;
}
.phone-caption {
  position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; z-index: 2;
  font: 500 26px/1 var(--serif); color: var(--cream); text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.phone-screen .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 26, .55) 0%, transparent 25%, transparent 70%, rgba(5, 7, 26, .7) 100%); z-index: 1; }

.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(24, 29, 72, .62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  font-size: 14px; line-height: 1.3; color: var(--muted); white-space: nowrap;
}
.chip b { display: block; color: var(--cream); font-weight: 600; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #9CF0C6; box-shadow: 0 0 0 4px rgba(156, 240, 198, .18); flex: none; }
.chip .ico { font-size: 20px; }
.chip-1 { left: -6%; top: 22%; animation: rise 1.2s var(--slow) .9s both, bob 8s ease-in-out 2s infinite; }
.chip-2 { right: -10%; bottom: 20%; animation: rise 1.2s var(--slow) 1.15s both, bob 9s ease-in-out 2.4s infinite reverse; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  animation: fadeIn 2s var(--ease) 1.6s both;
}
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--faint), transparent); animation: hint 2.6s ease-in-out infinite; transform-origin: top; }

/* Clouds */
.clouds { position: absolute; left: -10%; right: -10%; bottom: -60px; height: 220px; pointer-events: none; z-index: 0; }
.cloud {
  position: absolute; bottom: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 168, 240, .22), rgba(185, 168, 240, 0));
  filter: blur(6px);
}
.cloud.c1 { left: 0; width: 60%; height: 200px; animation: cloud 40s ease-in-out infinite alternate; }
.cloud.c2 { left: 35%; width: 55%; height: 170px; animation: cloud 52s ease-in-out infinite alternate-reverse; }
.cloud.c3 { left: 65%; width: 45%; height: 210px; animation: cloud 46s ease-in-out infinite alternate; }

/* ---------- Ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(11, 16, 48, .5); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: italic 400 22px/1.3 var(--serif); color: var(--soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: "☾"; font-style: normal; color: var(--moon); opacity: .7; font-size: 16px; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }

/* ---------- Sections ---------- */
section { position: relative; }
.block { padding: 150px 0; }

/* The one rule (flip demo) */
.rule-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: 40px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(40, 46, 104, .55), rgba(16, 20, 56, .55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rule-copy { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.rule-copy h2 { margin: 18px 0 20px; }
.toggle {
  margin-top: 34px; display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px;
  background: rgba(7, 10, 34, .55); border: 1px solid var(--line); width: max-content;
}
.toggle button {
  border: 0; background: transparent; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color .4s, background .4s var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--soft); color: var(--night); }
.rule-stage {
  position: relative; min-height: 560px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: background 1.2s var(--ease);
  background: radial-gradient(70% 60% at 50% 60%, rgba(60, 60, 140, .55), rgba(7, 10, 34, .9));
}
.rule-stage[data-state="awake"] { background: radial-gradient(70% 60% at 50% 60%, rgba(255, 224, 138, .30), rgba(40, 30, 70, .9)); }
.rule-stage .koala { position: absolute; bottom: 64px; width: 72%; max-width: 420px; transition: opacity .8s var(--ease), transform 1s var(--slow); }
.rule-stage .k-awake { opacity: 0; transform: scale(.94) translateY(10px); }
.rule-stage[data-state="awake"] .k-awake { opacity: 1; transform: none; animation: huff .6s var(--ease) .2s; }
.rule-stage[data-state="awake"] .k-asleep { opacity: 0; transform: scale(.96) translateY(10px); }
.k-asleep { animation: sleepBreath 5s ease-in-out infinite; }
.bubble {
  position: absolute; top: 9%; left: 50%; transform: translate(-50%, 8px); max-width: 78%; text-align: center;
  padding: 14px 20px; border-radius: 22px; background: var(--cream); color: var(--night);
  font: 500 17px/1.35 var(--sans); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--slow);
}
.bubble::after { content: ""; position: absolute; bottom: -8px; left: 50%; width: 16px; height: 16px; background: var(--cream); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.rule-stage[data-state="awake"] .bubble-awake, .rule-stage[data-state="asleep"] .bubble-asleep { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
.bubble-asleep { background: rgba(217, 207, 255, .14); color: var(--soft); font-family: var(--serif); font-style: italic; border: 1px solid var(--line); }
.bubble-asleep::after { display: none; }
.zzz { position: absolute; top: 30%; right: 22%; font: 600 22px var(--serif); color: var(--soft); transition: opacity .6s; }
.zzz span { position: absolute; opacity: 0; animation: zzz 4.5s ease-in-out infinite; }
.zzz span:nth-child(2) { animation-delay: 1.5s; font-size: 17px; }
.zzz span:nth-child(3) { animation-delay: 3s; font-size: 13px; }
.rule-stage[data-state="awake"] .zzz { opacity: 0; }
.stage-label { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* How it works (sticky story) */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.story-steps { padding: 10vh 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .7s var(--ease); }
.step.is-active { opacity: 1; }
.step-num { font: 500 15px/1 var(--sans); color: var(--moon); letter-spacing: .14em; margin-bottom: 18px; }
.step h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-bottom: 18px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 18px; max-width: 26em; margin: 0; }
.step .step-img { display: none; }
.story-phone .phone { width: min(320px, calc((100vh - 150px) * 952 / 2104 + 20px)); }
.story-phone { position: sticky; top: 0; height: 100vh; padding-top: 50px; display: flex; align-items: center; justify-content: center; }
.story-phone .phone-screen img { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--slow); }
.story-phone .phone-screen img.is-active { opacity: 1; transform: none; }
.progress { position: absolute; right: -36px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.progress i { width: 4px; height: 28px; border-radius: 4px; background: var(--line); transition: background .5s, height .5s var(--slow); }
.progress i.is-active { background: var(--soft); height: 44px; }

/* Grow */
.grow { overflow: hidden; }
.stages { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stages { --step: calc((100cqw - 64px) / 5 + 16px); }
.stages-wrap { container-type: inline-size; }
.stage { position: relative; text-align: center; }
.stage .pic { position: relative; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; }
.stage .pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.stage:nth-child(1) .pic img { width: 62%; height: 62%; }
.stage:nth-child(2) .pic img { width: 72%; height: 72%; }
.stage:nth-child(3) .pic img { width: 84%; height: 84%; }
.stage:nth-child(4) .pic img { width: 92%; height: 92%; }
.stage .pin { width: 13px; height: 13px; margin: 20px auto 18px; border-radius: 50%; background: var(--night); border: 2px solid var(--lav); position: relative; z-index: 1; }
.stage .pin::before, .stage .pin::after { content: ""; position: absolute; left: 11px; top: 4px; width: calc(var(--step) - 13px); height: 1px; }
.stage .pin::before { background: var(--line); }
.stage .pin::after { background: linear-gradient(90deg, var(--lav), var(--moon)); box-shadow: 0 0 10px var(--lav); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) calc(var(--d, 0s) + .5s); }
.stage.in .pin::after { transform: scaleX(1); }
.stage.in .pin { background: var(--lav); box-shadow: 0 0 0 5px rgba(185, 168, 240, .18); transition: background .5s var(--d, 0s), box-shadow .5s var(--d, 0s); }
.stage:last-child .pin::before, .stage:last-child .pin::after { display: none; }
.stage h3 { font-size: 22px; }
.stage p { margin: 6px 0 0; font-size: 14px; color: var(--faint); }
.grow-note { text-align: center; margin: 64px auto 0; max-width: 540px; font: italic 400 22px/1.45 var(--serif); color: var(--soft); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .6s var(--slow), border-color .5s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 207, 255, .3); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 168, 240, .14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(185, 168, 240, .14); border: 1px solid var(--line); color: var(--soft);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.card.wide img { width: 100%; max-width: 230px; margin: -10px auto -40px; }
.card.tall-art img { width: 70%; margin: 18px auto -36px; }

/* Dreams + wardrobe */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 40px; border: 1px solid var(--line); overflow: hidden; position: relative; min-height: 600px; display: flex; flex-direction: column; }
.panel-copy { padding: 52px 48px 0; position: relative; z-index: 1; }
.panel-copy h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 16px 0 14px; }
.panel-copy p { color: var(--muted); margin: 0; max-width: 28em; }
.panel.dreams { background: linear-gradient(180deg, rgba(185, 168, 240, .08), rgba(185, 168, 240, .18)), url("/img/bg_dream_world.webp") center 30% / cover; }
.panel.dreams::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 16, 48, .92) 0%, rgba(11, 16, 48, .6) 38%, rgba(11, 16, 48, .05) 70%); }
.dream-card {
  position: relative; z-index: 1; margin: auto auto 48px; width: min(330px, 84%);
  padding: 22px; border-radius: 26px; background: rgba(255, 246, 229, .92); color: var(--night);
  box-shadow: 0 40px 80px -30px rgba(11, 16, 48, .8);
  transform: rotate(-3deg); transition: transform .8s var(--slow);
}
.panel.dreams:hover .dream-card { transform: rotate(0) translateY(-6px); }
.dream-card .tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--night); color: var(--moon); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.dream-card h4 { margin: 14px 0 6px; font: 500 24px/1.15 var(--serif); }
.dream-card p { margin: 0; font-size: 15px; color: rgba(11, 16, 48, .72); }
.dream-card img { position: absolute; right: -24px; top: -70px; width: 120px; animation: bob 7s ease-in-out infinite; }
.dream-card + .dream-card { display: none; }

.panel.wardrobe { background: linear-gradient(180deg, rgba(40, 46, 104, .6), rgba(16, 20, 56, .7)); }
.rail { margin-top: auto; padding: 40px 0 48px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rail-track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.panel.wardrobe:hover .rail-track { animation-play-state: paused; }
.outfit { width: 170px; flex: none; padding: 16px 16px 14px; border-radius: 24px; background: rgba(7, 10, 34, .45); border: 1px solid var(--line); text-align: center; }
.outfit img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.outfit span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Together */
.together { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.together h2 { margin: 18px 0 20px; }
.buddies { position: relative; display: flex; justify-content: center; gap: 0; padding: 40px 0; }
.buddy { width: 46%; position: relative; }
.buddy img { width: 100%; animation: sleepBreath 5.5s ease-in-out infinite; }
.buddy:nth-child(2) img { animation-delay: -2.5s; transform: scaleX(-1); }
.buddy:nth-child(2) { margin-left: -6%; }
.buddy-chip { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.list li::before { content: "☾"; color: var(--moon); flex: none; transform: translateY(1px); }

/* Pricing strip */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.price { padding: 38px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); }
.price.premium { background: linear-gradient(160deg, rgba(185, 168, 240, .2), rgba(40, 46, 104, .5)); border-color: rgba(217, 207, 255, .3); }
.price h3 { font-size: 28px; }
.price .sub { margin: 6px 0 22px; color: var(--faint); font-size: 15px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price li { padding-left: 26px; position: relative; color: var(--muted); font-size: 16px; }
.price li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 500 22px/1.35 var(--serif); color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--soft); border-bottom: 1.5px solid var(--soft); transform: rotate(45deg);
  transition: transform .5s var(--slow);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 26px; color: var(--muted); max-width: 40em; }

/* Final CTA */
.final { padding: 60px 0 140px; }
.final-card {
  position: relative; overflow: hidden; border-radius: 48px; border: 1px solid var(--line);
  padding: 110px 40px 0; text-align: center;
  background: linear-gradient(180deg, rgba(11, 16, 48, .2), rgba(11, 16, 48, 0) 60%), url("/img/bg_night_sky.webp") center bottom / cover;
}
.final-card h2 { font-size: clamp(40px, 6vw, 76px); max-width: 12em; margin: 18px auto 20px; }
.final-card .lede { margin: 0 auto 36px; }
.final-card .waitlist, .final-card .appstore { margin: 0 auto; }
.final-card .form-note { text-align: center; }
.final-card .tucked { width: min(340px, 72%); margin: 40px auto -4px; filter: drop-shadow(0 -10px 40px rgba(185, 168, 240, .25)); animation: sleepBreath 6s ease-in-out infinite; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 120px; color: var(--faint); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--cream); }
.footer p { margin: 8px 0 0; max-width: 34em; }

/* Mobile sticky CTA */
.mcta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(14, 18, 52, .78); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .6s var(--slow);
}
.mcta.show { transform: none; }
.mcta img { width: 36px; height: 36px; border-radius: 10px; }
.mcta span { flex: 1; font-size: 14px; line-height: 1.25; color: var(--muted); }
.mcta span b { display: block; color: var(--cream); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.3s var(--slow); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(-.4deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 8px); } }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes cloud { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sleepBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025) translateY(-3px); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(26px, -60px); } }
@keyframes huff { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; }
  .hero .lede, .hero .waitlist { margin-left: auto; margin-right: auto; }
  .hero .form-note { text-align: center; }
  .hero .eyebrow::before { display: none; }
  .chip-1 { left: -4%; }
  .chip-2 { right: -4%; }
  .rule-card { grid-template-columns: 1fr; }
  .rule-copy { padding: 52px 36px 40px; text-align: center; align-items: center; }
  .rule-stage { min-height: 460px; }
  .features { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .together { grid-template-columns: 1fr; text-align: center; }
  .together .list { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-bar { justify-content: space-between; }
  .block { padding: 104px 0; }
  .section-head { margin-bottom: 44px; }
  .story { display: block; }
  .story-phone { display: none; }
  .story-steps { padding: 0; display: grid; gap: 64px; }
  .step { min-height: 0; opacity: 1; text-align: center; align-items: center; }
  .step .step-img { display: block; width: min(280px, 72vw); margin: 0 auto 30px; border-radius: 40px; border: 8px solid #1A1E44; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .8); }
  .stages { grid-template-columns: repeat(5, 150px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 10px; margin: 0 -24px; scrollbar-width: none; }
  .stages::-webkit-scrollbar { display: none; }
  .stage { scroll-snap-align: center; }
  .stages { --step: 166px; }
  .pricing { grid-template-columns: 1fr; }
  .mcta { display: flex; }
  .footer { padding-bottom: 130px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .stages { margin: 0 -16px; padding: 0 16px 10px; }
  .nav { top: 10px; }
  .nav-inner { padding: 0 10px; }
  .nav .btn { display: none; }
  .hero { padding: 112px 0 96px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .field { flex-direction: column; border-radius: 26px; padding: 8px; }
  .field input { height: 50px; text-align: center; }
  .field .btn { width: 100%; }
  .phone, .hero .phone { width: min(260px, 68vw); border-radius: 44px; padding: 8px; }
  .phone-screen { border-radius: 37px; }
  .chip { font-size: 13px; padding: 10px 12px; }
  .chip-1 { left: -2%; top: 14%; }
  .chip-2 { right: -2%; bottom: 14%; }
  .moon { width: 64px; height: 64px; right: 6%; }
  .halo { width: 360px; height: 360px; }
  .scroll-hint { display: none; }
  .ticker span { font-size: 18px; }
  .rule-card, .panel, .final-card { border-radius: 30px; }
  .rule-copy { padding: 40px 22px 32px; }
  .rule-stage { min-height: 400px; }
  .toggle button { padding: 10px 14px; font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .panel { min-height: 540px; }
  .panel-copy { padding: 38px 24px 0; }
  .faq summary { font-size: 19px; padding: 22px 40px 22px 0; }
  .final-card { padding: 72px 20px 0; }
  .appstore-btn { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages ---------- */
.legal main { max-width: 760px; margin: 0 auto; padding: 150px 24px 40px; }
.legal h1 { font-size: clamp(40px, 6vw, 62px); margin: 18px 0 10px; }
.legal .updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.legal .intro { font-size: 19px; color: var(--muted); }
.legal main section { margin-top: 20px; padding: 28px 32px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.legal main h2 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.legal main p, .legal main li { color: var(--muted); }
.legal main p:last-child { margin-bottom: 0; }
.legal main ul { padding-left: 1.2em; margin: 8px 0 0; }
.legal main li { margin: 6px 0; }
.legal .footer { margin-top: 80px; padding-bottom: 60px; }
@media (max-width: 640px) { .legal main { padding: 120px 16px 30px; } .legal main section { padding: 22px 20px; } }
