/* Emba landing page. Design: docs/design/emba-headspace (warm page, DM Sans, flat tinted cards, one ember action). */

@font-face { font-family: "DM Sans"; src: url(fonts/dm_sans_400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm_sans_500.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm_sans_700.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f9f4f2; --tile: #fff; --line: #e2ded9; --ink: #2d2c2b; --muted: #63605d;
  --ember: #c84a1e; --ember-ink: #fff; --ember-edge: #8f3010; --ember-soft: #ffe1d3;
  --sun: #ffce00; --indigo: #3b197f;
  --lilac: #ece5fb; --yellow: #fff1bf; --green: #dff2e6; --blue: #e3e5fa; --teal: #d6f0ef; --warm: #ffe3cc;
  --lilac-ink: #5b3fb0; --sun-ink: #8a6200; --green-ink: #15803d; --blue-ink: #4b4fb8; --teal-ink: #0f6f6c; --warm-ink: #a34112;
  --g1: #ffbf94; --g2: #ffd88a; --g3: #fbe9cf;
  --shadow: 0 1px 0 rgba(60, 30, 10, .04), 0 24px 50px -28px rgba(90, 40, 15, .35);
  --shadow-phone: 0 50px 90px -40px rgba(80, 30, 10, .55), 0 0 0 1px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15122a; --tile: #211c3a; --line: #2f2850; --ink: #f5f0ea; --muted: #aaa3c0;
    --ember: #ff8a5c; --ember-ink: #2a1206; --ember-edge: #b8532c; --ember-soft: #3e2433;
    --lilac: #2b2356; --yellow: #2d2735; --green: #1c3230; --blue: #22264f; --teal: #15303a; --warm: #3a2238;
    --lilac-ink: #c8b8ff; --sun-ink: #ffd75e; --green-ink: #7ddc9f; --blue-ink: #a9adff; --teal-ink: #7fe0da; --warm-ink: #ffb08c;
    --g1: #4a2238; --g2: #3a2346; --g3: #231c3f;
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 50px -28px rgba(0, 0, 0, .7);
    --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 "DM Sans", system-ui, sans-serif;
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
h1 { font-size: clamp(44px, 7.2vw, 88px); letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.12; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.sprite { position: absolute; }
.ic { width: 1em; height: 1em; flex: none; }
.center { text-align: center; }
.fine { color: var(--muted); font-size: 14px; }
html:not(.js) .js-only { display: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 8px; }

/* Buttons: a little Duolingo press, Headspace colours. */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 16px/1 "DM Sans", sans-serif; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-ember { background: var(--ember); color: var(--ember-ink); box-shadow: 0 4px 0 var(--ember-edge); }
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ember-edge); }
.btn-ember:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ember-edge); }
.btn-ghost { background: color-mix(in srgb, var(--tile) 70%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--tile); }
.btn-ghost .ic { transition: transform .3s var(--ease); }
.btn-ghost:hover .ic { transform: translateY(3px); }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 17px; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Tags */
.tag {
  --c: var(--warm-ink); display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c);
  font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.tag .ic { width: 15px; height: 15px; }
.tag-warm { --c: var(--warm-ink); } .tag-lilac { --c: var(--lilac-ink); } .tag-sun { --c: var(--sun-ink); }
.tag-teal { --c: var(--teal-ink); } .tag-green { --c: var(--green-ink); } .tag-ember { --c: var(--ember); }
.tag-night { --c: #c8b8ff; } .tag-onindigo { --c: #ffce00; }

.sec-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.sec-head p:not(.tag) { color: var(--muted); font-size: 19px; }

/* Nav: a floating pill that firms up on scroll. */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 14px; border-radius: 999px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled .nav-pill {
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav .btn { margin-left: 4px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Phone frame: plain Android-style bezel with a punch-hole camera. */
.phone { position: relative; margin: 0; padding: 9px; border-radius: 46px; background: #17141f; box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #34303d; }
.phone::before { content: ""; position: absolute; right: -3px; top: 20%; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2a2632; }
.screen { position: relative; overflow: hidden; border-radius: 37px; aspect-ratio: 600 / 1222; background: var(--tile); }
.screen::after { content: ""; position: absolute; top: 11px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #0b0a10; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); z-index: 3; }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }

/* Rive mascot: static WebP until the runtime draws, then the canvas takes over. */
.mascot { position: relative; aspect-ratio: 1; }
.mascot img, .mascot canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
.mascot canvas { opacity: 0; }
.mascot.live canvas { opacity: 1; }
.mascot.live img { opacity: 0; }
.mascot.hop img { animation: hop .7s var(--spring); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 34%, var(--g3) 68%, var(--bg) 100%); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; }
.b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #ffa27a; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: #ffe066; animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
.b3 { width: 30vw; height: 30vw; left: 30vw; bottom: -10vw; background: #ffd2b8; animation: drift 26s ease-in-out -3s infinite alternate; }
@media (prefers-color-scheme: dark) {
  .b1 { background: #7a2e4c; } .b2 { background: #4b2c6e; } .b3 { background: #5a2a3a; }
  .blob { opacity: .55; }
}
.grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 16px 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tile) 62%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); font-size: 14px; font-weight: 700; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 var(--ember); animation: ping 2.4s ease-out infinite; }
.hero h1 { margin-bottom: 24px; }
.w { display: inline-block; }
.hl { position: relative; color: var(--ember); }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .14em; border-radius: 99px; background: var(--sun); z-index: -1; transform-origin: left; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: color-mix(in srgb, var(--ink) 80%, transparent); max-width: 34em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { width: 18px; height: 18px; color: var(--green-ink); }

.hero-stage { position: relative; display: grid; place-items: center; padding: 30px 0; --mx: 0; --my: 0; }
.halo { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, #fff 70%, transparent), transparent 70%); }
@media (prefers-color-scheme: dark) { .halo { background: radial-gradient(closest-side, rgba(255, 138, 92, .22), transparent 70%); } }
.phone-hero { width: clamp(240px, 25vw, 318px); transform: perspective(1400px) rotateY(calc(var(--mx) * 9deg)) rotateX(calc(var(--my) * -7deg)); transition: transform .5s var(--ease); }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 20px; background: var(--tile); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  font-weight: 700; font-size: 16px; line-height: 1.15; white-space: nowrap;
  translate: calc(var(--mx) * var(--z, 18px)) calc(var(--my) * var(--z, 18px));
  transition: translate .5s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
.chip small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.c-ready { top: 12%; left: 2%; --z: 26px; }
.c-fuel { top: 30%; right: 0; --z: -20px; animation-delay: -1.5s; }
.c-streak { bottom: 26%; left: -2%; --z: 14px; animation-delay: -3s; }
.c-sleep { bottom: 9%; right: 4%; --z: -28px; animation-delay: -4.5s; }
.ring { --p: 50; --c: var(--green-ink); position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 10%, transparent) 0); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--tile); }
.ring b { position: relative; font-size: 14px; }
.sq { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; }
.sq .ic { width: 22px; height: 22px; }
.sq-sun { background: var(--yellow); color: var(--sun-ink); }
.sq-ember { background: var(--ember-soft); color: var(--ember); }
.sq-blue { background: var(--blue); color: var(--blue-ink); }
.m-hero { position: absolute; z-index: 3; width: clamp(110px, 11vw, 150px); left: 6%; bottom: -2%; translate: calc(var(--mx) * 34px) calc(var(--my) * 34px); transition: translate .5s var(--ease); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 40px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 35%, transparent); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--indigo); color: #fff; padding: 20px 0; transform: rotate(-1.6deg); margin: -18px -2vw 0; box-shadow: 0 20px 40px -24px rgba(59, 25, 127, .6); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.marquee i { width: 16px; height: 16px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ---------- Three small things ---------- */
.three { padding: clamp(90px, 12vw, 150px) 0; }
.three-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.three-copy p:not(.tag) { color: var(--muted); font-size: 19px; max-width: 30em; }
.three-copy .try { color: var(--ember); font-weight: 700; font-size: 17px; }
.three-card { position: relative; overflow: hidden; padding: 26px; border-radius: 30px; background: var(--tile); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.three-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.m-three { width: clamp(110px, 12vw, 150px); }
.streak-box { display: flex; align-items: center; gap: 6px; padding: 12px 18px 12px 12px; border-radius: 22px; background: var(--ember-soft); color: var(--ember); }
.streak-box .flame { width: 36px; height: 36px; transition: transform .4s var(--spring); }
.three-card.done .flame { transform: scale(1.3) rotate(-8deg); }
.roll { display: inline-block; height: 1em; overflow: hidden; font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.roll-col { display: flex; flex-direction: column; transition: transform .7s var(--spring); }
.roll-col span { height: 1em; }
.roll.up .roll-col { transform: translateY(-1em); }
.streak-word { font-weight: 700; font-size: 15px; line-height: 1.1; max-width: 4.5em; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-item {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); text-align: left;
  font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.todo-item:hover { transform: translateY(-2px); }
.todo-item:active { transform: scale(.98); }
.todo-item .box { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 11px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 22%, transparent); background: var(--tile); color: #fff; transition: background .25s, box-shadow .25s; }
.todo-item .box .ic { width: 20px; height: 20px; transform: scale(0); transition: transform .35s var(--spring); }
.todo-text b { display: block; font-size: 17px; }
.todo-text small { display: block; color: var(--muted); font-size: 14px; }
.todo-tint { position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.t-food { background: var(--teal); } .t-move { background: var(--green); } .t-sleep { background: var(--blue); }
.todo-item[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px transparent; }
.todo-item[aria-pressed="true"] .box { background: var(--green-ink); box-shadow: none; }
@media (prefers-color-scheme: dark) { .todo-item[aria-pressed="true"] .box { background: #2fa35c; } }
.todo-item[aria-pressed="true"] .box .ic { transform: scale(1); }
.todo-item[aria-pressed="true"] .todo-tint { transform: scaleX(1); }
.three-note { margin: 16px 0 0; text-align: center; font-weight: 700; color: var(--muted); }
.three-card.done .three-note { color: var(--ember); }

/* Confetti */
.confetti-host { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.cf { position: absolute; left: var(--ox, 50%); top: var(--oy, 40%); width: 9px; height: 13px; border-radius: 2px; background: var(--c); animation: cf var(--t, 1.5s) cubic-bezier(.15, .7, .35, 1) forwards; }
.cf.round { border-radius: 50%; width: 10px; height: 10px; }

/* ---------- Tour ---------- */
.tour { --tour-bg: var(--bg); position: relative; padding: clamp(90px, 12vw, 140px) 0 60px; background: var(--tour-bg); transition: background-color .8s var(--ease); }
.tour[data-on="warm"] { --tour-bg: color-mix(in srgb, var(--warm) 55%, var(--bg)); }
.tour[data-on="lilac"] { --tour-bg: var(--lilac); }
.tour[data-on="sun"] { --tour-bg: var(--yellow); }
.tour[data-on="teal"] { --tour-bg: var(--teal); }
.tour[data-on="green"] { --tour-bg: var(--green); }
.tour[data-on="ember"] { --tour-bg: var(--ember-soft); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; }
.tour-phone-wrap { position: relative; }
.phone-tour { width: clamp(250px, 23vw, 310px); }
[data-stack] video { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
[data-stack] video.on, html:not(.js) [data-stack] video[data-k="0"] { opacity: 1; transform: none; }
.tour-dots { position: absolute; right: -36px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tour-dots li { width: 8px; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: height .4s var(--spring), background .3s; }
.tour-dots li.on { height: 28px; background: var(--ember); }
.chapter { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.chapter-copy { max-width: 470px; }
.chapter-copy > p:not(.tag) { color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: 18px; }
html.js .chapter .chapter-copy { opacity: .28; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .chapter.on .chapter-copy { opacity: 1; transform: none; }
.phone-inline { display: none; }
.mini { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.mini li { padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--tile) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.mini b { display: block; font-size: 24px; letter-spacing: -.03em; }
.mini span { font-size: 13px; color: var(--muted); }
.weights { display: grid; gap: 10px; margin-top: 8px; max-width: 400px; }
.weights span { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; text-align: right; }
.weights b { text-align: left; }
.weights span::after { content: ""; grid-column: 2; grid-row: 1; height: 10px; border-radius: 99px; width: calc(var(--w) * 2.5%); background: var(--lilac-ink); transform-origin: left; transition: transform .9s var(--ease) .2s; }
html.js .chapter:not(.on) .weights span::after { transform: scaleX(0); }
.weights span:nth-child(2)::after { transition-delay: .3s; } .weights span:nth-child(3)::after { transition-delay: .4s; } .weights span:nth-child(4)::after { transition-delay: .5s; }

/* ---------- Snap → estimate ---------- */
.snap { padding: clamp(90px, 12vw, 150px) 0; }
.snap-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.snap-copy p:not(.tag) { color: var(--muted); font-size: 19px; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; font-size: 16px !important; font-weight: 500; }
.plus-badge { padding: 4px 10px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-size: 12px; font-weight: 700; }
.est { position: relative; display: flex; flex-direction: column; padding-bottom: 10px; }
.est-photo { position: relative; width: 78%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-phone), 0 0 0 6px var(--tile); rotate: -3deg; }
.est-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent); box-shadow: 0 0 20px 6px rgba(255, 255, 255, .55); opacity: 0; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; opacity: .9; }
.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.est-found { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 8px 14px; border-radius: 999px; background: rgba(20, 14, 10, .6); color: #fff; font-size: 15px; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.est-card { position: relative; z-index: 2; align-self: flex-end; width: 62%; min-width: 290px; margin-top: -120px; padding: 20px; border-radius: 28px; background: var(--tile); box-shadow: var(--shadow), 0 0 0 1px var(--line); rotate: 2deg; }
.est-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.est-think { display: inline-flex; gap: 4px; margin-left: auto; }
.est-think i, .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1.2s ease-in-out infinite; }
.est-think i:nth-child(2), .typing i:nth-child(2) { animation-delay: .15s; }
.est-think i:nth-child(3), .typing i:nth-child(3) { animation-delay: .3s; }
.est-rows { list-style: none; margin: 0; padding: 0; }
.est-rows li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.est-rows small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.est-rows b { font-size: 18px; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 700; }
.est-total b { font-size: 30px; letter-spacing: -.03em; color: var(--teal-ink); }
.est-btn { pointer-events: none; }
.illus { position: absolute; right: 0; bottom: -26px; margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Estimate timeline: plays when the piece is on screen, then loops. */
html.js .est:not(.go) .est-rows li, html.js .est:not(.go) .est-total, html.js .est:not(.go) .est-btn, html.js .est:not(.go) .est-found { opacity: 0; }
html.js .est:not(.go) .corner { opacity: 0; transform: scale(1.4); }
.est.go .scan { animation: scan 1.5s var(--ease) .2s both; }
.est.go .corner { animation: corner .5s var(--spring) both; }
.est.go .est-found { animation: pop .5s var(--spring) 1.5s both; }
.est.go .est-think { animation: fadeOut .3s ease 2s both; }
.est.go .est-rows li { animation: rowIn .55s var(--spring) calc(2s + var(--d) * .32s) both; }
.est.go .est-total { animation: rowIn .5s var(--ease) 3s both; }
.est.go .est-btn { animation: pop .55s var(--spring) 3.6s both; }

/* ---------- Coach ---------- */
.coach { padding: clamp(90px, 12vw, 150px) 0; background: linear-gradient(180deg, var(--bg), var(--lilac) 45%, var(--bg)); }
.coach-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.phone-coach { width: clamp(230px, 22vw, 290px); justify-self: center; rotate: -4deg; transition: rotate .6s var(--ease); }
.phone-coach:hover { rotate: 0deg; }
.coach-main header p:not(.tag) { color: var(--muted); font-size: 19px; max-width: 32em; }
.chat { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 20px; border-radius: 30px; background: var(--tile); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips span { padding: 8px 13px; border-radius: 999px; background: var(--lilac); color: var(--lilac-ink); font-size: 14px; font-weight: 500; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 22px; font-size: 16px; }
.bubble.me { align-self: flex-end; background: var(--ember); color: var(--ember-ink); font-weight: 500; border-bottom-right-radius: 6px; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.bubble.emba { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.bubble.emba img { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.bubble.emba p { margin: 0; }
.typing { align-self: start; display: inline-flex; gap: 5px; padding: 16px 18px; background: var(--bg); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
html:not(.js) .typing { display: none; }
.chat-input { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 6px 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.chat-input i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ember); color: var(--ember-ink); }
.chat-input .ic { rotate: 180deg; width: 18px; height: 18px; }
.chat .illus { position: static; text-align: right; margin-top: -2px; }
html.js .chat:not(.go) .bubble.me, html.js .chat:not(.go) .bubble.emba, html.js .chat:not(.go) .typing { opacity: 0; }
.chat.go .chat-chips span:first-child { animation: chipTap .7s var(--ease) .3s both; }
.chat.go .bubble.me { animation: rowIn .5s var(--spring) .9s both; transform-origin: right bottom; }
.chat.go .typing { animation: typingLife 2s ease 1.4s both; }
.chat.go .bubble.emba { animation: rowIn .6s var(--spring) 3.3s both; transform-origin: left bottom; }

/* ---------- Bento ---------- */
.bento { padding: clamp(90px, 12vw, 140px) 0; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; padding: 28px; border-radius: 30px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); }
.tile h3 { font-size: clamp(24px, 2.2vw, 30px); }
.tile p { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.t-plan { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(160deg, var(--warm), var(--yellow)); }
.plan-kcal { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 14px; }
.plan-kcal b { font-size: clamp(46px, 5vw, 64px); letter-spacing: -.045em; line-height: 1; color: var(--ember); }
.plan-kcal span { font-weight: 700; }
.macros { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.macros li { display: grid; grid-template-columns: 62px 1fr 76px; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.macros b { text-align: right; }
.macros i { position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.macros i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c, var(--ember)); transform: scaleX(var(--v)); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.macros li:nth-child(1) { --c: var(--ember); } .macros li:nth-child(2) { --c: #e0a800; } .macros li:nth-child(3) { --c: var(--teal-ink); } .macros li:nth-child(4) { --c: var(--blue-ink); }
.macros li:nth-child(2) i::after { transition-delay: .45s; } .macros li:nth-child(3) i::after { transition-delay: .6s; } .macros li:nth-child(4) i::after { transition-delay: .75s; }
html.js .t-plan:not(.in) .macros i::after { transform: scaleX(0); }
.plan-day { margin: 0; font-weight: 700; color: var(--ink) !important; }
.phone-plan { width: clamp(190px, 17vw, 230px); rotate: 3deg; }
.t-wins { grid-column: span 2; background: var(--green); }
.wins-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wins-num b { font-size: clamp(56px, 7vw, 92px); letter-spacing: -.05em; line-height: .95; color: var(--green-ink); }
.wins-num span { font-weight: 700; font-size: 20px; }
.wins-num + p { margin: 10px 0 14px; font-size: 18px; }
.bears { display: flex; gap: 8px; color: #7a4a2a; }
@media (prefers-color-scheme: dark) { .bears { color: #c48a5e; } }
.bears .ic { width: 44px; height: 44px; }
html.js .t-wins:not(.in) .bears .ic { transform: scale(0); }
.bears .ic { transition: transform .5s var(--spring) 1.2s; }
.bears .ic:nth-child(2) { transition-delay: 1.35s; } .bears .ic:nth-child(3) { transition-delay: 1.5s; }
.t-age { background: var(--lilac); }
.age-dial { position: relative; width: 150px; margin: 0 0 10px; }
.age-dial svg { width: 100%; overflow: visible; }
.age-dial path { fill: none; stroke-width: 12; stroke-linecap: round; }
.age-dial .track { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.age-dial .fill { stroke: var(--lilac-ink); stroke-dasharray: 158; stroke-dashoffset: 56; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
html.js .t-age:not(.in) .age-dial .fill { stroke-dashoffset: 158; }
.age-dial b { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 40px; letter-spacing: -.04em; }
.t-freeze { background: var(--blue); }
.freeze-row { display: flex; gap: 10px; margin-bottom: 16px; }
.ice { width: 56px; height: 56px; border-radius: 16px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue-ink) 40%, transparent); }
.ice.on { position: relative; overflow: hidden; background: linear-gradient(135deg, #c9e8ff, #8ec5ff); box-shadow: inset 0 -4px 0 rgba(30, 80, 160, .18); animation: bob 5s ease-in-out infinite; }
.ice.on::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: rgba(255, 255, 255, .7); rotate: 25deg; animation: shine 3.5s ease-in-out infinite; }
.ice:not(.on) { border: 2px dashed color-mix(in srgb, var(--blue-ink) 40%, transparent); box-shadow: none; }

/* ---------- Night ---------- */
.night { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 160px) 0; background: radial-gradient(120% 80% at 70% 0%, #2b2356, #15122a 60%); color: #f5f0ea; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90px 120px, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 160px 60px, #ffe9b8 50%, transparent 51%), radial-gradient(1px 1px at 230px 170px, #fff 50%, transparent 51%); background-size: 260px 220px; opacity: .55; animation: twinkle 5s ease-in-out infinite alternate; }
.night-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.night-copy p:not(.tag) { color: #aaa3c0; font-size: 19px; }
.night-stage { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.phone-night { width: clamp(220px, 21vw, 280px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 120px -20px rgba(255, 138, 92, .35); }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wg { padding: 16px; border-radius: 24px; background: #211c3a; box-shadow: inset 0 0 0 1px #2f2850; }
.wg small { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #aaa3c0; margin-bottom: 6px; }
.wg b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.wg span { font-size: 13px; color: #aaa3c0; }
.wg-energy { grid-column: span 2; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.wg-energy small { grid-column: 1 / -1; }
.battery { position: relative; width: 120px; height: 34px; padding: 4px; border-radius: 10px; box-shadow: inset 0 0 0 2px #aaa3c0; }
.battery::after { content: ""; position: absolute; right: -6px; top: 10px; width: 4px; height: 14px; border-radius: 0 3px 3px 0; background: #aaa3c0; }
.battery i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 6px; background: linear-gradient(90deg, #ffb800, #ffce00); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
html.js .wg-energy:not(.in) .battery i { transform: scaleX(.05); }
.wg-steps { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.wg-steps .ring { grid-row: span 2; --c: #7ddc9f; }
.wg-steps .ring::before { background: #211c3a; }
.wg-steps small { margin: 0; }
.ring-lg { width: 62px; height: 62px; }
.ring-lg::before { inset: 7px; }
.ring-lg b { font-size: 15px !important; letter-spacing: -.02em; }
.sleep-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 8px; }
.sleep-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: #8f95ff; transform-origin: bottom; transition: transform .8s var(--spring); }
.sleep-bars i:nth-child(7) { background: #c8b8ff; }
html.js .wg-sleep:not(.in) .sleep-bars i { transform: scaleY(.1); }
.sleep-bars i:nth-child(2) { transition-delay: .05s; } .sleep-bars i:nth-child(3) { transition-delay: .1s; } .sleep-bars i:nth-child(4) { transition-delay: .15s; } .sleep-bars i:nth-child(5) { transition-delay: .2s; } .sleep-bars i:nth-child(6) { transition-delay: .25s; } .sleep-bars i:nth-child(7) { transition-delay: .3s; }
.wg-heart small .ic { color: #ff7a8a; animation: beat 1.1s ease-in-out infinite; }

/* ---------- Privacy ---------- */
.privacy { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 160px) 0; background: var(--indigo); color: #fff; }
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .28); }
.r1 { inset: 0; animation: spin 60s linear infinite; }
.r2 { inset: 20%; border-style: solid; border-color: rgba(255, 255, 255, .12); }
.orbit-phone { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px; display: grid; place-items: center; border-radius: 32px; background: #fff; color: var(--indigo); box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 80px 10px rgba(255, 206, 0, .25); }
.orbit-phone .ic { width: 50px; height: 50px; }
.orbit-dots { position: absolute; inset: 10%; animation: spin 22s linear infinite; }
.orbit-dots i { position: absolute; inset: 0; transform: rotate(calc(var(--a) * 60deg)); }
.orbit-dots i::before { content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 16px rgba(255, 206, 0, .7); animation: tryLeave 4s var(--ease) calc(var(--a) * -.7s) infinite; }
.orbit-dots i:nth-child(2)::before { background: #7ddc9f; box-shadow: 0 0 16px rgba(125, 220, 159, .7); }
.orbit-dots i:nth-child(3)::before { background: #ff8a5c; box-shadow: 0 0 16px rgba(255, 138, 92, .7); }
.orbit-dots i:nth-child(4)::before { background: #c8b8ff; box-shadow: 0 0 16px rgba(200, 184, 255, .7); }
.orbit-dots i:nth-child(5)::before { background: #7fe0da; box-shadow: 0 0 16px rgba(127, 224, 218, .7); }
.orbit-dots i:nth-child(6)::before { background: #a9adff; box-shadow: 0 0 16px rgba(169, 173, 255, .7); }
.orbit-lbl { position: absolute; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); animation: bob 7s ease-in-out infinite; }
.l1 { left: 0; top: 18%; } .l2 { right: 2%; top: 26%; animation-delay: -2s; } .l3 { left: 4%; bottom: 20%; animation-delay: -4s; } .l4 { right: 6%; bottom: 12%; animation-delay: -1s; }
.privacy h2 { color: #fff; }
.promise { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 18px; }
.promise li { display: flex; gap: 16px; align-items: flex-start; color: rgba(255, 255, 255, .8); font-size: 17px; }
.promise strong { color: #fff; }
.pi { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--sun); }
.pi .ic { width: 22px; height: 22px; }
.privacy-note { color: rgba(255, 255, 255, .7); font-size: 15px; max-width: 40em; }
.privacy-note a { color: var(--sun); }

/* ---------- Plus ---------- */
.plus { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }

/* ---------- FAQ ---------- */
.faq { padding: 40px 0 clamp(90px, 12vw, 140px); }
.faq-wrap { max-width: 800px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--ember); transition: transform .35s var(--spring); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 4px 22px; margin: 0; max-width: 42em; }
.faq details[open] p { animation: rowIn .4s var(--ease) both; }
.faq a { color: var(--ember); }

/* ---------- Final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 12vw, 150px) 0; text-align: center; }
.final .hero-sky { background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 40%, var(--g3) 75%, var(--bg) 100%); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.m-final { width: clamp(150px, 16vw, 200px); margin-bottom: 10px; }
.final h2 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.045em; }
.final p { font-size: 20px; color: color-mix(in srgb, var(--ink) 78%, transparent); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: var(--ink); }
.foot-fine p { color: var(--muted); font-size: 13px; margin-bottom: 6px; max-width: 60em; }

/* ---------- One app: the cost of three ---------- */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.ticks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: var(--green-ink); margin-top: -1px; }
.ticks-sm { gap: 8px; margin-top: 14px; font-size: 16px; }
.ticks-sm .ic { width: 22px; height: 22px; padding: 4px; }
.bills { position: relative; padding: clamp(100px, 13vw, 160px) 0 clamp(16px, 3vw, 40px); }
.bills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bills-copy > p:not(.tag) { color: var(--muted); font-size: 19px; max-width: 32em; }
.bills-copy .ticks { font-size: 17px; }
.receipt { position: relative; padding: 26px 26px 22px; border-radius: 30px; background: var(--tile); rotate: 1.2deg;
  box-shadow: 0 0 0 1px var(--line), 12px 12px 0 -1px var(--tile), 12px 12px 0 0 var(--line), 24px 24px 0 -1px var(--tile), 24px 24px 0 0 var(--line), 0 40px 70px -30px rgba(90, 40, 15, .45); }
.receipt-head { display: flex; justify-content: space-between; margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bill-rows { list-style: none; margin: 0; padding: 0; }
.bill-rows li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.bill-rows b { margin-left: auto; font-size: 19px; }
.bill-name { font-weight: 700; line-height: 1.2; }
.bill-name small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.sq-teal { background: var(--teal); color: var(--teal-ink); } .sq-green { background: var(--green); color: var(--green-ink); } .sq-lilac { background: var(--lilac); color: var(--lilac-ink); }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 16px 0 18px; font-weight: 700; }
.bill-total s { position: relative; text-decoration: none; font-size: 26px; letter-spacing: -.03em; color: var(--muted); }
.bill-total s::after { content: ""; position: absolute; left: -6%; right: -6%; top: 52%; height: 3px; border-radius: 3px; background: var(--ember); rotate: -4deg; transform-origin: left; transition: transform .5s var(--ease) 1.9s; }
.bill-emba { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 16px 18px; border-radius: 22px; background: var(--ember-soft); }
.bill-emba img { width: 44px; height: 44px; }
.bill-emba > b { font-size: 30px; letter-spacing: -.04em; color: var(--ember); }
.bill-emba > b small { font-size: 15px; letter-spacing: 0; }
.save { position: absolute; right: 14px; top: -16px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: #3a2a00; font-size: 14px; font-weight: 700; rotate: 3deg; box-shadow: 0 6px 16px -8px rgba(90, 60, 0, .6); }
.bills-note { margin: 40px 0 0; max-width: 34em; }
html.js .receipt-wrap .bill-rows li, html.js .receipt-wrap .bill-total, html.js .receipt-wrap .bill-emba, html.js .receipt-wrap .save { transition: opacity .5s var(--ease), transform .6s var(--spring), scale .5s var(--spring); }
html.js .receipt-wrap .bill-rows li { transition-delay: calc(.3s + var(--d) * .25s); }
html.js .receipt-wrap .bill-total { transition-delay: 1.1s; }
html.js .receipt-wrap .bill-emba { transition-delay: 2.4s; }
html.js .receipt-wrap .save { transition-delay: 2.9s; }
html.js .receipt-wrap:not(.in) .bill-rows li, html.js .receipt-wrap:not(.in) .bill-total { opacity: 0; transform: translateY(12px); }
html.js .receipt-wrap:not(.in) .bill-emba { opacity: 0; transform: translateY(18px) scale(.96); }
html.js .receipt-wrap:not(.in) .save { opacity: 0; scale: .4; }
html.js .receipt-wrap:not(.in) .bill-total s::after { transform: scaleX(0); }

/* ---------- Weight tile ---------- */
.tag-blue { --c: var(--blue-ink); }
.t-weight { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--blue); }
.weight-chart { margin: 0; padding: 20px; border-radius: 24px; background: var(--tile); box-shadow: 0 0 0 1px var(--line); }
.wc-head { display: flex; gap: 28px; margin-bottom: 12px; }
.wc-head small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.wc-head b { font-size: 26px; letter-spacing: -.03em; }
.weight-chart svg { width: 100%; height: clamp(130px, 16vw, 180px); overflow: visible; }
.w-dots { fill: color-mix(in srgb, var(--ink) 28%, transparent); transition: opacity .8s var(--ease) .2s; }
.w-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .6s; }
html.js .t-weight:not(.in) .w-dots { opacity: 0; }
html.js .t-weight:not(.in) .w-line { stroke-dashoffset: 1; }
.weight-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.weight-chart figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.k-line { width: 18px; height: 3px; border-radius: 3px; background: var(--ink); }
.illus-inline { margin-left: auto; font-weight: 500; }

/* ---------- Light / dark compare ---------- */
.drag-hint { display: inline-flex !important; align-items: center; gap: 8px; color: var(--sun) !important; font-weight: 700; font-size: 16px !important; }
html:not(.js) .drag-hint { display: none !important; }
.drag-hint .ic { width: 18px; height: 18px; rotate: -90deg; }
.cmp img { position: absolute; inset: 0; }
.cmp-top { clip-path: inset(0 0 0 var(--pos)); }
.cmp-bar { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.cmp-bar i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #15122a; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.cmp-bar .ic { width: 15px; height: 15px; rotate: 90deg; margin: 0 -2px; }
.cmp-bar .ic + .ic { rotate: -90deg; }
.cmp-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--sun); outline-offset: 4px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 32px; background: var(--tile); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: transform .35s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan .ticks { margin: 4px 0 28px; flex: 1; }
.plan .btn { margin-top: auto; }
.plan .fine { margin: 14px 0 0; font-size: 13px; text-align: center; }
.plan-name { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.plan-name img { width: 30px; height: 30px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.plan-price b { font-size: clamp(48px, 5vw, 60px); letter-spacing: -.05em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-plus { background: linear-gradient(165deg, var(--warm), color-mix(in srgb, var(--yellow) 70%, var(--tile))); box-shadow: var(--shadow), 0 0 0 2px var(--ember); }
.plan-plus .plan-price b { color: var(--ember); }
.plan-plus .ticks .ic { background: var(--ember-soft); color: var(--ember); }
.plan-badge { position: absolute; top: -15px; right: 28px; padding: 7px 14px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-size: 14px; font-weight: 700; box-shadow: 0 4px 0 var(--ember-edge); }

/* ---------- Motion (JS on) ---------- */
html.js .rise-words .w { animation: rise .9s var(--spring) calc(var(--i) * 70ms + 120ms) both; }
html.js .hl::after { animation: swoosh .7s var(--ease) 1s both; }
html.js .hero .eyebrow, html.js .hero .lede, html.js .hero .cta-row, html.js .hero .trust { animation: rowIn .8s var(--ease) both; }
html.js .hero .eyebrow { animation-delay: 0s; } html.js .hero .lede { animation-delay: .55s; } html.js .hero .cta-row { animation-delay: .7s; } html.js .hero .trust { animation-delay: .85s; }
html.js .hero-stage .phone-hero { animation: phoneIn 1.2s var(--spring) .3s both; }
html.js .hero-stage .chip { animation: chipIn .8s var(--spring) both, bob 6s ease-in-out infinite; }
html.js .c-ready { animation-delay: .9s, 1.7s !important; } html.js .c-fuel { animation-delay: 1.05s, .3s !important; }
html.js .c-streak { animation-delay: 1.2s, 1s !important; } html.js .c-sleep { animation-delay: 1.35s, 2s !important; }
html.js .m-hero { animation: chipIn .9s var(--spring) 1.5s both; }
html.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) var(--rd, 0s), transform .9s var(--ease) var(--rd, 0s); }
html.js .rv.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(.55em) rotate(5deg); } to { opacity: 1; transform: none; } }
@keyframes swoosh { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; translate: 0 80px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes chipIn { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.15); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes hop { 0%, 100% { transform: none; } 35% { transform: translateY(-22%) scale(.96, 1.06); } 60% { transform: translateY(0) scale(1.08, .92); } }
@keyframes cf { 0% { transform: translate(-50%, -50%) rotate(0) scale(.3); opacity: 1; } 35% { transform: translate(calc(var(--x) * .75), var(--y)) rotate(calc(var(--r) * .4)) scale(1); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 240px)) rotate(var(--r)); opacity: 0; } }
@keyframes scan { 0% { opacity: 0; top: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@keyframes corner { from { opacity: 0; transform: scale(1.5); } to { opacity: .9; transform: none; } }
@keyframes pop { 0% { opacity: 0; scale: .6; } 100% { opacity: 1; scale: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes chipTap { 0% { box-shadow: 0 0 0 0 var(--ember); } 40% { transform: scale(.94); box-shadow: 0 0 0 3px var(--ember); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
@keyframes typingLife { 0% { opacity: 0; transform: translateY(10px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tryLeave { 0%, 55%, 100% { transform: translateY(0); } 68% { transform: translateY(-22px) scale(.9); } 80% { transform: translateY(3px) scale(1.1); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* ---------- Layout below desktop ---------- */
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 110px 0 80px; }
  .hero-grid, .three-grid, .snap-grid, .coach-grid, .night-grid, .privacy-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-stage { margin-top: 10px; }
  .scroll-cue { display: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-sticky { display: none; }
  .chapter { min-height: 0; padding: 40px 0; align-items: center; gap: 28px; }
  .chapter-copy { text-align: center; margin-inline: auto; }
  .mini, .weights { justify-content: center; margin-inline: auto; }
  html.js .chapter .chapter-copy { opacity: 1; transform: none; }
  html.js .chapter:not(.on) .weights span::after { transform: none; }
  .phone-inline { display: block; width: min(250px, 66vw); }
  .snap-copy, .coach-main header, .night-copy, .three-copy { text-align: center; }
  .three-copy p:not(.tag) { margin-inline: auto; }
  .coach-grid .phone-coach { order: 2; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .t-plan { grid-column: span 2; grid-row: auto; }
  .t-wins { grid-column: span 2; }
  .privacy-grid .orbit { max-width: 320px; }
  .privacy-copy { order: -1; }
  .night-stage { grid-template-columns: 1fr; justify-items: center; }
  .bills-grid { grid-template-columns: 1fr; }
  .bills-copy { text-align: center; }
  .bills-copy > p:not(.tag) { margin-inline: auto; }
  .bills-copy .ticks { max-width: 30em; margin-inline: auto; }
  .receipt-wrap { width: 100%; max-width: 520px; margin-inline: auto; }
  .chapter-copy .ticks { max-width: 26em; margin-inline: auto; }
  .t-weight { grid-column: span 2; grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .widgets { width: 100%; max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .sec-head { margin-bottom: 40px; }
  .phone-hero { width: 232px; }
  .chip { font-size: 14px; padding: 7px 12px 7px 7px; border-radius: 16px; gap: 8px; }
  .chip small { font-size: 11px; }
  .ring, .sq { width: 34px; height: 34px; } .sq { border-radius: 11px; } .sq .ic { width: 18px; height: 18px; } .ring::before { inset: 4px; } .ring b { font-size: 12px; }
  .c-ready { left: 0; top: 8%; } .c-fuel { right: 0; } .c-streak { left: 0; } .c-sleep { right: 0; }
  .m-hero { width: 92px; left: 2%; bottom: -4%; }
  .btn-lg { --h: 54px; padding: 0 22px; font-size: 16px; }
  .cta-row .btn { width: 100%; }
  .three-card { padding: 18px; border-radius: 26px; }
  .roll { font-size: 44px; }
  .m-three { width: 96px; }
  .est-photo { width: 92%; }
  .est-card { width: 88%; min-width: 0; margin-top: -70px; padding: 16px; }
  .t-plan { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .plan-copy { width: 100%; }
  .bento-grid { grid-template-columns: 1fr; }
  .t-plan, .t-wins, .t-weight { grid-column: auto; }
  .receipt { padding: 20px 18px 18px; rotate: .6deg; box-shadow: 0 0 0 1px var(--line), 8px 8px 0 -1px var(--tile), 8px 8px 0 0 var(--line), 16px 16px 0 -1px var(--tile), 16px 16px 0 0 var(--line), 0 30px 60px -30px rgba(90, 40, 15, .45); }
  .receipt-wrap { padding-right: 16px; }
  .bill-rows b { font-size: 17px; }
  .bill-name small { font-size: 13px; }
  .bill-total { gap: 16px; font-size: 15px; }
  .bill-total s { font-size: 21px; white-space: nowrap; }
  .bill-emba { padding: 14px; gap: 4px 10px; }
  .bill-emba img { width: 36px; height: 36px; }
  .bill-emba > b { font-size: 24px; }
  .plan { padding: 26px 22px; }
  .wc-head b { font-size: 22px; }
  .tile { padding: 22px; border-radius: 26px; }
  .wg b { font-size: 24px; }
  .battery { width: 96px; }
  .faq summary { font-size: 17px; }
  .marquee { padding: 14px 0; }
}

/* ---------- Reduced motion: everything lands in its final state. ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  .blob, .stars { animation: none; }
}

/* Not on Play yet: the buttons keep their look but don't link or lift. */
.btn.is-soon, .btn.is-soon:hover, .btn.is-soon:active { cursor: default; transform: none; }
.btn-ember.is-soon, .btn-ember.is-soon:hover, .btn-ember.is-soon:active { box-shadow: 0 4px 0 var(--ember-edge); }
