@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* ---------- Colour: the app's palette (DESIGN.md, #140): ink, brand indigo, the premium gradient, event colours ---------- */
:root {
  --cream: #FFFFFF;
  --line: #ECE9F6;
  --orange: #E8650C;
  --soft: #F6F4FC;
  --ink: #1D1747;
  --ink-soft: #4A4470;
  --violet: #4D63DB;
  --on-violet: #FFFFFF;
  --blue: #2F6BF0;
  --hot: #F23F78;
  --gold: #FFC24D;
  --mint: #12A378;
  --card: #FFFFFF;
  --card-ink: #000000;
  --card-sub: #505057;
  --cloud: #ECEEFF;
  --mom: #ED738C;
  --dad: #4D85EB;
  --grandma: #8C6BD1;
  /* Caregiver hues deep enough for white text (4.5:1) on shift headers and avatars. */
  --mom-deep: #C23E5C;
  --dad-deep: #2F62C4;
  --grandma-deep: #6A4BB5;
  /* The premium gradient's stops, deepened for 3:1 on the near-white ground (DESIGN.md, Wordmark). */
  --w1: #8787BF; --w2: #B774BE; --w3: #E159AE; --w4: #DB6780; --w5: #D37060; --w6: #CA773D; --w7: #C47C19;
  --gomita-wave: #4D63DB;
  --gomita-star: #9EB0EB;
  --gomita-moon: #F5C259;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0E0C1C;
    --line: rgba(255, 255, 255, .10);
    --orange: #FFA45C;
    --soft: #1C1A2B;
    --ink: #F7F3FF;
    --ink-soft: #C9C3E8;
    --violet: #ADBBFF;
    --on-violet: #1A1530;
    --w1: #9797D0; --w2: #BE7BC5; --w3: #E961B6; --w4: #ED7790; --w5: #EF8978; --w6: #EF9960; --w7: #F2A74F;
    --blue: #8DB4FF;
    --hot: #FF8DB5;
    --gold: #FFD27A;
    --mint: #7FE3B5;
    --card: #1C1C1E;
    --card-ink: #FFFFFF;
    --card-sub: #B4B4BC;
    --cloud: rgba(255, 255, 255, .09);
    --gomita-wave: #ADBBFF;
    --gomita-star: #DCD8FF;
    --gomita-moon: #FFE3A1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.5 var(--text); overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 16px; }
.display { font-family: var(--display); font-weight: 700; font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase;
  line-height: .98; letter-spacing: .01em; margin: 0; }
.sticker { display: inline-block; font: 700 13px/1 var(--text); letter-spacing: .07em; text-transform: uppercase; background: var(--gold); color: #1D1747;
  padding: 8px 12px; border-radius: 10px; rotate: -3deg; }
.lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-soft); max-width: 32rem; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav .wrap { display: flex; align-items: center; gap: 8px; }
.nav a, .nav .pill { pointer-events: auto; }
.logo { font: 700 26px/1 var(--display); font-stretch: 100%; letter-spacing: .01em; text-decoration: none; margin-right: auto;
  background: #fff; border-radius: 999px; padding: 9px 16px 11px; box-shadow: 0 2px 10px rgba(29, 23, 71, .10); min-height: 44px; }
@media (prefers-color-scheme: dark) { .logo { background: #221D4F; box-shadow: none; } }
.pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(29, 23, 71, .10); }
.pill a { text-decoration: none; color: #1D1747; font: 600 15px/1 var(--text); padding: 0 14px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.pill a:hover { background: #F1EEFF; }
.pill a.lang { background: #1D1747; color: #fff; }
@media (prefers-color-scheme: dark) { .pill { background: #221D4F; box-shadow: none; } .pill a { color: #F7F3FF; } .pill a:hover { background: #2E2868; } .pill a.lang { background: #F7F3FF; color: #1D1747; } }
@media (max-width: 680px) { .pill a:not(.lang) { display: none; } }

/* Letters that wave, painted with the premium gradient across the word (same pattern as the app's wordmark) */
.wave { display: inline-flex; }
.wave > span { display: inline-block; }
.motion .wave > span { animation: wave 2.8s cubic-bezier(.45, 0, .25, 1) infinite; animation-delay: calc(var(--i) * 90ms); }
.flow > span { background: linear-gradient(90deg, var(--w1), var(--w2), var(--w3), var(--w4), var(--w5), var(--w6), var(--w7)); background-size: 600% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; background-position: calc(var(--i) * 20%) 0; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 24% { transform: translateY(-.14em) rotate(-3deg); } 42% { transform: translateY(.03em); } }

/* ---------- Store button ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px; border-radius: 999px; background: #1D1747; color: #fff;
  font: 700 17px/1 var(--text); text-decoration: none; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store[aria-disabled="true"] { cursor: default; }
@media (prefers-color-scheme: dark) { .store { background: #F7F3FF; color: #1D1747; } }
.fine { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Clouds ---------- */
.cloud { position: absolute; fill: var(--cloud); pointer-events: none; }
.motion .cloud { transform: translate3d(0, calc(var(--y, 0) * var(--speed, -.15) * 1px), 0); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 112px 0 132px; display: flex; align-items: center; overflow: clip; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(54px, 14.6vw, 220px); color: var(--violet); }
.hero h1 .l2 { color: var(--ink); }
.hero h1 > span { display: block; width: max-content; }
.hero h1 .l3 { font-size: .4em; line-height: 1.1; color: var(--ink); margin-top: .45em; font-stretch: 100%; font-variation-settings: "wdth" 100; text-transform: none; letter-spacing: .01em; }
.hero h1 .l3 .wave { margin-right: .22em; }
.hero h1 .l1 { display: flex; align-items: flex-end; }
.hero .gomita { display: inline-block; width: 1.25em; aspect-ratio: 1; margin: -.5em 0 -.12em .04em; cursor: pointer; }
.hero .below { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-top: 36px; }
.hero .cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.motion .hero h1 .l1 { transform: translateX(calc(var(--hero) * -28vw)); }
.motion .hero h1 .l2 { transform: translateX(calc(var(--hero) * 22vw)); }
.motion .hero .gomita { transform: translateY(calc(var(--hero) * -26vh)) rotate(calc(var(--hero) * 24deg)); }

/* ---------- Ribbon ---------- */
.ribbon { position: relative; z-index: 3; margin: -96px -4vw 0; background: var(--gold); color: #1D1747; rotate: -3.5deg; overflow: hidden; padding: 16px 0;
  box-shadow: 0 6px 0 rgba(29, 23, 71, .12); }
.ribbon p { margin: 0; white-space: nowrap; font: 700 clamp(26px, 3.6vw, 44px)/1 var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; }
.ribbon p span { margin: 0 .5em; color: #4D63DB; }
.motion .ribbon p { transform: translateX(calc(var(--y, 0) * -.45px)); }

/* ---------- Scenes ---------- */
.scene { position: relative; }
.stage { position: relative; padding: 112px 0 96px; }
.motion .scene { height: var(--len, 300vh); }
.motion .stage { position: sticky; top: 0; height: 100svh; padding: 0; overflow: clip; display: flex; align-items: center; }
.slant { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); margin-top: -5vw; padding-top: 5vw; }
.slant-r { clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); margin-top: -5vw; padding-top: 5vw; }
/* Local progress of one element through its window [a, b] of the scene. */
.motion .ev, .motion .save, .motion .shift, .motion .promises li, .motion .facts { --t: clamp(0, calc((var(--p, 1) - var(--a)) / (var(--b) - var(--a))), 1); }
h2.display { font-size: clamp(52px, 8.4vw, 128px); }

/* Voice: the words light up as you scroll, then the entries rise in under the bubble */
.voz { --len: 380vh; }
.voz .grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .voz .grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.voz h2 { color: var(--ink); }
.voz .speaker { display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.voz .gomita { width: clamp(120px, 17vw, 230px); aspect-ratio: 1; flex: none; }
.bubble { position: relative; background: var(--card); border: 1.5px solid var(--line); color: var(--card-ink); border-radius: 34px 34px 34px 8px; padding: 22px 26px; box-shadow: 0 8px 0 rgba(29, 23, 71, .10);
  font: 700 clamp(22px, 2.5vw, 34px)/1.22 var(--text); letter-spacing: -.015em; }
.bubble small { display: block; font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--card-sub); margin-bottom: 10px; }
.motion .bubble .w { opacity: calc(.16 + .84 * clamp(0, calc((var(--p, 1) * 2.5 - var(--w)) * 7), 1)); }
.events { display: grid; gap: 14px; margin-top: 18px; }
.ev { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); color: var(--card-ink); border-radius: 22px; padding: 12px 14px; box-shadow: 0 6px 0 rgba(29, 23, 71, .10); }
.ev:nth-child(1) { rotate: -1deg; } .ev:nth-child(2) { rotate: .8deg; margin-left: 18px; } .ev:nth-child(3) { rotate: -.5deg; margin-left: 6px; }
.motion .ev { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 16vh)) rotate(calc((1 - var(--t)) * -6deg)) scale(calc(.85 + .15 * var(--t))); }
.orb { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.orb.bottle { background: radial-gradient(circle at 35% 30%, #8CCCFF, #3375F2); }
.orb.diaper { background: radial-gradient(circle at 35% 30%, #8CEBB8, #1FA680); }
.orb.sleep { background: radial-gradient(circle at 35% 30%, #9E99FF, #574DD1); }
.orb.breast { background: radial-gradient(circle at 35% 30%, #FF9EAD, #ED4D73); }
.ev b { display: block; font-size: 16px; } .ev small { color: var(--card-sub); font-size: 14px; }
.ev .time { margin-left: auto; white-space: nowrap; font: 600 14px/1 var(--text); font-variant-numeric: tabular-nums; border: 1px solid rgba(128, 128, 140, .25); border-radius: 999px; padding: 6px 10px; }
.save { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.save .btn { position: relative; display: inline-grid; background: var(--violet); color: var(--on-violet); border-radius: 999px; height: 52px; padding: 0 24px; place-items: center; font-weight: 700; }
.save .btn span { grid-area: 1 / 1; }
.save .btn .done { opacity: 0; }
.motion .save { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 20px)); }
.motion .save .btn .go { opacity: calc(1 - clamp(0, calc((var(--p, 1) - .93) * 100000), 1)); }
.motion .save .btn .done { opacity: clamp(0, calc((var(--p, 1) - .93) * 100000), 1); }
.save p { margin: 0; color: var(--ink-soft); font-weight: 600; max-width: 22rem; }

/* Family: the shifts are dealt like a deck of cards */
.familia { --len: 340vh; }
.familia .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .familia .grid { grid-template-columns: 1fr 1fr; } }
.familia h2 { color: var(--violet); }
.people { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.person { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); color: var(--card-ink); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; }
.person i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; }
.deck { position: relative; display: grid; gap: 16px; }
.motion .deck { height: 380px; display: block; }
.shift { background: var(--card); border: 1.5px solid var(--line); color: var(--card-ink); border-radius: 32px; overflow: hidden; box-shadow: 0 10px 0 rgba(29, 23, 71, .12); width: min(100%, 420px); justify-self: center; }
.motion .shift { position: absolute; left: 50%; top: calc(var(--k) * 84px); translate: -50% 0;
  transform: translateY(calc((1 - var(--t)) * 110svh)) rotate(calc(var(--r0) * (1 - var(--t)) + var(--r) * var(--t))); }
.shift header { background: var(--c); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.shift header i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .28); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.shift header b { display: block; margin-bottom: 5px; font: 700 26px/1.08 var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; }
.shift header small { opacity: .9; font-weight: 600; }
.shift .live { white-space: nowrap; flex: none; margin-left: auto; background: #fff; color: #1D1747; font: 700 12px/1 var(--text); padding: 7px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.shift .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1FA680; }
.motion .shift .live::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(31, 166, 128, .25); } }
.shift ul { list-style: none; margin: 0; padding: 6px 18px 12px; }
.shift li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(128, 128, 140, .18); font-weight: 600; font-size: 15px; }
.shift li:last-child { border: 0; }
.shift li .orb { width: 24px; height: 24px; }
.shift li span:last-child { margin-left: auto; color: var(--card-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* More: a horizontal track */
.mas { --len: 360vh; }
.track { display: grid; gap: 20px; max-width: 76rem; margin: 0 auto; padding: 0 16px; }
.motion .track { display: flex; gap: 24px; align-items: center; width: max-content; max-width: none; margin: 0; padding: 0 6vw; transform: translateX(calc(var(--p, 0) * var(--shift, 0px) * -1)); }
.track > h2 { color: var(--ink); }
.motion .track > h2 { font-size: clamp(110px, 22vw, 340px); padding-right: 3vw; }
.panel { position: relative; border-radius: 44px; padding: 28px; color: #1D1747; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.motion .panel { width: min(84vw, 640px); height: min(76svh, 600px); flex: none; }
.panel h3 { font: 700 clamp(40px, 5vw, 64px)/.9 var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; margin: 0 0 10px; }
.panel p { margin: 0; font-size: 18px; color: #3B355E; max-width: 30rem; }
.panel.doc { background: #C9C2FF; } .panel.baby { background: #FFD873; } .panel.lock { background: #FFC4DF; }
.panel .art { flex: 1; display: grid; place-items: center; min-height: 220px; }
.summary { background: #fff; color: #000; border-radius: 26px; padding: 18px; width: min(100%, 340px); rotate: -3deg; box-shadow: 0 10px 0 rgba(29, 23, 71, .14); }
.summary b { display: block; font-size: 17px; } .summary small { color: #505057; }
.summary .bar { display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.summary .bar i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--from), var(--to)); width: var(--v); }
.summary .note { margin-top: 14px; background: #F4F4F5; border-radius: 14px; padding: 10px 12px; font-size: 14px; color: #505057; }
.panel.baby .gomita { width: min(260px, 60vw); aspect-ratio: 1; }
.toast { position: absolute; top: 28px; right: 28px; background: rgba(255, 255, 255, .92); color: #000; border-radius: 22px; padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  box-shadow: 0 8px 24px rgba(29, 23, 71, .14); rotate: 3deg; font-size: 14px; max-width: 250px; }
.toast i { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #8CCBF5, #8FA3EC, #E58BC0); flex: none; }
.toast b { display: block; }
.phone { width: 276px; height: 300px; border-radius: 40px 40px 0 0; background: linear-gradient(170deg, #2B2770, #6B5BD6 60%, #E58BC0); padding: 26px 14px 0; color: #fff; text-align: center;
  align-self: end; margin-bottom: -28px; box-shadow: inset 0 0 0 6px #120F2B; }
.phone .clock { font: 600 54px/1 var(--text); letter-spacing: -.02em; }
.phone .date { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.widget { background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; margin-top: 8px; }
.widget .gomita { width: 44px; height: 44px; flex: none; }
.widget b { display: block; font-size: 14px; white-space: nowrap; } .widget span { font: 600 20px/1 var(--text); font-variant-numeric: tabular-nums; }
.widget .stop { margin-left: auto; background: #fff; color: #000; font-weight: 700; font-size: 12px; padding: 7px 10px; border-radius: 999px; }

/* Privacy: one promise per line (the one night on the page in dark mode) */
.noche { --len: 300vh; }
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(5px 5px at 10% 20%, #8FA3EC, transparent), radial-gradient(4px 4px at 24% 64%, #E58BC0, transparent), radial-gradient(5px 5px at 70% 16%, #FFC24D, transparent),
    radial-gradient(4px 4px at 88% 42%, #8FA3EC, transparent), radial-gradient(4px 4px at 48% 30%, #12A378, transparent), radial-gradient(5px 5px at 93% 78%, #E58BC0, transparent),
    radial-gradient(4px 4px at 6% 84%, #FFC24D, transparent), radial-gradient(4px 4px at 60% 88%, #8FA3EC, transparent); opacity: .8; }
.motion .stars { animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .3; } }
.noche .inner { position: relative; text-align: center; width: 100%; padding-top: 56px; }
.noche .gomita { width: clamp(120px, 13vw, 170px); aspect-ratio: 1; margin: 0 auto; --gomita-star: #DCD8FF; --gomita-moon: #FFE3A1; }
.noche .sticker { margin-bottom: 18px; }
.promises { list-style: none; margin: 0; padding: 0; }
.promises li { font-size: clamp(40px, 6.2vw, 100px); }
.promises li + li { margin-top: .08em; }
.promises li:nth-child(1) { color: var(--violet); }
.motion .promises li, .motion .facts { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 60px)) scale(calc(.92 + .08 * var(--t))); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 0; max-width: 60rem; padding: 0; list-style: none; }
.facts li { border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.facts a { color: var(--violet); font-weight: 700; }

/* FAQ */
.faq { padding: 120px 0 112px; }
.faq .grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq .grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.faq h2 { color: var(--ink); }
details { background: var(--card); border: 1.5px solid var(--line); color: var(--card-ink); border-radius: 26px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 26px; font: 700 19px/1.3 var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 26px/1 var(--display); color: var(--violet); transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: -8px 0 0; padding: 0 22px 20px; color: var(--card-sub); }

/* The end: a call, the footer card and the giant wordmark with Gomitas on it */
.end { padding: 128px 0 0; overflow: clip; }
.end h2 { color: var(--violet); max-width: 14ch; }
.end .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.foot { margin-top: 72px; background: var(--soft); color: var(--card-ink); border-radius: 40px 40px 0 0; padding: 32px 24px 0; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-weight: 600; }
.foot nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; } .foot nav a:hover { text-decoration: underline; }
.foot nav span { margin-left: auto; color: var(--card-sub); font-weight: 500; }
.giant { position: relative; margin-top: 7vw; font: 700 clamp(60px, 20.5vw, 300px)/.8 var(--display); letter-spacing: .04em; display: flex; justify-content: center; }
.giant > span { position: relative; z-index: 1; }
.motion .giant > span { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
@keyframes bob { 50% { transform: translateY(-.04em) rotate(calc(var(--tilt, 1) * 2deg)); } }
.perch { position: absolute; z-index: 0; width: 13vw; max-width: 190px; aspect-ratio: 1; }

/* Flat shapes that drift with the scroll */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.stage > .wrap, .stage > .track { position: relative; z-index: 1; }
.motion .shape { transform: translate3d(0, calc((var(--p, .5) - .5) * var(--dy, -40vh)), 0) rotate(calc(var(--p, .5) * var(--spin, 0deg))); }
.spark { position: absolute; width: var(--s, 28px); aspect-ratio: 1; background: var(--c, var(--gold)); pointer-events: none;
  clip-path: path("M14 0 Q16 12 28 14 Q16 16 14 28 Q12 16 0 14 Q12 12 14 0Z"); }
.motion .spark { animation: spin 7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

@media (prefers-color-scheme: dark) { .shape { opacity: .45; } }

/* Phones: the pinned stages start under the nav and tighten so each one fits a screen */
@media (max-width: 899px) {
  .motion .voz .stage, .motion .familia .stage { align-items: flex-start; padding-top: 78px; }
  .motion .voz h2.display, .motion .familia h2.display { font-size: clamp(40px, 11.5vw, 72px); margin-top: 12px; }
  .motion .voz .lede, .motion .familia .lede { font-size: 16px; margin-top: 10px; }
  .motion .voz .grid, .motion .familia .grid { gap: 16px; }
  .motion .voz .gomita { width: 84px; }
  .motion .bubble { font-size: 19px; padding: 14px 18px; }
  .motion .events { gap: 8px; margin-top: 14px; }
  .motion .ev { padding: 9px 12px; }
  .motion .save { margin-top: 14px; }
  .motion .familia .people { display: none; }
  .motion .familia .deck { height: 310px; }
  .motion .shift { width: min(100%, 340px); }
}
@media (max-width: 599px) { .motion .save p { display: none; } }

/* Dark: the privacy scene is the one night on the page */
@media (prefers-color-scheme: dark) {
  .noche, .noche .stage { background: radial-gradient(70% 60% at 50% 0%, #1F1A57, transparent 70%), #0B0920; }
  .facts a { color: #FFD27A; }
}

@media (max-width: 899px) {
  .shift header { padding: 14px 16px; }
  .shift header b { font-size: 22px; }
  .motion .shift { top: calc(var(--k) * 66px); }
}

@media (max-width: 599px) { .shape.wide-only, .spark.s4 { display: none; } }

/* ---------- Placement (the CSP allows no inline styles, so every position lives here) ---------- */
.wave > span:nth-child(1) { --i: 0; } .wave > span:nth-child(2) { --i: 1; } .wave > span:nth-child(3) { --i: 2; }
.wave > span:nth-child(4) { --i: 3; } .wave > span:nth-child(5) { --i: 4; } .wave > span:nth-child(6) { --i: 5; }
.giant > span:nth-child(1) { --i: 0; } .giant > span:nth-child(2) { --i: 1; --tilt: -1; } .giant > span:nth-child(3) { --i: 2; }
.giant > span:nth-child(4) { --i: 3; --tilt: -1; } .giant > span:nth-child(5) { --i: 4; } .giant > span:nth-child(6) { --i: 5; --tilt: -1; }
.cloud.c1 { --speed: -.25; top: 18%; left: -30px; width: 220px; }
.cloud.c2 { --speed: -.45; top: 58%; right: 4%; width: 150px; }
.cloud.c3 { --speed: -.1; top: 8%; right: 30%; width: 100px; }
.spark.s1 { top: 16%; left: 46%; --s: 28px; }
.spark.s2 { top: 72%; left: 8%; --s: 18px; --c: #E58BC0; }
.spark.s3 { top: 30%; right: 6%; --s: 22px; --c: #8CCBF5; }
.spark.s4 { top: 18%; left: 44%; --s: 30px; }
.shape.sun { left: -8vw; bottom: -36vh; width: 26vw; --dy: 30vh; --spin: 40deg; }
.shape.heart { right: -8vw; bottom: -10vh; width: 42vw; --dy: -40vh; --spin: -20deg; }
.sticker.pink { background: #FFD3EA; }
.sticker + h2, .stage h2 + .lede { margin-top: 18px; }
.person i.mom { background: var(--mom-deep); } .person i.dad { background: var(--dad-deep); } .person i.grandma { background: var(--grandma-deep); }
.ev:nth-child(1) { --a: .44; --b: .58; } .ev:nth-child(2) { --a: .54; --b: .68; } .ev:nth-child(3) { --a: .64; --b: .78; }
.save { --a: .78; --b: .88; }
.shift:nth-child(1) { --c: var(--dad-deep); --k: 0; --a: .05; --b: .3; --r0: -30deg; --r: -1.5deg; }
.shift:nth-child(2) { --c: var(--mom-deep); --k: 1; --a: .3; --b: .55; --r0: 25deg; --r: 1deg; }
.shift:nth-child(3) { --c: var(--grandma-deep); --k: 2; --a: .55; --b: .8; --r0: -18deg; --r: 0deg; }
.summary .bar:nth-of-type(1) i { --v: 80%; --from: #8CCCFF; --to: #3375F2; }
.summary .bar:nth-of-type(2) i { --v: 92%; --from: #9E99FF; --to: #574DD1; }
.summary .bar:nth-of-type(3) i { --v: 60%; --from: #8CEBB8; --to: #1FA680; }
.widget .orb { width: 30px; height: 30px; }
.promises li:nth-child(1) { --a: .04; --b: .22; } .promises li:nth-child(2) { --a: .22; --b: .4; } .promises li:nth-child(3) { --a: .4; --b: .58; }
.facts { --a: .6; --b: .78; }
.perch { left: 50%; bottom: 62%; translate: -50% 0; z-index: -1; }
.perch.p2 { bottom: 60%; width: 10vw; }
.perch.p3 { left: 40%; bottom: 58%; width: 9vw; }

/* The language hint on the Spanish page for an English browser (and the other way round) */
.hint { position: fixed; z-index: 49; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px;
  background: #1D1747; color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(29, 23, 71, .25); font-weight: 600; font-size: 15px; white-space: nowrap; }
.hint[hidden] { display: none; }
.hint a { color: #fff; padding: 0 4px; min-height: 44px; display: inline-flex; align-items: center; }
.hint button { appearance: none; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font: 700 18px/1 var(--text); cursor: pointer; }
@media (prefers-color-scheme: dark) { .hint { background: #F7F3FF; color: #1D1747; } .hint a { color: #1D1747; } .hint button { background: rgba(29, 23, 71, .1); color: #1D1747; } }

/* Phones: Safari's toolbars leave about 650 pt, so the pinned stages drop what the scene already shows */
@media (max-width: 899px) {
  .motion .voz .lede, .motion .voz .sticker, .motion .familia .sticker { display: none; }
  .motion .voz h2.display { margin-top: 0; }
  .motion .familia h2.display { font-size: clamp(34px, 9.6vw, 60px); margin-top: 0; }
  .motion .familia .lede { font-size: 16px; }
  .motion .bubble { font-size: 18px; }
  .motion .ev { padding: 8px 12px; }
  .motion .ev .orb { width: 28px; height: 28px; }
  .motion .familia .deck { height: 280px; }
  .motion .shift { top: calc(var(--k) * 62px); }
  .motion .shift li { padding: 7px 0; }
  .motion .noche .inner { padding-top: 64px; }
  .motion .noche .gomita { width: 96px; }
  .motion .noche .sticker { margin-bottom: 10px; }
  .motion .promises li { font-size: clamp(32px, 9vw, 56px); }
  .motion .facts { gap: 6px; margin-top: 18px; }
  .motion .facts li { font-size: 15px; padding: 7px 12px; }
}
