/* Mila landing page. Tokens mirror ../mila-iphone-app/Sources/Mila/Design/Theme.swift. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --bg: light-dark(#FFF8F0, #1C1518);
  --surface: light-dark(#FFFFFF, #2A2025);
  --sunken: light-dark(#F7EDE3, #231A1E);
  --line: light-dark(#EDE0D4, #3D3036);
  --line-deep: light-dark(#DCCBBC, #33282D);
  --ink: light-dark(#2D2433, #F7EDE7);
  --ink-soft: light-dark(#6B5E70, #BCAAB1);
  --danger: light-dark(#D63A2F, #FF6A5E);

  --coral: #F25A3C; --coral-lip: #C2401F; --coral-soft: light-dark(#FFE4DA, #4A2A24);
  --leaf: #2FA84F;  --leaf-lip: #22843C;  --leaf-soft: light-dark(#DDF5E2, #203A28);
  --sky: #1E8FD0;   --sky-lip: #156FA6;   --sky-soft: light-dark(#DCF0FC, #1C3242);
  --berry: #8B5CF6; --berry-lip: #6B3ED8; --berry-soft: light-dark(#EDE5FF, #2E2547);
  --sun: #FFC233;   --sun-lip: #E09A00;   --sun-soft: light-dark(#FFF3D1, #3F3320);
  --rose: #FF7BA5;  --rose-lip: #DB5683;  --rose-soft: light-dark(#FFE3EC, #46263A);

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --radius: 20px;
  --radius-btn: 18px;
  --border: 2.5px;
  --lip: 5px;
  --card-lip: 4px;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 32px);
  --section: clamp(80px, 11vw, 150px);
  --hh: 74px; /* sticky header height: pinned scenes start below it */

  --ease-mila: cubic-bezier(.3, 1.3, .5, 1);
  --ease-boing: cubic-bezier(.34, 1.56, .64, 1);
  --ease-press: cubic-bezier(.2, .9, .3, 1);
  --dur-mila: 600ms;
  --dur-boing: 900ms;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* The night section pulls the whole page into the warm night theme. */
:root.is-night body { color-scheme: dark; }

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
.still, .still * { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .9s ease, color .9s ease;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.4vw, 62px); }
h3 { font-size: clamp(21px, 2.2vw, 25px); letter-spacing: -.01em; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--sun); color: #2D2433; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; padding-block: var(--section); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); font-weight: 700; max-width: 62ch; }
.fine { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.center { text-align: center; }
.text-link { font-weight: 900; color: light-dark(var(--sky-lip), var(--sky)); text-underline-offset: 4px; text-decoration-thickness: 2.5px; }

/* Highlighted words: a chunky marker stroke that draws in. */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .36em; z-index: -1;
  background: var(--mk, var(--sun)); border-radius: .2em; opacity: .55;
  transform-origin: left; transform: scaleX(1); transition: transform .9s var(--ease-mila) .35s;
}
.js:not(.still) [data-reveal]:not(.in) .mark::after, .js:not(.still) .hero-title:not(.in) .mark::after { transform: scaleX(0); }
.mark--sun { --mk: var(--sun); } .mark--sky { --mk: var(--sky); } .mark--leaf { --mk: var(--leaf); }
.mark--berry { --mk: var(--berry); } .mark--rose { --mk: var(--rose); } .mark--coral { --mk: var(--coral); }

/* ── Chips ──────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  background: var(--t-soft, var(--sunken)); color: var(--ink);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--t, var(--line)) 35%, transparent);
}
.chip--coral { --t: var(--coral); --t-soft: var(--coral-soft); }
.chip--leaf { --t: var(--leaf); --t-soft: var(--leaf-soft); }
.chip--sky { --t: var(--sky); --t-soft: var(--sky-soft); }
.chip--berry { --t: var(--berry); --t-soft: var(--berry-soft); }
.chip--sun { --t: var(--sun-lip); --t-soft: var(--sun-soft); }
.chip--rose { --t: var(--rose); --t-soft: var(--rose-soft); }

/* ── Chunky 3D buttons (ChunkyButtonStyle) ──────────────────────────── */
.btn {
  --face: var(--coral); --face-lip: var(--coral-lip); --on: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: var(--radius-btn);
  font: 900 19px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: var(--on); background: var(--face);
  background-image: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,0) 38%);
  box-shadow: 0 var(--lip) 0 var(--face-lip);
  transform: translateY(0); transition: transform .14s var(--ease-press), box-shadow .14s var(--ease-press), filter .2s;
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--lip) + 2px) 0 var(--face-lip); filter: saturate(1.08); }
.btn:active, .btn.is-pressed { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--face-lip); }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 15px; --lip: 4px; }
.btn--mini { min-height: 34px; font-size: 11px; border-radius: 11px; --lip: 3px; padding: 0 10px; }
.btn--block { width: 100%; }
.btn--leaf { --face: var(--leaf); --face-lip: var(--leaf-lip); }
.btn--sky { --face: var(--sky); --face-lip: var(--sky-lip); }
.btn--berry { --face: var(--berry); --face-lip: var(--berry-lip); }
.btn--rose { --face: var(--rose); --face-lip: var(--rose-lip); --on: #3D1526; }
.btn--sun { --face: var(--sun); --face-lip: var(--sun-lip); --on: #3A2A10; }
.btn--coral { --face: var(--coral); --face-lip: var(--coral-lip); }
.btn--neutral { --face: var(--surface); --face-lip: var(--line-deep); --on: var(--ink); background-image: none; box-shadow: 0 var(--lip) 0 var(--face-lip), inset 0 0 0 var(--border) var(--line); }
.btn--neutral:hover { box-shadow: 0 calc(var(--lip) + 2px) 0 var(--face-lip), inset 0 0 0 var(--border) var(--line); }
.btn--neutral:active { box-shadow: 0 0 0 var(--face-lip), inset 0 0 0 var(--border) var(--line); }
.btn--night { --face: #3A2C33; --face-lip: #251B20; --on: #F7EDE7; }
.btn[disabled] { --face: #E3D9D0; --face-lip: #C9BDB2; --on: #8E8079; cursor: default; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2px var(--line);
  transition: transform .12s var(--ease-press), box-shadow .12s;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-deep), inset 0 0 0 2px var(--line); }
.icon-btn svg { width: 22px; height: 22px; }
[data-sound-toggle] .sound-waves { display: none; }
[data-sound-toggle].is-on .sound-waves { display: block; }
[data-sound-toggle].is-on .sound-off { display: none; }
.theme-btn svg > * { transition: transform .6s var(--ease-boing), opacity .3s; transform-origin: 12px 12px; transform-box: view-box; }
.tb-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-btn.is-dark .tb-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
.theme-btn.is-dark .tb-moon { opacity: 1; transform: none; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  position: relative; background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius);
  box-shadow: 0 var(--card-lip) 0 var(--line-deep); padding: clamp(20px, 3vw, 30px);
  transition: background-color .9s, border-color .9s, box-shadow .9s;
}

/* ── Speech bubble ──────────────────────────────────────────────────── */
.bubble {
  position: absolute; background: var(--surface); color: var(--ink); font-weight: 900; font-size: clamp(14px, 1.6vw, 18px);
  padding: 10px 16px; border-radius: 18px; box-shadow: 0 4px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); white-space: nowrap;
}
.bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -9px; width: 18px; height: 18px; background: var(--surface);
  transform: rotate(45deg); border-radius: 0 0 5px 0; box-shadow: 2.5px 2.5px 0 var(--line);
}

/* ── Reveal on scroll ───────────────────────────────────────────────── */
.js:not(.still) [data-reveal] {
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .55s ease calc(var(--d, 0s) + var(--i, 0) * 90ms), transform var(--dur-mila) var(--ease-mila) calc(var(--d, 0s) + var(--i, 0) * 90ms);
}
.js:not(.still) [data-reveal].in { opacity: 1; transform: none; }

/* Words of the hero title pop in one by one, like the app's splash letters. */
.js:not(.still) .is-split .word { display: inline-block; opacity: 0; transform: translateY(.5em) scale(.6) rotate(-6deg); }
.js:not(.still) .is-split.in .word {
  opacity: 1; transform: none;
  transition: opacity .3s ease calc(var(--i) * 70ms + .1s), transform var(--dur-boing) var(--ease-boing) calc(var(--i) * 70ms + .1s);
}

/* ── Characters ─────────────────────────────────────────────────────── */
.otter, .pup, .duck, .bunny, .butterfly, .sunface, .cloud { width: 100%; height: auto; overflow: visible; }
.otter *, .pup *, .duck *, .bunny *, .butterfly *, .sunface *, .cloud * { transform-box: view-box; }
.o-all { transform-origin: 100px 215px; }
.o-breathe { transform-origin: 100px 220px; }
.o-arm { transform: rotate(var(--a)); transition: transform var(--dur-boing) var(--ease-boing); }
.o-head { transform: rotate(var(--tilt, 0deg)); transition: transform var(--dur-boing) var(--ease-boing); }
.o-pupil { transform: translate(calc(var(--lx, 0) * 6px + var(--dx, 0px)), calc(var(--ly, 0) * 6px + var(--dy, 0px))); transition: transform .35s var(--ease-mila); }
.o-prop { animation: pop-in .6s var(--ease-boing) both; transform-origin: 100px 168px; }
.is-waving .o-arm-right { animation: wave .48s ease-in-out 3 alternate; }
@keyframes wave { from { transform: rotate(-112deg); } to { transform: rotate(-175deg); } }
@keyframes pop-in { from { transform: scale(.2); opacity: 0; } }
.js:not(.still) .o-breathe { animation: breathe 3.6s ease-in-out infinite; }
.js:not(.still) .o-tail { animation: tail 3.6s ease-in-out infinite; }
.js:not(.still) .o-pulse { animation: pulse 1.8s ease-in-out infinite; }
.o-tail { transform: rotate(-48deg); }
@keyframes breathe { 50% { transform: scaleY(1.018); } }
@keyframes tail { 0%, 100% { transform: rotate(-48deg); } 50% { transform: rotate(-58deg); } }
@keyframes pulse { 50% { transform: scale(1.12); } }
.pup .o-breathe { transform-origin: 50px 124px; }
.bunny-ear { transform: rotate(var(--a)); transition: transform .5s var(--ease-boing); }
.bunny.is-twitch .bunny-ear { --a: -32deg !important; }
.duck-wing { transform: rotate(10deg); }
.js:not(.still) .butterfly .bf-wings { animation: flap .22s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.35); } }
.js:not(.still) .sun-rays { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud .drop { opacity: 0; }
.js:not(.still) .cloud .drop { animation: rain 1s linear infinite; animation-delay: calc(var(--i) * -.37s); }
.still .cloud .drop { opacity: .7; }
@keyframes rain { from { transform: translateY(0); opacity: 1; } to { transform: translateY(36px); opacity: 0; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 10px; transition: padding .4s var(--ease-mila); }
.header-inner {
  display: flex; align-items: center; gap: 18px; height: 64px; border-radius: 22px; padding-inline: 14px 10px;
  transition: background-color .4s, box-shadow .4s, max-width .5s var(--ease-mila), backdrop-filter .4s;
}
.site-header.is-scrolled .header-inner {
  max-width: 1040px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--line-deep) 70%, transparent), inset 0 0 0 1.5px color-mix(in srgb, var(--line) 80%, transparent), 0 12px 40px rgba(45,36,51,.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 11px; box-shadow: 0 3px 0 var(--coral-lip); }
.brand-word { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--ink); background: var(--sunken); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.menu-btn { display: none; }
.mobile-menu { position: fixed; inset: calc(var(--hh) + 8px) 10px auto; max-height: calc(100svh - var(--hh) - 20px); overflow-y: auto; z-index: 49; background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: 0 5px 0 var(--line-deep), inset 0 0 0 2.5px var(--line), 0 30px 60px rgba(0,0,0,.15); }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 14px; font-size: 22px; font-weight: 900; text-decoration: none; border-radius: 14px; }
.mobile-menu a:not(.btn):active { background: var(--sunken); }
.mobile-menu .btn { width: 100%; margin-top: 10px; }
.mobile-menu .menu-tools { display: none; }
.mobile-menu .menu-tools .btn svg { width: 22px; height: 22px; }
.mobile-menu:not([hidden]) li { animation: menu-in .5s var(--ease-boing) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 960px) {
  .header-actions, .main-nav + .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --hh: 64px; }
  .site-header { padding-top: 6px; }
  .header-inner { width: auto; margin-inline: 8px; height: 54px; padding-inline: 10px 7px; gap: 8px; border-radius: 18px; }
  .site-header.is-scrolled .header-inner { max-width: none; }
  .header-cta, .sound-btn { display: none; }
  .mobile-menu .menu-tools { display: block; }
  .brand-word { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 42px; height: 42px; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(30px, 6vw, 70px); padding-bottom: clamp(50px, 8vw, 100px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-title { font-size: clamp(46px, 7.4vw, 94px); line-height: .98; letter-spacing: -.035em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { justify-items: center; text-align: center; }
  .cta-row { justify-content: center; }
  .hero-scene { order: -1; max-width: min(460px, 84vw); margin-inline: auto; }
}
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

.hero-scene { position: relative; width: 100%; aspect-ratio: 1 / .95; border-radius: 42% 58% 46% 54% / 50% 44% 56% 50%; overflow: hidden; isolation: isolate; box-shadow: 0 8px 0 light-dark(#BFE3F6, #12202B); }
.hs-sky { position: absolute; inset: 0; background: linear-gradient(light-dark(#BDE6FF, #2B2A4A), light-dark(#E9F7FF, #4A3550) 70%); transition: background .9s; }
.hs-layer { position: absolute; inset: 0; transition: transform .6s var(--ease-mila); will-change: transform; }
.hs-sun { position: absolute; width: 22%; left: 66%; top: 7%; }
.hs-cloud { position: absolute; }
.hs-cloud--a { width: 24%; left: 6%; top: 12%; }
.hs-cloud--b { width: 17%; left: 46%; top: 4%; opacity: .9; }
.js:not(.still) .hs-cloud--a { animation: drift 14s ease-in-out infinite alternate; }
.js:not(.still) .hs-cloud--b { animation: drift 11s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { translate: 26px 0; } }
.hs-bf { position: absolute; width: 7%; }
.hs-bf--a { left: 20%; top: 34%; } .hs-bf--b { left: 80%; top: 36%; width: 6%; } .hs-bf--c { left: 55%; top: 20%; width: 5%; }
.js:not(.still) .hs-bf { animation: flutter 7s ease-in-out infinite; }
.js:not(.still) .hs-bf--b { animation-duration: 8.5s; animation-delay: -2s; }
.js:not(.still) .hs-bf--c { animation-duration: 6s; animation-delay: -4s; }
@keyframes flutter { 25% { translate: 18px -14px; rotate: 10deg; } 50% { translate: -6px -26px; rotate: -8deg; } 75% { translate: -18px -8px; rotate: 6deg; } }
.hs-island { position: absolute; right: -6%; bottom: 26%; width: 40%; height: 16%; border-radius: 50% 50% 0 0; background: light-dark(#7CCB6A, #2F5A35); box-shadow: inset 0 10px 0 light-dark(#97DB84, #3C6E42); }
.hs-friend { position: absolute; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.hs-bunny { right: 6%; bottom: 36%; width: 15%; }
.hs-duck { left: 6%; bottom: 13%; width: 14%; }
.js:not(.still) .hs-duck { animation: bob 2.6s ease-in-out infinite, paddle 9s ease-in-out infinite alternate; }
@keyframes paddle { to { translate: 22px 0; } }
.hs-mila { position: absolute; left: 30%; bottom: 3%; width: 42%; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.js:not(.still) .hs-mila > span { display: block; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4%) rotate(-1.5deg); } }
.hs-bubble { left: 45%; top: 25%; animation: bubble-in .8s var(--ease-boing) 1.3s both; }
.still .hs-bubble { animation: none; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.4) translateY(20px); } }
.hs-water { position: absolute; left: 0; width: 200%; pointer-events: none; }
.hs-water svg { width: 100%; height: 100%; }
.hs-water--back { bottom: 14%; height: 18%; } .hs-water--back path { fill: light-dark(#7FC8F0, #24506E); }
.hs-water--front { bottom: -2%; height: 22%; z-index: 2; } .hs-water--front path { fill: light-dark(#4DB0E6, #1B3F59); }
.js:not(.still) .hs-water--back { animation: waves 9s linear infinite; }
.js:not(.still) .hs-water--front { animation: waves 6s linear infinite reverse; }
@keyframes waves { to { transform: translateX(-50%); } }
.hs-ripples { position: absolute; left: 50%; bottom: 12%; z-index: 3; pointer-events: none; }
.hs-ripples i { position: absolute; width: 90px; height: 22px; margin: -11px -45px; border: 3px solid rgba(255,255,255,.7); border-radius: 50%; opacity: 0; }
.js:not(.still) .hs-ripples i { animation: ripple 3.6s ease-out infinite; }
.hs-ripples i:nth-child(2) { animation-delay: 1.2s !important; } .hs-ripples i:nth-child(3) { animation-delay: 2.4s !important; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ── Marquee ────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; padding-block: 18px; background: var(--ink); color: var(--bg); transform: rotate(-1.5deg); margin-block: 10px; transition: background-color .9s, color .9s; }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 14px; padding-right: 14px; }
.marquee li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 19px; font-weight: 900; padding: 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 12%, transparent); }
.js:not(.still) .marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Phone frame ────────────────────────────────────────────────────── */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px;
  background: #2D2433; box-shadow: 0 0 0 2px #463A4D, 0 10px 0 #1A141E, 0 40px 80px rgba(45,36,51,.25); margin-inline: auto;
}
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #FFF8F0; color: #2D2433; transition: background-color .9s; }
/* App screens are laid out at a fixed design size and scaled to fit (fitPhones in motion.js). */
.phone-ui { position: absolute; left: 0; top: 0; width: 298px; height: 654px; transform-origin: 0 0; transform: translate(var(--ox, 0), var(--oy, 0)) scale(var(--k, 1)); }
.phone-ui::before { content: ""; position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; translate: -50% 0; background: #120D15; border-radius: 99px; z-index: 5; }

/* ── Plan scroll story ──────────────────────────────────────────────── */
.plan { padding-bottom: 0; }
.plan-scene { height: 520vh; position: relative; }
.still .plan-scene { height: auto; }
.plan-sticky { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh)); display: grid; align-items: center; }
.still .plan-sticky { position: static; height: auto; }
.plan-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; }
.plan-steps { display: grid; gap: 10px; counter-reset: s; }
.plan-steps li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 22px; opacity: .38; transition: opacity .4s, background-color .4s, transform .6s var(--ease-mila), box-shadow .4s; }
.plan-steps li.is-active { opacity: 1; background: var(--surface); box-shadow: 0 4px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); transform: translateX(10px); }
.plan-steps h3 { margin-bottom: 4px; }
.plan-steps p { color: var(--ink-soft); }
.step-num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-weight: 900; font-size: 20px; background: var(--sunken); color: var(--ink); transition: background-color .4s, color .4s, transform .6s var(--ease-boing), box-shadow .4s; }
.is-active .step-num { background: var(--sky); color: #fff; box-shadow: 0 4px 0 var(--sky-lip); transform: rotate(-6deg) scale(1.06); }
.plan-phone { width: auto; height: min(680px, calc(100svh - var(--hh) - 40px)); aspect-ratio: 9 / 19; }
.ps-progress { position: absolute; top: 58px; left: 20px; right: 20px; display: flex; gap: 6px; z-index: 4; }
.ps-progress i { flex: 1; height: 10px; border-radius: 9px; background: #EDE0D4; overflow: hidden; position: relative; }
.ps-progress i::after { content: ""; position: absolute; inset: 0; background: var(--leaf); transform-origin: left; transform: scaleX(var(--f, 0)); border-radius: inherit; }
.pscreen { position: absolute; inset: 0; padding: 86px 20px 24px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateX(40px) scale(.96); transition: opacity .4s, transform .6s var(--ease-mila); pointer-events: none; }
.pscreen.is-active { opacity: 1; transform: none; }
.pscreen.is-past { transform: translateX(-40px) scale(.96); }
.ps-title { font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.ps-sub { font-size: 13px; color: #6B5E70; font-weight: 700; line-height: 1.4; }
.ps-bubble { align-self: center; background: #fff; padding: 7px 13px; border-radius: 14px; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 #DCCBBC, inset 0 0 0 2px #EDE0D4; }
.pscreen-art { width: 52%; align-self: center; margin-top: 8px; }
.pscreen[data-screen="0"] { text-align: center; }
.pscreen[data-screen="0"] .btn { margin-top: auto; }
.ps-options { display: grid; gap: 9px; margin-top: 6px; }
.opt { display: flex; justify-content: space-between; padding: 13px 14px; border-radius: 14px; background: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 #DCCBBC, inset 0 0 0 2.5px #EDE0D4; transition: all .5s var(--ease-boing); }
.opt b { opacity: 0; }
.opt.is-picked { background: var(--sky); color: #fff; box-shadow: 0 3px 0 var(--sky-lip); }
.is-active .opt.is-picked { animation: pick .6s var(--ease-boing) .5s both; }
.is-active .opt.is-picked b { opacity: 1; transition: opacity .3s .7s; }
@keyframes pick { from { background: #fff; color: #2D2433; box-shadow: 0 3px 0 #DCCBBC, inset 0 0 0 2.5px #EDE0D4; transform: scale(.96); } }
.ps-reaction { margin: auto -20px -24px; padding: 14px 18px 22px; background: var(--sky); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; border-radius: 22px 22px 0 0; transform: translateY(110%); transition: transform .7s var(--ease-boing); }
.is-active .ps-reaction { transform: none; transition-delay: .9s; }
.ps-reaction-mila { width: 60px; flex: none; }
.ps-mood { position: relative; height: 46%; border-radius: 22px; overflow: hidden; background: linear-gradient(hsl(var(--sky-h, 230) 30% 78%), hsl(var(--sky-h, 230) 40% 90%)); transition: background .3s; }
.ps-mood-sun { position: absolute; width: 34%; right: 8%; top: calc(8% + (1 - var(--m, 0)) * 60%); opacity: var(--m, 0); }
.ps-mood-cloud { position: absolute; width: 46%; left: 6%; top: 6%; opacity: calc(1 - var(--m, 0) * .9); }
.ps-mood-mila { position: absolute; width: 42%; left: 29%; bottom: -4%; }
.ps-slider { height: 14px; border-radius: 9px; background: linear-gradient(90deg, #B9B3C4, var(--sun)); position: relative; margin: 6px 6px 0; }
.ps-slider i { position: absolute; top: 50%; left: calc(var(--m, 0) * 100%); width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 #DCCBBC, inset 0 0 0 3px var(--sun-lip); }
.ps-mood-label { text-align: center; font-weight: 900; font-size: 20px; }
.ps-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-goals span { padding: 9px 12px; border-radius: 12px; background: #fff; font-weight: 900; font-size: 13px; box-shadow: 0 3px 0 #DCCBBC, inset 0 0 0 2px #EDE0D4; transition: all .5s var(--ease-boing); }
.ps-goals span.is-picked { background: var(--berry); color: #fff; box-shadow: 0 3px 0 var(--berry-lip); transform: translateY(-3px) rotate(-2deg); }
.ps-basket { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 20px; background: var(--berry-soft); color: #2D2433; font-weight: 900; background: #EDE5FF; box-shadow: inset 0 0 0 2.5px #D8C9FF; }
.ps-basket.is-bump { animation: jelly .5s var(--ease-boing); }
@keyframes jelly { 30% { transform: scale(1.08, .92); } 60% { transform: scale(.96, 1.04); } }
.ps-card { position: relative; height: 100%; perspective: 1000px; }
.ps-card > div { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1s var(--ease-mila); }
.ps-card-back { display: grid; place-items: center; background: var(--coral); box-shadow: 0 5px 0 var(--coral-lip); padding: 25%; }
.ps-card-front { transform: rotateY(180deg); background: #fff; box-shadow: 0 5px 0 #DCCBBC, inset 0 0 0 2.5px #EDE0D4; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ps-card.is-flipped .ps-card-back { transform: rotateY(-180deg); }
.ps-card.is-flipped .ps-card-front { transform: none; }
.ps-over { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: var(--coral-lip); }
.ps-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-pills span { font-size: 11px; font-weight: 900; padding: 5px 9px; border-radius: 99px; background: #DCF0FC; }
.ps-label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #6B5E70; margin-top: 4px; }
.ps-focus { font-weight: 900; font-size: 15px; }
.ps-days { display: grid; gap: 6px; }
.ps-days li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding: 8px; border-radius: 12px; background: #F7EDE3; flex-wrap: wrap; }
.ps-days b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 12px; }
.ps-days em { font-style: normal; font-size: 11px; margin-left: auto; color: #6B5E70; }
.ps-free { margin-top: auto; text-align: center; font-size: 12px; font-weight: 900; color: var(--leaf-lip); }
@media (max-width: 880px) {
  .plan-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; justify-items: center; height: 100%; padding-block: 10px 14px; }
  .plan-phone { order: -1; height: 100%; max-height: 560px; max-width: 72vw; border-radius: 34px; padding: 8px; }
  .plan-phone .phone-screen { border-radius: 27px; }
  .plan-steps { position: relative; width: 100%; max-width: 480px; min-height: 136px; }
  .plan-steps li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); pointer-events: none; padding: 14px 16px; gap: 14px; }
  .plan-steps li.is-active { transform: none; }
  .plan-steps h3 { font-size: 19px; }
  .plan-steps p { font-size: 14.5px; line-height: 1.45; }
  .step-num { width: 38px; height: 38px; font-size: 17px; border-radius: 12px; }
  .plan-steps li.is-active { opacity: 1; pointer-events: auto; }
  .still .plan-steps { min-height: 0; }
  .still .plan-steps li { position: static; opacity: 1; transform: none; }
}
.still .plan-phone { display: none; }

/* ── Ritual ─────────────────────────────────────────────────────────── */
.ritual-path { position: relative; max-width: 900px; margin: 0 auto 60px; aspect-ratio: 1000 / 240; }
.ritual-path svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rp-track, .rp-done { fill: none; stroke-width: 16; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rp-track { stroke: var(--line); stroke-dasharray: 2 26; }
.rp-done { stroke: var(--coral); stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .3, 1) .3s; }
.ritual-path.in .rp-done { stroke-dashoffset: 0; }
.rp-node, .rp-seed, .rp-mila, .rp-go { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.rp-node { display: grid; place-items: center; width: clamp(54px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(24px, 4vw, 40px); background: var(--n); box-shadow: 0 clamp(5px, .8vw, 8px) 0 var(--n-lip), inset 0 -6px 0 rgba(0,0,0,.08), inset 0 8px 0 rgba(255,255,255,.25); transform: scale(0); transition: transform .8s var(--ease-boing); }
.rp-node--coral { --n: var(--coral); --n-lip: var(--coral-lip); transition-delay: .3s; }
.rp-node--sky { --n: var(--sky); --n-lip: var(--sky-lip); transition-delay: 1.1s; }
.rp-node--berry { --n: var(--berry); --n-lip: var(--berry-lip); transition-delay: 1.9s; }
.ritual-path.in .rp-node { transform: scale(1); }
.ritual-path.in .rp-node--coral { animation: nudge-up 2.4s ease-in-out 2s infinite; }
@keyframes nudge-up { 0%, 70%, 100% { translate: -50% -50%; } 80% { translate: -50% -62%; } 90% { translate: -50% -50%; } }
.rp-seed { width: clamp(50px, 8vw, 84px); aspect-ratio: 1; }
.rp-seed-dot { position: absolute; inset: 30%; border-radius: 50%; background: #9C6B4A; box-shadow: 0 4px 0 #6E4A33; transition: transform .5s; }
.rp-flower { position: absolute; inset: 0; transform: scale(0) rotate(-90deg); transition: transform 1s var(--ease-boing) 2.6s; }
.ritual-path.in .rp-flower { transform: none; }
.ritual-path.in .rp-seed-dot { transform: scale(0); transition-delay: 2.5s; }
.rp-mila { width: clamp(56px, 9vw, 100px); opacity: 0; transition: opacity .4s 0.4s; }
.ritual-path.in .rp-mila { opacity: 1; }
.rp-go { left: calc(var(--x, 0%) + 0%); --x: 6%; --y: 30%; font-size: 15px; font-weight: 900; letter-spacing: .08em; color: var(--coral-lip); background: var(--surface); padding: 6px 12px; border-radius: 12px; box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2px var(--line); opacity: 0; transition: opacity .3s 1s; }
.ritual-path.in .rp-go { opacity: 1; animation: bob 1.6s ease-in-out infinite; }
.still .rp-done { stroke-dashoffset: 0; } .still .rp-node, .still .rp-flower { transform: none; } .still .rp-mila, .still .rp-go { opacity: 1; } .still .rp-seed-dot { display: none; }
@media (max-width: 600px) { .rp-go, .rp-mila { display: none; } }

.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .demo-grid { grid-template-columns: 1fr 1fr; } .demo--check { grid-column: 1 / -1; } }
@media (max-width: 680px) { .demo-grid { grid-template-columns: 1fr; } }
.demo { display: flex; flex-direction: column; gap: 18px; }
.demo-head { display: flex; gap: 14px; align-items: flex-start; }
.demo-head p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.demo-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; }
.demo-icon--coral { background: var(--coral-soft); } .demo-icon--sky { background: var(--sky-soft); } .demo-icon--berry { background: var(--berry-soft); }
.demo-actions { display: flex; gap: 10px; margin-top: auto; }
.demo-actions .btn { flex: 1; }
.demo-hint { text-align: center; font-size: 13px; color: var(--ink-soft); font-weight: 800; margin-top: -6px; }

.exercise { position: relative; border-radius: 18px; background: var(--sunken); overflow: hidden; }
.ex-figure { width: 100%; aspect-ratio: 240 / 150; }
.ex-hud { position: absolute; inset: 10px 12px auto; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.ex-name { font-weight: 900; font-size: 15px; }
.ex-cue { grid-column: 1; font-size: 13px; color: var(--ink-soft); font-weight: 800; }
.ex-reps { grid-row: 1 / 3; grid-column: 2; align-self: start; font-weight: 900; font-size: 14px; background: var(--surface); padding: 4px 10px; border-radius: 10px; }
.ex-reps b { color: var(--coral-lip); font-size: 18px; }

.quiz { position: relative; min-height: 230px; display: grid; }
.quiz-deck { position: relative; display: grid; }
.qcard { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; border-radius: 18px; background: var(--sky-soft); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--sky) 30%, transparent); touch-action: pan-y; cursor: grab; user-select: none; transition: transform .5s var(--ease-mila), opacity .4s; }
.qcard:first-child { z-index: 3; }
.qcard:nth-child(2) { z-index: 2; transform: translateY(12px) scale(.94); opacity: .55; }
.qcard:nth-child(2) > * { visibility: hidden; }
.qcard:nth-child(n+3) { opacity: 0; }
.qcard.is-dragging { transition: none; cursor: grabbing; }
.qcard p.q-prompt { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: light-dark(var(--sky-lip), var(--sky)); }
.qcard p.q-text { font-size: 19px; font-weight: 900; line-height: 1.25; }
.qcard .q-explain { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.qcard .q-verdict { font-size: 15px; font-weight: 900; }
.qcard.is-right { background: var(--leaf-soft); box-shadow: inset 0 0 0 2.5px var(--leaf); }
.qcard.is-wrong { background: var(--sun-soft); box-shadow: inset 0 0 0 2.5px var(--sun-lip); }
.q-stamp { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 9px; border: 3px solid; opacity: 0; rotate: 12deg; }
.q-stamp--t { color: var(--sky-lip); } .q-stamp--f { left: 14px; right: auto; color: var(--berry-lip); rotate: -12deg; }
.quiz-result { grid-area: 1 / 1; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.quiz-stars { font-size: 44px; letter-spacing: 6px; }
.quiz-score { font-size: 22px; font-weight: 900; }

.mood { border-radius: 18px; overflow: hidden; background: var(--sunken); }
.mood-sky { position: relative; height: 170px; background: linear-gradient(hsl(var(--h) 45% var(--l1)), hsl(var(--h) 55% var(--l2))); --h: calc(230 - var(--m) * 46); --l1: calc(68% + var(--m) * 8%); --l2: calc(84% + var(--m) * 6%); --m: .5; transition: --m .6s; }
.mood-sun { position: absolute; width: 74px; right: 12%; top: calc(8px + (1 - var(--m)) * 90px); opacity: var(--m); transition: top .6s var(--ease-mila), opacity .6s; }
.mood-cloud { position: absolute; width: 100px; left: 8%; top: 10px; opacity: calc(1.1 - var(--m)); transition: opacity .6s; }
.mood-mila { position: absolute; width: 92px; left: 50%; bottom: -10px; translate: -50% 0; }
.mood-label { text-align: center; font-weight: 900; font-size: 22px; padding-top: 12px; }
.mood-reply { text-align: center; padding: 2px 16px 16px; font-size: 14px; color: var(--ink-soft); font-weight: 800; min-height: 3.5em; }
.mood-range input { width: 100%; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 9px; background: linear-gradient(90deg, #B9B3C4, var(--sun)); }
input[type="range"]::-moz-range-track { height: 14px; border-radius: 9px; background: linear-gradient(90deg, #B9B3C4, var(--sun)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--sun-lip); box-shadow: 0 3px 0 var(--sun-lip); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--sun-lip); box-shadow: 0 3px 0 var(--sun-lip); }

.lift-card { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 50px); align-items: center; }
.lift-copy { display: grid; gap: 14px; justify-items: start; }
.lift-copy > p:not(.chip):not(.fine) { color: var(--ink-soft); }
.lift-game { display: flex; gap: 22px; align-items: center; justify-content: center; }
.lift-shaft { position: relative; width: 120px; height: 300px; border-radius: 22px; background: var(--sunken); box-shadow: inset 0 0 0 2.5px var(--line); display: flex; flex-direction: column-reverse; padding: 6px; gap: 6px; }
.lift-shaft i { flex: 1; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .3s; }
.lift-shaft i.is-lit { background: var(--leaf-soft); box-shadow: inset 0 0 0 2px var(--leaf); }
.lift-car { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 52px; border-radius: 14px; background: var(--leaf); box-shadow: 0 4px 0 var(--leaf-lip); display: grid; place-items: center; transform: translateY(calc(var(--floor, 0) * -58px)); transition: transform .45s var(--ease-mila); }
.lift-car span { width: 40px; margin-top: -14px; }
.lift-side { display: grid; gap: 12px; justify-items: center; text-align: center; }
.lift-floor { display: grid; line-height: 1; } .lift-floor b { font-size: 64px; font-weight: 900; } .lift-floor span { font-weight: 900; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.lift-msg { font-weight: 900; min-height: 2.6em; max-width: 16ch; }
.lift-btn { white-space: nowrap; touch-action: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (max-width: 760px) { .lift-btn { font-size: 16px; padding: 0 18px; } .lift-card { grid-template-columns: 1fr; } .lift-shaft { height: 250px; width: 100px; } .lift-car { transform: translateY(calc(var(--floor, 0) * -48px)); height: 42px; } }

/* ── Adapts ─────────────────────────────────────────────────────────── */
.adapts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.adapts-copy { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 880px) { .adapts-grid { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--leaf); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 2px 0 var(--leaf-lip); }
.ticks--sm li { font-size: 15px; padding-left: 32px; } .ticks--sm li::before { width: 21px; height: 21px; font-size: 12px; }
.session { display: grid; gap: 18px; }
.session-q { font-size: 22px; font-weight: 900; }
.energy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.energy button { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 0; border-radius: 16px; font-weight: 900; font-size: 14px; line-height: 1.2; background: var(--surface); box-shadow: 0 4px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); transition: transform .3s var(--ease-boing), background-color .3s, box-shadow .3s, color .3s; }
.energy button span { font-size: 28px; }
.energy button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line-deep), inset 0 0 0 2.5px var(--line); }
.energy button[aria-checked="true"] { background: var(--berry); color: #fff; box-shadow: 0 4px 0 var(--berry-lip); transform: translateY(-2px); }
.session-body { display: grid; gap: 12px; border-radius: 18px; background: var(--sunken); padding: 16px; }
.session-intro { font-weight: 900; min-height: 1.5em; }
.session-list { display: grid; gap: 8px; }
.session-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-weight: 800; box-shadow: inset 0 0 0 2px var(--line); animation: row-in .6s var(--ease-boing) both; animation-delay: calc(var(--i, 0) * 70ms); }
.session-list li span { margin-left: auto; color: var(--ink-soft); font-size: 14px; }
.session-list li i { font-style: normal; font-size: 20px; }
.session-list li.is-out { animation: row-out .3s ease both; }
@keyframes row-in { from { opacity: 0; transform: translateX(30px) scale(.9); } }
@keyframes row-out { to { opacity: 0; transform: translateX(-30px) scale(.9); } }
.session-foot { display: flex; align-items: center; justify-content: space-between; }
.session-foot p { font-weight: 900; font-size: 18px; } .session-foot b { font-size: 26px; }
.hurt-btn { border: 0; border-radius: 99px; padding: 9px 16px; font-weight: 900; background: var(--coral-soft); color: var(--ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--coral) 40%, transparent); }
.hurt-menu { display: grid; gap: 8px; animation: menu-in .5s var(--ease-boing); }
.hurt-menu button { text-align: left; border: 0; padding: 12px 14px; border-radius: 14px; font-weight: 900; background: var(--surface); box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2px var(--line); }
.hurt-menu p { font-size: 13px; color: var(--ink-soft); font-weight: 800; text-align: center; }
.still .session-list li, .still .hurt-menu { animation: none; }

/* ── Garden ─────────────────────────────────────────────────────────── */
.garden { background: linear-gradient(transparent, color-mix(in srgb, var(--leaf-soft) 70%, transparent) 30%, transparent); }
.week { max-width: 860px; margin-inline: auto; overflow: hidden; }
.week-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.week-streak { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.week-streak b { font-size: 30px; }
.week-hint { color: var(--ink-soft); font-weight: 800; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.4vw, 14px); }
.day { display: grid; gap: 8px; justify-items: center; }
.day-name { font-size: 13px; font-weight: 900; color: var(--ink-soft); text-transform: uppercase; }
.day-tile { position: relative; width: 100%; aspect-ratio: 1 / 1.15; border-radius: 16px; background: var(--sunken); box-shadow: inset 0 -12px 0 light-dark(#E3D3C2, #2E2328); display: grid; place-items: center; overflow: hidden; }
.day-tile svg { width: 80%; transform: scale(0) rotate(-60deg); transition: transform .8s var(--ease-boing); }
.day.is-shown .day-tile svg { transform: none; }
.day[data-state="today"] .day-tile { box-shadow: inset 0 -12px 0 light-dark(#E3D3C2, #2E2328), inset 0 0 0 3px var(--coral); }
.day[data-state="missed"] .day-tile::after { content: ""; position: absolute; bottom: 12px; width: 50%; height: 12px; border-radius: 50%; background: #9C6B4A; opacity: .5; }
.week-bunny { position: absolute; width: 56px; top: 64px; left: -70px; pointer-events: none; }
.week-bunny.is-hopping { animation: bunny-hop 3.4s linear forwards; }
@keyframes bunny-hop {
  0% { transform: translate(0, 0); } 10% { transform: translate(10vw, -30px); } 20% { transform: translate(20vw, 0); } 30% { transform: translate(30vw, -30px); }
  40% { transform: translate(40vw, 0); } 50% { transform: translate(50vw, -30px); } 60% { transform: translate(60vw, 0); } 70% { transform: translate(70vw, -30px); }
  80% { transform: translate(80vw, 0); } 90% { transform: translate(90vw, -30px); } 100% { transform: translate(100vw, 0); }
}
.week-repair { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--leaf-soft); transition: opacity .4s, transform .5s var(--ease-mila); }
.week-repair.is-done { opacity: .0; transform: translateY(10px); pointer-events: none; }
.week-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; justify-content: center; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.week-legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 5px; } .lg--bloom { background: var(--rose); } .lg--bud { background: var(--leaf); } .lg--rest { background: var(--sun); } .lg--missed { background: #C9A88C; }
@media (max-width: 560px) { .week-repair { flex-direction: column; text-align: center; } .day-name { font-size: 11px; } }

.garden-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 34px auto 0; }
.rule { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 15px; }
.rule span { font-size: 30px; }
@media (max-width: 880px) { .garden-rules { grid-template-columns: 1fr 1fr; } }
.collection { margin-top: 50px; text-align: center; }
.collection h3 { margin-bottom: 20px; }
.collection-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.flower-chip { display: grid; justify-items: center; gap: 6px; width: 84px; padding: 12px 6px 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2px var(--line); font-size: 12px; font-weight: 900; color: var(--ink-soft); transition: transform .4s var(--ease-boing); }
.flower-chip:hover { transform: translateY(-6px) rotate(-4deg); }
.flower-chip svg { width: 46px; }
.js:not(.still) .collection.in .flower-chip svg { animation: bloom .9s var(--ease-boing) both; animation-delay: calc(var(--i) * 90ms + .2s); }
@keyframes bloom { from { transform: scale(0) rotate(-120deg); } }

/* ── Rewards ────────────────────────────────────────────────────────── */
.rewards-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.reward { display: flex; flex-direction: column; gap: 10px; }
.reward > p { color: var(--ink-soft); font-size: 15px; }
.reward--pack { grid-row: span 2; }
.reward--meadow { grid-column: span 2; }
@media (max-width: 1000px) { .rewards-grid { grid-template-columns: 1fr 1fr; } .reward--pack { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 640px) { .rewards-grid { grid-template-columns: 1fr; } .reward--meadow { grid-column: auto; } .pack-stage { min-height: 290px; } .pw { margin-top: 6px; } }
.pack-stage { position: relative; flex: 1; min-height: 340px; display: grid; place-items: center; perspective: 800px; }
.pack-rays { position: absolute; width: 320px; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--sun) 55%, transparent) 0 10deg, transparent 10deg 20deg); mask: radial-gradient(closest-side, #000 30%, transparent); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); opacity: 0; transform: scale(.4); transition: opacity .4s, transform .8s var(--ease-boing); }
.pack-stage.is-open .pack-rays { opacity: 1; transform: scale(1); animation: spin 12s linear infinite; }
.pack { position: relative; width: 170px; height: 230px; border: 0; padding: 0; background: none; transform-style: preserve-3d; }
.js:not(.still) .pack:not(.is-torn) { animation: pack-wiggle 2.6s ease-in-out infinite; }
@keyframes pack-wiggle { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-6deg) scale(1.03); } 76% { transform: rotate(5deg) scale(1.03); } 84% { transform: rotate(-3deg); } 92% { transform: rotate(2deg); } }
.pack-body, .pack-top { position: absolute; left: 0; right: 0; background: linear-gradient(135deg, var(--berry), var(--rose) 45%, var(--sun) 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.pack-top { top: 0; height: 40px; border-radius: 18px 18px 0 0; clip-path: polygon(0 0, 100% 0, 100% 80%, 92% 100%, 84% 80%, 76% 100%, 68% 80%, 60% 100%, 52% 80%, 44% 100%, 36% 80%, 28% 100%, 20% 80%, 12% 100%, 4% 80%, 0 100%); transition: transform .7s var(--ease-mila), opacity .7s; }
.pack-body { top: 32px; bottom: 0; border-radius: 0 0 18px 18px; display: grid; place-content: center; text-align: center; color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 0 var(--berry-lip); clip-path: polygon(0 8%, 4% 0, 12% 8%, 20% 0, 28% 8%, 36% 0, 44% 8%, 52% 0, 60% 8%, 68% 0, 76% 8%, 84% 0, 92% 8%, 100% 0, 100% 100%, 0 100%); }
.pack-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); background-size: 250% 100%; animation: shine 3s ease-in-out infinite; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.pack-logo { font-size: 44px; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.pack-sub { font-size: 12px; font-weight: 900; letter-spacing: .3em; }
.pack.is-torn .pack-top { transform: translate(40px, -90px) rotate(28deg); opacity: 0; }
.pack.is-torn .pack-body { animation: pack-drop .7s ease-in .25s forwards; }
@keyframes pack-drop { to { transform: translateY(200px) rotate(-8deg); opacity: 0; } }
.pack.is-gone { visibility: hidden; }
.sticker { position: absolute; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--rim, var(--line-deep)), 0 14px 30px rgba(0,0,0,.18); transition: transform .3s; }
.sticker.is-in { animation: sticker-in 1.1s var(--ease-boing) both; }
@keyframes sticker-in { from { transform: scale(.1) rotate(-540deg); opacity: 0; } 40% { opacity: 1; } }
.sticker-emoji { font-size: 86px; line-height: 1; }
.sticker[data-rarity="rare"] { --rim: #E0A800; box-shadow: 0 0 0 6px #fff, 0 0 0 10px #FFC233, 0 0 40px #FFC23399, 0 14px 30px rgba(0,0,0,.18); }
.sticker[data-rarity="legendary"]::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: -1; background: conic-gradient(from var(--holo, 0deg), #FF7BA5, #FFC233, #2FA84F, #1E8FD0, #8B5CF6, #FF7BA5); filter: saturate(1.3); animation: holo 3s linear infinite; }
.sticker[data-rarity="legendary"] { box-shadow: 0 0 0 6px #fff, 0 0 50px #8B5CF699, 0 14px 30px rgba(0,0,0,.18); }
@property --holo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes holo { to { --holo: 360deg; } }
.pack-rarity { position: absolute; bottom: 4px; font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; }
.pack-again { align-self: center; }
.pack-note { text-align: center; }

.level { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.level-mila { width: 110px; flex: none; border: 0; padding: 0; background: none; -webkit-tap-highlight-color: transparent; }
.level-meta { flex: 1; display: grid; gap: 10px; }
.level-pill { justify-self: start; font-weight: 900; padding: 5px 12px; border-radius: 99px; background: var(--sun); color: #3A2A10; box-shadow: 0 3px 0 var(--sun-lip); }
.level-pill.is-up { animation: jelly .6s var(--ease-boing); }
.level-bar { height: 16px; border-radius: 9px; background: var(--sunken); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.level-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--coral)); transition: width 1.4s var(--ease-mila); }
.level-trick { font-weight: 900; font-size: 15px; min-height: 1.5em; }

.pw { margin-top: auto; display: grid; gap: 14px; }
.pw-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pw-dots i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 13px; background: var(--sunken); color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line); transition: all .5s var(--ease-boing); transition-delay: calc(var(--i) * 140ms + .3s); }
.in .pw-dots i { background: var(--sun); color: #3A2A10; box-shadow: 0 3px 0 var(--sun-lip); transform: translateY(-2px); }
.pw-banner { text-align: center; font-weight: 900; font-size: 20px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(90deg, var(--coral), var(--rose), var(--berry)); transform: scale(0); transition: transform .8s var(--ease-boing) 1.5s; }
.in .pw-banner { transform: none; }

.meadow { position: relative; margin-top: auto; height: 230px; border-radius: 18px; overflow: hidden; background: linear-gradient(light-dark(#CDEBFF, #2B2A4A), light-dark(#EAF7FF, #463550)); touch-action: none; }
.meadow-hill { position: absolute; left: -10%; right: -10%; bottom: -60%; height: 110%; border-radius: 50%; background: light-dark(#8BD178, #2F5A35); box-shadow: inset 0 12px 0 light-dark(#A5E091, #3C6E42); }
.meadow-mila { position: absolute; width: 110px; left: 50%; bottom: 8px; translate: -50% 0; }
.meadow-item { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; border: 0; padding: 0; background: none; font-size: 40px; line-height: 1; cursor: grab; touch-action: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.15)); transition: scale .3s var(--ease-boing); }
.meadow-item.is-dragging { cursor: grabbing; scale: 1.3; z-index: 3; }

/* ── Journey ────────────────────────────────────────────────────────── */
.journey { padding-bottom: 0; }
.journey-scene { height: 480vh; position: relative; }
.journey-sticky { position: sticky; top: var(--hh); height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh)); display: grid; align-items: center; }
.journey-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; height: 100%; padding-block: 16px 24px; }
.journey-panel { display: grid; gap: 12px; z-index: 2; }
.jp-day { font-weight: 900; font-size: 20px; color: var(--ink-soft); } .jp-day b { font-size: 54px; color: var(--ink); letter-spacing: -.03em; }
.jp-world { font-size: 26px; font-weight: 900; }
.jp-world.is-new { animation: jelly .6s var(--ease-boing); }
.jp-text { color: var(--ink-soft); font-weight: 700; min-height: 4.6em; }
.jp-bar { height: 12px; border-radius: 9px; background: var(--sunken); overflow: hidden; }
.jp-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--coral); border-radius: inherit; }
.jp-worlds { display: grid; gap: 4px; font-weight: 800; color: var(--ink-soft); font-size: 15px; }
.jp-worlds li { padding: 4px 10px; border-radius: 10px; transition: background-color .3s, color .3s; }
.jp-worlds li.is-here { background: var(--sky-soft); color: var(--ink); }
.jp-worlds li.is-done { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.journey-map { position: relative; height: 100%; border-radius: 32px; overflow: hidden; box-shadow: 0 6px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); background: #D9CCF2; }
.journey-map > svg { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }
:root[data-theme="dark"] .journey-map > svg, .is-night .journey-map > svg { filter: brightness(.82) saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .journey-map > svg { filter: brightness(.82) saturate(.9); } }
.j-friend { cursor: default; }
@media (max-width: 880px) {
  .journey-scene { height: 420vh; }
  .journey-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding-block: 10px 14px; }
  .journey-map { border-radius: 24px; }
  .journey-panel { padding: 14px 16px; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
  .jp-day { grid-row: span 2; } .jp-day b { font-size: 40px; }
  .jp-world { font-size: 17px; line-height: 1.2; }
  .jp-text { grid-column: 1 / -1; min-height: 2.9em; font-size: 14px; line-height: 1.45; }
  .jp-bar { grid-column: 1 / -1; }
  .jp-worlds, .journey-panel .fine { display: none; }
}
.still .journey-scene { height: auto; } .still .journey-sticky { position: static; height: 80vh; }

/* ── Together ───────────────────────────────────────────────────────── */
.together-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; }
@media (max-width: 880px) { .together-grid { grid-template-columns: 1fr; } }
.circle-card, .feed-card { display: flex; flex-direction: column; gap: 12px; }
.circle-card > p, .feed-card > p:not(.fine) { color: var(--ink-soft); font-size: 15px; }
.circle { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 10px auto; }
.circle-ring { width: 100%; transform: rotate(-90deg); }
.cr-track, .cr-fill { fill: none; stroke-width: 18; }
.cr-track { stroke: var(--sunken); }
.cr-fill { stroke: var(--rose); stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: 490; transition: stroke-dashoffset 2s var(--ease-mila); }
.circle-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.circle-center b { font-size: 56px; font-weight: 900; line-height: 1; } .circle-center span { font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.circle-mums { position: absolute; inset: 0; }
.mum { position: absolute; left: calc(50% + var(--cx)); top: calc(50% + var(--cy)); translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: 0 3px 0 rgba(0,0,0,.18), inset 0 0 0 3px rgba(255,255,255,.4); display: grid; place-items: center; font-size: 20px; transform: scale(0); transition: transform .7s var(--ease-boing); transition-delay: calc(var(--i) * 120ms); }
.in .mum, .circle-card.in .mum { transform: scale(1); }
.mum::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 0 0 2.5px var(--surface); transform: scale(0); transition: transform .5s var(--ease-boing); transition-delay: calc(var(--i) * 160ms + 1.2s); }
.mum.is-done::after { transform: scale(1); }
.circle-card .btn { align-self: center; }
.feed { display: grid; gap: 12px; }
.post { padding: 16px; border-radius: 18px; background: var(--sunken); display: grid; gap: 10px; }
.post > p { font-weight: 800; font-size: 17px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head b { display: block; font-weight: 900; font-size: 15px; } .post-head span { font-size: 13px; color: var(--ink-soft); font-weight: 800; }
.post-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--av, var(--berry)); font-size: 18px; }
.post-av--mask { background: var(--ink); }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reactions button { display: inline-flex; gap: 6px; align-items: center; border: 0; padding: 7px 13px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); font-weight: 900; font-size: 14px; transition: transform .3s var(--ease-boing), background-color .3s; }
.reactions button:active { transform: scale(.9); }
.reactions button.is-on { background: var(--rose-soft); box-shadow: inset 0 0 0 2px var(--rose); }
.poll { display: grid; gap: 8px; }
.poll-row { position: relative; display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--surface); overflow: hidden; font-weight: 800; font-size: 14px; isolation: isolate; }
.poll-row::before { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--leaf-soft); z-index: -1; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-mila) .3s; }
.in .poll-row::before { transform: none; }
.still .poll-row::before, .still .cr-fill { transition: none; }

/* ── Safety ─────────────────────────────────────────────────────────── */
.safety-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .safety-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .safety-grid { grid-template-columns: 1fr; } }
.safe { display: grid; gap: 8px; align-content: start; padding: 20px; }
.safe h3 { font-size: 19px; } .safe p { color: var(--ink-soft); font-size: 14px; }
.safe-icon { font-size: 34px; }
.safe--danger { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); box-shadow: 0 var(--card-lip) 0 color-mix(in srgb, var(--danger) 40%, var(--line-deep)); }
.safe--danger h3 { color: var(--danger); }
/* Calmer motion in this section: slower and softer. */
.safety [data-reveal] { transition-duration: .9s, 1.2s !important; transition-timing-function: ease, cubic-bezier(.2,.7,.2,1) !important; }
.calm { margin-top: 26px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 10px 40px; align-items: center; background: var(--berry-soft); border-color: color-mix(in srgb, var(--berry) 30%, var(--line)); }
.calm-copy { display: grid; gap: 12px; justify-items: start; }
.calm-copy p { color: var(--ink-soft); }
.calm-stage { grid-row: span 2; position: relative; width: 260px; aspect-ratio: 1; display: grid; place-items: center; }
.calm-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--berry) 45%, transparent); }
.calm-orb { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #B79BFF, var(--berry)); box-shadow: 0 8px 0 var(--berry-lip), 0 0 60px #8B5CF655; display: grid; place-items: center; transform: scale(var(--s, 1)); transition: transform var(--t, 1s) ease-in-out; }
.calm-orb span { width: 66%; }
.calm-label { font-size: 22px; font-weight: 900; color: light-dark(var(--berry-lip), #C4B0FF); }
@media (max-width: 700px) { .calm { grid-template-columns: 1fr; justify-items: center; text-align: center; } .calm-copy { justify-items: center; } .calm-stage { grid-row: auto; width: 220px; } }
.disclaimer { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 30px auto 0; padding: 18px 20px; border-radius: 18px; background: var(--sunken); font-size: 15px; }
.disclaimer span { font-size: 26px; }

/* ── Night ──────────────────────────────────────────────────────────── */
.night { color-scheme: dark; background: #1C1518; color: #F7EDE7; overflow: clip; }
.night-sky { position: absolute; inset: 0; pointer-events: none; }
.night-star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #FFE7B0; box-shadow: 0 0 6px #FFE7B0; opacity: .8; }
.js:not(.still) .night-star { animation: twinkle var(--d) ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; transform: scale(.6); } }
.night-moon { position: absolute; right: 8%; top: 70px; width: 110px; aspect-ratio: 1; border-radius: 50%; box-shadow: -22px 10px 0 0 #FFD98A; filter: drop-shadow(0 0 30px #FFD98A66); }
.night-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 80px); align-items: center; }
.night-copy { display: grid; gap: 20px; justify-items: start; }
.night .lead { color: #BCAAB1; }
.night-whisper { font-size: 19px; font-weight: 800; font-style: italic; color: #FFD98A; min-height: 3em; transition: opacity .8s; }
.night-whisper.is-fading { opacity: 0; }
.night-phone .phone-screen { background: #1C1518; color: #F7EDE7; }
.night-phone { width: min(320px, 76vw); }
.night-screen { height: 100%; padding: 70px 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ns-mila { width: 55%; }
.ns-title { font-weight: 900; color: #BCAAB1; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.ns-time { font-size: 54px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.ns-sides { display: flex; gap: 6px; }
.ns-sides button { border: 0; padding: 9px 13px; border-radius: 12px; background: #2A2025; color: #BCAAB1; font-weight: 900; font-size: 14px; box-shadow: inset 0 0 0 2px #3D3036; }
.ns-sides button[aria-checked="true"] { background: #4A3540; color: #FFD98A; box-shadow: inset 0 0 0 2px #FFD98A66; }
.night-screen .btn { margin-top: auto; }
.ns-note { font-size: 12px; text-align: center; color: #BCAAB1; font-weight: 800; min-height: 3em; }
.night .chip { color: #F7EDE7; }
@media (max-width: 880px) { .night-grid { grid-template-columns: 1fr; } .night-moon { width: 70px; top: 40px; } }

/* ── Privacy ────────────────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.privacy-copy { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 880px) { .privacy-grid { grid-template-columns: 1fr; } .privacy-art { order: 1; height: 380px; } .pv-phone { height: 290px; width: 180px; } }
.privacy-art { position: relative; height: 440px; display: grid; place-items: end center; }
.pv-phone { position: relative; width: 210px; height: 340px; border-radius: 40px; padding: 10px; background: #2D2433; box-shadow: 0 8px 0 #1A141E, 0 30px 60px rgba(0,0,0,.2); }
.pv-bubbles { position: relative; height: 100%; border-radius: 31px; background: linear-gradient(var(--sky-soft), var(--surface)); overflow: hidden; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--sky) 40%, transparent); }
.pv-bubble { position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--surface); box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2px var(--line); will-change: transform; }
.pv-cloud { position: absolute; top: 0; left: 50%; translate: -50% 0; font-size: 90px; line-height: 1; opacity: .2; filter: grayscale(1); transition: opacity .6s, filter .6s, transform .8s var(--ease-boing); transform: scale(.8); }
.pv-cloud span { position: absolute; font-size: 32px; left: 50%; top: 52%; translate: -50% -50%; }
.pv-link { position: absolute; top: 90px; left: 50%; width: 4px; height: 70px; translate: -50% 0; background: repeating-linear-gradient(var(--sky) 0 8px, transparent 8px 16px); opacity: 0; transition: opacity .5s; }
.privacy-art.is-sync .pv-cloud { opacity: 1; filter: none; transform: none; }
.privacy-art.is-sync .pv-link { opacity: 1; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 0 16px; } }
.pv-toggle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 900; }
.switch { position: relative; width: 64px; height: 36px; border: 0; border-radius: 99px; background: var(--line-deep); padding: 0; transition: background-color .3s; }
.switch i { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); transition: transform .5s var(--ease-boing); }
.switch[aria-checked="true"] { background: var(--leaf); }
.switch[aria-checked="true"] i { transform: translateX(28px); }

/* ── Pricing ────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; align-items: stretch; max-width: 1060px; margin-inline: auto; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; } }
.price { display: flex; flex-direction: column; gap: 10px; }
.price .ticks { margin: 10px 0 16px; }
.price .btn { margin-top: auto; }
.price-amount { display: flex; align-items: baseline; gap: 6px; } .price-amount b { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; } .price-amount span { font-weight: 800; color: var(--ink-soft); }
.price-sub { color: var(--ink-soft); font-weight: 800; margin-top: -6px; }
.price--best { border-color: var(--coral); box-shadow: 0 6px 0 var(--coral-lip); transform: translateY(-10px); }
.price--best.in { transform: translateY(-10px); }
.price-badge { position: absolute; top: -16px; left: 50%; translate: -50% 0; white-space: nowrap; background: var(--sun); color: #3A2A10; font-weight: 900; font-size: 14px; padding: 6px 14px; border-radius: 99px; box-shadow: 0 3px 0 var(--sun-lip); }
.js:not(.still) .price--best.in .price-badge { animation: wiggle 2.5s ease-in-out 1s infinite; }
@keyframes wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -5deg; } 90% { rotate: 5deg; } 95% { rotate: -3deg; } }
.free-strip { display: flex; gap: 14px; align-items: center; max-width: 1060px; margin: 34px auto 14px; padding: 18px 22px; border-radius: 20px; background: var(--leaf-soft); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--leaf) 40%, transparent); }
.free-strip span { font-size: 32px; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-side { position: sticky; top: 110px; display: grid; gap: 18px; justify-items: start; }
.faq-mila { width: 180px; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; justify-items: center; text-align: center; } .faq-mila { width: 130px; } }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border-radius: 18px; box-shadow: 0 4px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); transition: box-shadow .3s; }
.faq-list details[open] { box-shadow: 0 4px 0 var(--berry-lip), inset 0 0 0 2.5px var(--berry); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-size: 18px; font-weight: 900; position: relative; border-radius: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--berry-soft); font-size: 22px; transition: rotate .5s var(--ease-boing), background-color .3s, color .3s; }
.faq-list details[open] summary::after { rotate: 135deg; background: var(--berry); color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); font-weight: 700; }
.faq-list details[open] .faq-a { animation: faq-in .5s var(--ease-mila); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
.still .faq-list details[open] .faq-a { animation: none; }

/* ── Join ───────────────────────────────────────────────────────────── */
.join-card { max-width: 760px; margin-inline: auto; text-align: center; display: grid; gap: 18px; justify-items: center; padding-top: 0; overflow: hidden; background: linear-gradient(var(--sky-soft), var(--surface) 45%); }
.raft { position: relative; width: calc(100% + 60px); height: 190px; margin: 0 -30px; display: flex; justify-content: center; align-items: flex-end; gap: 0; overflow: hidden; }
.raft-otter { display: block; width: 110px; margin: 0 -10px 2px; position: relative; z-index: 1; transition: transform .6s var(--ease-boing); }
.js:not(.still) .raft-otter { animation: bob 3s ease-in-out infinite; }
.raft-otter:nth-child(2) { animation-delay: -1s !important; } .raft-otter:nth-child(3) { animation-delay: -2s !important; }
.raft-otter.is-new { animation: swim-in 1.6s var(--ease-mila) both, bob 3s ease-in-out 1.6s infinite; }
@keyframes swim-in { from { transform: translateX(300px); opacity: 0; } }
.raft-water { position: absolute; left: 0; bottom: 0; width: 100%; height: 56px; z-index: 2; }
.raft-water path { fill: light-dark(#7FC8F0, #24506E); }
.join-form { width: 100%; max-width: 520px; display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 6px; }
.field label, .platform legend { font-weight: 900; font-size: 15px; }
.field input { width: 100%; min-height: 58px; padding: 0 18px; border-radius: 16px; border: 0; font: 800 18px var(--font); color: var(--ink); background: var(--surface); box-shadow: 0 4px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); transition: box-shadow .2s; }
.field input:focus { outline: none; box-shadow: 0 4px 0 var(--sky-lip), inset 0 0 0 3px var(--sky); }
.field input[aria-invalid="true"] { box-shadow: 0 4px 0 var(--coral-lip), inset 0 0 0 3px var(--coral); }
.platform { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.platform legend { float: left; margin-right: 6px; }
.platform label { cursor: pointer; }
.platform input { position: absolute; opacity: 0; }
.platform span { display: inline-block; padding: 10px 16px; border-radius: 14px; font-weight: 900; background: var(--surface); box-shadow: 0 3px 0 var(--line-deep), inset 0 0 0 2.5px var(--line); transition: all .3s var(--ease-boing); }
.platform input:checked + span { background: var(--sky); color: #fff; box-shadow: 0 3px 0 var(--sky-lip); }
.platform input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.join-btn { width: 100%; }
.join-btn.is-loading { pointer-events: none; opacity: .8; }
.join-error { color: light-dark(var(--coral-lip), #FF9C88); font-weight: 900; min-height: 1.2em; text-align: center; }
.join-error:empty { display: none; }
.join-done { display: grid; gap: 8px; animation: pop-in .8s var(--ease-boing); }
.join-done-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: light-dark(var(--leaf-lip), var(--leaf)); min-height: 1.3em; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { position: relative; margin-top: 60px; }
.footer-water { position: relative; height: 140px; }
.footer-water svg { position: absolute; bottom: 0; width: 100%; height: 60px; }
.footer-water path { fill: light-dark(#2D2433, #120D10); transition: fill .9s; }
.footer-raft { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; display: flex; }
.footer-raft span { display: block; width: 100px; margin: 0 -8px; }
.js:not(.still) .footer-raft { animation: bob 4s ease-in-out infinite; }
.footer-body { background: light-dark(#2D2433, #120D10); color: #F7EDE7; padding: 30px 0 40px; transition: background-color .9s; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-tag { margin-top: 12px; max-width: 40ch; color: #BCAAB1; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 30px; }
.footer-links a { font-weight: 900; text-decoration: none; } .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1.5px solid #463A4D; display: grid; gap: 8px; color: #BCAAB1; font-size: 14px; }

/* ── Floating bits ──────────────────────────────────────────────────── */
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.float-emoji { position: fixed; z-index: 91; pointer-events: none; font-size: 26px; }

/* ── Legal / simple pages ───────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--pad) 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc a { color: light-dark(var(--sky-lip), var(--sky)); font-weight: 800; }
.doc .placeholder { background: var(--sun-soft); padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--sun-lip); }
.doc-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.doc-nav a { text-decoration: none; padding: 8px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--sky); color: #fff; box-shadow: 0 3px 0 var(--sky-lip); }
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; gap: 18px; align-content: center; }
.page-404 .otter-box { width: 180px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reduced motion: the scroll stories become plain lists. */
.still .plan-steps li { opacity: 1; transform: none; }

/* ── Cookie notice: small and quiet, bottom left, never blocks the page ── */
.cookie-bar {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; max-width: 360px;
  display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 var(--line), 0 12px 30px rgba(45,36,51,.12);
  opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s var(--ease-mila);
}
.cookie-bar.is-shown { opacity: 1; transform: none; }
.cookie-bar p { margin: 0; }
.cookie-bar a { color: var(--ink); text-underline-offset: 3px; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 6px; }
.cookie-actions button { font: inherit; font-weight: 900; font-size: 13px; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 11px; }
.cookie-no { background: none; color: var(--ink-soft); }
.cookie-no:hover { color: var(--ink); }
.cookie-yes { background: var(--ink); color: var(--bg); box-shadow: 0 3px 0 light-dark(#120D15, #BCAAB1); }
.cookie-yes:active { transform: translateY(3px); box-shadow: none; }
.cookie-actions button:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 2px; }
@media (max-width: 560px) { .cookie-bar { left: 12px; right: 12px; max-width: none; } }
.footer-cookie { font: inherit; font-weight: 900; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-cookie:hover { text-decoration: underline; text-underline-offset: 4px; }
