/* Dvipino: dvipino.com landing page. Polar, liquid-glass look around Momo the penguin.
   Colours come from the app (src/theme/tokens.ts). Everything here is self-hosted: no
   third-party fonts, scripts or images (web/README.md). */

/* ---------- Fonts (SIL OFL, from the app's own font packages) ---------- */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka_600SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/Fredoka_700Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_400Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_600SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito_800ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #F3F8FD;
  --bg-2: #E8F1FA;
  --surface: #FFFFFF;
  --card-top: #FFFFFF;
  --ink: #1E2B3F;
  --muted: #55657C;
  --hairline: #E2ECF6;
  --track: #DCE8F4;
  --primary: #7DC2F4;
  --primary-2: #5FB0EC;
  --on-primary: #1E2B3F;
  --accent: #1D69AE;
  --lav: #B9A7F5;
  --mint: #9BE3C9;
  --butter: #FFE29A;
  --sky: #A9D6FF;
  --pink: #FFB3C7;
  --wash: #D9ECFF;
  --wash-end: #E7E4FF;

  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .28));
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-rim: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .15) 38%, rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, .85));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 35, 60, .06), 0 8px 24px rgba(20, 35, 60, .08);
  --card-shadow: 0 1px 2px rgba(20, 35, 60, .06), 0 4px 14px rgba(20, 35, 60, .06);
  --phone-shadow: 0 2px 6px rgba(20, 35, 60, .12), 0 30px 60px rgba(20, 35, 60, .18);

  --hero-bg: linear-gradient(180deg, #E4F0FB 0%, #F3F8FD 70%);
  --app-bg: #F3F8FD;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1828;
    --bg-2: #142034;
    --surface: #18263B;
    --card-top: #1E2E46;
    --ink: #EEF5FD;
    --muted: #A8BAD0;
    --hairline: #24364F;
    --track: #2A3D58;
    --primary: #8ACFFF;
    --primary-2: #6EC1FB;
    --on-primary: #0B1A2C;
    --accent: #8ACFFF;
    --lav: #A893EE;
    --mint: #7FD3B4;
    --butter: #F2CF74;
    --sky: #8DC4F5;
    --pink: #F49AB2;
    --wash: #163A5E;
    --wash-end: #272659;

    --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    --glass-edge: rgba(255, 255, 255, .14);
    --glass-rim: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .02) 62%, rgba(180, 220, 255, .35));
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3);
    --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .25);
    --phone-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px rgba(0, 0, 0, .45);

    --hero-bg: linear-gradient(180deg, #0C1524 0%, #0F1828 70%);
    --app-bg: #0F1828;
  }
}

@media (min-width: 760px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--sky); color: #1E2B3F; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font: 800 14px/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h2 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; }
.body-lg { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); margin-top: 22px; max-width: 34em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.section-head { margin-bottom: clamp(36px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .body-lg { margin-inline: auto; }

/* The second line of a headline, in the quieter ink. */
.soft { color: var(--muted); }

/* ---------- Liquid glass ---------- */
.lg {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur, 18px)) saturate(175%);
  backdrop-filter: blur(var(--blur, 18px)) saturate(175%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
/* The rim: a bright edge that catches the light, brightest top-left and bottom-right. */
.lg::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}
/* Chromium can bend what is behind the glass through an SVG filter: real refraction at the edges. */
.has-refract .nav__bar,
.has-refract .float,
.has-refract .btn--glass {
  -webkit-backdrop-filter: blur(10px) url(#lg-refract) saturate(180%);
  backdrop-filter: blur(10px) url(#lg-refract) saturate(180%);
}

/* ---------- Buttons ---------- */
.btn {
  --by: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font: 800 16px/1 var(--text);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  transform: translateY(var(--by));
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --by: -2px; }
.btn:active { --by: 1px; transition-duration: .1s; }
.btn--primary {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 1px 2px rgba(20, 35, 60, .12);
}
.btn--primary:hover { background: var(--primary-2); }
.btn--glass { color: var(--ink); }
.btn--sm { font-size: 15px; padding: 11px 18px; }
.btn--lg { font-size: 18px; padding: 18px 28px; }
.btn__icon { width: 1.1em; height: 1.1em; flex: none; }
.btn__icon--end { width: 1em; height: 1em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  --blur: 22px;
  transition: background .4s, box-shadow .4s;
}
.nav__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.01em; margin-right: auto; }
.momo--logo { width: 34px; height: 34px; margin-top: -4px; }
.nav__links { display: none; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 9px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(127, 170, 220, .14); }
.nav.is-scrolled .nav__bar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(20, 35, 60, .08), 0 6px 18px rgba(20, 35, 60, .1); }
.nav__bar, .nav__brand, .nav__links a { transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s; }
.nav.on-dark .nav__bar { background: rgba(14, 23, 38, .6); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .25); color: #EEF5FD; }
.nav.on-dark .nav__bar::before { opacity: .35; }
.nav.on-dark .nav__links a { color: #A8BAD0; }
.nav.on-dark .nav__links a:hover { color: #EEF5FD; background: rgba(255, 255, 255, .08); }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(112px, 16vh, 150px);
  background: var(--hero-bg);
  overflow: clip;
}
.hero__copy { position: relative; z-index: 3; text-align: center; }
.hero__title { font-size: clamp(46px, 8.6vw, 118px); line-height: .98; letter-spacing: -.03em; }
.hero__line { display: block; }
.lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.55; color: var(--muted); max-width: 37em; margin: 26px auto 0; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 14px 8px 11px; border-radius: 999px; font: 800 14px/1 var(--text); color: var(--accent); --blur: 14px; }
.badge svg { width: 16px; height: 16px; flex: none; }
.hero__in { animation: rise 1.1s var(--ease) both; }
.hero__in--1 { animation-delay: .05s; }
.hero__in--2 { animation-delay: .15s; }
.hero__in--3 { animation-delay: .28s; }
.hero__in--4 { animation-delay: .42s; }
.hero__in--5 { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__stage {
  --mx: 0; --my: 0; --p: 0;
  position: relative;
  z-index: 2;
  height: clamp(560px, 64vw, 780px);
  margin-top: clamp(36px, 6vw, 64px);
  perspective: 1800px;
  animation: rise 1.4s .5s var(--ease) both;
}
.hero__phone-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% calc(var(--p) * -60px);
  transform: rotateX(calc(var(--my) * -5deg + var(--p) * 14deg)) rotateY(calc(var(--mx) * 8deg));
  transform-style: preserve-3d;
}
.phone--hero { width: clamp(250px, 26vw, 330px); }

.float {
  --d: 14;
  position: absolute;
  z-index: 3;
  border-radius: 26px;
  translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px + var(--p) * var(--d) * -7px);
  animation: bob 7s ease-in-out infinite alternate;
}
.depth-1 { --d: 10; animation-duration: 6.5s; }
.depth-2 { --d: 20; animation-duration: 8s; animation-delay: -2s; }
.depth-3 { --d: 30; animation-duration: 7.2s; animation-delay: -4s; }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

.float--dist { left: calc(50% - 480px); top: 80px; width: 250px; padding: 18px 20px; }
.float--photo { right: calc(50% - 470px); top: 30px; width: 210px; padding: 8px; border-radius: 28px; }
.float--photo img { border-radius: 21px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.float--pet { left: calc(50% - 400px); top: 330px; width: 168px; padding: 12px 12px 14px; text-align: center; }
.float--note { right: calc(50% - 520px); top: 330px; width: 300px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; border-radius: 22px; }
.float__cap { font: 800 13px/1.2 var(--text); color: var(--ink); margin-top: 8px; text-align: center; }
.momo--float { width: 112px; height: 112px; margin: -6px auto -4px; }
.note__app { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #D9ECFF; display: grid; place-items: center; overflow: hidden; }
.momo--tiny { width: 36px; height: 36px; margin-top: 4px; }
.note__txt { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.note__txt small { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: 2px; }

.wdist__people { display: flex; align-items: center; gap: 8px; }
.wdist__line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 11px); position: relative; }
.wdist__line svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; color: #FF7A9B; animation: beat 1.6s ease-in-out infinite; }
.wdist__n { font: 700 38px/1 var(--display); margin-top: 14px; letter-spacing: -.02em; }
.wdist__s { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 4px; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.96); } 45% { transform: scale(1.12); } }

.hero__floe { position: absolute; z-index: 4; right: calc(50% - 400px); bottom: 10px; width: 250px; translate: calc(var(--mx) * 24px) calc(var(--my) * 12px); }
.hero__floe .floe { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(20, 35, 60, .12)); }
.momo--hero { position: absolute; width: 150px; height: 150px; left: 50px; bottom: 44px; }

@media (max-width: 1040px) {
  .float--dist { left: 3%; top: 60px; width: 220px; }
  .float--photo { right: 3%; top: 10px; width: 170px; }
  .float--pet { left: 6%; top: 300px; width: 150px; }
  .float--note { right: 2%; top: 300px; width: 260px; }
  .hero__floe { right: 4%; width: 210px; }
  .momo--hero { width: 128px; height: 128px; left: 40px; bottom: 36px; }
}
@media (max-width: 760px) {
  .hero__stage { height: 600px; }
  .phone--hero { width: 236px; }
  .float--dist { left: 0; top: 54px; width: 168px; padding: 12px 14px; border-radius: 22px; }
  .wdist__n { font-size: 26px; margin-top: 10px; }
  .wdist__s { font-size: 12px; }
  .float--photo { right: 0; top: 6px; width: 120px; border-radius: 22px; padding: 6px; }
  .float--photo img { border-radius: 16px; }
  .float--pet { display: none; }
  .float--note { right: auto; left: 50%; top: auto; bottom: 18px; width: min(320px, 100%); translate: -50% 0; padding: 10px 12px; }
  .hero__floe { right: -6px; bottom: 96px; width: 150px; }
  .momo--hero { width: 86px; height: 86px; left: 30px; bottom: 26px; }
  .float__cap { font-size: 12px; }
}

/* ---------- Phones: real screenshots in a phone you'd recognise ---------- */
/* A flat-edged Android phone: a thin black border round the glass, aluminium rails, the
   punch-hole camera in the status bar, and the power and volume keys on the right. The screen
   is 9:20, like the screenshots (1080 x 2400). */
.phone {
  position: relative;
  padding: 2.6%;
  border-radius: 14% / 6.6%;
  background: #05070A;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 2px #2A313B,
    0 0 0 3px #59636F,
    0 0 0 4px #1F252D,
    var(--phone-shadow);
}
/* Power key, then the volume rocker. */
.phone::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 19%;
  width: 3px;
  height: 22%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(#59636F 0 26%, transparent 26% 36%, #59636F 36% 100%);
}
/* The front camera, centred in the status bar. */
.phone::after {
  content: "";
  position: absolute;
  top: 3.1%;
  left: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: #07090E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  z-index: 5;
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 20;
  border-radius: 12% / 5.4%;
  overflow: hidden;
  background: var(--app-bg);
  isolation: isolate;
}
.phone__shot { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The hero shows the app in the visitor's own light or dark. */
.phone__shot--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .phone__shot--light { display: none; }
  .phone__shot--dark { display: block; }
}
/* The story phone stacks its screens and fades to the step being read. */
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.screen.is-on { opacity: 1; transform: none; }

.av {
  --c: var(--sky);
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font: 700 1em/1 var(--display);
  color: #1E2B3F;
  background: var(--c);
  box-shadow: 0 0 0 .16em #fff, 0 .15em .4em rgba(20, 35, 60, .12);
}
.av--you { --c: #A9D6FF; }
.av--sam { --c: #FFB3C7; }
.av--mia { --c: #9BE3C9; }
.av--dad { --c: #FFE29A; }
.av--plus { --c: var(--surface); color: var(--muted); font-size: .8em; }
img.av { object-fit: cover; background: var(--surface); }

/* Voice-note waves (the bento tile) */
.bigwave { display: flex; align-items: center; gap: .16em; height: 1.6em; }
.bigwave i { display: block; width: .2em; height: 30%; border-radius: 1em; background: var(--accent); opacity: .75; }
.bigwave i:nth-child(3n+1) { height: 55%; }
.bigwave i:nth-child(4n+2) { height: 85%; }
.bigwave i:nth-child(5n+3) { height: 40%; }
.bigwave i:nth-child(7n) { height: 100%; }
.tile.is-in .bigwave i { animation: wave 1.1s ease-in-out infinite alternate; }
.bigwave i:nth-child(2n) { animation-delay: -.3s; }
.bigwave i:nth-child(3n) { animation-delay: -.6s; }
.bigwave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { to { transform: scaleY(.45); } }

/* ---------- Inside the app (real screenshots) ---------- */
.inside { position: relative; padding: clamp(40px, 8vw, 110px) 0 clamp(30px, 6vw, 80px); }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.shots__i { display: grid; gap: 18px; justify-items: center; align-content: start; text-align: center; }
.phone--shot { width: min(100% - 10px, 250px); }
.shots__cap { font-size: 15px; color: var(--muted); max-width: 17em; }
.shots__cap b { color: var(--ink); }
.shots__note { margin: 40px auto 0; max-width: 52em; text-align: center; }
/* Phones and tablets: a row to swipe through, inside the page's gutters. */
@media (max-width: 899px) {
  .shots {
    grid-template-columns: repeat(4, min(62vw, 250px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 28px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots__i { scroll-snap-align: center; }
}

/* ---------- Statement (words light up as you scroll) ---------- */
.statement { padding: clamp(90px, 14vw, 190px) 0 clamp(70px, 10vw, 140px); }
.scrub { font: 600 clamp(30px, 4.6vw, 62px)/1.14 var(--display); letter-spacing: -.02em; max-width: 21em; margin-inline: auto; text-align: center; text-wrap: balance; }
.scrub .sw { color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color .45s var(--ease); }
.scrub .sw.is-lit { color: var(--ink); }
.scrub .sw.is-lit.sw--hi { color: var(--accent); }

/* ---------- Widgets section ---------- */
.widgets { position: relative; padding: clamp(40px, 8vw, 120px) 0; }
.split { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split__media { display: grid; place-items: center; }
.phone--home { width: clamp(260px, 30vw, 350px); }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; color: var(--muted); }
.ticks b { color: var(--ink); }
.ticks__i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #1E2B3F; }
.ticks__i svg { width: 22px; height: 22px; }
.ticks__i--sky { background: #D9ECFF; }
.ticks__i--lav { background: #E9E4FF; }
.ticks__i--mint { background: #D6F5EA; }

/* ---------- Story ---------- */
.story { position: relative; padding: clamp(70px, 10vw, 150px) 0 clamp(40px, 6vw, 80px); }
.story__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.story__sticky { position: sticky; top: max(84px, calc(50vh - 330px)); display: grid; justify-items: center; gap: 18px; }
.phone--story { width: min(100%, 320px); }
@media (max-width: 899px) { .story__sticky { top: 84px; } }
.story__dots { display: flex; gap: 8px; }
.story__dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--track); transition: width .4s var(--ease), background-color .4s; }
.story__dots span.is-on { width: 26px; background: var(--accent); }
.story__steps { list-style: none; margin: 0; padding: 18vh 0 22vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__time { display: inline-block; align-self: flex-start; font: 800 13px/1 var(--text); letter-spacing: .08em; color: var(--accent); padding: 8px 12px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 22%, transparent); margin-bottom: 18px; }
.step h3 { font-size: clamp(22px, 3.2vw, 44px); line-height: 1.08; }
.step p { margin-top: 14px; font-size: clamp(15px, 1.4vw, 19px); color: var(--muted); max-width: 28em; }
@media (max-width: 899px) { .step { min-height: 62vh; } .step__time { font-size: 11px; padding: 6px 9px; margin-bottom: 12px; } }

/* ---------- Momo ---------- */
.momo-sec { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.momo__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .momo__grid { grid-template-columns: 1fr 1fr; gap: 70px; } }
.momo__stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.momo__pet { position: relative; z-index: 2; width: 74%; margin-top: -12%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.momo--pet { width: 100%; height: auto; aspect-ratio: 1; }
.floe--big { position: absolute; z-index: 1; width: 92%; bottom: 6%; left: 4%; filter: drop-shadow(0 10px 12px rgba(20, 35, 60, .12)); }
.momo__hearts { position: absolute; inset: 0; pointer-events: none; }
.heart { position: absolute; left: 50%; top: 40%; font-size: 30px; animation: float-heart 1.6s var(--ease) forwards; }
@keyframes float-heart { from { transform: translate(-50%, 0) scale(.4) rotate(0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(calc(-50% + var(--x, 0px)), -190px) scale(var(--s, 1)) rotate(var(--r, 0deg)); opacity: 0; } }
.stats { margin-top: 28px; padding: 18px 20px; border-radius: 24px; display: grid; gap: 12px; max-width: 460px; }
.stats__row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.stats__k { font-weight: 800; font-size: 15px; }
.stats__bar { height: 12px; border-radius: 99px; background: var(--track); overflow: hidden; }
.stats__bar i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; transition: width .9s var(--spring); }
[data-stat="food"] i { background: #FFC76B; }
[data-stat="joy"] i { background: #FF9DB6; }
[data-stat="energy"] i { background: #5FB0EC; }
[data-stat="clean"] i { background: #4CCB98; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.momo__say { margin-top: 18px; min-height: 1.6em; font: 600 20px/1.3 var(--display); color: var(--accent); }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(60px, 8vw, 110px); }
@media (min-width: 760px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.stage { text-align: center; }
.momo--stage { width: min(100%, 170px); height: auto; aspect-ratio: 1; margin-inline: auto; }
.stage b { display: block; font: 600 22px/1.2 var(--display); }
.stage small { color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---------- Privacy (always polar night) ---------- */
.privacy {
  --ink: #EEF5FD;
  --muted: #A8BAD0;
  --accent: #8ACFFF;
  --track: #2A3D58;
  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  --glass-edge: rgba(255, 255, 255, .13);
  --glass-rim: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .02) 62%, rgba(180, 220, 255, .35));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3);
  position: relative;
  overflow: clip;
  color: var(--ink);
  background: #0E1726;
  padding: clamp(90px, 12vw, 170px) 0;
}
.privacy .wrap { position: relative; }
.pipe { display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr; gap: 24px; align-items: center; max-width: 980px; margin: 0 auto clamp(60px, 8vw, 100px); }
.pipe__end { text-align: center; }
.pipe__who { font: 800 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pipe__bubble { display: inline-block; font-weight: 700; padding: 12px 18px; border-radius: 22px 22px 6px 22px; background: #8ACFFF; color: #0B1A2C; }
.pipe__bubble--in { border-radius: 22px 22px 22px 6px; background: #EEF5FD; color: #1E2B3F; }
.pipe__mid { position: relative; display: grid; place-items: center; }
.pipe__track { position: absolute; left: -24px; right: -24px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(138, 207, 255, .35) 0 8px, transparent 8px 14px); }
.pkt { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: #9BE3C9; animation: travel 3.6s linear infinite; }
.pkt--2 { animation-delay: -1.2s; background: #B9A7F5; }
.pkt--3 { animation-delay: -2.4s; }
@keyframes travel { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.vault { position: relative; z-index: 1; width: min(100%, 340px); padding: 18px 20px; border-radius: 24px; --blur: 20px; }
.vault__label { display: flex; align-items: center; gap: 8px; font: 800 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.vault__label svg { width: 18px; height: 18px; }
.seen { display: grid; gap: 16px; max-width: 980px; margin: 0 auto 18px; }
@media (min-width: 760px) { .seen { grid-template-columns: 1fr 1fr; } }
.seen__col { padding: 24px 26px; border-radius: 28px; }
.seen__col h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1.2; }
.seen__col h3 svg { width: 22px; height: 22px; flex: none; color: #9BE3C9; }
.seen__col--can h3 svg { color: var(--muted); }
.seen__col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.seen__col li { position: relative; padding-left: 20px; color: var(--ink); }
.seen__col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: #9BE3C9; }
.seen__col--can li { color: var(--muted); }
.seen__col--can li::before { background: var(--track); }
.seen__col p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.crypto { max-width: 760px; margin: 0 auto clamp(50px, 7vw, 80px); text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cipher { font: 500 14px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #9BE3C9; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: clip; }
@media (max-width: 760px) {
  .pipe { grid-template-columns: 1fr; gap: 18px; }
  .pipe__track { display: none; }
  .pipe__mid::before, .pipe__mid::after { content: ""; display: block; width: 2px; height: 26px; margin: 0 auto 10px; background: repeating-linear-gradient(180deg, rgba(138, 207, 255, .5) 0 5px, transparent 5px 9px); }
  .pipe__mid::after { margin: 10px auto 0; }
  .pipe__mid { display: block; text-align: center; }
  .vault { margin-inline: auto; text-align: left; }
}
.pcards { display: grid; gap: 16px; }
@media (min-width: 700px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcard { padding: 26px; border-radius: 28px; }
.pcard__i { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #0B1A2C; background: #A9D6FF; margin-bottom: 18px; }
.pcard:nth-child(3n+2) .pcard__i { background: #CFC4F7; }
.pcard:nth-child(3n) .pcard__i { background: #9BE3C9; }
.pcard__i svg { width: 24px; height: 24px; }
.pcard h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.01em; }
.pcard p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Bento ---------- */
.features { position: relative; padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--map, .tile--memories { grid-column: span 2; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); }
  .tile--map { grid-column: span 3; grid-row: span 2; }
  .tile--circles, .tile--hex { grid-column: span 3; }
  .tile--memories { grid-column: span 3; grid-row: span 2; }
  .tile--lists, .tile--ideas { grid-column: span 3; }
  .tile--wx, .tile--alerts, .tile--voice { grid-column: span 2; }
}
.tile { padding: 26px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 18px; min-height: 210px; }
.tile h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.tile__text p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 26em; }
.tile__art { position: relative; flex: 1; min-height: 140px; }

.tmap { border-radius: 22px; min-height: 260px; background: #E3EEF9; overflow: hidden; }
.tmap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 49%, rgba(255, 255, 255, .9) 49% 51%, transparent 51%) 0 0 / 100% 70px, linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, .9) 49% 51%, transparent 51%) 0 0 / 90px 100%; opacity: .8; }
@media (prefers-color-scheme: dark) { .tmap { background: #15233A; } .tmap::before { opacity: .12; } }
.tmap__ring { position: absolute; left: 30%; top: 40%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(125, 194, 244, .16); border: 2px dashed rgba(29, 105, 174, .4); }
.tmap .av { position: absolute; font-size: 18px; }
.tmap__a { left: 30%; top: 40%; translate: -50% -50%; }
.tmap__b { left: 68%; top: 28%; animation: stroll2 7s ease-in-out infinite alternate; }
.tmap__c { left: 58%; top: 70%; animation: stroll2 9s ease-in-out infinite alternate-reverse; }
@keyframes stroll2 { to { translate: -40px 30px; } }

.faces { display: flex; align-items: center; min-height: 80px; }
.faces .av { font-size: 22px; margin-right: -12px; transition: transform .4s var(--spring); }
.tile.is-in .faces .av { animation: hop-in .8s var(--spring) both; }
.faces .av:nth-child(2) { animation-delay: .08s; } .faces .av:nth-child(3) { animation-delay: .16s; } .faces .av:nth-child(4) { animation-delay: .24s; } .faces .av:nth-child(5) { animation-delay: .32s; }
@keyframes hop-in { from { transform: translateY(24px) scale(.6); opacity: 0; } }
.faces:hover .av { transform: translateY(-4px); }

.hexes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; align-content: center; min-height: 110px; }
.hex { aspect-ratio: 1 / 1.1; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--track); transition: background-color .8s var(--ease), transform .6s var(--spring); }
.hex:nth-child(18n + 10), .hex:nth-child(18n + 11), .hex:nth-child(18n + 12), .hex:nth-child(18n + 13), .hex:nth-child(18n + 14), .hex:nth-child(18n + 15), .hex:nth-child(18n + 16), .hex:nth-child(18n + 17), .hex:nth-child(18n + 18) { translate: 50% 0; }
.hex.is-lit { background: var(--primary); transform: scale(1.06); }
.hex.is-lit.h2 { background: var(--lav); }
.hex.is-lit.h3 { background: var(--mint); }

.mem { min-height: 230px; display: grid; place-items: center; }
.mem__card { position: absolute; width: min(48%, 220px); padding: 8px 8px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); transition: transform .6s var(--spring); }
.mem__card img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.mem__card p { font: 600 15px/1.2 var(--display); margin-top: 8px; text-align: center; }
.mem__card--1 { transform: translateX(-30%) rotate(-7deg); }
.mem__card--2 { transform: translateX(30%) rotate(6deg) translateY(16px); }
.tile--memories:hover .mem__card--1 { transform: translateX(-38%) rotate(-10deg) translateY(-6px); }
.tile--memories:hover .mem__card--2 { transform: translateX(38%) rotate(9deg) translateY(8px); }

.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tlist__i { display: flex; align-items: center; gap: 12px; font-weight: 700; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tlist__box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--track); display: grid; place-items: center; color: #fff; transition: background-color .4s, border-color .4s; }
.tlist__box svg { width: 16px; height: 16px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s .15s var(--ease); }
.tlist__i.is-done .tlist__box { background: #4CCB98; border-color: #4CCB98; }
.tile.is-in .tlist__i.is-done .tlist__box svg { stroke-dashoffset: 0; }
.tlist__i.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }

.ideas { display: flex; flex-wrap: wrap; gap: 10px; }
.idea { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 14px 10px 10px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: var(--card-shadow); }
.tag { font: 800 12px/1 var(--text); font-style: normal; padding: 6px 8px; border-radius: 9px; color: #1E2B3F; }
.tag--trip { background: var(--sky); } .tag--home { background: var(--mint); } .tag--fun { background: var(--pink); }
.tile.is-in .idea { animation: hop-in .8s var(--spring) both; }
.tile.is-in .idea:nth-child(2) { animation-delay: .1s; } .tile.is-in .idea:nth-child(3) { animation-delay: .2s; }

.wx { font: 700 64px/1 var(--display); display: flex; align-items: center; gap: 12px; letter-spacing: -.03em; }
.wx span { font-size: 56px; }
.alertpill { align-self: flex-start; font-weight: 800; padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--card-shadow); }
.tile.is-in .alertpill { animation: slide-down 1s var(--spring) both .2s; }
@keyframes slide-down { from { transform: translateY(-24px); opacity: 0; } }
.bigwave { height: 56px; gap: 5px; }
.bigwave i { width: 6px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 150px) 0; }
.faq__wrap { display: grid; gap: 30px; }
@media (min-width: 900px) { .faq__wrap { grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; } .faq .section-head { position: sticky; top: 110px; } }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 24px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 600 19px/1.3 var(--display); position: relative; z-index: 3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 30%, transparent) linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat; transition: transform .4s var(--spring); }
.qa summary::before { content: ""; position: absolute; right: 36px; width: 2px; height: 12px; border-radius: 2px; background: var(--accent); transition: transform .4s var(--spring), opacity .3s; }
.qa[open] summary::before { transform: rotate(90deg); opacity: 0; }
.qa[open] summary::after { transform: rotate(180deg); }
.qa__a { position: relative; z-index: 3; padding: 0 22px 22px; color: var(--muted); }
.qa__a a { color: var(--accent); font-weight: 700; }
.qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { height: auto; }

/* ---------- Final call ---------- */
.cta { position: relative; overflow: clip; text-align: center; padding: clamp(80px, 10vw, 150px) 0 clamp(90px, 12vw, 170px); }
.cta__inner { position: relative; }
.cta__momo { position: relative; width: 220px; height: 220px; margin: 0 auto 10px; }
.momo--cta { position: absolute; z-index: 2; width: 170px; height: 170px; left: 25px; top: -6px; }
.floe--cta { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(20, 35, 60, .12)); }
.cta .body-lg { margin-inline: auto; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hairline); padding: 34px 0 44px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot__inner .nav__brand { margin-right: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.foot__links a { font-weight: 700; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__fine { flex-basis: 100%; font-size: 14px; color: var(--muted); }

/* ---------- Momo, alive (parts from site.js / the app's momo-svg.ts) ---------- */
.momo { overflow: visible; }
.momo g { transform-box: view-box; }
.momo .m-rig { animation: m-breathe 2.9s ease-in-out infinite alternate; }
.momo .m-tuft { animation: m-sway 3.6s ease-in-out infinite alternate; }
.momo .m-extras { animation: m-float 2.6s ease-in-out infinite alternate; }
.momo--blink .m-eyes { animation: m-blink 8.6s infinite; }
.is-waving .m-arm-r { animation: m-wave 4.4s ease-in-out infinite; }
.momo.is-hop .m-hop { animation: m-hop .9s linear; }
.momo.is-hop .m-shadow { animation: m-hop-shadow .9s linear; }
.momo .m-alt { display: none; }
.momo.is-alt .m-alt { display: inline; }
.momo.is-alt .m-body:not(.m-alt), .momo.is-alt .m-eyes:not(.m-alt) { display: none; }
@keyframes m-breathe { from { transform: scale(1, 1); } to { transform: scale(.985, 1.035); } }
@keyframes m-sway { from { transform: rotate(-6deg); } to { transform: rotate(7deg); } }
@keyframes m-float { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes m-blink { 0%, 30%, 34%, 76%, 79%, 81%, 84%, 100% { transform: scaleY(1); } 32% { transform: scaleY(.08); } 77.5% { transform: scaleY(.08); } 82.5% { transform: scaleY(.08); } }
@keyframes m-wave { 0%, 18% { transform: rotate(0); } 24% { transform: rotate(-52deg); } 30% { transform: rotate(-24deg); } 36% { transform: rotate(-52deg); } 42% { transform: rotate(-24deg); } 48% { transform: rotate(-52deg); } 56%, 100% { transform: rotate(0); } }
@keyframes m-hop {
  0% { transform: translateY(0) scale(1, 1); }
  14% { transform: translateY(0) scale(1.08, .9); }
  27% { transform: translateY(-21px) scale(.96, 1.05); }
  40% { transform: translateY(-28px) scale(.97, 1.04); }
  53% { transform: translateY(-21px) scale(.98, 1.03); }
  66% { transform: translateY(0) scale(1, 1); }
  78% { transform: translateY(0) scale(1.09, .9); }
  90% { transform: translateY(0) scale(.98, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes m-hop-shadow { 0%, 66%, 100% { transform: scaleX(1); } 14% { transform: scaleX(1.04); } 27%, 53% { transform: scaleX(.8); } 40% { transform: scaleX(.72); } 78% { transform: scaleX(1.06); } }

/* ---------- Reveal on scroll (only when scripts run, so nothing stays hidden without them) ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .reveal.is-in { opacity: 1; translate: none; }
  .d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .hero__phone-wrap { transform: none; }
}
