/* Wishcake website — static, dependency-free.
   Palette: mint surfaces, forest green, berry accent, party wine, candle gold. */

@font-face { font-family: "Poppins"; src: url("./images/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./images/poppins-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./images/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("./images/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("./images/instrument-serif.woff2") format("woff2"), url("./images/instrument-serif.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("./images/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("./images/pacifico.woff2") format("woff2"); font-display: swap; }

:root {
  --mint-50: #F7FBF5;
  --mint-100: #EEF6EB;
  --mint-200: #E1EFDD;
  --mint-300: #C6E3C2;
  --green-400: #81C784;
  --green-600: #337653;
  --green-700: #246343;
  --green-800: #174B36;
  --green-900: #0F3326;

  --ink: #1B2B22;
  --ink-2: #3C4C43;
  --muted: #5A6B61;
  --line: rgba(36, 99, 67, .12);
  --line-strong: rgba(36, 99, 67, .24);

  --berry: #8A3B52;
  --wine: #481124;
  --wine-2: #5E1A33;
  --wine-deep: #2A0914;

  --gold: #FFC83D;
  --gold-2: #F5A524;
  --gold-light: #FFE7A6;
  --gold-ink: #3D1606;

  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-party: "Lilita One", "Poppins", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-sm: 0 1px 0 var(--line), 0 8px 20px -14px rgba(27, 43, 34, .35);
  --shadow-md: 0 1px 0 var(--line), 0 24px 48px -32px rgba(27, 43, 34, .5);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--mint-50);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #E9A92B; outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 5rem; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4.5vw, 2.5rem); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 200; top: 1rem; left: 1rem; padding: .6rem 1rem;
  color: #fff; background: var(--green-700); border-radius: .6rem; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 0; border-radius: 999px; padding: .8rem 1.35rem;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--small { padding: .66rem 1.1rem; font-size: .875rem; }
.btn--large { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn--primary {
  background: var(--green-700); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(36, 99, 67, .7);
}
.btn--primary:hover { background: var(--green-800); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 28px -12px rgba(36, 99, 67, .75); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--green-400), 0 10px 22px -14px rgba(36, 99, 67, .5); }
.btn--gold {
  background: linear-gradient(180deg, #FFD866, var(--gold-2)); color: var(--gold-ink); font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(150, 70, 0, .22), 0 12px 26px -12px rgba(245, 165, 36, .9);
}
.btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(150, 70, 0, .22), 0 18px 32px -12px rgba(245, 165, 36, .95); }

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60; padding-block: .9rem;
  transition: background-color .35s, box-shadow .35s, padding .35s;
}
.nav.is-scrolled {
  padding-block: .6rem;
  background: rgba(247, 251, 245, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(27, 43, 34, .45);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--green-800); }
.brand img { border-radius: 11px; box-shadow: 0 2px 8px rgba(27, 43, 34, .16); }
.nav__links {
  display: flex; gap: .2rem; padding: .3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .65); box-shadow: inset 0 0 0 1px var(--line);
}
.nav__links a { display: block; padding: .45rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: #fff; color: var(--green-700); }

/* ── Shared headings ─────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow__spark {
  width: 14px; height: 14px; flex: 0 0 auto; background: var(--gold-2);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.display {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.8vw, 4.75rem); line-height: .95; letter-spacing: -.03em; color: var(--ink);
}
.display em, .hero__title em { font-style: normal; color: var(--berry); }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .display { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: -30% -10% -10%;
  background:
    radial-gradient(38rem 28rem at 12% 22%, rgba(129, 199, 132, .30), transparent 70%),
    radial-gradient(34rem 28rem at 88% 26%, rgba(138, 59, 82, .14), transparent 70%),
    radial-gradient(30rem 22rem at 55% 92%, rgba(255, 200, 61, .18), transparent 70%);
  pointer-events: none;
}
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco {
  position: absolute; width: clamp(54px, 6.6vw, 100px); height: auto;
  filter: drop-shadow(0 14px 18px rgba(72, 17, 36, .2));
  translate: 0 var(--parallax, 0px);
  animation: bob 7s ease-in-out infinite alternate;
}
.deco--cherries { top: 4%; left: 43%; rotate: -10deg; animation-delay: -1s; }
.deco--macaron { bottom: 9%; left: 2.5%; rotate: 12deg; animation-delay: -3s; }
.deco--berry { top: 9%; right: 1.5%; rotate: 18deg; width: clamp(44px, 5vw, 76px); animation-delay: -2s; }
.deco--rose { bottom: 3%; left: 41%; rotate: -8deg; width: clamp(48px, 5.4vw, 82px); animation-delay: -5s; }
.deco--star { top: 40%; left: -1.2%; rotate: 14deg; width: clamp(40px, 4.4vw, 66px); animation-delay: -4s; }
@keyframes bob { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(10px) rotate(4deg); } }

.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.6rem, 8.6vw, 7.75rem); line-height: .88; letter-spacing: -.035em;
  margin: 1.2rem 0 1.5rem; color: var(--ink);
}
.hero__line { display: block; }
.hero__line--accent { color: var(--berry); }
.wish-word { position: relative; display: inline-block; }
.wish-word__swash { position: absolute; left: -3%; bottom: -.06em; width: 106%; height: .2em; overflow: visible; }
.wish-word__swash path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 0; }
.hero__lede { max-width: 31rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 0; margin-top: 2.4rem; }
.hero__facts li { padding-inline: 1.4rem; border-left: 1px solid var(--line-strong); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.35rem; line-height: 1; color: var(--green-700); }
.hero__facts span { font-size: .84rem; color: var(--muted); }
.hero__try {
  display: flex; align-items: flex-start; gap: .4rem; margin-top: 1.8rem;
  font-family: "Pacifico", cursive; font-size: 1.05rem; color: var(--berry); transform: rotate(-2deg);
}
.hero__try svg { flex: 0 0 auto; order: 2; margin-top: -.2rem; fill: none; stroke: var(--berry); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── The wish stage ──────────────────────────────────── */
.hero__demo { position: relative; }
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  container: stage / inline-size;
  aspect-ratio: 1 / 1.06; border-radius: 2rem;
  background: var(--wine);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 40px 70px -34px rgba(72, 17, 36, .75),
    0 18px 30px -20px rgba(72, 17, 36, .5);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  --wind: 0;
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 110%, rgba(20, 0, 8, .55), transparent 70%);
}
/* Each cake is baked into its party backdrop (see tools/prepare_assets.py),
   so the page never ships a transparent cutout. */
.stage__backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.stage__scene {
  position: absolute; inset: 0; opacity: 0;
  background: var(--wine) no-repeat center top / 100% auto;
  transition: opacity .45s ease, transform .6s var(--ease-out);
  transform: scale(1.03);
}
.stage__scene.is-active { opacity: 1; transform: none; }
.stage__backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 120, 150, .18), transparent 60%);
}
.stage__spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 32% at 50% 36%, rgba(255, 190, 100, .34), transparent 70%);
  transition: opacity .9s ease;
}
.stage:not([data-state="lit"]) .stage__spot { opacity: .15; }

.stage__headline {
  position: absolute; left: 0; right: 0; top: 3.2cqw; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-party); font-size: 10.6cqw; line-height: .92; letter-spacing: .01em;
  pointer-events: none;
}
.stage__headline span {
  display: block; opacity: 0; transform: translateY(-20%) scale(.4);
  background: linear-gradient(180deg, #FFF6C4 8%, #FFD553 48%, #F09A1C 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .5cqw 0 #7A2A12) drop-shadow(0 1.6cqw 2.2cqw rgba(0, 0, 0, .45));
}
.stage[data-state="celebrating"] .stage__headline span { animation: headline-pop .9s var(--spring) forwards; }
.stage[data-state="celebrating"] .stage__headline span + span { animation-delay: .12s; }
@keyframes headline-pop {
  0% { opacity: 0; transform: translateY(-20%) scale(.4) rotate(-6deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.stage__top {
  position: absolute; z-index: 4; top: 4cqw; left: 4cqw; right: 4cqw;
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.stage__top > * { pointer-events: auto; }
.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; min-width: 44px; padding: 0 .85rem; border: 0; border-radius: 14px;
  color: #fff; font-size: .8rem; font-weight: 600; line-height: 1;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 3px 0 var(--t3), 0 10px 18px -6px rgba(0, 0, 0, .45);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.tool:hover { filter: brightness(1.06); }
.tool:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 1px 0 var(--t3), 0 6px 10px -6px rgba(0, 0, 0, .45); }
.tool svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool--sound { --t1: #FFB547; --t2: #F2881E; --t3: #B3560A; width: 44px; padding: 0; }
.tool--sound[aria-pressed="true"] .i-off, .tool--sound[aria-pressed="false"] .i-on { display: none; }
.tool--mic { --t1: #74C8FF; --t2: #3B82F6; --t3: #1E4FB8; }
.tool--mic[aria-pressed="true"] { --t1: #FF8FB1; --t2: #E0457B; --t3: #9C1F4F; }
.tool__meter {
  position: absolute; inset: -5px; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 18px 4px rgba(255, 143, 177, .55);
  opacity: 0; transform: scale(1);
}
.tool--mic[aria-pressed="true"] .tool__meter { opacity: calc(.25 + var(--level, 0) * .75); transform: scale(calc(1 + var(--level, 0) * .14)); }
@container stage (max-width: 380px) { .tool--mic .tool__label { display: none; } .tool--mic { padding: 0; width: 44px; } }
.stage[data-state="celebrating"] .tool--mic .tool__label { display: none; }
.stage[data-state="celebrating"] .tool--mic { padding: 0; width: 44px; }

.rail {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-44%);
  display: flex; flex-direction: column; gap: 1.5cqw; border: 0;
}
.rail--cakes { left: 3.6cqw; }
.rail--effects { right: 3.6cqw; }
.rail__item, .fx-btn {
  position: relative; display: grid; place-items: center;
  width: clamp(36px, 9.6cqw, 50px); aspect-ratio: 1; border-radius: 14px;
}
.rail__item {
  overflow: hidden; background: #fff; opacity: .72;
  box-shadow: 0 3px 0 rgba(60, 10, 25, .35), 0 8px 14px -8px rgba(0, 0, 0, .55);
  cursor: pointer; transition: transform .2s var(--spring), opacity .2s, box-shadow .2s;
}
.rail__item:hover { transform: scale(1.07); opacity: 1; }
.rail__item img { width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.rail__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rail__item:has(input:checked) { opacity: 1; box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 3px rgba(255, 200, 61, .35), 0 8px 16px -8px rgba(0, 0, 0, .5); }
.rail__item:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }

.fx-btn {
  border: 0; color: #fff;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 3px 0 var(--t3), 0 10px 16px -8px rgba(0, 0, 0, .5);
  transition: transform .2s var(--spring), filter .25s, opacity .25s;
}
.fx-btn svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-btn--confetti { --t1: #FF92B4; --t2: #E8507F; --t3: #A3214B; }
.fx-btn--balloons { --t1: #82D6FD; --t2: #38A3E8; --t3: #1B6AA8; }
.fx-btn--sparkles { --t1: #FFD866; --t2: #F2A11F; --t3: #A86506; }
.fx-btn--fireworks { --t1: #C6A4FF; --t2: #8B5CF6; --t3: #5B2DB8; }
.fx-btn[aria-pressed="false"] { filter: saturate(.1) brightness(.78); opacity: .62; }
.fx-btn[aria-pressed="true"]::before {
  content: ""; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.4L12 5.4' fill='none' stroke='%23246343' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.fx-btn:hover { transform: scale(1.07); }
.fx-btn::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%;
  padding: .32rem .6rem; border-radius: .5rem; white-space: nowrap;
  font-size: .75rem; font-weight: 600; color: #fff; background: rgba(28, 6, 14, .88);
  opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s, transform .2s;
}
.fx-btn:hover::after, .fx-btn:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.fx-btn.is-denied { animation: shake .4s; }
@keyframes shake { 25% { translate: -3px 0; } 50% { translate: 3px 0; } 75% { translate: -2px 0; } }

.cake-hit {
  position: absolute; z-index: 2; left: 50%; top: 55.5cqw;
  width: 56cqw; padding: 0; border: 0; background: none; border-radius: 1.2rem;
  transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent;
}
.cake-hit:focus-visible { outline: 3px dashed rgba(255, 255, 255, .75); outline-offset: 8px; }
.cake-rig {
  position: relative; display: block; aspect-ratio: 1 / .9697;
  container-type: inline-size;
}
.cake-rig__candles { position: absolute; inset: 0; pointer-events: none; }
.cake-rig__candles.is-popping .candle { animation: candle-pop .45s var(--spring); }
@keyframes candle-pop { 0% { scale: .6; } 100% { scale: 1; } }

.candle {
  position: absolute; display: block; height: 29cqw; aspect-ratio: var(--ratio, .72);
  transform: translate(-50%, -100%); transform-origin: 50% 100%;
}
.candle img { width: 100%; height: 100%; filter: drop-shadow(0 .6cqw .5cqw rgba(60, 10, 20, .4)); }

/* Flames (shared by the stage and the camera tile) */
.flame {
  position: absolute; left: calc(var(--wick) * 100%); top: calc(var(--pad) * 100% + .6cqw);
  width: 4.6cqw; height: 11.5cqw;
  transform: translate(-50%, -100%) rotate(calc(var(--wind) * 26deg)) scaleY(calc(1 - var(--wind) * var(--wind) * .25));
  transform-origin: 50% 100%; transition: transform .2s ease-out; pointer-events: none;
}
.flame__body {
  position: absolute; inset: 0;
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background:
    radial-gradient(ellipse 34% 30% at 50% 78%, #FFFFFF 0 35%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 56% 62% at 50% 72%, #FFF5C8 0%, #FFD45C 36%, #FF9C21 68%, rgba(255, 110, 20, 0) 100%);
  box-shadow: 0 0 2.2cqw .6cqw rgba(255, 170, 60, .55), 0 0 5cqw 1.4cqw rgba(255, 140, 40, .22);
  transform-origin: 50% 100%;
  animation: flicker 1.25s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.37s);
}
.flame__body::before {
  content: ""; position: absolute; left: 28%; right: 28%; bottom: 2%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, rgba(110, 180, 255, .9), rgba(110, 180, 255, 0) 70%);
  mix-blend-mode: screen;
}
.flame__glow {
  position: absolute; left: 50%; top: 64%; width: 720%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 200, 100, .42) 0%, rgba(255, 160, 60, .14) 32%, rgba(255, 140, 40, 0) 64%);
  mix-blend-mode: screen; pointer-events: none;
  animation: glow 2.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.6s);
}
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(.94, 1.06) skewX(2deg); }
  40% { transform: scale(1.04, .95) skewX(-1.5deg); }
  60% { transform: scale(.97, 1.08) skewX(1deg); }
  80% { transform: scale(1.02, .97) skewX(-2deg); }
  100% { transform: scale(.99, 1.04) skewX(1.5deg); }
}
@keyframes glow { from { opacity: .7; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }

.candle.is-out .flame__body { animation: blow-out .5s ease-in forwards; animation-delay: calc(var(--i, 0) * .07s); }
.candle.is-out .flame__glow { animation: fade-out .45s ease-in forwards; animation-delay: calc(var(--i, 0) * .07s); }
.candle.is-off .flame { opacity: 0; }
.candle.is-igniting .flame__body { animation: ignite .6s var(--spring) both, flicker 1.25s ease-in-out .6s infinite alternate; animation-delay: calc(var(--i, 0) * .14s), calc(var(--i, 0) * .14s + .6s); }
.candle.is-igniting .flame__glow { animation: fade-in .6s ease-out both, glow 2.1s ease-in-out .6s infinite alternate; animation-delay: calc(var(--i, 0) * .14s), calc(var(--i, 0) * .14s + .6s); }
@keyframes blow-out {
  0% { transform: scale(1) skewX(0); opacity: 1; }
  35% { transform: translateX(25%) scale(.82, 1.14) skewX(-22deg); opacity: 1; }
  100% { transform: translateX(60%) scale(.05, .2) skewX(-30deg); opacity: 0; }
}
@keyframes ignite { 0% { transform: scale(0, 0); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.smoke { position: absolute; left: calc(var(--wick) * 100%); top: calc(var(--pad) * 100%); width: 0; height: 0; pointer-events: none; }
.smoke i {
  position: absolute; left: -2cqw; top: -4cqw; width: 4cqw; height: 4cqw; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 228, 232, .6), rgba(236, 228, 232, 0) 70%);
  opacity: 0;
}
.candle.is-out .smoke i { animation: smoke 2.6s ease-out forwards; animation-delay: calc(var(--i, 0) * .07s + .25s); }
.candle.is-out .smoke i:nth-child(2) { animation-delay: calc(var(--i, 0) * .07s + .5s); }
.candle.is-out .smoke i:nth-child(3) { animation-delay: calc(var(--i, 0) * .07s + .78s); }
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  12% { opacity: .9; }
  50% { transform: translate(2.6cqw, -13cqw) scale(1.8); }
  100% { opacity: 0; transform: translate(-1.6cqw, -28cqw) scale(3.4); }
}

.stage__footer {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 3.6cqw;
  padding-inline: 14cqw; text-align: center; pointer-events: none;
}
.stage__message {
  font-family: var(--font-party); color: #fff; font-size: clamp(1.2rem, 6.6cqw, 2.15rem); line-height: 1.08;
  text-shadow: 0 .4cqw 0 rgba(80, 10, 30, .75), 0 1cqw 2.6cqw rgba(0, 0, 0, .45);
  overflow-wrap: anywhere;
}
.stage__message.is-long { font-size: clamp(1.05rem, 5.4cqw, 1.75rem); }
.stage__hint {
  margin-top: 1.4cqw; font-size: clamp(.72rem, 2.9cqw, .9rem); font-weight: 500; color: rgba(255, 238, 244, .74);
  transition: opacity .3s;
}
.stage__hint.is-nudge { animation: nudge .5s var(--spring); color: #fff; }
@keyframes nudge { 30% { transform: scale(1.12); } }
.stage[data-state="blowing"] .stage__hint { opacity: 0; }
.dock__wish.is-ready { animation: wish-ready 1.8s ease-in-out infinite; }
@keyframes wish-ready { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(150, 70, 0, .22), 0 0 0 6px rgba(255, 200, 61, .35), 0 12px 26px -12px rgba(245, 165, 36, .9); } }

/* Dock below the stage */
.dock {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem;
  margin-top: .9rem; padding: .8rem;
  background: rgba(255, 255, 255, .92); border-radius: 1.4rem; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.dock__field { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 9rem; min-width: 0; }
.dock__field--age { flex: 0 0 auto; }
.dock__label { padding-left: .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dock input[type="text"] {
  height: 46px; width: 100%; padding: 0 .95rem; border-radius: .95rem;
  border: 1.5px solid var(--line-strong); background: var(--mint-50);
  font-weight: 600; font-size: 1rem; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.dock input[type="text"]:focus { outline: none; border-color: var(--green-600); background: #fff; }
.stepper {
  display: flex; align-items: center; height: 46px; overflow: hidden;
  border: 1.5px solid var(--line-strong); border-radius: .95rem; background: var(--mint-50);
}
.stepper:focus-within { border-color: var(--green-600); background: #fff; }
.stepper button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.3rem; font-weight: 600; color: var(--green-700); transition: background-color .2s; touch-action: manipulation; }
.stepper button:hover { background: var(--mint-200); }
.stepper input {
  width: 2.7rem; height: 100%; border: 0; background: none; text-align: center;
  font-weight: 700; font-size: 1.05rem; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dock__wish { height: 46px; flex: 0 0 auto; padding-inline: 1.3rem; }

/* ── Cake marquee ────────────────────────────────────── */
.cakes { padding-block: clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--mint-50), var(--mint-100)); overflow: hidden; }
.cakes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.6rem; }
.cakes__count { color: var(--green-700); font-variant-numeric: tabular-nums; }
.cakes__lede { max-width: 26rem; color: var(--ink-2); font-size: 1.05rem; }
.marquee {
  --gap: 1rem; overflow: hidden; padding-block: .7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--duration, 60s) linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(var(--shift, calc(-50% - var(--gap) / 2))); } }
.cake-card {
  flex: 0 0 auto; width: 11.5rem; padding: .9rem .9rem 1rem; text-align: center;
  background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.cake-card:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: var(--shadow-md); }
.cake-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.cake-card span { display: block; margin-top: .45rem; font-size: .82rem; font-weight: 600; line-height: 1.25; color: var(--ink); }

/* ── Story ───────────────────────────────────────────── */
.story { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.story__device {
  position: sticky; top: calc(50vh - min(34vh, 310px)); align-self: start;
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
}
.phone {
  position: relative; height: min(68vh, 620px); aspect-ratio: 452 / 788; padding: 10px;
  border-radius: 2.7rem;
  background: linear-gradient(150deg, #33473C, #0E1B15 55%, #22342A);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 50px 80px -40px rgba(15, 51, 38, .7), 0 20px 40px -24px rgba(0, 0, 0, .4);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #22342A; }
.phone::after {
  content: ""; position: absolute; inset: 10px; border-radius: 2.1rem; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 30%);
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.1rem; background: #0E1B15; }
.phone__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity .6s ease, transform .9s var(--ease-out);
}
.phone__shot.is-active { opacity: 1; transform: none; }
.story__progress { display: flex; flex-direction: column; gap: .55rem; }
.story__progress li { width: 8px; height: 8px; border-radius: 99px; background: var(--mint-300); transition: height .45s var(--ease-out), background-color .45s; }
.story__progress li.is-active { height: 30px; background: var(--green-700); }
.step { min-height: 62vh; display: flex; align-items: center; opacity: .28; transition: opacity .5s; }
.step:last-child { min-height: 52vh; }
.step.is-active { opacity: 1; }
.step__shot { display: none; }
.step__num {
  display: block; font-family: var(--font-display); font-size: clamp(3.6rem, 6vw, 5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--green-400);
}
.step.is-active .step__num { color: var(--gold-light); -webkit-text-stroke-color: var(--gold-2); }
.step h3 { margin: .4rem 0 .7rem; font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.step p { max-width: 28rem; font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); }

/* ── Features bento ─────────────────────────────────── */
.features { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--mint-50), var(--mint-100) 40%, var(--mint-50)); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 17rem; padding: clamp(1.4rem, 2.6vw, 2.1rem); border-radius: 1.9rem;
  background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.tile__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.tile__title { margin: .55rem 0 .8rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1; letter-spacing: -.02em; }
.tile p { line-height: 1.65; }
.tile__note { margin-top: auto; padding-top: 1rem; font-size: .88rem; opacity: .78; }
.tile__copy { display: flex; flex-direction: column; }

.tile--camera {
  grid-column: span 4; flex-direction: row; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 23rem;
  color: #FFF2F5;
  background: radial-gradient(70% 90% at 85% 40%, rgba(255, 160, 80, .2), transparent 60%), url("./images/deco/party-stage.webp") center / cover, var(--wine);
}
.tile--camera .tile__copy { flex: 1 1 0; }
.tile--camera .tile__copy > p:not(.tile__kicker):not(.tile__badge) { color: rgba(255, 238, 244, .82); max-width: 30rem; }
.tile__badge {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; margin-top: 1.3rem;
  padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: var(--gold-light); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 216, 102, .3);
}
.tile__badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.breath { position: relative; flex: 0 0 auto; width: 13rem; height: 17rem; container-type: inline-size; --wind: 0; }
.breath__waves { position: absolute; left: -.5rem; top: 1.5rem; width: 6rem; height: 6rem; fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: breath-waves 6s ease-in-out infinite; }
.breath__candle { position: absolute; left: 58%; bottom: .5rem; width: 3.4rem; height: 9rem; transform: translateX(-50%); }
.breath__wax {
  position: absolute; inset: 0; border-radius: .9rem .9rem .5rem .5rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%, rgba(255, 255, 255, .4) 48%, transparent 66%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(-40deg, #FFD866 0 14px, #FF8FB1 14px 28px);
  box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .6);
}
.breath__wick { position: absolute; left: 50%; top: -.75rem; width: 4px; height: .85rem; border-radius: 2px; background: #3B2A20; transform: translateX(-50%); }
.breath__flame {
  position: absolute; left: 50%; top: -.7rem; width: 2.2rem; height: 5.2rem;
  transform: translate(-50%, -100%); transform-origin: 50% 100%;
  animation: breath-flame 6s ease-in-out infinite;
}
.breath__flame .flame__body { box-shadow: 0 0 18px 5px rgba(255, 170, 60, .55), 0 0 44px 12px rgba(255, 140, 40, .22); }
.breath__smoke { position: absolute; left: 50%; top: -.8rem; }
.breath__smoke i { position: absolute; left: -1rem; top: -2rem; width: 2rem; height: 2rem; border-radius: 50%; background: radial-gradient(circle, rgba(236, 228, 232, .6), rgba(236, 228, 232, 0) 70%); opacity: 0; animation: breath-smoke 6s ease-out infinite; }
.breath__smoke i:nth-child(2) { animation-delay: .25s; }
.breath__smoke i:nth-child(3) { animation-delay: .5s; }
@keyframes breath-waves {
  0%, 28% { opacity: 0; transform: translateX(-24px); }
  38% { opacity: .9; transform: translateX(0); }
  54% { opacity: 0; transform: translateX(34px); }
  100% { opacity: 0; transform: translateX(34px); }
}
@keyframes breath-flame {
  0%, 30% { transform: translate(-50%, -100%) rotate(0deg) scale(1); opacity: 1; }
  40% { transform: translate(-50%, -100%) rotate(16deg) scale(.95, .9); }
  50% { transform: translate(-50%, -100%) rotate(30deg) scale(.7, .7); opacity: 1; }
  55%, 84% { transform: translate(-50%, -100%) rotate(36deg) scale(0); opacity: 0; }
  90% { transform: translate(-50%, -100%) rotate(0deg) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -100%) rotate(0deg) scale(1); opacity: 1; }
}
@keyframes breath-smoke {
  0%, 54% { opacity: 0; transform: translate(0, 0) scale(.5); }
  58% { opacity: .85; }
  84% { opacity: 0; transform: translate(14px, -110px) scale(3.2); }
  100% { opacity: 0; transform: translate(14px, -110px) scale(3.2); }
}

.tile--age { grid-column: span 2; align-items: center; text-align: center; background: linear-gradient(165deg, #FFFBEA, #FFEBB3); color: #4A2A0A; }
.age-demo { display: flex; justify-content: center; align-items: flex-end; gap: .1rem; height: 8.4rem; margin-top: .4rem; perspective: 400px; }
.age-demo img { height: 100%; width: auto; filter: drop-shadow(0 10px 12px rgba(120, 60, 0, .3)); }
.age-demo img.is-flipping { animation: digit-flip .55s var(--spring); }
@keyframes digit-flip { 0% { transform: rotateX(80deg) translateY(-20%); opacity: 0; } 100% { transform: none; opacity: 1; } }

.tile--fonts {
  grid-column: span 2; color: #fff;
  background: radial-gradient(80% 60% at 50% 100%, rgba(255, 120, 150, .25), transparent 70%), var(--wine-2);
}
.font-demo {
  display: grid; place-items: center; flex: 1; min-height: 6.5rem; text-align: center;
  font-family: var(--font-party); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15;
  text-shadow: 0 3px 0 rgba(40, 0, 14, .55);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.font-demo.is-swapping { opacity: 0; transform: translateY(10px) scale(.96); }
.font-demo[data-style="1"] { font-family: "Pacifico", cursive; color: var(--gold); font-size: clamp(1.5rem, 2.3vw, 1.95rem); }
.font-demo[data-style="2"] { font-family: var(--font-display); color: #FFB3C9; font-size: clamp(2.1rem, 3.2vw, 2.7rem); letter-spacing: -.01em; }
.font-demo[data-style="3"] { color: #A8F0B4; }

.tile--langs { grid-column: span 2; color: #E8F5E9; background: radial-gradient(80% 70% at 20% 0%, rgba(129, 199, 132, .28), transparent 70%), var(--green-800); }
.lang-demo { flex: 1; display: grid; place-items: center; min-height: 5.5rem; overflow: hidden; text-align: center; }
.lang-demo span { display: block; font-family: var(--font-party), "Noto Sans", system-ui, sans-serif; font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.25; color: #fff; }
.lang-demo span.is-entering { animation: lang-in .55s var(--ease-out); }
@keyframes lang-in { from { opacity: 0; transform: translateY(60%); } }
.lang-list { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: auto; padding-top: .8rem; }
.lang-list li { padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; color: rgba(232, 245, 233, .7); background: rgba(255, 255, 255, .07); transition: background-color .3s, color .3s; }
.lang-list li.is-active { color: var(--green-900); background: var(--gold); }

.tile--effects { grid-column: span 2; color: #fff; background: radial-gradient(90% 70% at 50% 0%, #4A1630, #1F0A15 75%); }
.tile__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.chip {
  padding: .45rem .8rem; border: 0; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color .2s, color .2s, transform .2s;
}
.chip:hover { background: rgba(255, 255, 255, .2); }
.chip.is-active { color: var(--gold-ink); background: var(--gold); box-shadow: none; }
.tile--effects .tile__note { margin-top: .8rem; padding-top: 0; }

.tile--share { grid-column: span 3; flex-direction: row; align-items: center; gap: 1.5rem; background: linear-gradient(160deg, #FFFFFF, var(--mint-100)); }
.tile--share .tile__copy { flex: 1 1 0; }
.tile--share .tile__copy > p:not(.tile__kicker) { color: var(--ink-2); }
.toggle { display: inline-flex; align-self: flex-start; gap: .2rem; margin-top: 1.3rem; padding: .25rem; border-radius: 999px; background: var(--mint-200); }
.toggle button { padding: .5rem .95rem; border: 0; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: none; transition: background-color .25s, color .25s, box-shadow .25s; }
.toggle button[aria-pressed="true"] { color: #fff; background: var(--green-700); box-shadow: 0 6px 14px -8px rgba(36, 99, 67, .8); }
.keepsake {
  position: relative; flex: 0 0 auto; width: clamp(9.5rem, 15vw, 12.5rem); aspect-ratio: 306 / 334;
  overflow: hidden; border-radius: 1.4rem; background: var(--wine);
  box-shadow: 0 0 0 6px #fff, 0 24px 40px -22px rgba(72, 17, 36, .7); rotate: 3deg;
}
.keepsake img, .keepsake video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; transition: opacity .4s; }
.keepsake video { opacity: 0; }
.keepsake.is-gif video { opacity: 1; }
.keepsake__tag { position: absolute; top: .6rem; left: .6rem; padding: .2rem .5rem; border-radius: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--wine); background: rgba(255, 255, 255, .92); }

.tile--draft { grid-column: span 3; flex-direction: row; align-items: center; gap: 1.5rem; }
.tile--draft .tile__copy { flex: 1 1 0; }
.tile--draft .tile__copy > p:not(.tile__kicker) { color: var(--ink-2); }
.draft-pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem .55rem .55rem;
  border-radius: 1.2rem; background: linear-gradient(180deg, #DDF2D8, #C4E5BE);
  box-shadow: inset 0 0 0 2px #2E4B33, 0 4px 0 #2E4B33, 0 18px 30px -18px rgba(27, 43, 34, .6);
  rotate: -3deg; animation: bob 5s ease-in-out infinite alternate;
}
.draft-pill img { width: 3.3rem; height: 3.3rem; padding: .15rem; object-fit: contain; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 1.5px #2E4B33; }
.draft-pill > span:not(.draft-pill__play) { display: flex; flex-direction: column; font-family: var(--font-party); font-size: 1.05rem; line-height: 1.1; color: #213323; }
.draft-pill small { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #52634F; }
.draft-pill__play { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #2E4B33; }
.draft-pill__play svg { width: 1rem; height: 1rem; fill: #2E4B33; }

/* ── Promise strip ───────────────────────────────────── */
.promise { padding-block: clamp(2.4rem, 5vw, 3.4rem); color: #E8F5E9; background: var(--green-800); }
.promise__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); align-items: center; gap: 1.6rem 3.5rem; }
.promise__intro { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.promise__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: #fff; }
.promise__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.promise__list li { position: relative; padding-left: 1.9rem; font-size: .9rem; line-height: 1.5; color: rgba(232, 245, 233, .74); }
.promise__list li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.4L12 5.4' fill='none' stroke='%23174B36' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.promise__list strong { display: block; font-size: 1rem; font-weight: 600; color: #fff; }
.promise__link { font-weight: 600; color: var(--gold); text-decoration: underline; text-underline-offset: .25em; white-space: nowrap; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { padding-block: clamp(4.5rem, 10vw, 8rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: 7rem; }
.faq__head .display { margin-top: 1.1rem; }
.faq__head p { margin-top: 1.3rem; max-width: 24rem; color: var(--ink-2); }
.faq__head a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }
.faq__list { display: flex; flex-direction: column; gap: .75rem; }
.faq__list details { border-radius: 1.3rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); transition: box-shadow .3s; }
.faq__list details[open] { box-shadow: inset 0 0 0 1.5px var(--green-400), 0 22px 40px -30px rgba(27, 43, 34, .55); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.25rem 1.2rem 1.45rem; list-style: none; cursor: pointer;
  font-weight: 600; font-size: 1.03rem; color: var(--ink); border-radius: 1.3rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23246343' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .4s var(--spring), background-color .3s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-light); }
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
.faq__answer { padding: 0 1.45rem 1.35rem; color: var(--ink-2); line-height: 1.7; }

/* ── CTA ─────────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  margin-inline: clamp(.5rem, 2vw, 1.5rem); border-radius: clamp(1.6rem, 3vw, 2.6rem);
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  background:
    radial-gradient(60rem 26rem at 50% -10%, rgba(255, 130, 160, .3), transparent 70%),
    url("./images/deco/party-stage.webp") center / cover,
    var(--wine);
}
.cta__kicker {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 216, 102, .3);
}
.cta__title { margin: 1.4rem 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.03em; }
.cta__title em { font-style: normal; color: var(--gold); }
.cta__sub { max-width: 34rem; margin: 0 auto 2.3rem; font-size: 1.05rem; color: rgba(255, 235, 242, .82); }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.cta__feedback { font-weight: 500; color: rgba(255, 255, 255, .86); text-decoration: underline; text-underline-offset: .25em; }
.cta__feedback:hover { color: #fff; }
.cta__balloons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__balloons i {
  position: absolute; bottom: -9rem; width: 3.3rem; height: 4.1rem;
  border-radius: 50% 50% 48% 52% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0 7%, transparent 8%), radial-gradient(circle at 36% 34%, var(--c1), var(--c2) 75%);
  opacity: .85; animation: balloon-rise var(--d, 16s) linear infinite; animation-delay: var(--delay, 0s);
}
.cta__balloons i::before { content: ""; position: absolute; left: 50%; top: 99%; width: 8px; height: 6px; background: var(--c2); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.cta__balloons i::after { content: ""; position: absolute; left: 50%; top: calc(100% + 5px); width: 1px; height: 4.5rem; background: rgba(255, 255, 255, .35); }
.cta__balloons i:nth-child(1) { left: 4%; --c1: #FF92B4; --c2: #C9305F; --d: 15s; --delay: -2s; }
.cta__balloons i:nth-child(2) { left: 13%; --c1: #FFD866; --c2: #D98A0C; --d: 19s; --delay: -11s; scale: .8; }
.cta__balloons i:nth-child(3) { left: 21%; --c1: #82D6FD; --c2: #2B7FC0; --d: 17s; --delay: -6s; scale: .65; }
.cta__balloons i:nth-child(4) { left: 76%; --c1: #C6A4FF; --c2: #7343E0; --d: 16s; --delay: -9s; scale: .75; }
.cta__balloons i:nth-child(5) { left: 85%; --c1: #86EFAC; --c2: #2A8F55; --d: 20s; --delay: -3s; }
.cta__balloons i:nth-child(6) { left: 91%; --c1: #FFB38A; --c2: #D9561F; --d: 14s; --delay: -13s; scale: .85; }
.cta__balloons i:nth-child(7) { left: 9%; --c1: #82D6FD; --c2: #2B7FC0; --d: 22s; --delay: -16s; scale: .55; }
@keyframes balloon-rise {
  0% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(1.6rem, -38rem) rotate(5deg); }
  100% { transform: translate(-.8rem, -78rem) rotate(-4deg); }
}

/* ── Footer ──────────────────────────────────────────── */
.footer { padding-block: 3rem 2.6rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer__brand p { margin-top: .2rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer__links a { font-size: .92rem; color: var(--ink-2); transition: color .2s; }
.footer__links a:hover { color: var(--green-700); }
.footer small { font-size: .85rem; color: var(--muted); }

/* ── Party overlay ───────────────────────────────────── */
.party { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; }

/* ── Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .js [data-reveal].is-revealed { opacity: 1; transform: none; }
  .bento .tile:nth-child(2) { transition-delay: .06s; }
  .bento .tile:nth-child(3) { transition-delay: .04s; }
  .bento .tile:nth-child(4) { transition-delay: .1s; }
  .bento .tile:nth-child(5) { transition-delay: .16s; }
  .bento .tile:nth-child(7) { transition-delay: .08s; }

  .hero__copy > * { animation: enter .8s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .hero__copy > :nth-child(5) { animation-delay: .3s; }
  .hero__copy > :nth-child(6) { animation-delay: .5s; }
  .hero__demo { animation: enter-stage 1s .15s var(--ease-out) both; }
  .wish-word__swash path { stroke-dashoffset: 240; animation: draw 1s .8s var(--ease-out) forwards; }
  .eyebrow__spark { animation: twinkle 3.2s ease-in-out infinite; }
}
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes enter-stage { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.7) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .deco { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .flame__body, .flame__glow { animation: none !important; }
  .candle.is-out .flame, .candle.is-off .flame { opacity: 0; }
  .breath__waves, .breath__smoke { display: none; }
  .breath__flame { animation: none; }
  .cta__balloons i { animation: none; bottom: auto; top: calc(20% + var(--top, 0%)); }
  .cta__balloons i:nth-child(even) { --top: 35%; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--camera, .tile--share, .tile--draft { grid-column: span 2; }
  .tile--age, .tile--fonts, .tile--langs, .tile--effects { grid-column: span 1; }
  .promise__inner { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__try { display: none; }
  .hero__demo { width: 100%; max-width: 32rem; margin-inline: auto; }
  .deco--cherries { left: 80%; top: 1%; }
  .deco--rose, .deco--star { display: none; }
  .deco--macaron { bottom: 42%; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__device { display: none; }
  .step {
    min-height: 0; opacity: 1; display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: 1.3rem; align-items: center;
    padding-block: 1.1rem; border-top: 1px solid var(--line);
  }
  .step:first-child { border-top: 0; }
  .step__shot { display: block; width: 100%; height: auto; border-radius: 1.3rem; border: 5px solid #1C2B23; box-shadow: 0 18px 30px -18px rgba(15, 51, 38, .6); }
  .step__num { font-size: 2.6rem; color: var(--gold-light); -webkit-text-stroke-color: var(--gold-2); }
  .step h3 { font-size: 1.35rem; margin-top: .2rem; }
  .step p { font-size: .98rem; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--camera, .tile--share, .tile--draft, .tile--age, .tile--fonts, .tile--langs, .tile--effects { grid-column: auto; }
  .tile--camera, .tile--share, .tile--draft { flex-direction: column; align-items: stretch; }
  .breath { align-self: center; height: 15rem; }
  .keepsake, .draft-pill { align-self: center; }
  .promise__list { grid-template-columns: 1fr; }
  .cake-card { width: 8.6rem; padding: .7rem .7rem .8rem; }
  .cta__balloons i { width: 2.3rem; height: 2.9rem; opacity: .5; }
  .cta__balloons i:nth-child(3), .cta__balloons i:nth-child(4) { display: none; }
  .cakes__head { margin-bottom: 1.8rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
@media (max-width: 480px) {
  .eyebrow { font-size: .68rem; letter-spacing: .05em; }
  .deco--cherries, .deco--macaron { display: none; }
  .stage { aspect-ratio: 1 / 1.14; }
  .stage__footer { padding-inline: 13cqw; }
  .hero__title { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts li { padding-inline: .9rem; }
  .hero__facts strong { font-size: 1.9rem; }
  .stage { border-radius: 1.6rem; }
  .dock__field { flex-basis: 100%; }
  .dock__wish { flex: 1 1 auto; }
  .step { grid-template-columns: 6.4rem 1fr; gap: 1rem; }
}

/* ── Policy & error pages ────────────────────────────── */
.page-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { margin-top: 1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 9vw, 6rem); line-height: .92; letter-spacing: -.03em; }
.page-hero h1 em { font-style: normal; color: var(--berry); }
.page-hero p { margin-top: 1rem; color: var(--muted); }
.policy { max-width: 50rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.policy__card { padding: clamp(1.4rem, 4vw, 2.75rem); border-radius: 1.8rem; background: #fff; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.policy h2 { margin: 2.4rem 0 .8rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.05; color: var(--green-800); }
.policy h2:first-child { margin-top: 0; }
.policy h3 { margin: 1.6rem 0 .5rem; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.policy p, .policy li { color: var(--ink-2); line-height: 1.75; }
.policy p + p { margin-top: .8rem; }
.policy ul { margin: .7rem 0; padding-left: 1.2rem; list-style: disc; }
.policy li + li { margin-top: .55rem; }
.policy li::marker { color: var(--green-400); }
.policy a { color: var(--green-700); text-decoration: underline; text-underline-offset: .22em; overflow-wrap: anywhere; }
.policy hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.policy code { padding: .12rem .4rem; border-radius: .35rem; font-size: .85em; color: var(--green-800); background: var(--mint-100); overflow-wrap: anywhere; }
.policy__note { margin: 1rem 0; padding: 1.1rem 1.3rem; border-radius: 1.1rem; color: var(--ink-2); background: var(--mint-100); box-shadow: inset 4px 0 0 var(--green-400); }
.policy__table-wrap { margin: 1rem 0; overflow-x: auto; border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--line); }
.policy table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.policy th, .policy td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.policy tr:last-child td { border-bottom: 0; }
.policy th { font-weight: 600; color: var(--ink); background: var(--mint-50); }
.policy td:first-child { width: 40%; }

.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-block: 7rem 3rem; text-align: center; }
.lost__candle { position: relative; width: 3.2rem; height: 8rem; margin: 0 auto 2.6rem; }
.lost__candle .breath__wax { border-radius: .9rem .9rem .5rem .5rem; }
.lost__candle .breath__wick { top: -.75rem; }
.lost__candle .breath__smoke i { animation: lost-smoke 3.2s ease-out infinite; }
.lost__candle .breath__smoke i:nth-child(2) { animation-delay: 1s; }
.lost__candle .breath__smoke i:nth-child(3) { animation-delay: 2s; }
@keyframes lost-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: .55; } 100% { opacity: 0; transform: translate(12px, -80px) scale(3); } }
.lost h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 9vw, 5.5rem); line-height: .95; letter-spacing: -.03em; }
.lost h1 em { font-style: normal; color: var(--berry); }
.lost p { max-width: 28rem; margin: 1.1rem auto 2rem; color: var(--ink-2); }
.lost .breath__smoke i { background: radial-gradient(circle, rgba(90, 107, 97, .45), rgba(90, 107, 97, 0) 70%); }
