/* =========================================================
   HappySitting — Home (scroll-story)
   JS (js/home.js) only writes progress values as CSS custom
   properties; every movement below is derived from them:
     :root   --hp  hero scrolled out (0→1)   --mx/--my mouse (-1→1)
             --m   motion strength (0 with reduced motion)
     section --p   section progress through the viewport (0→1)
     .story  --q   progress through the pinned day (0→1), data-step 0–3
   Without JS everything rests in a readable, finished state.
   ========================================================= */

:root {
  --bg: #0F0F14;
  --bg-2: #121218;
  --surface: #1A1A22;
  --surface-2: #1E1E26;
  --hair: rgba(255, 255, 255, 0.07);
  --pink: #F1A6B9;
  --pink-text: #5E1F30;
  --white: #FFFFFF;
  --muted: #A9A9B4;
  --muted-2: #8C8C98;
  --green: #7FD69B;
  --android: #3DDC84;
  --android-text: #07301A;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);

  --hp: 0; --mx: 0; --my: 0; --m: 1;
  --sc: 1;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--font-body); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--pink); color: var(--pink-text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { position: relative; overflow-x: clip; }
.accent { color: var(--pink); }

/* ---------- buttons, chips, phone ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
       border-radius: 16px; font-weight: 700; font-size: 16px; text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.btn-p { background: var(--pink); color: var(--pink-text); box-shadow: 0 10px 34px rgba(241, 166, 185, .38); }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(241, 166, 185, .55); }
.btn-g { border: 1px solid rgba(255, 255, 255, .2); color: var(--white); }
.btn-g:hover { border-color: rgba(255, 255, 255, .45); }
/* Google Play: full Android green next to the pink App Store button, so it never reads as disabled. */
.btn-a { background: var(--android); color: var(--android-text); box-shadow: 0 10px 34px rgba(61, 220, 132, .3); }
.btn-a:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(61, 220, 132, .48); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-big { min-height: 60px; padding: 0 36px; font-size: 18px; }
.btn-soon { color: var(--muted-2); border-style: dashed; pointer-events: none; }
.btn[hidden] { display: none; }
.btn:focus-visible, .nav a:focus-visible, select:focus-visible, .kid-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 18px; white-space: nowrap;
        background: rgba(30, 30, 38, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, .1); font-weight: 700; font-size: 14px; color: var(--white); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ic-green { stroke: var(--green); } .ic-pink { stroke: var(--pink); } .ic-yellow { stroke: #FFD54F; }

.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 48px; background: #000; padding: 11px;
         border: 2px solid rgba(255, 255, 255, .16); box-shadow: 0 50px 100px rgba(241, 166, 185, .28), 0 20px 50px rgba(0, 0, 0, .6); }
.phone.sm { width: 220px; border-radius: 38px; padding: 8px; }
.phone.md { width: 240px; border-radius: 40px; padding: 9px; }
.phone-in { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #EDEAE4; }
.phone.sm .phone-in { border-radius: 30px; } .phone.md .phone-in { border-radius: 32px; }
.phone-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.eyebrow { color: var(--pink); font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; }
.big { font-size: clamp(46px, 7.6vw, 112px); line-height: .96; font-weight: 800; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- idle character motion ---------- */
.wave { animation: wave 2.6s ease-in-out infinite; transform-box: view-box; }
.wave.fast { animation-duration: 1.8s; } .wave.slow { animation-duration: 3.2s; } .wave.rev { animation-direction: reverse; animation-duration: 2.2s; }
.blink { animation: blink 5.5s infinite; transform-box: fill-box; transform-origin: center; }
.bob { animation: bob 4.5s ease-in-out infinite; } .bob.quick { animation-duration: .9s; }
.floaty { animation: floaty 6s ease-in-out infinite; }
.d1 { animation-delay: -1.5s; } .d2 { animation-delay: -2s; } .d3 { animation-delay: -3s; } .d4 { animation-delay: -4s; }
.legA, .legB { animation: leg .45s ease-in-out infinite alternate; transform-box: view-box; } .legB { animation-direction: alternate-reverse; }
.hop { animation: hop 1.4s cubic-bezier(.3, .6, .4, 1) infinite; transform-origin: bottom center; } .hop.quick { animation-duration: 1.2s; }
.sway { animation: sway 3.2s ease-in-out infinite; transform-box: view-box; }
@keyframes wave { 0%, 100% { transform: rotate(0) } 15% { transform: rotate(-16deg) } 30% { transform: rotate(9deg) } 45% { transform: rotate(-12deg) } 60% { transform: rotate(5deg) } 75% { transform: rotate(0) } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.08) } }
@keyframes bob { 50% { transform: translateY(-10px) } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-14px) rotate(1.5deg) } }
@keyframes leg { from { transform: rotate(-16deg) } to { transform: rotate(16deg) } }
@keyframes hop { 0%, 100% { transform: translateY(0) scaleY(1) } 12% { transform: translateY(0) scaleY(.94) } 40% { transform: translateY(-34px) scaleY(1.02) } 70% { transform: translateY(0) } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes jumpA { 0% { transform: translateY(0) } 45% { transform: translateY(-70px) rotate(-6deg) } 100% { transform: translateY(0) } }
@keyframes jumpB { 0% { transform: translateY(0) } 45% { transform: translateY(-70px) rotate(6deg) } 100% { transform: translateY(0) } }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 12px var(--gutter); background: rgba(15, 15, 20, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
       border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand-icon { width: 28px; height: 28px; border-radius: 22%; flex-shrink: 0; box-shadow: 0 0 14px rgba(241, 166, 185, .35); }
.brand-icon.sm { width: 22px; height: 22px; box-shadow: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #B5B5C0; font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 34px 0 14px; border-radius: 999px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B5B5C0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(255, 255, 255, .1); color: var(--white); font: 700 13px var(--font-body); cursor: pointer; }
.lang-select option { color: #111; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 48px var(--gutter) 40px; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: 420px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 166, 185, .3), rgba(241, 166, 185, 0) 62%);
  transform: scale(calc(1 + var(--hp) * .5 * var(--m))); pointer-events: none; }
.hero-glow2 { position: absolute; right: -200px; top: 120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 90, 220, .22), rgba(122, 90, 220, 0) 65%); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; max-width: 1120px; margin: 0 auto; text-align: center;
  transform: translateY(calc(var(--hp) * -110px * var(--m))); opacity: clamp(0, calc(1 - var(--hp) * 1.6), 1); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--hair); color: #B5B5C0; font-size: 13px; font-weight: 600; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero .big { margin-top: 22px; text-wrap: balance; }
.hero-sub { margin: 18px auto 24px; max-width: 580px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero-sub strong { color: var(--white); }

.stage-wrap { position: relative; z-index: 2; height: calc(640px * var(--sc)); margin-top: 8px; }
.stage { position: absolute; left: 50%; top: 0; width: 980px; height: 640px; transform: translateX(-50%) scale(var(--sc)); transform-origin: top center; }
.h-sitter, .h-kid, .h-phone, .h-chip { position: absolute; will-change: transform; }
.h-sitter { left: 70px; bottom: -40px; width: 340px; height: 450px; z-index: 4;
  transform: translate(calc((var(--hp) * -260px + var(--mx) * 14px) * var(--m)), calc((var(--hp) * 40px + var(--my) * 8px) * var(--m))) rotate(calc(var(--hp) * -10deg * var(--m))); }
.h-sitter svg, .h-sitter .bob { width: 100%; height: 100%; overflow: visible; }
.h-phone { left: 50%; top: 10px; margin-left: -150px; z-index: 3;
  transform: translateY(calc((var(--hp) * 180px - var(--my) * 6px) * var(--m))) scale(calc(1 - var(--hp) * .14 * var(--m))) rotate(calc((var(--hp) * -8deg + var(--mx) * 3deg) * var(--m))); }
.h-kid { left: 590px; bottom: -10px; width: 230px; height: 400px; z-index: 2;
  transform: translate(calc((var(--hp) * 280px - var(--mx) * 18px) * var(--m)), calc((var(--hp) * -70px - var(--my) * 10px) * var(--m))) rotate(calc(var(--hp) * 14deg * var(--m))); }
.kid-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; }
.jumper { display: block; width: 100%; height: 100%; }
.jumper svg { width: 100%; height: 100%; overflow: visible; }
.jumper.jA { animation: jumpA .8s cubic-bezier(.25, .8, .35, 1); }
.jumper.jB { animation: jumpB .8s cubic-bezier(.25, .8, .35, 1); }
.eyes { transform: translate(calc(var(--mx) * 4px), calc(var(--my) * 3px)); }
.h-chip { z-index: 5; }
.h-chip.c1 { left: 0; top: 70px; transform: translate(calc((var(--hp) * -160px + var(--mx) * 26px) * var(--m)), calc((var(--hp) * -140px + var(--my) * 16px) * var(--m))); }
.h-chip.c2 { right: 0; top: 150px; transform: translate(calc((var(--hp) * 180px + var(--mx) * 30px) * var(--m)), calc((var(--hp) * -220px + var(--my) * 20px) * var(--m))); }
.h-chip.c3 { right: 40px; top: 400px; transform: translate(calc((var(--hp) * 120px + var(--mx) * 22px) * var(--m)), calc((var(--hp) * -300px + var(--my) * 14px) * var(--m))); }
.cue { position: relative; z-index: 3; text-align: center; margin-top: 54px; color: var(--muted-2); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; opacity: clamp(0, calc(1 - var(--hp) * 4), 1); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { --p: .5; padding: 40px 0; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.mq-row { display: flex; gap: 40px; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; will-change: transform; }
.mq-row i { font-style: normal; color: var(--pink); }
.mq-a { transform: translateX(calc(-200px - var(--p) * 900px * var(--m))); }
.mq-b { margin-top: 10px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); transform: translateX(calc(-1100px + var(--p) * 900px * var(--m))); }
.mq-b i { color: transparent; }

/* =========================================================
   STORY (pinned)
   ========================================================= */
.story { --q: 0; position: relative; height: 3400px; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 680px; display: flex; flex-direction: column; justify-content: center;
  padding: 76px var(--gutter) 24px; overflow: hidden; }
.sky { position: absolute; left: 50%; top: 58%; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .07); transform: rotate(calc(var(--q) * 180deg)); pointer-events: none; }
.orb { position: absolute; left: -36px; top: 50%; margin-top: -36px; width: 72px; height: 72px; border-radius: 50%; background: #FFD54F;
  box-shadow: 0 0 80px rgba(255, 213, 79, .55); transition: background .6s ease, box-shadow .6s ease; }
.story[data-step="3"] .orb { background: #E9E6FF; box-shadow: 0 0 80px rgba(200, 196, 255, .45); }
.story-inner { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; }
.story-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.clock { font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 5vw, 72px); color: var(--pink); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 56px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { --f: 0; display: flex; gap: 16px; padding: 18px 20px; border-radius: 20px; border: 1px solid transparent; opacity: .38; transform: translateX(-6px);
  transition: opacity .45s ease, transform .45s ease, background .45s ease, border-color .45s ease; }
.step .bar { position: relative; flex: 0 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.step .bar i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--f) * 100%); background: var(--pink); }
.step-time { display: block; color: var(--pink); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.step h3 { margin-top: 6px; font-size: 22px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.story-phone { display: flex; justify-content: center; transform: rotate(calc(var(--tilt, 0) * 1deg)); }
.shot { opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform .6s ease; }
.vign { position: relative; height: 470px; }
.v { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: translateY(50px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.3, .7, .3, 1); }
.v > svg { width: 320px; height: 426px; overflow: visible; }
.v-walk > svg { width: 300px; height: 430px; }
.v-walk { transform: translate(calc((clamp(0, var(--q) * 4 - 1, 1) * 160px - 80px) * var(--m)), 50px); }
.v-rel { position: relative; }
.v-rel > svg { width: 240px; height: 392px; overflow: visible; }
.dchip { position: absolute; z-index: 2; }
.dc1 { left: -120px; top: 40px; } .dc2 { right: -110px; top: 120px; } .dc3 { left: -90px; top: 210px; }
.paid-chip { position: absolute; right: 0; top: 40px; z-index: 2; }

.story[data-step="0"] .step[data-s="0"], .story[data-step="1"] .step[data-s="1"],
.story[data-step="2"] .step[data-s="2"], .story[data-step="3"] .step[data-s="3"] {
  opacity: 1; transform: none; background: var(--surface-2); border-color: rgba(241, 166, 185, .35); }
.story[data-step="0"] .shot[data-s="0"], .story[data-step="1"] .shot[data-s="1"],
.story[data-step="2"] .shot[data-s="2"], .story[data-step="3"] .shot[data-s="3"] { opacity: 1; transform: none; }
.story[data-step="0"] .v[data-s="0"], .story[data-step="2"] .v[data-s="2"], .story[data-step="3"] .v[data-s="3"] { opacity: 1; transform: none; }
.story[data-step="1"] .v[data-s="1"] { opacity: 1; transform: translate(calc((clamp(0, var(--q) * 4 - 1, 1) * 160px - 80px) * var(--m)), 0); }

/* =========================================================
   NOTIFY
   ========================================================= */
.notif { --p: 1; padding: 140px var(--gutter); }
.notif-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.notif .h2 { margin-top: 14px; }
.lead { margin-top: 20px; max-width: 480px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.counter { --c: clamp(0, calc((var(--p) - .2) / .45), 1); margin-top: 36px; display: inline-flex; flex-direction: column; gap: 6px; min-width: 300px;
  padding: 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); }
.counter-label { color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.counter-val { font-family: var(--font-head); font-weight: 800; font-size: 54px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.counter-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.counter-track i { display: block; height: 100%; width: calc(var(--c) * 100%); background: var(--pink); border-radius: 6px; }
.notif-stage { position: relative; height: 640px; }
.lock-phone { position: absolute; left: 50%; top: 20px; margin-left: -150px; transform: rotate(calc((var(--p) - .5) * -10deg * var(--m))); }
.lock { background: linear-gradient(170deg, #2A2140 0%, #14121C 60%); }
.lock-time { position: absolute; left: 0; right: 0; top: 70px; text-align: center; color: #FFF; font-size: 15px; font-weight: 600; }
.lock-time > div:first-child { opacity: .8; }
.lock-clock { font-family: var(--font-head); font-size: 72px; font-weight: 700; letter-spacing: -0.03em; }
.note { position: absolute; left: 10px; right: 10px; padding: 14px; border-radius: 20px; color: #1C1C1E; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.note.n1 { --n: clamp(0, calc((var(--p) - .22) / .18), 1); top: 230px; background: rgba(255, 255, 255, .88);
  opacity: var(--n); transform: translateY(calc((1 - var(--n)) * -90px)) scale(calc(.9 + var(--n) * .1)); }
.note.n2 { --n: clamp(0, calc((var(--p) - .42) / .16), 1); top: 350px; background: rgba(255, 255, 255, .72);
  opacity: var(--n); transform: translateY(calc((1 - var(--n)) * -60px)); }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: #6E6E78; }
.note-ic { width: 20px; height: 20px; border-radius: 6px; background: var(--pink); }
.note-now { margin-left: auto; font-weight: 600; }
.note-t { margin-top: 8px; font-weight: 800; font-size: 14px; }
.note-b { margin-top: 2px; font-size: 13px; color: #3A3A40; }
.dad { --d: clamp(0, calc((var(--p) - .3) / .25), 1); position: absolute; right: -40px; bottom: -30px; width: 280px; height: 373px;
  opacity: calc(.2 + var(--d) * .8); transform: translateX(calc((1 - var(--d)) * 160px * var(--m))) rotate(calc((1 - var(--d)) * 12deg * var(--m))); }
.dad svg { width: 100%; height: 100%; overflow: visible; }

/* =========================================================
   ROLES
   ========================================================= */
.roles { --p: 1; padding: 120px var(--gutter) 140px; background: var(--bg-2); border-top: 1px solid var(--hair); }
.roles-head { text-align: center; max-width: 760px; margin: 0 auto 150px; }
.roles-head .h2 { margin-top: 14px; }
.roles-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.role { --k: clamp(0, calc(var(--p) * 3.2 - .5 - var(--i) * .3), 1); --ck: clamp(0, calc(var(--p) * 3.2 - .9 - var(--i) * .3), 1);
  position: relative; padding: 230px 28px 32px; border-radius: 28px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(calc((1 - var(--k)) * 90px * var(--m))); opacity: calc(.25 + var(--k) * .75); transition: border-color .35s ease; }
.role:hover { border-color: rgba(241, 166, 185, .45); }
.role-char { position: absolute; left: 0; right: 0; top: -120px; height: 330px; display: flex; justify-content: center; align-items: flex-end;
  transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.role:hover .role-char { transform: translateY(-14px) scale(1.04); }
.role-pop { transform-origin: bottom center; opacity: var(--ck); transform: translateY(calc((1 - var(--ck)) * 120px * var(--m))) scale(calc(.8 + var(--ck) * .2)); }
.role-pop svg { width: 250px; height: 333px; overflow: visible; }
.role-pop .kid-svg { width: 180px; height: 324px; }
.role-k { color: var(--pink); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.role h3 { margin-top: 8px; font-size: 28px; font-weight: 800; }
.role ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.role li { position: relative; padding-left: 28px; color: #C4C4CE; font-size: 15px; line-height: 1.5; }
.role li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1A6B9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain; }

/* =========================================================
   TACCUINO (babysitter with families that don't use the app)
   ========================================================= */
.tac { padding: 120px var(--gutter); border-top: 1px solid var(--hair); }
.tac-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; }
.tac .h2 { margin-top: 14px; }
.tac-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.tac-list li { position: relative; padding-left: 28px; color: #C4C4CE; font-size: 15px; line-height: 1.5; }
.tac-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1A6B9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain; }
.tac-phone { display: flex; justify-content: center; }

/* =========================================================
   CTA
   ========================================================= */
.cta { --p: .6; --s: clamp(0, calc((var(--p) - .15) / .4), 1); position: relative; padding: 120px var(--gutter) 100px; overflow: hidden; text-align: center; }
.cta-glow { position: absolute; left: 50%; top: 50%; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 166, 185, .22), rgba(241, 166, 185, 0) 60%); pointer-events: none; }
.fan { position: relative; height: 470px; max-width: 900px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%); }
.fan-p { position: absolute; left: 50%; }
.fp1, .fp3 { top: 40px; margin-left: -110px; opacity: .85; }
.fp1 { transform: translateX(calc(var(--s) * -210px * var(--m))) rotate(calc(var(--s) * -14deg * var(--m))); }
.fp3 { transform: translateX(calc(var(--s) * 210px * var(--m))) rotate(calc(var(--s) * 14deg * var(--m))); }
.fp2 { top: 0; margin-left: -120px; z-index: 2; transform: translateY(calc((1 - var(--s)) * 40px * var(--m))); }
.fan-kid { position: absolute; left: 50%; top: 120px; margin-left: 70px; z-index: 3; transform: translateY(calc((1 - var(--s)) * 80px * var(--m))); }
.fan-kid svg { width: 150px; height: 270px; overflow: visible; }
.cta-copy { position: relative; z-index: 3; margin-top: -40px; }
.cta-sub { margin: 18px 0 30px; color: #C4C4CE; font-size: 18px; }
.cta-caption { margin-top: 18px; color: var(--muted-2); font-size: 13px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--hair); padding: 36px var(--gutter); }
.footer-in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: #B5B5C0; font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--white); }
/* Le guide esistono solo in italiano: il link si vede solo con la home in italiano. */
html:not([lang="it"]) .only-it { display: none; }
.footer-copy { color: var(--muted-2); font-size: 13px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  :root { --sc: .8; }
  .story-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .vign { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .story-pin { padding-top: 70px; }
  .story-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .story-head { margin-bottom: 14px; align-items: center; }
  .steps { width: 100%; max-width: 520px; }
  .step { display: none; }
  .story[data-step="0"] .step[data-s="0"], .story[data-step="1"] .step[data-s="1"],
  .story[data-step="2"] .step[data-s="2"], .story[data-step="3"] .step[data-s="3"] { display: flex; }
  .story-phone .phone { width: min(230px, 30svh); border-radius: 38px; padding: 8px; }
  .story-phone .phone-in { border-radius: 30px; }
  .notif { padding: 100px var(--gutter); }
  .notif-grid { grid-template-columns: 1fr; gap: 40px; }
  .notif-stage { height: 600px; }
  .dad { right: -10px; width: 200px; height: 266px; }
  .roles-grid { grid-template-columns: 1fr; gap: 150px; max-width: 520px; }
  .roles-head { margin-bottom: 140px; }
  .tac { padding: 100px var(--gutter); }
  .tac-grid { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .tac-phone .phone { width: 240px; border-radius: 40px; padding: 9px; }
  .tac-phone .phone-in { border-radius: 32px; }
  .fan { transform: scale(.72); transform-origin: top center; height: 340px; }
  .footer-in { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  :root { --sc: .62; }
  .h-chip { display: none; }
  .hero { padding-top: 44px; }
  .hero-sub { font-size: 17px; }
  .story-head .h2 { font-size: 30px; }
  .clock { font-size: 38px; }
  .step { padding: 14px 16px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 14px; }
  .counter { min-width: 0; width: 100%; }
  .counter-val { font-size: 44px; }
  .btn-sm { padding: 0 14px; }
  .nav .btn-sm { display: none; }
  .btn-big { width: 100%; }
}
@media (max-width: 380px) {
  :root { --sc: .54; }
}
@media (max-height: 760px) and (max-width: 860px) {
  .story-phone .phone { width: min(200px, 28svh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .blink, .bob, .floaty, .legA, .legB, .hop, .sway, .jumper { animation: none !important; }
}
