/* Landing page only. style.css is shared with the legal pages and stays as it is;
   everything here is scoped to body.lp. No third-party requests: fonts and
   images are served from this site (see the top of style.css). */

.lp { overflow-x: clip; }
.lp header { max-width: 1180px; position: relative; z-index: 5; }
.lp nav a { opacity: 0.75; }                       /* 0.6 measured under AA on cream */
.lp a:focus-visible, .lp button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.lp footer { opacity: 1; color: rgba(43, 36, 32, 0.75); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--cream); font-weight: 800; }
.skip:focus { left: 16px; }

/* ---- Type: big, heavy, warm ------------------------------------------- */
.lp h1, .lp h2, .lp h3 { color: var(--ink); margin: 0; }
.lp h1 { font-size: clamp(46px, 7vw, 104px); font-weight: 1000; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 18px; }
.lp h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 1000; line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px; }
.lp h3 { font-size: 22px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.lp em { font-style: normal; color: var(--sunrise-dark); }   /* 4.77:1 on cream, 5.02:1 on white */
.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #B83610; margin: 0 0 10px; }
.lead { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; line-height: 1.4; margin: 0; }
.more { margin: 16px 0 0; font-weight: 600; }
ul.more { padding-left: 20px; }
.more li, .more p { font-size: 16px; line-height: 1.45; margin: 6px 0; }
.more .fine { list-style: none; margin-left: -20px; font-size: 14px; color: rgba(43, 36, 32, 0.75); }
.hear { margin-top: 16px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 900; font-size: 15px; cursor: pointer; }
.hear:hover { background: var(--ink); color: var(--cream); }
.soon { margin: 14px 0 0; font-size: 14px; font-weight: 800; color: #B83610; }
/* Small orange text sits on the peach sun as well as on cream: #B83610 keeps it AA on both. */
.lp .note.warn { color: #B83610; }

/* ---- The spine: seven sections, one phone ------------------------------ */
.spine { position: relative; }
.step { position: relative; z-index: 2; padding: 0 max(6vw, 16px); }
.step-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 56px 0; max-width: 1180px; margin: 0 auto; }
.txt { max-width: 500px; }
.hero .waitlist { margin: 26px 0 0; justify-content: flex-start; }
.hero .note, .hero .consent { margin-left: 0; }

/* Still layout (no JS, no 3D, or reduce motion): each section shows its screens. */
.stills { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.still { width: min(250px, 46%); height: auto; border-radius: 38px; border: 8px solid #0d0c0b; background: #0d0c0b; box-shadow: 0 24px 50px rgba(43, 36, 32, 0.22); }
.still + .still { margin-top: 48px; }

.medals { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; }
.medals li { font-size: 13px; line-height: 1; margin: 0; padding: 7px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); font-weight: 700; }
.medals b { font-weight: 900; }
.medal-now { display: none; }

.stage { display: none; }

/* ---- Motion layout ----------------------------------------------------- */
/* The stage and the copy share one grid cell, so the stage stays pinned for
   exactly the length of the seven sections and leaves with the last one. */
.motion .spine { display: grid; grid-template-columns: minmax(0, 1fr); }
.motion .steps { grid-area: 1 / 1; min-width: 0; }
.motion .stage { display: block; grid-area: 1 / 1; align-self: start; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1500px; pointer-events: none; z-index: 1; }
.motion .stills { display: none; }
.motion .step { min-height: calc(var(--k, 1) * 300vh); }   /* scroll distance per screen: bigger = slower motion */
.motion .step-in { display: flex; align-items: center; position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; }
.motion .step.r .txt { margin-left: auto; }
.motion .txt { width: min(480px, 42vw); }
/* The Sleep copy sits on a cream card, because the sky behind it turns to night. */
.motion .step[data-fx="night"] .txt { padding: 28px; border-radius: 28px; background: var(--cream); }
.motion .medals li { opacity: 0.45; transition: opacity 0.3s, transform 0.3s; }
.motion .medals li.on { opacity: 1; transform: scale(1.06); border-color: rgba(43, 36, 32, 0.3); }
.motion .medal-now { display: block; min-height: 3em; font-weight: 800; color: #B83610; }

.sun { position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: 50%; margin: -45vmax 0 0 -45vmax; border-radius: 50%; background: #FFEFE2; will-change: transform; }   /* light enough that small orange and blue text on it stays AA */
.night { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #141C4A 0%, #243A8C 70%, #3A56B5 100%); will-change: opacity; }   /* the app's Sleep sky, for the Sleep section only */
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.rig { position: absolute; left: 50%; top: 54%; transform-style: preserve-3d; will-change: transform; }
.shadow { position: absolute; left: 0; top: 0; width: 260px; height: 44px; margin: calc(var(--pw) * 1.15) 0 0 -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 36, 32, 0.3), transparent); will-change: transform, opacity; }

/* The phone is a real slab in CSS 3D: 13 stacked layers give it thickness. */
.stage { --pw: min(300px, 31vh); }
.phone { width: var(--pw); aspect-ratio: 780 / 1696; position: relative; margin: calc(var(--pw) * -1.087) 0 0 calc(var(--pw) * -0.5); transform-style: preserve-3d; will-change: transform; }
.phone .lay, .phone .back, .phone .front { position: absolute; inset: 0; border-radius: calc(var(--pw) * 0.16); }
.phone .lay { background: #3a3531; }
.phone .front { background: #0d0c0b; padding: calc(var(--pw) * 0.03); transform: translateZ(7px); backface-visibility: hidden; }
.phone .back { background: linear-gradient(145deg, #34302c, #171514); transform: translateZ(-7px) rotateY(180deg); backface-visibility: hidden; }
.phone .cam { position: absolute; top: 4%; left: 6%; width: 42%; aspect-ratio: 1; border-radius: 24%; background: #211e1c; box-shadow: inset 0 0 0 2px #3a3531; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * 0.135); overflow: hidden; background: var(--cream); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.isl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 34%; background: #0A080F; color: #fff; opacity: 0; will-change: opacity; }   /* the celebration's dark ground */
.isl canvas { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.isl b { font-size: calc(var(--pw) * 0.085); font-weight: 1000; line-height: 1.1; }
.isl span { font-size: calc(var(--pw) * 0.042); font-weight: 700; opacity: 0.75; }
.phone .sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.26) 50%, transparent 65%); }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); box-shadow: 0 14px 30px rgba(43, 36, 32, 0.18); font-weight: 900; font-size: 15px; white-space: nowrap; opacity: 0; backface-visibility: hidden; will-change: transform, opacity; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--fresh); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(33, 144, 83, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(33, 144, 83, 0); } }

.guide { position: absolute; left: 50%; top: 54%; width: 150px; height: 150px; margin: 0 0 0 -75px; will-change: transform, opacity; }
.guide img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.bubble { position: absolute; left: 50%; top: 54%; width: 230px; margin-left: -115px; padding: 12px 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--border); box-shadow: 0 14px 30px rgba(43, 36, 32, 0.16); font-weight: 800; font-size: 14px; line-height: 1.3; opacity: 0; will-change: transform, opacity; }

/* ---- Lower sections ---------------------------------------------------- */
.band { position: relative; padding: clamp(64px, 9vw, 120px) max(6vw, 16px); }
.band.white { background: #fff; }
.inner { max-width: 1120px; margin: 0 auto; }
.inner.narrow { max-width: 760px; text-align: center; }
.inner.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.band-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.pose { width: clamp(96px, 12vw, 160px); height: auto; flex: none; }
.pose.big { width: min(320px, 70%); justify-self: center; }

.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strip li { margin: 0; padding: 20px; border-radius: 22px; background: #fff; border: 1.5px solid var(--border); font-size: 16px; font-weight: 600; line-height: 1.45; }
.strip strong { display: block; font-weight: 900; font-size: 18px; margin-bottom: 4px; }

.pro { max-width: 34em; margin: 26px auto 0; padding: 18px 22px; border-radius: 20px; background: var(--cream); border: 1.5px solid var(--border); font-size: 16px; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; margin: 0 0 12px; padding-left: 34px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fresh); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.links { margin: 20px 0 0; font-weight: 700; }
.closing .pose { margin: 0 auto 10px; display: block; }
.closing .waitlist { margin-top: 28px; }

/* ---- Phone widths ------------------------------------------------------ */
@media (max-width: 760px) {
  .lp h1 { font-size: clamp(42px, 13vw, 60px); }
  .step-in { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .txt { max-width: none; }
  .hero .txt { text-align: center; }
  .hero .waitlist { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero .note, .hero .consent { margin-left: auto; }

  .stage { --pw: min(200px, 25vh); }
  .rig, .guide, .bubble { top: 63%; }
  .guide { width: 92px; height: 92px; margin-left: -46px; }
  .bubble { width: 170px; margin-left: -85px; font-size: 12px; padding: 9px 12px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .motion .step { min-height: calc(var(--k, 1) * 300vh); padding-bottom: 24vh; }
  .motion .step-in { display: block; position: static; height: auto; padding: 22px 0 0; }
  .motion .txt { width: auto; text-align: center; }
  .motion .step .txt, .motion .step.r .txt { margin: 0 auto; }
  /* The heading stays pinned at the top as a solid card, so it reads cleanly
     while it passes over the phone. */
  .motion .head { position: sticky; top: 8px; z-index: 3; padding: 14px 14px 16px; background: var(--cream); border: 1.5px solid var(--border); border-radius: 20px; }
  .motion .head h2 { font-size: 32px; margin-bottom: 8px; }
  .motion .head .lead { font-size: 15px; }
  /* The details ride up over the pinned phone as a solid card. */
  .motion .more { margin-top: 60vh; padding: 16px 18px; text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 20px; box-shadow: 0 12px 30px rgba(43, 36, 32, 0.14); }
  .motion ul.more { padding-left: 36px; }
  .motion .medals li { opacity: 1; }
  .motion .step[data-fx="night"] .txt { padding: 0; background: none; }

  .inner.duo, .strip { grid-template-columns: 1fr; }
  .band-head { align-items: center; }
  .pose.big { order: -1; width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip i { animation: none; }
  .medals li { transition: none; }
}
