/* Amelia website. Tokens follow the app's Theme.swift and the App Store deck. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(assets/fonts/Fraunces-normal-600-800.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600 800; font-display: swap; src: url(assets/fonts/Fraunces-italic-600-800.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/Nunito-normal-600.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/Nunito-normal-700.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/Nunito-normal-800.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url(assets/fonts/Nunito-normal-900.woff2) format("woff2"); }

:root {
  --night-0: #07081a;
  --night-1: #0d0b26;
  --night-2: #17133f;
  --night-3: #241d5c;
  --lav: #A99BFF;
  --lav-2: #CFC6FF;
  --honey: #FFD58A;
  --peach: #FFB38A;
  --rose: #F7A6C1;
  --mint: #8FF0B8;
  --cream: #FFF4E4;
  --bubble: #FFF6E6;
  --ink: #3B2618;
  --text: rgba(255, 244, 228, .74);
  --muted: rgba(255, 244, 228, .52);
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .06);
  --serif: "Fraunces", Georgia, serif;
  --round: "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--round); font-weight: 700; color: var(--cream);
  background: radial-gradient(120% 80% at 50% 0%, #1c1650 0%, var(--night-1) 45%, var(--night-0) 100%) fixed, var(--night-0);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; filter: blur(70px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 60vw; height: 40vw; left: -10vw; top: -8vw; background: radial-gradient(closest-side, rgba(124, 99, 255, .55), transparent); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vw; height: 34vw; right: -12vw; top: 10vh; background: radial-gradient(closest-side, rgba(247, 166, 193, .32), transparent); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 46vw; height: 30vw; left: 25vw; top: 55vh; background: radial-gradient(closest-side, rgba(95, 210, 255, .18), transparent); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 12vh) scale(.9); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lav), var(--rose), var(--honey)); }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.c { text-align: center; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif); font-weight: 650; letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(40px, 6vw, 76px); color: var(--cream);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-wrap: balance;
}
h3.display { font-size: clamp(36px, 4.6vw, 60px); }
.display em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(100deg, #FFE3A6 0%, var(--honey) 40%, var(--peach) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .08em .06em; margin: 0 -.08em;
  /* own box so the second line of a headline balances too (no lone last word) */
  display: inline-block; text-wrap: balance;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 900 13px/1 var(--round); letter-spacing: .2em; text-transform: uppercase; color: var(--honey);
}
.kicker.center { display: flex; justify-content: center; }
.k-rose { color: var(--rose); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19.5px); font-weight: 700; color: var(--text); max-width: 34em; text-wrap: pretty; }
.lead.center { margin-inline: auto; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.fine span { color: var(--lav-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font: 900 16px/1 var(--round); color: #2a1a0e;
  background: linear-gradient(180deg, #FFE1A6, var(--honey) 55%, #F5B969);
  box-shadow: 0 10px 30px rgba(255, 179, 108, .28), inset 0 -3px 0 rgba(150, 90, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(255, 179, 108, .38), inset 0 -3px 0 rgba(150, 90, 30, .18); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 20px;
  border-radius: 16px; background: #000; color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), 0 18px 40px rgba(4, 3, 22, .5);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.appstore::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  animation: shine 4.5s 1.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.appstore:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 24px 50px rgba(124, 99, 255, .35); }
.appstore svg { width: 26px; height: 30px; fill: #fff; }
.appstore span { display: flex; flex-direction: column; font: 600 24px/1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -.02em; }
.appstore small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 3px; }

.plus {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 8px 3px; border-radius: 999px;
  font: 900 10.5px/1.2 var(--round); letter-spacing: .1em; text-transform: uppercase;
  color: #1b1446; background: linear-gradient(90deg, var(--lav-2), var(--lav));
}
.free { color: var(--honey); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 100% - 24px); display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 10px 9px 14px; border-radius: 22px;
  background: rgba(16, 13, 46, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 40px rgba(4, 3, 22, .35);
  transition: background .4s, top .4s var(--ease);
}
.nav.scrolled { background: rgba(16, 13, 46, .82); top: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 19px/1 var(--round); letter-spacing: -.01em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.links { display: flex; gap: 4px; }
.links a { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text); transition: color .2s, background .2s; }
.links a:hover, .links a.active { color: var(--cream); background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px 0 160px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; }
.tags { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; }
.tags li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--text); }
.tags li:first-child { background: rgba(255, 255, 255, .08); color: var(--cream); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.mint { background: var(--mint); box-shadow: 0 0 0 4px rgba(143, 240, 184, .22); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143, 240, 184, 0); } }
.hero .display { font-size: clamp(38px, 4.2vw, 58px); }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.hero-art { position: relative; height: min(700px, 82vh); min-height: 540px; }
.moon { position: absolute; width: 110px; right: 4%; top: -2%; animation: bob 9s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 213, 138, .45)); }
.moon-glow { position: absolute; right: -10%; top: -14%; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 213, 138, .18), transparent); }

/* Generic iPhone: thin black bezel, titanium rim, side buttons. Everything is sized in cqw
   (percent of the phone's own width) so corners stay perfectly round at every size. */
.phone { position: absolute; container-type: inline-size; }
.phone::before { /* body: rim + bezel */
  content: ""; position: absolute; inset: 0; border-radius: 17.6cqw;
  background: #050507;
  box-shadow:
    inset 0 0 0 .9cqw #9a9aa3,
    inset 0 0 0 1.25cqw #3c3c44,
    inset 0 0 0 1.6cqw #050507,
    0 0 0 .25cqw rgba(255, 255, 255, .08),
    0 12cqw 26cqw rgba(4, 3, 22, .6), 0 4cqw 9cqw rgba(4, 3, 22, .4);
}
.phone::after { /* action + volume buttons (left), side button (right) */
  content: ""; position: absolute; left: -.7cqw; top: 26cqw; width: .8cqw; height: 9cqw;
  border-radius: .5cqw 0 0 .5cqw; background: #7d7d86;
  box-shadow: 0 17cqw 0 0 #7d7d86, 0 37cqw 0 0 #7d7d86, calc(100cqw + .6cqw) 22cqw 0 0 #7d7d86;
}
.phone img {
  position: relative; z-index: 1; display: block;
  width: calc(100% - 9cqw); height: auto; margin: 4.5cqw;
  border-radius: 13.2cqw; aspect-ratio: 720 / 1566; object-fit: cover;
}
.phone-hero { width: min(310px, 62%); left: 50%; top: 50%; translate: -50% -50%; }

.float { animation: bob 7s ease-in-out infinite; }
.float-2 { animation: bob 6s -2s ease-in-out infinite; }
.float-3 { animation: bob 8s -4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.live-card, .chip-card, .toast, .island, .stats, .lr, .wave, .paper, .five11, .sticker {
  position: absolute; z-index: 4;
  background: rgba(30, 24, 74, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 50px rgba(4, 3, 22, .5);
}
.live-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 22px; left: -4%; top: 14%; min-width: 280px; }
.live-card img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: rgba(169, 155, 255, .25); }
.live-card b, .chip-card b, .toast b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.live-card small, .chip-card small, .toast small { display: block; font-size: 12px; color: var(--muted); }
.live-card .timer { margin-left: auto; text-align: right; }
.live-card .timer small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--lav-2); }
.live-card .timer b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chip-card { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; right: -2%; bottom: 24%; }
.ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.ico.lav { background: rgba(169, 155, 255, .3); color: var(--lav-2); }

.amelia-hero { position: absolute; left: -8%; bottom: -6%; width: 190px; z-index: 5; }
.amelia-hero img { filter: drop-shadow(0 26px 30px rgba(6, 4, 30, .55)); transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-2.5deg) translateY(-4px); } }
.bubble {
  position: absolute; z-index: 6; background: var(--bubble); color: var(--ink);
  padding: 12px 18px 14px; border-radius: 22px; font: 800 15.5px/1.3 var(--round); width: max-content; max-width: 260px;
  box-shadow: 0 20px 40px rgba(6, 4, 30, .45), inset 0 -3px 0 rgba(217, 164, 101, .22);
}
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -9px; width: 20px; height: 20px; background: var(--bubble); transform: rotate(45deg); border-radius: 0 0 6px 0; }
.bubble .who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 900 10px/1 var(--round); letter-spacing: .16em; text-transform: uppercase; color: #C98A4B; }
.bubble .who i { width: 7px; height: 7px; border-radius: 50%; background: #5fd99a; box-shadow: 0 0 0 3px rgba(143, 240, 184, .35); }
.amelia-hero .bubble { left: 64%; top: -24%; }
.type::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.dunes, .final-scene svg { position: absolute; left: 0; right: 0; bottom: -1px; height: 200px; pointer-events: none; }
.dunes svg, .final-scene svg { width: 100%; height: 100%; display: block; }
.d1 { fill: #2a2063; } .d2 { fill: #1e1749; } .d3 { fill: var(--night-1); }

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--night-1); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 650 italic 26px/1 var(--serif); color: var(--lav-2); white-space: nowrap; }
.ticker span::after { content: "✦"; font: 400 normal 14px/1 var(--round); color: var(--honey); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chaos → Calm ---------- */
.chaos { position: relative; height: 320vh; }
.chaos-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.chaos-copy { position: relative; z-index: 3; text-align: center; max-width: 820px; padding: 0 20px; will-change: opacity, transform; }
.chaos-copy .kicker { justify-content: center; display: flex; }
.chaos-copy .display { font-size: clamp(38px, 5vw, 66px); }
.chaos-copy::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 11, 38, .92), rgba(13, 11, 38, .6) 60%, transparent); }
.problem s { text-decoration: none; }
.chaos-copy .lead { margin-inline: auto; }
.mess { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.m {
  position: absolute; left: 50%; top: 50%; padding: 12px 16px; border-radius: 16px; max-width: 250px;
  font-size: 14px; line-height: 1.3; color: #2b2340; background: #fff;
  box-shadow: 0 24px 50px rgba(4, 3, 22, .45); will-change: transform, opacity;
}
.m b { font-weight: 900; } .m small { display: block; font-size: 11.5px; color: #8a83a3; }
.m p { font-weight: 700; }
.m-note { background: #FFF8D9; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.m-note b { display: block; font-family: var(--round); color: #C49A12; font-size: 12px; margin-bottom: 4px; }
.m-msg { background: #E9E7F3; border-radius: 20px 20px 20px 6px; }
.m-search { display: flex; gap: 10px; align-items: center; border-radius: 999px; padding: 12px 20px; }
.m-sticky { background: #FFE27A; font: 700 italic 19px/1.25 var(--serif); color: #5b4100; padding: 18px 20px; border-radius: 4px; box-shadow: 0 30px 40px rgba(4, 3, 22, .4); }
.m-alarm, .m-file, .m-unread, .m-rain { display: flex; gap: 12px; align-items: center; }
.ring { width: 32px; height: 32px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); animation: ring 1.2s ease-out infinite; flex: none; }
@keyframes ring { to { box-shadow: 0 0 0 14px rgba(255, 107, 107, 0); } }
.xl { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #2fb35a; color: #fff; font-weight: 900; flex: none; }
.badge { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: #ff4d5e; color: #fff; font-weight: 900; flex: none; }
.m-rain > span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #e33; color: #fff; flex: none; }

.calm { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; width: min(var(--max), 100% - 40px); margin: auto; opacity: 0; pointer-events: none; will-change: opacity; }
.calm-art { position: relative; height: min(640px, 76vh); }
.phone-calm { width: min(290px, 70%); left: 50%; top: 50%; translate: -50% -50%; }
.calm-amelia { position: absolute; width: 170px; right: 0; bottom: 2%; filter: drop-shadow(0 26px 30px rgba(6, 4, 30, .55)); }
.toggle { position: absolute; z-index: 6; bottom: 34px; left: 50%; translate: -50% 0; display: flex; padding: 5px; border-radius: 999px; background: rgba(16, 13, 46, .8); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); }
.toggle span { position: relative; z-index: 1; padding: 10px 20px; white-space: nowrap; font-size: 14px; color: var(--muted); transition: color .3s; }
.toggle span.on { color: #2a1a0e; }
.toggle i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--w, 90px); border-radius: 999px; background: linear-gradient(180deg, #FFE1A6, var(--honey)); transform: translateX(var(--x, 0)); transition: transform .5s var(--spring), width .5s var(--spring); }

/* ---------- Feature chapters ---------- */
.features { position: relative; padding: 40px 0 60px; }
.chapter { padding: clamp(70px, 10vw, 130px) 0; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.chapter.flip .ch-copy { order: 2; }
.count { font: 800 13px/1 var(--round); letter-spacing: .14em; color: var(--lav-2); margin-bottom: 26px; }
.count span { color: var(--muted); }
.problem { margin-bottom: 26px; }
.problem .lbl { display: block; margin-bottom: 8px; font: 900 12px/1 var(--round); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.problem s { text-decoration: none; font: 600 italic clamp(18px, 1.8vw, 22px)/1.35 var(--serif); color: var(--muted); background: linear-gradient(rgba(247, 166, 193, .75), rgba(247, 166, 193, .75)) no-repeat 0 58% / 0% 1.5px; transition: background-size 1.2s .5s var(--ease); }
.problem.in s { background-size: 100% 1.5px; }
.tick { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 213, 138, .18); font-size: 11px; }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; color: var(--cream); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 12px/1 var(--round); color: #1b1446; background: linear-gradient(135deg, var(--lav-2), var(--lav)); }

.ch-art { position: relative; height: clamp(520px, 52vw, 640px); }
.ch-art > .phone { width: min(300px, 62%); left: 50%; top: 50%; translate: -50% -50%; transition: transform 1.2s var(--ease); }
.ch-art .tilt-l { transform: rotate(-3deg); } .ch-art .tilt-r { transform: rotate(3deg); }
.ch-art.duo .back { width: min(260px, 52%); left: 62%; top: 46%; opacity: .9; transform: rotate(6deg); }
.ch-art.duo .front { width: min(280px, 56%); left: 38%; top: 54%; transform: rotate(-4deg); z-index: 2; }
.ch-art.reveal.in .tilt-l { transform: rotate(-2deg); }
.mini-amelia { position: absolute; width: 130px; z-index: 5; filter: drop-shadow(0 20px 26px rgba(6, 4, 30, .5)); }
.ma-r { right: 2%; bottom: 0; }

.sticker { padding: 14px 18px; border-radius: 22px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.25; }
.sticker b { display: block; font: 700 italic 30px/1.1 var(--serif); color: var(--honey); margin: 2px 0; }
.sticker small { display: block; font-size: 11px; }
.s-honey { left: 0; top: 12%; }
.s-rose { right: 2%; top: 16%; } .s-rose b { font-style: normal; font-size: 34px; }

.island { left: 50%; top: 6%; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #000; min-width: 230px; }
.island img { width: 34px; height: 34px; border-radius: 50%; background: rgba(169, 155, 255, .3); }
.island span { font-size: 14px; color: var(--lav-2); }
.island b { margin-left: auto; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--honey); }

.lr { left: 0; bottom: 16%; display: flex; gap: 10px; padding: 10px; border-radius: 999px; }
.lr span { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; align-content: center; font: 900 24px/1 var(--round); }
.lr small { font-size: 10px; font-weight: 800; opacity: .8; margin-top: 3px; }
.lr .l { background: linear-gradient(180deg, #F5C3A2, #D99A76); color: #3b2618; box-shadow: 0 0 0 0 rgba(245, 195, 162, .5); animation: ring2 2s ease-out infinite; }
.lr .r { background: #2b2645; color: var(--cream); }
@keyframes ring2 { to { box-shadow: 0 0 0 16px rgba(245, 195, 162, 0); } }

.wave { right: 0; bottom: 18%; display: flex; align-items: center; gap: 4px; padding: 14px 18px; border-radius: 20px; }
.wave i { width: 4px; height: 26px; border-radius: 4px; background: linear-gradient(var(--lav-2), var(--lav)); animation: eq 1.1s ease-in-out infinite; transform-origin: 50% 50%; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.5s; } .wave i:nth-child(4) { animation-delay: -.1s; } .wave i:nth-child(5) { animation-delay: -.7s; } .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(7) { animation-delay: -.9s; } .wave i:nth-child(8) { animation-delay: -.4s; } .wave i:nth-child(9) { animation-delay: -.6s; }
.wave span { margin-left: 10px; font-size: 13px; color: var(--text); }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.stats { left: 50%; bottom: 2%; translate: -50% 0; display: flex; gap: 6px; padding: 8px; border-radius: 22px; z-index: 5; }
.stats span { padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); text-align: center; font: 800 22px/1 var(--round); color: var(--lav-2); min-width: 88px; }
.stats b { font-weight: 900; font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.sync .pulse { position: absolute; left: 50%; top: 18%; translate: -50% 0; width: 64px; height: 64px; z-index: 6; display: grid; place-items: center; }
.sync .pulse span { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--lav-2), var(--lav)); color: #1b1446; box-shadow: 0 10px 30px rgba(124, 99, 255, .5); }
.sync .pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lav); animation: ripple 2.4s ease-out infinite; }
.sync .pulse i:nth-child(2) { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(.7); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.toast { right: -2%; bottom: 10%; display: flex; gap: 10px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 20px; }
.toast img { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 213, 138, .25); }
.paper { right: 0; bottom: 8%; padding: 14px 18px 14px 54px; border-radius: 18px; }
.paper::before { content: "PDF"; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 32px; height: 38px; border-radius: 6px; display: grid; place-items: center; font: 900 9px/1 var(--round); color: #fff; background: linear-gradient(180deg, #F7A6C1, #e0708f); }
.paper b { display: block; font-size: 14px; } .paper small { font-size: 12px; color: var(--muted); }
.five11 { left: 0; bottom: 14%; display: flex; gap: 6px; padding: 8px; border-radius: 22px; }
.five11 span { width: 76px; padding: 10px 6px; border-radius: 16px; text-align: center; font-size: 10.5px; color: var(--muted); background: rgba(247, 166, 193, .12); line-height: 1.2; }
.five11 b { display: block; font: 700 32px/1 var(--serif); color: var(--rose); margin-bottom: 2px; }

/* Bump interlude */
.interlude { position: relative; padding: clamp(90px, 12vw, 150px) 0 40px; text-align: center; }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 45%, rgba(247, 166, 193, .16), transparent 70%); }
.interlude .kicker { display: flex; justify-content: center; }
.interlude .lead { margin-inline: auto; }
.int-amelia { width: 150px; margin: 0 auto 18px; filter: drop-shadow(0 20px 30px rgba(6, 4, 30, .5)); animation: bob 6s ease-in-out infinite; }
.journey { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.journey span { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.journey span.h { color: #2a1a0e; background: linear-gradient(90deg, var(--rose), var(--peach)); box-shadow: 0 10px 30px rgba(247, 166, 193, .35); }
.journey.in span { animation: popin .6s var(--spring) both; }
.journey.in span:nth-child(2) { animation-delay: .08s; } .journey.in span:nth-child(3) { animation-delay: .16s; } .journey.in span:nth-child(4) { animation-delay: .24s; } .journey.in span:nth-child(5) { animation-delay: .32s; } .journey.in span:nth-child(6) { animation-delay: .4s; }
@keyframes popin { from { opacity: 0; transform: scale(.6) translateY(10px); } }
.bumpy .kicker { color: var(--rose); }
.bumpy .checks li::before { background: linear-gradient(135deg, #ffd3e1, var(--rose)); }

/* ---------- Meet Amelia ---------- */
.meet { padding: clamp(90px, 12vw, 150px) 0; }
.meet-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.meet-stage { position: relative; height: 560px; display: grid; place-items: end center; }
.halo { position: absolute; inset: 10% 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(169, 155, 255, .35), transparent 70%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
#moodImg { position: relative; z-index: 2; width: 300px; margin-bottom: 30px; filter: drop-shadow(0 30px 40px rgba(6, 4, 30, .55)); transform-origin: 50% 100%; }
#moodImg.swap { animation: hop .6s var(--spring); }
@keyframes hop { 0% { transform: scale(.9) translateY(10px); opacity: .4; } 60% { transform: scale(1.04) translateY(-14px); opacity: 1; } 100% { transform: none; } }
.burrow { position: absolute; bottom: 10px; width: 280px; height: 50px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.bubble.big { top: 2%; left: 50%; translate: -50% 0; max-width: 340px; font-size: 17px; text-align: left; min-height: 72px; transition: opacity .25s; }
.bubble.big::after { left: 50%; margin-left: -10px; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.moods button { padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 800; color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); transition: all .3s var(--spring); }
.moods button:hover { transform: translateY(-2px); color: var(--cream); }
.moods button[aria-selected="true"] { color: #2a1a0e; background: linear-gradient(180deg, #FFE1A6, var(--honey)); box-shadow: 0 10px 30px rgba(255, 179, 108, .3); }

/* ---------- Little things ---------- */
.little { padding: clamp(80px, 10vw, 130px) 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.tile { position: relative; padding: 24px 22px; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring), box-shadow .4s, background .4s; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 155, 255, .22), transparent 60%); }
.tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(169, 155, 255, .4), 0 30px 60px rgba(4, 3, 22, .4); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.ti { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 24px; background: rgba(255, 255, 255, .07); margin-bottom: 16px; transition: transform .5s var(--spring); }
.tile:hover .ti { transform: rotate(-8deg) scale(1.1); }
.tile b { display: block; font-size: 16.5px; font-weight: 900; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(80px, 10vw, 130px) 0; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.pcard { padding: 28px 24px; border-radius: 28px; text-align: center; background: rgba(143, 240, 184, .05); box-shadow: inset 0 0 0 1px rgba(143, 240, 184, .16); }
.pi { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; font-size: 26px; background: rgba(143, 240, 184, .12); }
.pcard b { display: block; font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.pcard p { font-size: 14.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(80px, 10vw, 130px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; max-width: 960px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 32px 30px; border-radius: 34px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.plan .checks { flex: 1; margin-bottom: 28px; }
.plan .checks li { font-size: 15.5px; color: var(--text); }
.plan .checks li b { color: var(--cream); }
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-head img { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 213, 138, .18); }
.plan-head b { display: block; font-size: 20px; font-weight: 900; }
.plan-head small { color: var(--muted); font-size: 14px; }
.price { margin-top: 22px; font: 700 italic 54px/1 var(--serif); color: var(--honey); }
.price small { display: block; margin-top: 8px; font: 700 14px/1.2 var(--round); color: var(--muted); }
.plus-plan { background: linear-gradient(160deg, rgba(169, 155, 255, .24), rgba(169, 155, 255, .06) 60%); box-shadow: inset 0 0 0 1.5px rgba(169, 155, 255, .45), 0 40px 80px rgba(60, 40, 180, .25); }
.plus-plan .price { color: var(--lav-2); }
.plus-plan .plan-head img { background: rgba(169, 155, 255, .3); }
.plus-plan .fine { margin-top: 14px; }
.ribbon { position: absolute; top: -14px; right: 28px; padding: 8px 14px; border-radius: 999px; font: 900 12px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; color: #2a1a0e; background: linear-gradient(90deg, var(--honey), var(--peach)); box-shadow: 0 10px 24px rgba(255, 179, 138, .35); animation: bob 4s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; }
.qa { margin-top: 46px; display: grid; gap: 10px; }
details { border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
details[open] { background: rgba(255, 255, 255, .08); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 900; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--honey); background: rgba(255, 213, 138, .12); transition: transform .4s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--text); font-size: 15.5px; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Final ---------- */
.final { position: relative; padding: clamp(110px, 14vw, 170px) 0 300px; overflow: hidden; }
.sunrise { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 0%, rgba(80, 50, 140, .35) 35%, rgba(200, 110, 150, .45) 70%, rgba(255, 170, 130, .55) 100%); }
.sunrise::after { content: ""; position: absolute; left: 50%; bottom: 80px; width: 900px; height: 500px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 213, 138, .5), transparent); }
.final-inner { position: relative; z-index: 2; text-align: center; }
.icon-big { width: 112px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25), 0 30px 60px rgba(4, 3, 22, .5); animation: bob 6s ease-in-out infinite; }
.final .lead { margin-inline: auto; }
.final .fine { margin-top: 16px; color: var(--text); }
.final-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; }
.final-scene .d1 { fill: #6b4a8f; } .final-scene .d2 { fill: #4a3577; } .final-scene .d3 { fill: #2b2156; }
.fa { position: absolute; z-index: 2; bottom: 70px; filter: drop-shadow(0 20px 20px rgba(6, 4, 30, .4)); transform-origin: 50% 100%; }
.fa-1 { width: 150px; left: 12%; animation: sway 5s ease-in-out infinite; }
.fa-2 { width: 120px; right: 14%; bottom: 60px; animation: sway 6s -2s ease-in-out infinite; }
.fa-3 { width: 96px; right: 30%; bottom: 40px; animation: sway 7s -3s ease-in-out infinite; }
.final-scene svg { z-index: 1; height: 150px; }
.final-scene .fa { z-index: 0; }

/* ---------- Footer ---------- */
.foot { background: #2b2156; padding: 40px 0 110px; border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot p { font-size: 14px; color: var(--text); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot nav a { font-size: 14px; color: var(--lav-2); }
.foot .legal { max-width: 640px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px; background: rgba(16, 13, 46, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 40px rgba(0, 0, 0, .45); transform: translateY(140%); transition: transform .5s var(--spring); }
.sticky-cta.show { transform: none; }
.sticky-cta img { border-radius: 9px; }
.sticky-cta span { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta b { font-size: 15px; font-weight: 900; } .sticky-cta small { font-size: 12px; color: var(--muted); }
.sticky-cta em { margin-left: auto; font-style: normal; padding: 10px 22px; border-radius: 999px; font: 900 15px/1 var(--round); color: #2a1a0e; background: linear-gradient(180deg, #FFE1A6, var(--honey)); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { padding-top: 110px; }
  .hero-grid, .ch-grid, .meet-grid, .calm { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-art { height: 600px; min-height: 0; }
  .chapter.flip .ch-copy { order: 0; }
  .ch-copy { text-align: left; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .calm { text-align: center; align-content: center; gap: 10px; }
  .calm .lead { margin-inline: auto; }
  .calm-art { height: 52svh; }
  .phone-calm { width: calc(52svh * .47); }
  .calm-amelia { width: 110px; right: 4%; }
  .hero { padding-bottom: 110px; }
  .calm-copy .display { font-size: clamp(34px, 8vw, 54px); }
  .calm-copy .lead { display: none; }
  .meet-stage { height: 480px; }
  .meet-copy { text-align: center; } .meet-copy .lead { margin-inline: auto; } .moods { justify-content: center; }
  .sticky-cta { display: flex; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 7px 7px 7px 12px; }
  .tags li { padding: 5px 9px; font-size: 12px; }
  .hero-art { height: 540px; }
  .phone-hero { width: 230px; }
  .live-card { left: 0; top: 4%; min-width: 0; padding: 10px 12px 10px 10px; gap: 10px; }
  .live-card .timer b { font-size: 19px; }
  .chip-card { right: 0; bottom: 30%; }
  .amelia-hero { width: 130px; left: -2%; bottom: -4%; }
  .amelia-hero .bubble { left: 58%; top: -26%; max-width: 180px; font-size: 14px; }
  .moon { width: 76px; right: 0; }
  .ch-art { height: 520px; }
  .ch-art > .phone { width: 220px; }
  .ch-art.duo .back { width: 190px; left: 66%; }
  .ch-art.duo .front { width: 210px; left: 36%; }
  .mini-amelia { width: 96px; }
  .stats span { min-width: 74px; padding: 8px 10px; font-size: 19px; }
  .five11 span { width: 64px; }
  .grid, .pgrid { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: start; padding: 18px; }
  .ti { grid-row: span 2; margin: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px 24px; }
  .m { max-width: 190px; font-size: 12.5px; padding: 10px 12px; }
  .m-sticky { font-size: 16px; }
  .m-search { padding: 10px 14px; }
  .chaos-copy .display { font-size: clamp(34px, 9vw, 46px); }
  .fa-1 { width: 110px; left: 4%; } .fa-2 { width: 90px; right: 6%; } .fa-3 { display: none; }
  .appstore span { font-size: 22px; }
}

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

/* ---------- Journey hero: pregnancy ⇄ baby ---------- */
.hero-phones { position: absolute; inset: 0; }
.hp { width: min(290px, 54%); left: 50%; top: 47%; translate: -50% -50%; transition: transform 1.1s var(--ease), filter 1.1s var(--ease), opacity 1.1s; }
.stage-bump .hp-bump, .stage-baby .hp-baby { transform: translateX(-12%) rotate(-2deg); z-index: 3; filter: none; }
.stage-bump .hp-baby, .stage-baby .hp-bump { transform: translateX(30%) translateY(-5%) rotate(6deg) scale(.84); z-index: 2; filter: brightness(.55) saturate(.8); }
.sc { transition: opacity .6s var(--ease), scale .6s var(--spring); }
.stage-bump .sc[data-stage="baby"], .stage-baby .sc[data-stage="bump"] { opacity: 0; scale: .85; pointer-events: none; }
.ico.rose { background: rgba(247, 166, 193, .28); color: var(--rose); }
.stage-switch { position: absolute; z-index: 7; left: 50%; bottom: -2%; translate: -50% 0; display: flex; padding: 5px; border-radius: 999px; background: rgba(16, 13, 46, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(4, 3, 22, .45); }
.stage-switch button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 900; color: var(--muted); white-space: nowrap; transition: color .3s; }
.stage-switch button[aria-selected="true"] { color: #2a1a0e; }
.stage-switch i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--w, 120px); border-radius: 999px; transform: translateX(var(--x, 0)); background: linear-gradient(90deg, #ffd3e1, var(--rose)); transition: transform .6s var(--spring), width .6s var(--spring), background .6s; }
.stage-baby .stage-switch i { background: linear-gradient(180deg, #FFE1A6, var(--honey)); }
.amelia-hero { bottom: 4%; }

/* Chaos extras */
.xl.pdf { background: #e0566f; font-size: 10px; }

/* Calm: pregnancy phone behind the baby phone */
.calm-art .cp-back { width: min(250px, 58%); left: 74%; top: 46%; translate: -50% -50%; transform: rotate(7deg); filter: brightness(.6); }
.calm-art .phone-calm { translate: -62% -50%; }

/* Act headers */
.interlude.act .kicker { font-size: 14px; }
.act-baby::before { background: radial-gradient(60% 55% at 50% 45%, rgba(169, 155, 255, .2), transparent 70%); }
.pulse.solo { position: absolute; right: 8%; top: 10%; width: 64px; height: 64px; z-index: 6; display: grid; place-items: center; }
.pulse.solo span { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #ffd3e1, var(--rose)); color: #4a1d2c; box-shadow: 0 10px 30px rgba(247, 166, 193, .45); }
.pulse.solo i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rose); animation: ripple 2.4s ease-out infinite; }
.pulse.solo i:nth-child(2) { animation-delay: 1.2s; }

@media (max-width: 980px) {
  .calm-art .cp-back { width: calc(46svh * .47); }
  .calm-art .phone-calm { width: calc(52svh * .47); }
}
@media (max-width: 640px) {
  .hp { width: 210px; }
  .hero-art { height: 560px; }
  .stage-switch { bottom: -4%; }
  .stage-switch button { padding: 9px 14px; font-size: 13.5px; }
  .amelia-hero { bottom: 6%; }
  .chip-card { bottom: 24%; }
}

/* ---------- Language menu ---------- */
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px; font: 800 13px/1 var(--round); letter-spacing: .06em; color: var(--text);
  transition: color .2s, background .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: none; }
.lang summary:hover, .lang[open] summary { color: var(--cream); background: rgba(255, 255, 255, .08); }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: rgba(22, 18, 58, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 50px rgba(4, 3, 22, .55);
  animation: langIn .22s var(--ease);
}
.lang-menu a { display: block; padding: 10px 14px; border-radius: 11px; font-size: 14.5px; color: var(--text); }
.lang-menu a:hover { background: rgba(255, 255, 255, .08); color: var(--cream); }
.lang-menu a[aria-current] { color: var(--honey); }
.lang-menu a[aria-current]::after { content: " ✓"; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.foot-lang a[aria-current] { color: var(--honey); }
@media (max-width: 640px) {
  .nav-end { gap: 4px; }
  .lang summary { padding: 9px 8px; gap: 5px; }
  .nav { gap: 8px; }
  .nav .btn-sm { padding: 10px 14px; }
}
@media (max-width: 400px) { .lang summary svg { display: none; } .nav .brand { gap: 8px; } }
