/* Public landing page: night-sky storybook for kids, calm and clear for parents. */

@font-face { font-family: "Aref Ruqaa"; src: url("/static/fonts/aref-ruqaa-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Baloo Bhaijaan 2"; src: url("/static/fonts/baloo-bhaijaan-2-arabic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Baloo Bhaijaan 2"; src: url("/static/fonts/baloo-bhaijaan-2-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Tajawal"; src: url("/assets/Tajawal-Regular.woff2") format("woff2"), url("/assets/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/Tajawal-Bold.woff2") format("woff2"), url("/assets/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/static/fonts/work-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --sky-a { syntax: "<color>"; inherits: true; initial-value: #2a1850; }
@property --sky-b { syntax: "<color>"; inherits: true; initial-value: #6b3a9c; }

:root {
  --night-950: #150d2b; --night-800: #2a1850; --plum: #5b2d70; --rose: #b8667d; --peach: #ffb98a;
  --gold: #ffd36b; --coral: #ee7b5c; --teal: #3f9aa5; --pink: #f58fb0; --navy: #1f3a5f;
  --cream: #fff8ec; --orange: #ff7a1a; --butter: #ffe08a; --dusk: #f2a99b; --plum-2: #6f3a88; --paper: #fffdf6; --sand: #f1e4c8; --ink: #2a1a3d; --ink-soft: #62507a; --line: #e7d9b8;
  --f-display: "Aref Ruqaa", "Baloo Bhaijaan 2", "Tajawal", sans-serif;
  --f-ui: "Baloo Bhaijaan 2", "Tajawal", "Work Sans", system-ui, sans-serif;
  --f-body: "Tajawal", "Work Sans", system-ui, sans-serif;
  --out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --flip: 1;
  --sky-a: #2a1850; --sky-b: #6b3a9c;
  /* Storybook grid; the hero reuses it to place the girl over the book. */
  --peek-cols: minmax(0, .8fr) minmax(0, 1.4fr); --peek-gap: clamp(28px, 5vw, 72px);
}
html[dir="rtl"] { --flip: -1; }
html:is([lang="fr"], [lang="en"]) { --f-display: "Baloo Bhaijaan 2", "Work Sans", system-ui, sans-serif; --f-body: "Work Sans", "Tajawal", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body.lp { margin: 0; font: 400 1.0625rem/1.65 var(--f-body); color: var(--ink); background: var(--cream); overflow-x: clip; }
html:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flip { display: inline-flex; }
html[dir="rtl"] .flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; transform: translateY(-200%); text-decoration: none; }
.skip-link:focus { transform: none; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.bar { position: fixed; top: max(10px, env(safe-area-inset-top)); inset-inline: 12px; max-width: 1180px; margin-inline: auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px; padding-inline-start: 16px; border: 1px solid rgba(255, 248, 236, .12); border-radius: 999px; background: rgba(23, 15, 46, .72); backdrop-filter: blur(14px) saturate(1.2); color: var(--cream); transition: background-color .3s, box-shadow .3s; }
.bar.is-solid { background: rgba(23, 15, 46, .92); box-shadow: 0 14px 34px -22px rgba(10, 5, 25, .8); }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--f-ui); color: var(--cream); }

.bar-brand img { width: 38px; height: 38px; object-fit: contain; }
.bar-tools { display: flex; align-items: center; gap: 10px; }
.round-btn, .pill-link { display: inline-grid; place-items: center; height: 48px; min-width: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .1); color: #fff; backdrop-filter: blur(8px); text-decoration: none; transition: background-color .2s, border-color .2s, transform .15s var(--out), color .2s; }
.pill-link { padding: 0 18px; font: 700 .95rem/1 var(--f-ui); }
.bar .round-btn, .bar .pill-link { color: var(--cream); border-color: rgba(255, 248, 236, .18); background: rgba(255, 248, 236, .06); backdrop-filter: none; }
.bar .pill-link-dark { color: var(--cream); border-color: rgba(255, 248, 236, .25); }
.bar-cta { display: inline-grid; place-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 800 .98rem/1 var(--f-ui); text-decoration: none; white-space: nowrap; transition: background-color .2s, transform .15s var(--out); }
.bar-cta:active { transform: scale(.95); }
.bar [data-menu-open] { box-shadow: inset 0 0 0 2px var(--gold); }
@media (max-width: 720px) { .bar-cta { display: none; } }
.round-btn:active, .pill-link:active { transform: scale(.94); }
@media (hover: hover) { .round-btn:hover, .pill-link:hover { background: rgba(255, 255, 255, .22); } .bar .round-btn:hover, .bar .pill-link:hover { background: rgba(255, 248, 236, .14); } .bar-cta:hover { background: #ff8f3d; } }
.round-btn .icon { width: 22px; height: 22px; }
.round-btn[data-motion-toggle] .when-off, .round-btn[data-motion-toggle][aria-pressed="true"] .when-on { display: none; }
.round-btn[data-motion-toggle][aria-pressed="true"] .when-off { display: inline-flex; }
.pill-link-dark { color: var(--ink); border-color: rgba(42, 26, 61, .25); background: transparent; }
/* The three site pages sit in the middle of the bar on wide screens; the full-screen menu stays for
   every screen, so below this width the menu button is the only navigation. */
.bar-nav { display: none; align-items: center; gap: 6px; white-space: nowrap; }
@media (min-width: 1000px) { .bar-nav { display: flex; } }
.bar-nav a[aria-current="page"] { border-color: rgba(255, 248, 236, .5); font-weight: 800; }

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(10px, 2vw, 22px); border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.menu::backdrop { background: transparent; }
.menu-sheet { position: relative; height: 100%; display: grid; place-items: center; overflow: auto; border-radius: clamp(24px, 4vw, 40px); border: 1px solid rgba(42, 26, 61, .14);
  background: radial-gradient(circle at 85% 8%, #ffe4cf, transparent 45%), repeating-linear-gradient(90deg, rgba(120, 90, 60, .05) 0 1px, transparent 1px 56px), var(--cream);
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 40px)); transition: clip-path .32s cubic-bezier(.4, 0, 1, 1); }
.menu.is-open .menu-sheet { clip-path: circle(160vmax at var(--cx, 50%) var(--cy, 40px)); transition: clip-path .75s var(--out); }
.menu-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.round-btn-dark { color: var(--ink); border-color: rgba(42, 26, 61, .22); background: rgba(255, 255, 255, .7); }
@media (hover: hover) { .round-btn-dark:hover { background: #fff; } }
.menu-inner { width: min(560px, 100% - 48px); padding-block: 72px 40px; text-align: center; }
.menu-label { font: 700 .95rem/1 var(--f-ui); color: #6b4a8c; letter-spacing: .04em; }
.menu-title { margin-top: 14px; font: 700 clamp(2.6rem, 8vw, 4.6rem)/1.1 var(--f-display); text-wrap: balance; }
.menu-links { margin-top: 28px; text-align: start; }
.menu-link { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem .25rem; border-bottom: 1px solid rgba(42, 26, 61, .13); font: 800 clamp(1.5rem, 4.5vw, 2rem)/1.2 var(--f-ui); text-decoration: none; color: var(--ink); }
.menu-link .icon { width: 26px; height: 26px; color: var(--coral); transition: transform .25s var(--spring); }
@media (hover: hover) { .menu-link:hover span:first-child { translate: calc(var(--flip) * -6px) 0; } .menu-link:hover .icon { transform: scale(1.2) rotate(8deg); } }
.menu-link span:first-child { transition: translate .25s var(--out); }
.menu-lang { display: inline-block; margin-top: 28px; padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid rgba(42, 26, 61, .22); font: 700 .95rem/1.4 var(--f-ui); text-decoration: none; }
.menu-label, .menu-title, .menu-links li, .menu-lang { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.menu.is-open .menu-label, .menu.is-open .menu-title, .menu.is-open .menu-links li, .menu.is-open .menu-lang { opacity: 1; transform: none; filter: none; transition: opacity .5s var(--out), transform .6s var(--out), filter .5s var(--out); transition-delay: calc(.18s + var(--n, 0) * 70ms); }
.menu-title { --n: 1; } .menu-links li:nth-child(1) { --n: 2; } .menu-links li:nth-child(2) { --n: 3; } .menu-links li:nth-child(3) { --n: 4; } .menu-lang { --n: 5; }

/* Dropdown variant: a dark panel under the bar; the close button sits over the menu button. */
.menu { padding: 0; }
.menu::backdrop { background: rgba(10, 5, 25, .35); }
.menu-sheet { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 72px); inset-inline: 12px; max-width: 1180px; height: auto; max-height: calc(100svh - 110px); margin-inline: auto; display: block; border-radius: 28px; border: 1px solid rgba(255, 248, 236, .12); background: #1a1233; color: var(--cream);
  clip-path: inset(0 0 100% 0 round 28px); transition: clip-path .25s cubic-bezier(.4, 0, 1, 1); }
.menu.is-open .menu-sheet { clip-path: inset(0 round 28px); transition: clip-path .45s var(--out); }
.menu-close { position: fixed; top: calc(var(--cy, 40px) - 24px); left: calc(var(--cx, 40px) - 24px); z-index: 1; color: var(--cream); border-color: rgba(255, 248, 236, .18); background: #1a1233; box-shadow: inset 0 0 0 2px var(--gold); }
.menu-inner { width: 100%; padding: 10px 22px; text-align: start; }
.menu-label, .menu-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-links { margin-top: 0; }
.menu-link { padding: .95rem .25rem; border-bottom: 1px solid rgba(255, 248, 236, .08); font: 800 1.1rem/1.2 var(--f-ui); color: var(--cream); }
.menu-links li:last-child .menu-link { border-bottom: 0; }
.menu-link .icon { width: 20px; height: 20px; color: var(--gold); }
.menu-lang { margin: 6px .25rem 14px; color: var(--cream); border-color: rgba(255, 248, 236, .25); }
.menu-links li:nth-child(4) { --n: 5; } .menu-links li:nth-child(5) { --n: 6; } .menu-lang { --n: 7; }
.menu.is-open .menu-links li, .menu.is-open .menu-lang { transition-delay: calc(.06s + var(--n, 0) * 40ms); }

/* ---------- Buttons ---------- */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: 0 1.7rem; border: 0; border-radius: 999px; font: 800 1.08rem/1 var(--f-ui); text-decoration: none; white-space: nowrap; transition: transform .2s var(--out), box-shadow .2s, background-color .2s, opacity .2s; }
.btn-pill:active:not(:disabled) { transform: scale(.96); }
.btn-pill:disabled { opacity: .4; cursor: not-allowed; }
.btn-pill .icon { width: 1.3em; height: 1.3em; }
.btn-sun { background: linear-gradient(135deg, #ffd36b, #ff9a76 55%, #f58fb0); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(255, 154, 118, .7); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 220, 160, .45); backdrop-filter: blur(8px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(42, 26, 61, .55); }
.btn-quiet { background: rgba(255, 255, 255, .55); color: var(--ink-soft); border: 1px solid var(--line); }
@media (hover: hover) {
  .btn-sun:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(255, 154, 118, .85); }
  .btn-glass:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
  .btn-dark:hover:not(:disabled) { transform: translateY(-3px); }
  .btn-quiet:hover:not(:disabled) { background: #fff; }
}

/* ---------- Hero ---------- */
/* Room under the hero copy for the girl: her height (775x820 image) plus her offset and a gap. */
.hero { --child-w: clamp(130px, 16vw, 250px); --child-bottom: clamp(30px, 3.4vw, 76px); --hero-foot: calc(var(--child-w) * 1.06 + var(--child-bottom) + 34px); position: relative; z-index: 2; isolation: isolate; min-height: 82svh; display: grid; place-items: center; padding: 96px 20px var(--hero-foot); overflow: clip; color: #fff6e4;
  background: linear-gradient(180deg, #150d2b 0%, #2a1850 36%, #5b2d70 64%, #b8667d 86%, #e8a08a 100%); }
.hero-sky { position: absolute; inset: 0; z-index: -1; }
/* Compact variant (?hero=compact): about two thirds of the height, smaller girl and edge. */
.hero-compact { --child-w: clamp(110px, 11vw, 170px); --child-bottom: clamp(24px, 2.4vw, 48px); --hero-foot: calc(var(--child-w) * .9 + var(--child-bottom)); min-height: 58svh; padding-top: 92px; }
.hero-compact .hero-title { font-size: clamp(2.4rem, min(6vw, 8vh), 4.6rem); }
html:is([lang="fr"], [lang="en"]) .hero-compact .hero-title { font-size: clamp(2rem, min(4.2vw, 6.4vh), 3.3rem); }
.hero-compact .hero-edge { height: clamp(44px, 4.5vw, 84px); }
.hero-compact .moon { width: clamp(100px, 12vw, 170px); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at 18% 28%, rgba(255, 110, 110, .22), transparent 70%), radial-gradient(50% 40% at 82% 20%, rgba(255, 216, 120, .14), transparent 70%); }
.stars { position: absolute; inset: 0 0 35%; background-image: radial-gradient(1.4px 1.4px at 8% 14%, #fff, transparent), radial-gradient(1.2px 1.2px at 22% 38%, #ffe8b8, transparent), radial-gradient(1.6px 1.6px at 34% 9%, #fff, transparent), radial-gradient(1.2px 1.2px at 47% 26%, #fff, transparent), radial-gradient(1.4px 1.4px at 58% 12%, #ffe8b8, transparent), radial-gradient(1.2px 1.2px at 71% 33%, #fff, transparent), radial-gradient(1.6px 1.6px at 86% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 93% 42%, #ffe8b8, transparent), radial-gradient(1.2px 1.2px at 15% 58%, #fff, transparent), radial-gradient(1.2px 1.2px at 64% 55%, #fff, transparent); opacity: .85; }
.star { position: absolute; width: var(--s); height: var(--s); color: #fff3cf; animation: twinkle var(--t) ease-in-out var(--d) infinite; }
.star .icon-spark { width: 100%; height: 100%; fill: currentColor; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.shooting { position: absolute; top: 14%; inset-inline-start: 62%; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff); opacity: 0; transform: rotate(18deg); animation: shoot 11s ease-in 3s infinite; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 8% { opacity: 0; translate: calc(var(--flip) * -320px) 110px; } 100% { opacity: 0; translate: calc(var(--flip) * -320px) 110px; } }

.cloud { position: absolute; color: #fff; opacity: .16; will-change: transform; }
.cloud svg { width: 100%; height: auto; fill: currentColor; overflow: visible; }
.cloud-a { top: 24%; width: clamp(150px, 22vw, 320px); inset-inline-end: 4%; animation: drift 90s ease-in-out infinite alternate; }
.cloud-b { top: 50%; width: clamp(180px, 28vw, 420px); inset-inline-start: 6%; opacity: .14; animation: drift 120s ease-in-out -30s infinite alternate-reverse; }
.cloud-c { top: 12%; width: clamp(110px, 15vw, 220px); inset-inline-start: 34%; opacity: .1; animation: drift 100s ease-in-out -50s infinite alternate; }
@keyframes drift { to { translate: calc(var(--flip) * 70px) 0; } }

.moon { position: absolute; top: clamp(72px, 11vh, 120px); inset-inline-start: clamp(16px, 8vw, 140px); width: clamp(120px, 17vw, 230px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; animation: bob 7s ease-in-out infinite; will-change: transform; -webkit-tap-highlight-color: transparent; }
.moon svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 30px rgba(255, 216, 120, .35)); }
@keyframes bob { 50% { translate: 0 -12px; rotate: 2deg; } }
.moon .eyes-happy { opacity: 0; }
.moon.is-happy .eyes { opacity: 0; } .moon.is-happy .eyes-happy { opacity: 1; }
.moon .eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.moon-bubble { position: absolute; top: 100%; inset-inline-start: 50%; translate: calc(var(--flip) * -50%) 6px; padding: .45rem .9rem; border-radius: 999px; background: #fff6e4; color: var(--ink); font: 800 .95rem/1.2 var(--f-ui); white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .25s, transform .35s var(--spring); pointer-events: none; }
.moon.is-happy .moon-bubble { opacity: 1; transform: none; }


.skyline { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: clamp(130px, 20vw, 260px); }
.skyline .sky-wins rect, .skyline rect.win { fill: #ffcf6e; }
.skyline .win { fill: #ffcf6e; opacity: .85; animation: flicker 7s ease-in-out infinite; }
.skyline .w2 { animation-delay: -1.2s; } .skyline .w3 { animation-delay: -2.9s; animation-duration: 9s; } .skyline .w4 { animation-delay: -4.4s; } .skyline .w5 { animation-delay: -5.6s; animation-duration: 11s; }
@keyframes flicker { 0%, 100% { opacity: .9; } 46% { opacity: .9; } 50% { opacity: .25; } 54% { opacity: .9; } }

.hero-body { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 0; }
.hero-title { margin-top: clamp(14px, 2.4vh, 28px); display: grid; justify-items: center; padding-bottom: .1em; font: 700 clamp(2.7rem, min(7.4vw, 10vh), 6rem)/1.18 var(--f-display); letter-spacing: 0; color: #fff6e4; text-shadow: 0 8px 50px rgba(255, 190, 110, .28); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .hero-title { max-width: 15em; font: 800 clamp(2.1rem, min(4.9vw, 7.4vh), 4rem)/1.1 var(--f-ui); }
.hero-title .word { display: block; }
.hero-title .word:nth-child(2) { color: var(--gold); translate: calc(var(--flip) * -.4em) 0; }
html:is([lang="fr"], [lang="en"]) .hero-title .word:nth-child(2) { translate: none; }
.hero-lede { margin-top: clamp(12px, 2.4vh, 26px); max-width: 34rem; font: 400 clamp(1.08rem, 2.4vw, 1.4rem)/1.75 var(--f-body); color: #f3e7ff; }
.hero-cta { margin-top: clamp(18px, 3.2vh, 34px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* Hero edge: one curve in the page cream. Stretched on purpose: it is a single smooth arc at every width. */
.hero-edge { position: absolute; inset-inline: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(56px, 6vw, 110px); pointer-events: none; }
.hero-edge path { fill: var(--cream); }
/* The girl leans over the edge curve (which hides her cut-off arms), centred over the storybook column
   (same grid as .peek-grid). The wrapper mirrors her in RTL so she looks towards the page centre;
   GSAP animates only the inner image. */
.hero-anchor { position: absolute; inset-inline: 0; bottom: var(--child-bottom); z-index: 1; pointer-events: none; }
.hero-anchor-in { width: min(1120px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: var(--peek-cols); gap: var(--peek-gap); }
.hero-child { grid-column: 2; justify-self: center; width: var(--child-w); scale: var(--flip) 1; user-select: none; }
.hero-child img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 0 30px rgba(255, 196, 120, .5)); }
@media (max-width: 760px) { .hero-anchor-in { grid-template-columns: 1fr; } .hero-child { grid-column: 1; } }
@media (max-width: 560px) {
  .hero { --child-w: 118px; --child-bottom: 50px; }
  .hero .moon { width: 84px; inset-inline-start: 10px; }
}
@media (max-width: 560px) { .hero-compact { --child-w: 104px; --child-bottom: 42px; --hero-foot: calc(var(--child-w) * 1.06 + var(--child-bottom) + 26px); } }

/* The spark the girl is looking at: placed and moved by landing-motion.js along the rainbow head. */
.rb-spark { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; display: none; }
html.rainbow-fixed .rb-spark { display: block; }
.rb-spark-top { z-index: 3; }
.rb-spark-low { z-index: 0; }
.rb-spark-in { position: absolute; left: 0; top: 0; }
.rb-spark i { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle, #fffdf0 0 7%, #ffe08a 14%, rgba(255, 196, 96, .5) 30%, rgba(255, 170, 90, .16) 50%, transparent 70%); }
.rb-spark svg { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; fill: #fff7d6; filter: drop-shadow(0 0 6px rgba(255, 214, 120, .9)); }

.js [data-hero-in] { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
.js .hero-title .word[data-hero-in] { transform: translateY(.3em) scale(.94); }
.js:not(.is-loaded) [data-hero-in] { opacity: 0 !important; }
.is-loaded.is-ready [data-hero-in] { transition-delay: calc(.25s + var(--n, 0) * 110ms); }
.is-ready [data-hero-in] { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--out), transform 1s var(--out), filter .8s var(--out); transition-delay: calc(var(--n, 0) * 110ms); }
.is-ready .word:nth-child(1) { --n: 1; } .is-ready .word:nth-child(2) { --n: 4; } .is-ready .hero-lede { --n: 6; } .is-ready .hero-cta { --n: 8; }

/* ---------- Sections ---------- */
.sec { position: relative; overflow-x: clip; padding: var(--sec-y) 0; background: var(--cream); }
.how { padding-top: clamp(72px, 10vw, 120px); }
.how .sec-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Journey: the steps and the promises share one rainbow layer. The sections are transparent and
   sit above it, so the rainbow runs behind their cards and ends hidden behind the finished picture. ---------- */
.journey { position: relative; background: repeating-linear-gradient(90deg, rgba(120, 90, 60, .04) 0 1px, transparent 1px 64px), var(--cream); }
.journey .sec { z-index: 1; background: transparent; }
/* The rainbow emerges from under the hero through a cream fade instead of being cut by its straight edge. */
.journey::after { content: ""; position: absolute; inset: 0 0 auto; z-index: 0; height: clamp(60px, 9vw, 130px); background: linear-gradient(var(--cream), rgba(255, 248, 236, 0)); pointer-events: none; }
.rainbow-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
/* While motion runs the rainbow follows live element positions (the promises section is pinned), so the
   layer is the viewport. Without motion it is drawn once in the journey's own coordinates. */
html.rainbow-fixed .rainbow-layer { position: fixed; }
.rainbow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rainbow-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
html.has-gl-rainbow .rainbow-svg { display: none; }
.rainbow-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rb-wash { stroke: #f9cfd8; stroke-width: 150px; opacity: .3; }
.rb { opacity: .72; }
.rb-1 { stroke: #f26d7d; stroke-width: 112px; } .rb-2 { stroke: #f79a5a; stroke-width: 96px; } .rb-3 { stroke: #f7cf55; stroke-width: 80px; }
.rb-4 { stroke: #86c97a; stroke-width: 64px; } .rb-5 { stroke: #5fbfc9; stroke-width: 48px; } .rb-6 { stroke: #6f8fe0; stroke-width: 32px; } .rb-7 { stroke: #a77bd6; stroke-width: 16px; }
@media (max-width: 760px) {
  .rb-wash { stroke-width: 96px; } .rb-1 { stroke-width: 70px; } .rb-2 { stroke-width: 60px; } .rb-3 { stroke-width: 50px; }
  .rb-4 { stroke-width: 40px; } .rb-5 { stroke-width: 30px; } .rb-6 { stroke-width: 20px; } .rb-7 { stroke-width: 10px; }
}

/* ---------- Promises: three cards become one picture ---------- */
.merge-inner { display: grid; justify-items: center; }
.merge-cards { --gap: 0px; --r: 0px; --out: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); width: min(100%, 900px); margin: 0; padding: 0; list-style: none; }
.merge-card { position: relative; min-width: 0; }
.merge-flip { display: flex; flex-direction: column; height: 100%; }
.merge-face { overflow: hidden; }
.merge-img { position: relative; order: -1; aspect-ratio: 1000 / 2013; background: var(--sand); }
/* Each slice shows its third of one picture, so the three meet seamlessly once the gaps close. */
.merge-img i { position: absolute; inset-block: 0; left: calc(var(--i) * -100%); width: 300%; background: url("/static/img/sample-page.webp") 47% 50% / cover no-repeat; }
.merge-card.s0 { --i: 0; } .merge-card.s1 { --i: 1; } .merge-card.s2 { --i: 2; }
.merge-card.s0 .merge-img { border-radius: var(--out) var(--r) var(--r) var(--out); }
.merge-card.s1 .merge-img { border-radius: var(--r); }
.merge-card.s2 .merge-img { border-radius: var(--r) var(--out) var(--out) var(--r); }
.merge-text { position: relative; display: grid; align-content: start; gap: 8px; padding: 18px 16px 4px; }
.merge-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--coral); }
.merge-ico .icon { width: 22px; height: 22px; }
.merge-text h3 { font: 800 1.08rem/1.3 var(--f-ui); }
.merge-text p { font-size: .93rem; line-height: 1.5; color: var(--ink-soft); }
.c1 .merge-ico { color: var(--gold); background: #3b2266; } .c2 .merge-ico { background: #e0a526; } .c3 .merge-ico { background: var(--teal); }
.merge-caption { max-width: 22ch; margin-top: clamp(20px, 3vw, 34px); text-align: center; font: 700 clamp(1.8rem, 4.4vw, 3rem)/1.25 var(--f-display); color: var(--ink); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .merge-caption { font: 800 clamp(1.5rem, 3.4vw, 2.3rem)/1.2 var(--f-ui); }
.merge-n { font-weight: 800; color: var(--coral); } .merge-dot { margin-inline: .35em; opacity: .45; }
.c1 .merge-n { color: var(--gold); }

/* Motion: the section is pinned and fills the viewport; each card is a 3D flipper, promise in front and
   picture slice on the back. */
html.merge-live .merge { min-height: 100svh; display: grid; align-content: center; padding-block: 88px 28px; }
html.merge-live .merge-cards { --gap: clamp(12px, 2vw, 26px); --r: var(--out); width: min(100%, 900px, calc((100svh - 290px) * 1.49)); aspect-ratio: 1000 / 671; }
html.merge-live .merge-card { perspective: 1400px; }
html.merge-live .merge-flip { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
html.merge-live .merge-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html.merge-live .merge-text { align-content: center; padding: clamp(14px, 2.2vw, 28px); border-radius: var(--out); border: 1px solid var(--line); background: #fffdf6; box-shadow: 0 26px 46px -30px rgba(91, 45, 112, .55); }
html.merge-live .c1 .merge-text { color: #fff6e4; border-color: transparent; background: radial-gradient(120% 70% at 85% 0%, rgba(255, 211, 107, .22), transparent 60%), linear-gradient(165deg, #2a1850, #5b2d70); }
html.merge-live .c1 .merge-text p { color: rgba(255, 246, 228, .8); }
html.merge-live .c3 .merge-text { background: #fde8de; border-color: #f4cdbb; }
html.merge-live .merge-text h3 { font-size: clamp(1rem, 1.7vw, 1.3rem); }
html.merge-live .merge-img { aspect-ratio: auto; transform: rotateY(180deg); box-shadow: 0 30px 50px -34px rgba(42, 26, 61, .6); }

.sec-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center, .center { text-align: center; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 800 .95rem/1.3 var(--f-ui); color: #6b4a8c; }
.kicker .icon { color: var(--coral); }
.sec-title { margin-top: 14px; font: 700 clamp(2.3rem, 6vw, 4rem)/1.18 var(--f-display); color: var(--ink); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .sec-title { font-weight: 800; line-height: 1.1; }
.lede { margin-top: 14px; font-size: 1.2rem; color: var(--ink-soft); max-width: 30rem; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity .8s var(--out), transform .9s var(--out), filter .7s var(--out); transition-delay: calc(var(--i, 0) * 100ms); }

.how-grid { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.how-card { --c: var(--coral); position: relative; padding: 22px 20px 22px; border-radius: 22px; background: #fffdf8; border: 1px solid rgba(42, 26, 61, .08); box-shadow: 0 18px 34px -26px rgba(42, 26, 61, .4); transition: transform .35s var(--out), box-shadow .35s var(--out); }
.how-card.c2 { --c: var(--teal); } .how-card.c3 { --c: #d0961c; } .how-card.c4 { --c: #e0628d; }
.how-num { position: absolute; top: 20px; inset-inline-end: 20px; font: 800 .95rem/1 var(--f-ui); color: color-mix(in srgb, var(--c) 75%, var(--ink)); opacity: .75; }
.how-card h3 { font: 800 1.12rem/1.35 var(--f-ui); }
.how-card p { margin-top: 4px; font-size: .97rem; line-height: 1.55; color: var(--ink-soft); }
@media (hover: hover) { .how-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -26px rgba(42, 26, 61, .45); } }



/* ---------- The form ---------- */
.start { background: radial-gradient(60% 50% at 90% 0%, #ffe3cf, transparent 70%), radial-gradient(50% 40% at 0% 100%, #f3e8ff, transparent 70%), var(--cream); }
/* With motion the form is its own full-screen stage, centred (landing-motion.js glides into it). */
/* The form arrives as a sheet sliding over the storybook: rounded top that flattens as it settles
   (landing-motion.js scrubs --sheet-r and the stage's scale). */
html.form-live .start { --sheet-r: 44px; position: relative; z-index: 1; margin-top: -44px; border-radius: var(--sheet-r) var(--sheet-r) 0 0; box-shadow: 0 -24px 50px -34px rgba(42, 26, 61, .45); }
html.form-live .start { min-height: 100svh; display: grid; align-content: center; padding-block: clamp(76px, 9vh, 96px) clamp(20px, 3vh, 36px); }
html.form-live .wiz-card { padding: clamp(22px, 3.6vh, 48px) clamp(22px, 4vw, 52px); }
html.form-live .wiz-nav { margin-top: clamp(16px, 2.6vh, 32px); }
html.form-live .drop { padding: clamp(16px, 2.4vh, 30px) 20px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: center; }
/* Short laptop screens: tighten the form so the stage still fits one screen. */
@media (min-width: 1001px) and (max-height: 860px) {
  html.form-live .wiz-top { margin-bottom: 14px; gap: 12px; }
  html.form-live .step-title { font-size: clamp(1.9rem, 5.4vh, 2.8rem); }
  html.form-live .step-sub { margin-top: 6px; font-size: 1.02rem; max-width: none; }
  html.form-live .wiz-nav { margin-top: 12px; }
  html.form-live .big-input, html.form-live .line-input { font-size: clamp(1.4rem, 3.6vh, 2rem); }
  html.form-live .drop-ico { width: 48px; height: 48px; }
  html.form-live .big-area { padding: 10px 16px; font-size: 1.05rem; }
  html.form-live .contact-grid { gap: 10px 22px; }
  html.form-live .line-field label { font-size: .9rem; }
  html.form-live .consent { margin-top: 10px; font-size: .9rem; line-height: 1.45; gap: 10px; }
  html.form-live .wiz-card { padding-block: 20px; }
  html.form-live .call-note { margin-top: 8px; font-size: .9rem; }
  html.form-live .parents-note { margin-top: 12px; padding-top: 10px; }
}
.start-side { display: grid; justify-items: center; gap: clamp(16px, 3vh, 30px); }
.start-head { margin: 0; }
.start-head .sec-title { font-size: clamp(2rem, min(3.4vw, 5.2vh), 3rem); }
html:is([lang="fr"], [lang="en"]) .start-head .sec-title { font-size: clamp(1.7rem, min(2.6vw, 4.2vh), 2.4rem); }
.start-head .lede { margin-top: 8px; font-size: 1.08rem; }
.start-side .cover-wrap { position: static; width: 100%; }
.start-side .cover { width: min(270px, 100%); }
.wiz-card { position: relative; padding: clamp(26px, 5vw, 60px); border-radius: clamp(28px, 4vw, 44px); border: 1px solid var(--line); background: linear-gradient(140deg, #fffdf6, #f8eed6); box-shadow: 0 40px 80px -40px rgba(91, 45, 112, .45); }
.wiz-card::before { content: ""; position: absolute; inset: 12px; border-radius: calc(clamp(28px, 4vw, 44px) - 12px); border: 1px solid rgba(160, 130, 80, .22); pointer-events: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wiz-top { position: relative; display: grid; gap: 18px; margin-bottom: clamp(20px, 4vw, 36px); }
.wiz-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; max-width: 300px; margin-inline-start: auto; }
.wiz-progress li { height: 8px; border-radius: 99px; background: #ddd0e4; position: relative; overflow: hidden; }
.wiz-progress li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--pink)); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .5s var(--out); }
html[dir="rtl"] .wiz-progress li::after { --origin: right; }
.wiz-progress li.is-done::after, .wiz-progress li.is-current::after { transform: scaleX(1); }
.wiz-progress li.is-current { background: #c9b6d6; }
.wiz-label { display: inline-flex; align-items: center; gap: .5rem; font: 800 1rem/1 var(--f-ui); color: #6b4a8c; }
.wiz-label .icon { color: var(--coral); }

.wiz-steps { position: relative; }
.js .wiz-steps { display: grid; }
.step { border: 0; padding: 0; margin: 0 0 2.2rem; min-width: 0; }
.js .step { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(calc(var(--flip) * var(--shift, 28px))); filter: blur(6px); }
.js .step.is-active { visibility: visible; opacity: 1; pointer-events: auto; transform: none; filter: none; transition: opacity .38s var(--out) .06s, transform .5s var(--out) .06s, filter .38s var(--out) .06s; }
.js .step.is-leaving { visibility: visible; opacity: 0; transform: translateX(calc(var(--flip) * var(--shift-out, -18px))); filter: blur(5px); transition: opacity .2s ease-in, transform .22s ease-in, filter .2s ease-in; }
.wiz-steps[data-dir="prev"] { --shift: -28px; --shift-out: 18px; }
.step-title { font: 700 clamp(2.3rem, 6vw, 4.2rem)/1.15 var(--f-display); color: var(--ink); text-wrap: balance; outline: none; }
html:is([lang="fr"], [lang="en"]) .step-title { font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); }
.step-sub { margin-top: 10px; color: var(--ink-soft); font-size: 1.12rem; max-width: 34rem; }
.step > :nth-child(n+3) { margin-top: clamp(22px, 4vw, 34px); }

.big-field { position: relative; }
.big-field::after, .line-field::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--coral), var(--pink)); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .45s var(--out); pointer-events: none; }
html[dir="rtl"] .big-field::after, html[dir="rtl"] .line-field::after { --origin: right; }
.big-field:focus-within::after, .line-field:focus-within::after { transform: scaleX(1); }
.big-input, .line-input { width: 100%; border: 0; border-bottom: 2px solid #cdbfd6; border-radius: 0; background: transparent; color: var(--ink); font: 700 clamp(1.7rem, 4.5vw, 2.7rem)/1.3 var(--f-ui); padding: .35em 0; }
.big-field.small .big-input { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; }
.big-input::placeholder, .big-area::placeholder, .line-input::placeholder { color: #b7aac4; font-weight: 600; }
.big-input:focus, .big-area:focus, .line-input:focus { outline: none; }
.big-area { width: 100%; resize: none; border: 2px solid #d9cce0; border-radius: 22px; background: rgba(255, 255, 255, .7); padding: 16px 20px; font: 600 clamp(1.15rem, 3vw, 1.4rem)/1.6 var(--f-ui); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.big-area:focus { border-color: var(--coral); box-shadow: 0 0 0 5px rgba(238, 123, 92, .18); }
.line-field { position: relative; display: grid; gap: 2px; padding-bottom: 2px; }
.line-field label { font: 800 .98rem/1.4 var(--f-ui); color: #6b4a8c; }
.line-input { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.line-phone { grid-column: 1 / -1; }
.phone-row { display: flex; align-items: baseline; gap: 10px; }
.phone-cc { flex: none; font: 800 1.15rem/1 var(--f-ui); color: #8a76a0; }
.call-note { margin-top: 12px; }
.done-call { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; color: var(--ink-soft); }
.done-call .icon { width: 18px; height: 18px; color: var(--teal); }
.done-call b { color: var(--ink); }

.opts { display: grid; gap: 14px; }
.gender-label { margin-top: 1.1rem; margin-bottom: .6rem; font-weight: 800; }
.opts-4 { grid-template-columns: repeat(4, 1fr); } .opts-6 { grid-template-columns: repeat(3, 1fr); } .opts-3 { grid-template-columns: repeat(3, 1fr); } .opts-2 { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt-body { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 108px; padding: 14px 12px; border-radius: 24px; border: 2px solid var(--line); background: #fff; font: 700 1rem/1.3 var(--f-ui); color: var(--ink-soft); text-align: center; transition: transform .25s var(--spring), border-color .2s, background-color .2s, box-shadow .2s; }
.opt-row { grid-auto-flow: column; justify-content: center; gap: 14px; min-height: 92px; }
.opt-big { font: 800 2rem/1 var(--f-ui); color: var(--ink); }
.badge-letter { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: #f3e8ff; color: #6b4a8c; font: 800 1.5rem/1 var(--f-ui); }
.opt-name { font: 800 1.5rem/1 var(--f-ui); color: var(--ink); }
.opt-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; transform: scale(0); transition: transform .35s var(--spring); }
.opt-check .icon { width: 14px; height: 14px; stroke-width: 3.2; }
.opt input:checked + .opt-body { border-color: var(--coral); background: #fff1e6; box-shadow: 0 10px 24px -12px rgba(238, 123, 92, .7); transform: translateY(-3px); }
.opt input:checked + .opt-body .opt-check { transform: scale(1); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (hover: hover) { .opt:hover .opt-body { border-color: #f0b79f; transform: translateY(-2px); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 700 1rem/1 var(--f-ui); color: var(--ink-soft); transition: transform .25s var(--spring), background-color .2s, border-color .2s, color .2s; }
.chips-lg .chip-btn { min-height: 54px; font-size: 1.1rem; padding: 0 1.4rem; }
.chip-btn .icon { color: var(--coral); }
.chip-btn:active { transform: scale(.94); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.chip-btn[aria-pressed="true"] .icon { color: var(--gold); }
@media (hover: hover) { .chip-btn:hover { border-color: #f0b79f; transform: translateY(-2px); } }

.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border-radius: 28px; border: 2.5px dashed #cdb8d8; background: rgba(255, 255, 255, .6); text-align: center; cursor: pointer; transition: transform .3s var(--spring), border-color .2s, background-color .2s; }
.drop-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: #fff1e6; color: var(--coral); transition: transform .4s var(--spring); }
.drop-ico .icon { width: 30px; height: 30px; }
.drop-text { font: 800 1.2rem/1.3 var(--f-ui); color: var(--ink); }
.drop small { color: var(--ink-soft); }
.drop.is-over, .drop:has(input:focus-visible) { border-color: var(--coral); background: #fff1e6; }
.drop.is-over { transform: scale(1.02); } .drop.is-over .drop-ico { transform: translateY(-4px) rotate(-6deg) scale(1.1); }
.drop:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (hover: hover) { .drop:hover .drop-ico { transform: translateY(-3px) rotate(-6deg); } }
.thumbs-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px !important; }
.thumbs-row li { position: relative; width: 96px; height: 96px; border-radius: 22px; background: #fff; padding: 5px; box-shadow: 0 10px 20px -10px rgba(42, 26, 61, .5); animation: pop-in .5s var(--spring) both; }
.thumbs-row li:nth-child(odd) { rotate: -3deg; } .thumbs-row li:nth-child(even) { rotate: 3deg; }
.thumbs-row img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.thumbs-row button { position: absolute; top: -10px; inset-inline-end: -10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; padding: 0; }
.thumbs-row button .icon { width: 16px; height: 16px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

.consent { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 1.05rem; color: var(--ink-soft); }
.consent input { position: absolute; opacity: 0; }
.consent-box { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 2px solid #cdbfd6; background: #fff; color: #fff; transition: background-color .2s, border-color .2s, transform .3s var(--spring); }
.consent-box .icon { width: 18px; height: 18px; stroke-width: 3.4; transform: scale(0); transition: transform .3s var(--spring); }
.consent input:checked + .consent-box { background: var(--coral); border-color: var(--coral); transform: scale(1.06); }
.consent input:checked + .consent-box .icon { transform: scale(1); }
.consent input:focus-visible + .consent-box { outline: 3px solid var(--coral); outline-offset: 3px; }

.step-error, .step-msg { padding: .6rem 1rem; border-radius: 16px; background: #fde9e7; color: #9d2a1f; font: 700 1rem/1.5 var(--f-ui); }
.step-error { margin-top: 12px; }
.step-msg { margin-top: 18px; }
.field-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }
.field-note .icon { flex: none; width: 18px; height: 18px; color: var(--teal); }
.parents-note a { color: #8a3f2a; font-weight: 700; }
.parents-note { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.kicker-mark { padding: .5rem; }
/* An undecided product fact (see FACTS in landing_text.py): deliberately conspicuous until it is filled. */
mark.tbd { padding: 0 .25em; border-radius: 4px; background: #ffe3a3; color: #6a3d00; outline: 1px dashed #c98a12; }
.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 60% { translate: -7px 0; } 40%, 80% { translate: 7px 0; } }

.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
.wiz-nav [data-submit] { display: none; }
.js .wiz-nav.is-last [data-next] { display: none; } .js .wiz-nav.is-last [data-submit] { display: inline-flex; }
html:not(.js) .wiz-nav [data-next], html:not(.js) .wiz-nav [data-back] { display: none; } html:not(.js) .wiz-nav [data-submit] { display: inline-flex; }
.wiz.is-sending { opacity: .85; pointer-events: none; }
/* Form buttons. "Next": the arrow leans the way the story goes. "Send": arrives with a spring and one
   shine sweep when the last step opens; on hover the shine passes again and the sparkles turn; while
   sending, the shine keeps running as progress. */
.wiz-nav [data-next] .flip .icon { transition: translate .3s var(--out); }
.wiz-nav [data-submit] { position: relative; overflow: hidden; isolation: isolate; }
.wiz-nav [data-submit]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .7) 50%, transparent 68%); transform: translateX(calc(var(--flip) * -130%)); pointer-events: none; }
.wiz-nav [data-submit] .icon { transition: rotate .45s var(--spring), scale .45s var(--spring); }
.wiz-nav.is-last [data-submit] { animation: cta-in .6s var(--spring) backwards; }
.wiz-nav.is-last [data-submit]::after { animation: cta-shine 1.1s .35s var(--out) backwards; }
@media (hover: hover) {
  .wiz-nav [data-next]:hover .flip .icon { translate: 4px 0; }
  .wiz-nav [data-submit]:hover::after { animation: cta-shine .9s var(--out); }
  .wiz-nav [data-submit]:hover .icon { rotate: 20deg; scale: 1.18; }
}
.wiz.is-sending [data-submit]::after { animation: cta-shine 1.3s linear infinite; }
@keyframes cta-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes cta-shine { from { transform: translateX(calc(var(--flip) * -130%)); } to { transform: translateX(calc(var(--flip) * 130%)); } }
.draft-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 16px; background: #eef6f4; color: #2c5f66; font: 700 .95rem/1.4 var(--f-ui); }
.draft-note .icon { flex: none; width: 18px; height: 18px; }
.draft-reset { margin-inline-start: auto; min-height: 36px; padding: 0 14px; border: 1px solid rgba(44, 95, 102, .3); border-radius: 999px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.draft-reset:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (hover: hover) { .draft-reset:hover { background: #f7fbfa; } }
.wiz.is-sending [data-submit] .icon { animation: fly .9s ease-in-out infinite; }
@keyframes fly { 50% { translate: calc(var(--flip) * -6px) -4px; rotate: -12deg; } }

.done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 0; }
.done-burst { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffd36b, #ff9a76); color: var(--ink); margin-bottom: 14px; animation: pop-in .7s var(--spring) both; box-shadow: 0 0 0 12px rgba(255, 211, 107, .25); }
.done-burst .icon { width: 48px; height: 48px; stroke-width: 3; }
.done .step-sub { margin-inline: auto; }
.done-ref { margin-top: 18px !important; padding: .6rem 1.3rem; border-radius: 999px; background: #fff; border: 1px dashed #cdb8d8; font: 700 1rem/1.4 var(--f-ui); color: var(--ink-soft); }
.done-ref b { margin-inline-start: .5rem; color: var(--ink); font-size: 1.2rem; letter-spacing: .1em; }
.done-actions { margin-top: 26px !important; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* Tracking hand-off on the confirmation screen: QR to the live tracking page + receipt download. */
.done-track { margin-top: 22px; width: 100%; max-width: 560px; display: grid; justify-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #eadcc0; text-align: center; }
.done-qr { width: 148px; height: 148px; border-radius: 14px; border: 1px solid #eadcc0; background: #fff; }
.done-track-title { margin: 0; font: 800 1.15rem/1.3 var(--f-ui); color: var(--ink); }
.done-track-text { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; text-wrap: pretty; }
.done-track-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.done-track-actions .btn-pill { min-height: 48px; padding: 0 1.3rem; font-size: 1rem; }
@media (min-width: 640px) {
  .done-track { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; gap: 20px; }
  .done-track-actions { justify-content: flex-start; }
}
.done:not([hidden]) > * { animation: rise .7s var(--out) both; } .done > :nth-child(2) { animation-delay: .1s; } .done > :nth-child(3) { animation-delay: .2s; } .done > :nth-child(4) { animation-delay: .3s; } .done > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }

main { position: relative; }
.sec > .wrap { position: relative; z-index: 1; }


/* Live storybook cover */
.cover-wrap { position: sticky; top: 96px; display: grid; justify-items: center; }
.cover { position: relative; width: min(300px, 100%); aspect-ratio: 3 / 4; overflow: hidden; color: #fff6e4; rotate: calc(var(--flip) * 3deg); border-radius: 12px 26px 26px 12px; background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); box-shadow: 0 36px 60px -26px rgba(42, 26, 61, .65), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: --sky-a .7s ease, --sky-b .7s ease, rotate .5s var(--spring); }
html[dir="rtl"] .cover { border-radius: 26px 12px 12px 26px; }
.cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 16px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .08) 60%, transparent); z-index: 3; }
html[dir="rtl"] .cover::before { background: linear-gradient(270deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .08) 60%, transparent); }
.cover[data-scene="night"] { --sky-a: #2a1850; --sky-b: #6b3a9c; }
.cover[data-scene="sea"] { --sky-a: #1b5b99; --sky-b: #6cd0e0; }
.cover[data-scene="forest"] { --sky-a: #2c6b57; --sky-b: #a8dc9a; }
.cover[data-scene="desert"] { --sky-a: #c4622f; --sky-b: #ffd08a; }
.cover[data-scene="medina"] { --sky-a: #2f3d85; --sky-b: #f19a86; }
.cover[data-scene="space"] { --sky-a: #0e0a2a; --sky-b: #3d2a8a; }
.cover-art { position: absolute; inset: auto 0 0; height: 56%; }
.cover-art svg { width: 100%; height: 100%; }
.cover .scene { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--out); }
.cover .scene.on { opacity: 1; transform: none; }
.cover .tw { animation: twinkle 3s ease-in-out infinite; } .cover .d2 { animation-delay: -1s; } .cover .d3 { animation-delay: -2s; }
.cover-title { position: absolute; inset: 9% 9% auto; z-index: 2; display: grid; gap: 2px; text-align: center; }
.cover-title small { font: 700 1.1rem/1.2 var(--f-ui); color: #ffe4a8; letter-spacing: .04em; }
.cover-title strong { font: 700 clamp(2.2rem, 4.4vw, 3rem)/1.15 var(--f-display); overflow-wrap: anywhere; text-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
html:is([lang="fr"], [lang="en"]) .cover-title strong { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.cover.is-stamp .cover-title strong { animation: stamp .6s var(--spring); }
@keyframes stamp { 0% { transform: scale(1.35) rotate(-4deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.cover-age { position: absolute; z-index: 3; bottom: 12px; inset-inline-end: 14px; padding: .3rem .8rem; border-radius: 999px; background: #fff6e4; color: var(--ink); font: 800 .95rem/1.3 var(--f-ui); }
.sky-fill { fill: var(--sky-a); }
.cover-age.is-pop { animation: pop-in .5s var(--spring); }
.cover-star { position: absolute; z-index: 3; top: 7px; inset-inline-end: 12px; width: 22px; height: 22px; fill: var(--gold); animation: twinkle 3s ease-in-out infinite; }

/* ---------- Footer ---------- */

/* ---------- Effects layers ---------- */
.spark-fly { position: fixed; z-index: 90; width: 18px; height: 18px; fill: var(--gold); pointer-events: none; translate: -50% -50%; animation: spark-fly .9s var(--out) forwards; }
@keyframes spark-fly { from { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.3) rotate(var(--r)); } }
.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: var(--w); height: calc(var(--w) * 1.6); border-radius: 3px; background: var(--c); animation: confetti-fall var(--dur) cubic-bezier(.3, .5, .6, 1) var(--delay) forwards; }
@keyframes confetti-fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); opacity: .9; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); } .how-card:nth-child(even) { margin-top: 0; }
  .start-grid { grid-template-columns: 1fr; }
  .start-side { display: contents; }
  .start-head { order: -2; margin-bottom: 8px; }
  .cover-wrap { position: static; order: -1; } .start-side .cover { width: 220px; }
}
@media (max-width: 720px) {
  .opts-4, .opts-6 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .bar { inset-inline: 8px; padding-inline-start: 10px; }
  .hero { padding-top: 104px; }
  .moon { top: 78px; }
  .cloud-b, .cloud-c { display: none; }
}
@media (max-width: 560px) {
  .how-grid { grid-template-columns: 1fr; }
  .opts-2, .opts-3 { grid-template-columns: 1fr; }
  .wiz-nav .btn-pill { padding-inline: 1.2rem; min-height: 54px; }
  .cover { width: 180px; }
  .hero-cta .btn-pill { width: 100%; max-width: 20rem; }
}
/* Three languages side by side: stack badge over name so the check mark never covers the name. */
@media (min-width: 561px) { .opts-lang .opt-row { grid-auto-flow: row; gap: 8px; } }
@media (max-width: 420px) { .bar-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Hero clouds: Three.js canvas (landing-clouds.js). The SVG clouds stay as the fallback. ---------- */
.clouds-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html.has-gl-clouds .cloud { display: none; }

/* ---------- Sample storybook. landing-motion.js opens it and turns the pages on scroll;
   without motion it rests open on the illustrated spread. ---------- */
.peek { position: relative; overflow: clip; background: linear-gradient(180deg, var(--cream), #fdeedd 70%, var(--cream)); }
html.book-live .peek { min-height: 100svh; display: grid; align-content: center; }
.peek-grid { display: grid; grid-template-columns: var(--peek-cols); align-items: center; gap: var(--peek-gap); }
.book-stage { margin: 0; display: grid; justify-items: center; }
.book { --page: #fffaf0; position: relative; width: min(100%, 660px); aspect-ratio: 3 / 2; container-type: inline-size; }
.book-shadow { position: absolute; inset: auto 4% -6%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 26, 61, .32), transparent); }
.book-board, .book-block, .page, .leaf { position: absolute; top: 0; inset-inline-start: 50%; width: 50%; height: 100%; }
.book-board { top: -1.6%; height: 103.2%; width: 51.4%; background: linear-gradient(160deg, #4a2c7a, #2a1850); border-start-end-radius: 1.8cqw; border-end-end-radius: 1.8cqw; }
.book-block { background: var(--page); border-start-end-radius: .8cqw; border-end-end-radius: .8cqw;
  box-shadow: calc(var(--flip) * 2px) 2px 0 #f1e6cf, calc(var(--flip) * 4px) 4px 0 #e5d6b6, calc(var(--flip) * 6px) 6px 0 #d6c29b; }
.page { z-index: 1; } .leaf-2 { z-index: 2; } .leaf-1 { z-index: 3; }
.leaf { transform-origin: left center; transform-style: preserve-3d; }
html[dir="rtl"] .leaf { transform-origin: right center; }
.leaf-1 { transform: rotateY(calc(var(--flip) * -180deg)); }
.face, .page { overflow: hidden; background: var(--page); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-front, .page { border-start-end-radius: .8cqw; border-end-end-radius: .8cqw; }
.face-back { transform: rotateY(180deg); border-start-start-radius: .8cqw; border-end-start-radius: .8cqw; }
/* Gutter shading on the spine side of every page */
.face-front::after, .page::after, .face-back::after { content: ""; position: absolute; inset-block: 0; width: 14%; pointer-events: none; z-index: 2; }
.face-front::after, .page::after { inset-inline-start: 0; background: linear-gradient(calc(var(--flip) * 90deg), rgba(70, 40, 30, .2), transparent); }
.face-back::after { inset-inline-end: 0; background: linear-gradient(calc(var(--flip) * -90deg), rgba(70, 40, 30, .2), transparent); }
.face-shade { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: linear-gradient(calc(var(--flip) * 90deg), rgba(30, 16, 46, .2), rgba(30, 16, 46, .6)); }
.page-in { position: absolute; inset: 0; display: grid; padding: 7cqw 6cqw 6cqw; }
.page-no { position: absolute; bottom: 2.2cqw; inset-inline-end: 3.2cqw; z-index: 2; font: 700 1.35cqw/1 var(--f-ui); color: #a08a6a; }
.face-back .page-no { inset-inline-end: auto; inset-inline-start: 3.2cqw; }

.book-cover { color: #fff6e4; background: #2a1850; }
.book-cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4.5%; z-index: 2; background: linear-gradient(calc(var(--flip) * 90deg), rgba(0, 0, 0, .35), rgba(255, 255, 255, .1) 70%, transparent); }
.book-cover::after { display: none; }
.book-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.book-cover .tw { animation: twinkle 3s ease-in-out infinite; } .book-cover .d2 { animation-delay: -1s; } .book-cover .d3 { animation-delay: -2s; }
.cover-path { fill: none; stroke: #ffd877; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; opacity: .8; }
.book-cover-title { position: absolute; inset: 11% 8% auto; z-index: 1; display: grid; gap: .6cqw; text-align: center; }
.book-cover-title small { font: 700 2.1cqw/1.2 var(--f-ui); color: #ffe4a8; letter-spacing: .04em; }
.book-cover-title strong { font: 700 5.4cqw/1.1 var(--f-display); text-shadow: 0 .6cqw 2.6cqw rgba(0, 0, 0, .35); }
.book-cover-brand { position: absolute; inset: auto 0 4.5%; z-index: 1; text-align: center; font: 700 1.4cqw/1 var(--f-ui); letter-spacing: .18em; color: rgba(255, 246, 228, .72); }

.page-illus { padding: 0; }
.page-illus img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; }
.page-illus .sticker { position: absolute; top: 3cqw; inset-inline-start: 3cqw; padding: .5cqw 1.6cqw; border-radius: 999px; background: var(--coral); color: #fff; font: 800 1.5cqw/1.4 var(--f-ui); box-shadow: 0 .6cqw 1.6cqw -.4cqw rgba(238, 123, 92, .7); }
.page-illus .page-no { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.page-story { align-content: center; }
/* The cover is a board: a little larger than the pages, with the illustrated page pasted inside. */
.leaf-1 { top: -1.6%; height: 103.2%; width: 51.4%; }
.leaf-1 .face-back { background: linear-gradient(200deg, #4a2c7a, #2a1850); }
.leaf-1 .face-back::after { display: none; }
.leaf-1 .face-back .page-in { inset: 1.55% 0 1.55% 2.72%; overflow: hidden; border-start-start-radius: .8cqw; border-end-start-radius: .8cqw; }
.story-text { font: 400 clamp(10px, 2.05cqw, 15.5px)/1.65 var(--f-body); color: var(--ink); text-wrap: pretty; }
html[lang="ar"] .story-text { font-size: clamp(11px, 2.3cqw, 17px); line-height: 1.8; }
.page-story::before { content: ""; justify-self: center; width: 9cqw; height: 2px; margin-bottom: 2.4cqw; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--coral), transparent); }
.page-turn, .page-final { align-content: center; justify-items: center; gap: 1.4cqw; text-align: center; }
.turn-art { width: 72%; height: auto; overflow: visible; }
.turn-path { fill: none; stroke: #e0a526; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 8; }
.turn-title { font: 700 3.2cqw/1.2 var(--f-display); color: var(--ink); text-wrap: balance; }
.turn-text, .final-text { font: 400 clamp(10px, 1.85cqw, 15px)/1.55 var(--f-body); color: var(--ink-soft); text-wrap: balance; }
.page-final { background: radial-gradient(circle at 50% 36%, #fff0d4, transparent 62%); }
.final-star { width: 6cqw; height: 6cqw; fill: var(--gold); }
.final-hint { font: 700 2.1cqw/1.2 var(--f-ui); color: var(--coral); letter-spacing: .03em; }
.final-title { font: 700 4.4cqw/1.1 var(--f-display); color: var(--ink); text-wrap: balance; }

/* ---------- Story comet: flies a Bézier path from the form heading to the cover ---------- */
.start { position: relative; }
.comet-layer { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
html.comet-live .comet-layer { display: block; }
.comet-trail { fill: none; stroke: #f0b54a; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.comet-head, .comet-burst use { visibility: hidden; }
.comet-burst use { fill: var(--gold); }
.wiz-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 3px rgba(255, 211, 107, .8), 0 0 48px 4px rgba(255, 170, 110, .4); }

/* ---------- Pen cursor (fine pointers with motion on). Text fields keep the native I-beam. ---------- */
html.has-pen, html.has-pen * { cursor: none; }
html.has-pen :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="submit"], [type="button"]), textarea, select, [contenteditable="true"]) { cursor: auto; }
.pen-cursor { position: fixed; top: 0; left: 0; z-index: 96; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .2s ease-out; }
.pen-cursor.is-visible { opacity: 1; }
.pen-cursor.is-text { opacity: 0; }
.pen-tilt { position: absolute; left: -9px; top: -68px; width: 18px; height: 68px; transform-origin: 50% 100%; }
.pen-tilt svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 4px 3px rgba(42, 26, 61, .3)); }
.pen-halo { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--coral); opacity: 0; scale: .5; transition: scale .3s var(--out), opacity .2s ease-out; }
.pen-cursor.is-hover .pen-halo { opacity: .9; scale: 1; }
.pen-ink { position: fixed; top: 0; left: 0; z-index: 95; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 38% 38%, #6a4597, #2a1a3d 70%); }

/* Responsive rules for the storybook and promises (after their base rules so they win). */
@media (max-width: 760px) {
  .peek-grid { grid-template-columns: 1fr; text-align: center; }
  html.book-live .peek { align-content: center; }
}
@media (max-width: 560px) {
  /* Portrait picture on phones: the slices are taller, so each promise keeps room for its text. */
  html.merge-live .merge-cards { width: min(100%, calc((100svh - 300px) * .78)); aspect-ratio: 4 / 5; --gap: 8px; --out: 16px; }
  html.merge-live .merge-text { gap: 6px; padding: 12px 10px; }
  html.merge-live .merge-text h3 { font-size: .9rem; }
  html.merge-live .merge-text p { font-size: .76rem; line-height: 1.4; }
  .merge-ico { width: 34px; height: 34px; border-radius: 11px; } .merge-ico .icon { width: 18px; height: 18px; }
  .merge-text { padding: 12px 8px 4px; } .merge-text h3 { font-size: .95rem; } .merge-text p { font-size: .875rem; }
  .story-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 11; overflow: hidden; }
}

/* ---------- WhatsApp (navbar) ---------- */
.bar .wa-btn, .bar.is-solid .wa-btn { background: #179848; border-color: transparent; color: #fff; }
.wa-icon { width: 22px; height: 22px; fill: currentColor; }
@media (hover: hover) { .bar .wa-btn:hover, .bar.is-solid .wa-btn:hover { background: #12803b; } }

/* ---------- Loader: logo and "once upon a time"; opens like an iris when landing-boot.js adds .is-loaded ---------- */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
.loader { display: none; }
.js .loader { --iris: 0px; position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #2c1b55, var(--night-950) 70%); color: var(--cream);
  -webkit-mask: radial-gradient(circle at 50% 44%, transparent var(--iris), #000 calc(var(--iris) + 1px)); mask: radial-gradient(circle at 50% 44%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  transition: --iris 1s cubic-bezier(.7, 0, .2, 1), visibility 0s linear 1s; }
.js.is-loaded .loader { --iris: 150vmax; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 14px; transition: transform .7s var(--out), opacity .35s; }
.js.is-loaded .loader-inner { transform: scale(1.25); opacity: 0; }
.loader-mark { position: relative; width: 128px; height: 128px; padding: 14px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 8px rgba(255, 248, 236, .08), 0 0 60px rgba(255, 211, 107, .35); animation: loader-float 2.4s ease-in-out infinite; }
.loader-logo { width: 100%; height: 100%; object-fit: contain; }
.loader-orbit { position: absolute; inset: -22px; animation: loader-spin 3.2s linear infinite; }
.loader-orbit svg { position: absolute; top: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 211, 107, .8)); }
.loader-text { font: 700 clamp(2rem, 6vw, 3.2rem)/1.4 var(--f-display); padding-inline: .2em; animation: loader-write 1.1s var(--out) .15s both; }
html[dir="rtl"] .loader-text { animation-name: loader-write-rtl; }
@keyframes loader-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes loader-write-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

/* ---------- Story shelf (book carousel) ---------- */
.tales { --w: clamp(220px, 25vw, 290px); color: var(--ink); }
.tales-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.tales-note { margin-top: 10px; max-width: 34rem; color: var(--ink-soft); }
.tales-controls { display: flex; align-items: center; gap: 10px; }
.tales .round-btn { color: var(--ink); border-color: rgba(42, 26, 61, .2); background: #fff; backdrop-filter: none; }
@media (hover: hover) { .tales .round-btn:hover { background: var(--sand); } }
.tales-count { min-width: 5.5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: var(--cream); text-align: center; font: 800 1rem/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.shelf { display: flex; gap: 24px; margin-top: clamp(28px, 4vw, 44px); padding-block: 18px 28px; padding-inline: calc(50% - var(--w) / 2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.shelf::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline-offset: -3px; border-radius: 24px; }
.shelf.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tale { flex: 0 0 var(--w); scroll-snap-align: center; transform: scale(var(--s, 1)) rotate(var(--rot, 0deg)); transform-origin: 50% 60%; }
.tale-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate; border-start-start-radius: 6px; border-end-start-radius: 6px; border-start-end-radius: 28px; border-end-end-radius: 28px; box-shadow: 0 18px 34px -22px rgba(42, 26, 61, .7); }
.tale-cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 2; width: 14px; background: linear-gradient(90deg, rgba(20, 10, 35, .55), rgba(20, 10, 35, .25)); }
.tale-cover::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(21, 13, 43, .82)); }
.tale-art, .tale-art i { position: absolute; display: block; }
.tale-art { inset: 0; }
.tale-tag { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 3; padding: .35rem .8rem; border-radius: 10px; background: var(--cream); color: var(--ink); font: 800 .9rem/1.2 var(--f-ui); transform: rotate(-3deg); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.tale-title { position: absolute; inset: auto 18px 18px; padding-inline-start: 10px; z-index: 3; color: var(--cream); font: 700 clamp(1.35rem, 2.2vw, 1.6rem)/1.35 var(--f-amiri, var(--f-display)), var(--f-display); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .tale-title { font: 800 1.25rem/1.25 var(--f-ui); }
.book-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.meta-chip { padding: .3rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font: 700 .85rem/1.2 var(--f-ui); }
.tale-make { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: 6px; color: var(--ink); font: 800 1rem/1.2 var(--f-ui); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tale-make .icon { width: 1em; height: 1em; color: var(--orange); transition: translate .2s var(--out); }
@media (hover: hover) { .tale-make:hover .icon { translate: calc(4px * var(--flip)) 0; } }

/* Cover art: pure CSS per world. Replace with real illustrations when available. */
.w-space .tale-art { background: radial-gradient(circle at 20% 18%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 72% 12%, #fff6e4 0 1px, transparent 1.5px), radial-gradient(circle at 84% 46%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 12% 58%, #ffd877 0 1px, transparent 1.5px), radial-gradient(circle at 40% 8%, #fff 0 1px, transparent 1.5px), linear-gradient(170deg, #1b1140, #4b2b7d 60%, #7a3f8f); }
.w-space .tale-art i:nth-child(1) { top: 20%; left: 26%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc59a, #ee7b5c 60%, #b8466b); }
.w-space .tale-art i:nth-child(2) { top: 33%; left: 12%; width: 74%; aspect-ratio: 4 / 1; border: 4px solid var(--gold); border-radius: 50%; transform: rotate(-16deg); clip-path: polygon(0 45%, 100% 45%, 100% 100%, 0 100%); }
.w-space .tale-art i:nth-child(3) { top: 12%; right: 16%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #fff6e4; }
.w-sea .tale-art { background: linear-gradient(180deg, #ffd9a0, #ffb98a 55%, #f58fb0); }
.w-sea .tale-art i:nth-child(1) { top: 18%; left: 50%; width: 36%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #ffd36b; }
.w-sea .tale-art i:nth-child(2), .w-sea .tale-art i:nth-child(3) { inset-inline: 0; height: 60%; bottom: 0; background: radial-gradient(circle at 50% 0, transparent 13px, #3f9aa5 14px) 0 0 / 36px 100% repeat-x; }
.w-sea .tale-art i:nth-child(3) { height: 44%; background: radial-gradient(circle at 50% 0, transparent 13px, #1f6e7d 14px) 18px 0 / 36px 100% repeat-x; }
.w-forest .tale-art { background: linear-gradient(180deg, #d9f0d0, #a8d79c 70%, #6fae6a); }
.w-forest .tale-art i:nth-child(1), .w-forest .tale-art i:nth-child(2) { bottom: 22%; aspect-ratio: 3 / 4; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.w-forest .tale-art i:nth-child(1) { left: 14%; width: 46%; background: #2f7a4e; }
.w-forest .tale-art i:nth-child(2) { right: 12%; width: 34%; background: #1f5a3a; }
.w-forest .tale-art i:nth-child(3) { inset: auto 0 0; height: 24%; background: #4f8f45; }
.w-desert .tale-art { background: linear-gradient(180deg, #ffe7b8, #ffc98a 70%); }
.w-desert .tale-art i:nth-child(1) { top: 16%; right: 20%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #ff9a3c; }
.w-desert .tale-art i:nth-child(2) { bottom: -18%; left: -30%; width: 120%; height: 56%; border-radius: 50%; background: #e7a85a; }
.w-desert .tale-art i:nth-child(3) { bottom: -24%; right: -36%; width: 110%; height: 50%; border-radius: 50%; background: #c98340; }
.w-medina .tale-art { background: linear-gradient(180deg, #3b7fd0, #7fbbe8 70%); }
.w-medina .tale-art i:nth-child(1) { inset: auto 0 0; height: 58%; background: #fff2dc; }
.w-medina .tale-art i:nth-child(2) { bottom: 0; left: 50%; width: 44%; height: 50%; translate: -50% 0; border-radius: 999px 999px 0 0; background: #1f3a5f; box-shadow: 0 0 0 10px #f1e4c8; }
.w-medina .tale-art i:nth-child(3) { top: 14%; left: 18%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #ffe08a; }

/* ---------- Why us: editorial bento on night cards ---------- */
.why { background: var(--night-950); color: var(--cream); }
.why .sec-title { color: var(--cream); }
.why .lede { color: rgba(255, 248, 236, .75); max-width: 36rem; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); grid-auto-flow: dense; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 30px); overflow: hidden; border-radius: 28px; border: 1px solid rgba(255, 248, 236, .1); background: #1d1534; color: var(--cream); }
.t-title { font: 700 clamp(1.4rem, 2.1vw, 1.75rem)/1.3 var(--f-amiri, var(--f-display)), var(--f-display); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .t-title { font: 800 clamp(1.25rem, 1.9vw, 1.5rem)/1.3 var(--f-ui); }
.t-text { line-height: 1.6; color: rgba(255, 248, 236, .72); }
.t-num { font: 400 clamp(4.4rem, 7vw, 6rem)/.9 var(--f-amiri, var(--f-ui)), var(--f-ui); color: transparent; -webkit-text-stroke: 2px var(--gold); }
.t-a { grid-column: span 6; grid-row: span 3; border-start-start-radius: 120px; }
.t-frame { flex: 1; min-height: 0; margin-bottom: 10px; overflow: hidden; border-radius: 20px; border-start-start-radius: 96px; background: #2a2045; }
.t-frame img { width: 100%; height: 100%; object-fit: cover; }
.t-b { grid-column: span 3; grid-row: span 3; background: var(--orange); border-color: transparent; color: var(--ink); justify-content: center; }
.t-b .t-text { color: rgba(42, 26, 61, .82); }
.vals { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 8px; }
.vals li { padding: .3rem .75rem; border-radius: 999px; background: var(--night-950); color: var(--cream); font: 800 .88rem/1.2 var(--f-ui); }
.vals li:nth-child(odd) { transform: rotate(-4deg); }
.vals li:nth-child(even) { transform: rotate(3deg); }
.t-d, .t-e { grid-column: span 3; flex-direction: row; align-items: center; gap: 16px; }
.t-d p, .t-e p { display: flex; flex-direction: column; font: 700 1.02rem/1.35 var(--f-ui); color: rgba(255, 248, 236, .75); }
.t-d strong, .t-e strong { font-size: 1.2rem; color: var(--cream); }
.t-e { border-style: dashed; border-color: rgba(255, 211, 107, .45); background: transparent; }
.t-f { grid-column: span 3; justify-content: center; }
.t-glyphs { display: flex; align-items: baseline; gap: .3em; font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-ui); color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.t-glyphs span:nth-child(even) { opacity: .45; }
.t-c { grid-column: span 7; grid-row: span 2; padding-inline-end: clamp(100px, 14vw, 170px); }
.t-g { grid-column: span 5; grid-row: span 2; border-end-end-radius: 96px; }
.t-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 18px; background: rgba(255, 211, 107, .1); color: var(--gold); }
.t-ico .icon { width: 26px; height: 26px; }
.t-stamp { position: absolute; top: 50%; inset-inline-end: clamp(18px, 3vw, 36px); display: grid; place-items: center; width: clamp(92px, 11vw, 124px); aspect-ratio: 1; margin-top: calc(clamp(92px, 11vw, 124px) / -2); padding: 10px; border-radius: 50%; border: 3px dashed var(--night-950); outline: 6px solid var(--butter); background: var(--butter); color: var(--ink); text-align: center; font: 800 1rem/1.15 var(--f-ui); transform: rotate(8deg); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-a, .t-f, .t-c, .t-g { grid-column: span 2; grid-row: auto; }
  .t-a .t-frame { flex: none; aspect-ratio: 3 / 2; }
  .t-b { grid-column: span 1; grid-row: span 2; }
  .t-d, .t-e { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .t-a { border-start-start-radius: 72px; }
  .t-b { min-height: 340px; }
  .t-c { padding-inline-end: clamp(20px, 2.4vw, 30px); padding-bottom: 130px; }
  .t-stamp { top: auto; bottom: 22px; margin-top: 0; }
}

/* ---------- Prices: an editorial price list with dotted leaders ---------- */
.prices-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.prices-head { position: sticky; top: 110px; }
.prices-head .sec-title { margin-top: 8px; }
.prices-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: 18px; color: var(--ink); font: 800 1.05rem/1.2 var(--f-ui); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.prices-more .icon { width: 1em; height: 1em; color: var(--orange); }
.prices-card { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 8px 40px 8px 40px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(42, 26, 61, .45); }
.prices-card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); border-radius: 4px 32px 4px 32px; pointer-events: none; }
.prices-label { position: relative; font: 800 .95rem/1.2 var(--f-ui); color: var(--ink-soft); }
.prices-label:not(:first-child) { margin-top: 30px; }
.price-menu { position: relative; margin-top: 10px; }
.price-menu li { display: flex; align-items: baseline; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.price-menu li:last-child { border-bottom: 0; }
.pm-n { flex: none; width: 2ch; font: 400 clamp(2.6rem, 5vw, 3.6rem)/.9 var(--f-amiri, var(--f-ui)), var(--f-ui); color: var(--orange); }
.pm-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; align-self: center; border-radius: 14px; background: #ffe9d8; color: var(--orange); }
.pm-ico .icon { width: 20px; height: 20px; }
.pm-name { display: grid; gap: 2px; }
.pm-name strong { font: 700 clamp(1.25rem, 2.2vw, 1.55rem)/1.3 var(--f-amiri, var(--f-display)), var(--f-display); }
html:is([lang="fr"], [lang="en"]) .pm-name strong { font: 800 1.15rem/1.3 var(--f-ui); }
.price-menu-sm .pm-name strong { font: 800 1.1rem/1.3 var(--f-ui); }
.pm-name small { color: var(--ink-soft); font-size: .95rem; }
.pm-dots { flex: 1; min-width: 24px; align-self: center; border-bottom: 2px dotted rgba(98, 80, 122, .4); translate: 0 6px; }
.pm-price { flex: none; font: 800 1.15rem/1.2 var(--f-ui); white-space: nowrap; }
.prices-note { position: relative; margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: #fff1e4; color: var(--ink); font-size: 1rem; }
@media (max-width: 900px) {
  .prices-grid { grid-template-columns: 1fr; }
  .prices-head { position: static; }
}
@media (max-width: 560px) { .pm-dots { display: none; } .pm-name { flex: 1; min-width: 0; } .price-menu li { gap: 10px; } }
.meta-price { background: var(--orange); border-color: transparent; color: var(--ink); }
.home-link { display: inline-flex; gap: 8px; }
.home-link .icon { width: 20px; height: 20px; }
@media (max-width: 560px) { .home-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .home-link { padding: 0; width: 48px; } }

/* ---------- Performance: idle loops stop, cheaper compositing on phones ---------- */
.js.loader-done .loader { display: none; }
.hero-away .hero *, .hero-away .hero *::before, .hero-away .hero *::after { animation-play-state: paused !important; }
@media (max-width: 720px), (pointer: coarse) {
  /* A blurred fixed bar re-samples the page on every scrolled frame; phones get a solid one instead. */
  .bar, .bar.is-solid { backdrop-filter: none; background: rgba(23, 15, 46, .95); }
  .btn-glass { backdrop-filter: none; background: rgba(255, 255, 255, .16); }
  .cloud { will-change: auto; }
}

/* ---------- About: an orange shape grows out of the left edge, stopping short of the right ---------- */
.about { padding-inline: 0; }
.about-stage { position: relative; isolation: isolate; width: min(92%, 1240px); margin-left: 0; margin-right: auto; min-height: clamp(420px, 46vw, 560px); display: grid; align-items: center; }
.about-outline, .about-fill, .about-fill svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-outline { z-index: -2; fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 7; opacity: .35; transition: opacity .6s; }
.about-fill { z-index: -1; clip-path: inset(0 0 0 0); transform-origin: 0 50%; }
.about-fill svg { fill: var(--orange); }
.js .about-stage:not(.is-filled) .about-fill { clip-path: inset(0 100% 0 0); }
.js .about-fill { transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1); }
.js .about-stage.is-filled .about-fill { animation: about-pop .5s var(--spring) 1.45s both; }
.about-stage.is-filled .about-outline { opacity: 0; }
@keyframes about-pop { 40% { transform: scale(1.025, 1.04); } }
.about-body { width: min(720px, 74%); margin-inline-start: auto; margin-inline-end: clamp(110px, 16%, 220px); padding-block: clamp(48px, 7vw, 88px); color: var(--ink); }
html[dir="ltr"] .about-body { margin-inline: clamp(28px, 7vw, 120px) auto; }
.about-title { font: 800 1rem/1.2 var(--f-ui); letter-spacing: .02em; }
.about-lead { margin-top: 14px; font: 700 clamp(1.9rem, 3.8vw, 3rem)/1.3 var(--f-display); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .about-lead { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.2 var(--f-ui); }
.about-text { margin-top: 18px; max-width: 34rem; font-size: 1.15rem; }
.about-sign { margin-top: 22px; font: 800 1rem/1.2 var(--f-ui); }
@media (max-width: 720px) {
  .about-stage { width: 96%; }
  .about-body, html[dir="ltr"] .about-body { width: auto; margin-inline: 22px 56px; }
  html[dir="rtl"] .about-body { margin-inline: 56px 22px; }
}

/* ---------- Journey rail: checkpoints on the right edge (wide screens only) ---------- */
.rail { position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; z-index: 30; translate: 0 -50%; opacity: 0; pointer-events: none; transition: opacity .4s var(--out); --p: 0; }
.rail.is-on { opacity: 1; pointer-events: auto; }
html:has(dialog[open]) .rail { opacity: 0; pointer-events: none; }
.rail ol { position: relative; display: grid; gap: 22px; }
.rail ol::before, .rail ol::after { content: ""; position: absolute; top: 8px; bottom: 8px; right: 7px; width: 2px; border-radius: 2px; background: rgba(98, 80, 122, .25); }
.rail ol::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--p)); }
.rail a { position: relative; display: block; width: 16px; height: 16px; text-decoration: none; }
.rail-dot { display: block; position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(98, 80, 122, .45); background: var(--cream); transition: border-color .3s, background-color .3s, transform .3s var(--spring); }
.rail .is-past .rail-dot { border-color: var(--orange); background: var(--orange); transform: scale(.7); }
.rail .is-here .rail-dot { border-color: var(--orange); background: var(--cream); transform: scale(1.15); box-shadow: 0 0 0 5px rgba(255, 122, 26, .2); }
/* Pointed marker: an arrow tip aimed at the current checkpoint. */
.rail .is-here .rail-dot::before { content: ""; position: absolute; top: 50%; right: calc(100% + 5px); width: 0; height: 0; translate: 0 -50%; border-block: 6px solid transparent; border-left: 8px solid var(--orange); }
.rail-label { position: absolute; top: 50%; right: calc(100% + 12px); margin-top: -.85em; padding: .3rem .75rem; border-radius: 999px; background: var(--night-950); color: var(--cream); font: 800 .85rem/1.2 var(--f-ui); white-space: nowrap; opacity: 0; translate: 6px 0; pointer-events: none; transition: opacity .25s, translate .3s var(--out); }
.rail .is-here .rail-label { right: calc(100% + 22px); background: var(--orange); color: var(--ink); }
.rail a:hover .rail-label, .rail a:focus-visible .rail-label, .rail.is-flash .is-here .rail-label { opacity: 1; translate: 0 0; }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- Reviews + count (shipped hidden; see Reviews.tsx) ---------- */
.reviews-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em; margin-top: 18px; font: 800 1.3rem/1.2 var(--f-ui); }
.reviews-count strong { color: var(--orange); font-size: clamp(3.4rem, 8vw, 5.5rem); line-height: 1; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.review { height: 100%; margin: 0; padding: 24px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 0; font-size: 1.1rem; }
.review cite { display: block; margin-top: 14px; font: 800 .95rem/1.2 var(--f-ui); font-style: normal; color: var(--ink-soft); }
@media (max-width: 900px) { .reviews-list { grid-template-columns: 1fr; } }

/* ---------- Home FAQ (reuses the pricing FAQ items) ---------- */

/* ---------- Reduced motion for the new sections ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader-text, .loader-mark, .loader-orbit { animation: none; }
  .js .loader { -webkit-mask: none; mask: none; transition: opacity .3s, visibility 0s linear .3s; }
  .js.is-loaded .loader { opacity: 0; }
  .tale { transform: scale(var(--s, 1)); }
  .js .about-fill { transition: none; }
  .js .about-stage.is-filled .about-fill { animation: none; }
}
html[data-motion="off"].js .loader { -webkit-mask: none; mask: none; }

/* ---------- Motion preferences (OS setting or the on-page pause button) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], [data-hero-in] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .confetti, .spark-fly { display: none; }
}
html[data-motion="off"], html.lenis { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
html[data-motion="off"] [data-reveal], html[data-motion="off"] [data-hero-in] { opacity: 1 !important; transform: none !important; filter: none !important; }
html[data-motion="off"] .confetti, html[data-motion="off"] .spark-fly { display: none; }

/* ---------- Pricing page ---------- */
.pricing-page .bar-brand { opacity: 1; transform: none; pointer-events: auto; }
.price-top { padding-top: clamp(110px, 14vw, 150px); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); margin: 0; padding: 0; list-style: none; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px; border-radius: 26px; background: #fffdf8; border: 1px solid rgba(42, 26, 61, .1); box-shadow: 0 24px 44px -32px rgba(42, 26, 61, .45); }
.plan.is-featured { border: 2px solid var(--coral); }
.plan-badge { position: absolute; top: -14px; inset-inline-start: 22px; padding: .2rem .8rem; border-radius: 999px; background: var(--coral); color: #fff; font: 800 .85rem/1.5 var(--f-ui); }
.plan-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: #fdeee4; color: var(--coral); }
.plan-ico .icon { width: 23px; height: 23px; }
.plan-gift .plan-ico { background: #fde6ee; color: #e0628d; } .plan-bundle .plan-ico { background: #e2f1ee; color: var(--teal); }
.plan-name { font: 800 1.4rem/1.3 var(--f-ui); }
.plan-price { font: 800 1.6rem/1.2 var(--f-ui); color: var(--ink); }
.plan-text { color: var(--ink-soft); }
.plan-items { display: grid; gap: 8px; margin: 6px 0 14px; padding: 0; list-style: none; }
.plan-items li { display: flex; align-items: flex-start; gap: 8px; font-size: .98rem; }
.plan-items .icon { flex: none; width: 18px; height: 18px; margin-top: .25em; color: var(--teal); }
.plan-cta { margin-top: auto; justify-content: center; }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.promises li { display: flex; align-items: center; gap: 12px; max-width: 26rem; }
.promise-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e2f1ee; color: var(--teal); }
.promise-ico .icon { width: 20px; height: 20px; }
.promises strong { display: block; font: 800 1.05rem/1.4 var(--f-ui); color: var(--ink); }
.promises p { color: var(--ink-soft); line-height: 1.5; }
.faq { padding-top: 0; }
.faq-wrap { max-width: 760px; }
.faq-title { margin-bottom: 18px; text-align: center; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--f-display); }
html:is([lang="fr"], [lang="en"]) .faq-title { font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 var(--f-ui); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px; cursor: pointer; list-style: none; font: 800 1.08rem/1.4 var(--f-ui); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 8px; }
.faq-plus .icon { width: 20px; height: 20px; color: var(--coral); transition: rotate .3s var(--out); }
.faq-item[open] .faq-plus .icon { rotate: 45deg; }
.faq-item p { padding: 0 4px 18px; color: var(--ink-soft); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* ---------- Story lengths (pricing page) ---------- */
.lengths { margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.lengths-title { font: 700 clamp(1.7rem, 3.6vw, 2.4rem)/1.2 var(--f-display); }
html:is([lang="fr"], [lang="en"]) .lengths-title { font: 800 clamp(1.4rem, 2.8vw, 1.9rem)/1.2 var(--f-ui); }
.lengths-text { margin-top: 8px; color: var(--ink-soft); }
.length-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 24px 0 0; padding: 0; list-style: none; }
.length-card { display: grid; justify-items: center; gap: 3px; padding: 22px 16px 20px; border-radius: 22px; background: #fffdf8; border: 1px solid rgba(42, 26, 61, .1); box-shadow: 0 18px 34px -28px rgba(42, 26, 61, .4); }
.length-n { font: 800 2.5rem/1.05 var(--f-ui); color: var(--ink); }
.length-unit { font: 700 .9rem/1.3 var(--f-ui); color: var(--ink-soft); }
.length-t { margin-top: 8px; font: 800 1.1rem/1.3 var(--f-ui); color: var(--ink); }
.length-d { font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.length-price { margin-top: 10px; font: 800 1.05rem/1.4 var(--f-ui); color: var(--ink); }
@media (max-width: 640px) { .length-list { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; } }

/* ---------- Coming soon (pricing page) ---------- */
.soon { padding-top: 0; }
.soon-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 5vw, 52px) clamp(20px, 4vw, 44px); border-radius: 30px; text-align: center; color: #fff6e4;
  background: radial-gradient(80% 130% at 85% -10%, rgba(255, 211, 107, .3), transparent 55%), radial-gradient(60% 90% at 8% 110%, rgba(238, 123, 92, .28), transparent 60%), linear-gradient(150deg, #2a1850, #5b2d70);
  box-shadow: 0 34px 60px -34px rgba(42, 26, 61, .6); }
.soon-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .95rem; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 .9rem/1.5 var(--f-ui); }
.soon-badge .icon { width: 16px; height: 16px; }
.soon-ico { width: 56px; height: 56px; display: grid; place-items: center; margin-top: 4px; border-radius: 18px; background: rgba(255, 255, 255, .14); color: var(--gold); }
.soon-ico .icon { width: 27px; height: 27px; }
.soon-title { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--f-display); text-wrap: balance; }
html:is([lang="fr"], [lang="en"]) .soon-title { font: 800 clamp(1.5rem, 3.2vw, 2.1rem)/1.2 var(--f-ui); }
.soon-text { max-width: 34rem; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 246, 228, .85); }
.soon-note { font: 700 .95rem/1.5 var(--f-ui); color: var(--gold); }

/* ---------- Values: one value at a time, in sync with its chip ---------- */
.values { text-align: center; background: linear-gradient(180deg, var(--cream), #fdf1e4); }
.values-inner { display: grid; justify-items: center; }
.values-title { font: 800 1rem/1.4 var(--f-ui); letter-spacing: .08em; color: var(--coral); }
.values-line { margin-top: 10px; display: grid; justify-items: center; gap: 2px; }
.values-lead { font: 700 clamp(1.5rem, 3.4vw, 2.2rem)/1.3 var(--f-display); color: var(--ink-soft); }
html:is([lang="fr"], [lang="en"]) .values-lead { font: 800 clamp(1.3rem, 2.6vw, 1.8rem)/1.3 var(--f-ui); }
/* All words share one grid cell, so the line never changes size as they alternate. */
.values-words { display: grid; justify-items: center; }
.values-word { grid-area: 1 / 1; font: 700 clamp(3rem, 9vw, 6.4rem)/1.2 var(--f-display); color: var(--ink); opacity: 0; transform: translateY(.18em); filter: blur(8px); transition: opacity .5s var(--out), transform .6s var(--out), filter .5s var(--out); }
html:is([lang="fr"], [lang="en"]) .values-word { font: 800 clamp(2.4rem, 7vw, 5rem)/1.15 var(--f-ui); }
.values-word.is-on { opacity: 1; transform: none; filter: none; transition-delay: .18s; }
.values-word.is-out { opacity: 0; transform: translateY(-.12em); filter: blur(6px); transition-duration: .35s; transition-delay: 0s; }
.values-word:nth-child(4n + 1) { color: var(--coral); } .values-word:nth-child(4n + 2) { color: var(--teal); }
.values-word:nth-child(4n + 3) { color: #c9881a; } .values-word:nth-child(4n + 4) { color: #b64f7f; }
.values-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 46rem; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; list-style: none; }
.values-chips li { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fffdf8; font: 700 1rem/1.4 var(--f-ui); color: var(--ink-soft); transition: background .4s var(--out), color .4s var(--out), border-color .4s var(--out), transform .4s var(--out); }
.values-chips li.is-on { background: var(--ink); border-color: var(--ink); color: #fff6e4; transform: translateY(-2px); }

/* ---------- Policies page ---------- */
.policies-wrap { max-width: 820px; }
.policies { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.policy { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 22px; background: #fffdf8; border: 1px solid rgba(42, 26, 61, .08); box-shadow: 0 18px 34px -28px rgba(42, 26, 61, .4); }
.policy-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fdeee4; color: var(--coral); }
.policy-ico .icon { width: 22px; height: 22px; }
.policy h2 { font: 800 1.15rem/1.35 var(--f-ui); }
.policy p { margin-top: 4px; color: var(--ink-soft); }
.policies-cta, .policies-link { margin-top: clamp(28px, 4vw, 40px); text-align: center; }

/* ---------- Product page system: type steps, section rhythm and flat surfaces ---------- */
:root {
  --t-h2: clamp(2rem, 4.4vw, 3.25rem); --t-lead: clamp(1.0625rem, 1.5vw, 1.25rem); --t-small: .9375rem;
  --sec-y: clamp(72px, 10vw, 128px); --surface: #f8ebd3;
}
html:is([lang="fr"], [lang="en"]) .sec-title { font-size: var(--t-h2); letter-spacing: -.01em; }
.lede { font-size: var(--t-lead); }
/* One action colour everywhere: flat orange with ink text (5.9:1). */
.btn-sun { background: var(--orange); color: var(--ink); box-shadow: none; }
.btn-dark { box-shadow: none; }
@media (hover: hover) {
  .btn-sun:hover { background: #ff8f3d; box-shadow: none; }
  .btn-dark:hover:not(:disabled) { background: #3b2757; }
}

/* ---------- Product hero: copy and the order action on one side, the book itself on the other ---------- */
.hero { --hero-cols: minmax(0, 1.25fr) minmax(0, 1fr); --hero-gap: clamp(24px, 4vw, 72px); }
.hero-body { width: min(1120px, 100%); }
.hero-copy { display: grid; justify-items: center; min-width: 0; }
.hero-cta { align-items: stretch; width: min(100%, 35rem); gap: 12px; }
.hero-name { flex: 1 1 13rem; display: flex; }
html:not(.js) .hero-name { display: none; }
.hero-name-input { width: 100%; min-height: 56px; padding: 0 1.3rem; border: 2px solid rgba(255, 246, 228, .6); border-radius: 999px; background: rgba(21, 13, 43, .6); color: #fff6e4; font: 700 1.08rem/1.2 var(--f-ui); transition: border-color .2s, background-color .2s; }
.hero-name-input::placeholder { color: rgba(255, 246, 228, .78); opacity: 1; }
.hero-name-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-color: var(--gold); background: rgba(21, 13, 43, .8); }
@media (hover: hover) { .hero-name-input:hover { border-color: #fff6e4; } }
.hero-facts { display: grid; justify-items: start; gap: 8px; margin-top: clamp(16px, 2.6vh, 26px); text-align: start; font: 500 1rem/1.4 var(--f-body); color: #f6ecff; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .icon { width: 1.2em; height: 1.2em; color: var(--gold); }
.hero-price { margin-top: 10px; font: 800 1rem/1.3 var(--f-ui); }
.hero-price a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 44px; color: #fff6e4; text-decoration: none; }
.hero-price-more { display: inline-flex; align-items: center; gap: .4rem; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-price-more .icon { width: 1em; height: 1em; color: var(--gold); transition: translate .2s var(--out); }
@media (hover: hover) { .hero-price a:hover .hero-price-more .icon { translate: calc(4px * var(--flip)) 0; } }
.is-ready .hero-facts { --n: 9; } .is-ready .hero-price { --n: 10; } .is-ready .hero-product { --n: 7; }

/* The product: a loose page of the real sample illustration with the cover in front, the name live on it. */
.hero-product { position: relative; width: clamp(180px, 48vw, 300px); aspect-ratio: 10 / 9; margin: 22px 0 0; }
.hero-page { position: absolute; top: 0; inset-inline-end: 0; width: 76%; height: auto; rotate: calc(var(--flip) * 5deg); border: 6px solid #fffaf0; border-radius: 6px; box-shadow: 0 26px 40px -24px rgba(10, 5, 25, .85); }
.cover.hero-cover { position: absolute; bottom: 0; inset-inline-start: 0; width: 45%; rotate: calc(var(--flip) * -6deg); border-radius: 6px 14px 14px 6px; box-shadow: 0 22px 36px -18px rgba(10, 5, 25, .8), inset 0 0 0 1px rgba(255, 255, 255, .14); }
html[dir="rtl"] .cover.hero-cover { border-radius: 14px 6px 6px 14px; }
.cover.hero-cover::before { width: 8px; }
.hero-cover .cover-title { inset: 10% 8% auto; }
.hero-cover .cover-title small { font-size: clamp(.8125rem, 1.2vw, .95rem); letter-spacing: 0; }
.hero-cover .cover-title strong, html:is([lang="fr"], [lang="en"]) .hero-cover .cover-title strong { font-size: clamp(1.05rem, 2.1vw, 1.6rem); line-height: 1.15; text-shadow: none; }

@media (max-width: 960px) {
  /* The book sits beside the girl, in the band she already reserves under the copy. */
  .hero { padding-top: 136px; }
  .hero .moon { top: 74px; inset-inline-start: 12px; width: clamp(72px, 11vw, 92px); }
  .hero-product { justify-self: start; margin-inline-start: 3%; margin-bottom: calc(86px - var(--hero-foot)); }
  .hero-anchor-in { grid-template-columns: 1fr; }
  .hero-child { grid-column: 1; justify-self: end; margin-inline-end: 9%; }
}
@media (min-width: 961px) {
  .hero { place-items: center stretch; padding-top: clamp(112px, 14vh, 148px); padding-bottom: clamp(84px, 8vw, 136px); }
  .hero-body { margin-inline: auto; grid-template-columns: var(--hero-cols); gap: var(--hero-gap); align-items: start; justify-items: stretch; text-align: start; }
  .hero-copy { justify-items: start; }
  .hero-title, html:is([lang="fr"], [lang="en"]) .hero-title { margin-top: 0; justify-items: start; font-size: clamp(2.1rem, 3.9vw, 2.9rem); }
  html[lang="ar"] .hero-title { font-size: clamp(2.7rem, 5.6vw, 5rem); }
  .hero-title .word:nth-child(2) { translate: none; }
  .hero-cta { justify-content: flex-start; }
  /* The girl stays under the book: the column keeps her height free below the product. */
  .hero-product { justify-self: center; width: min(100%, 400px); margin-top: clamp(8px, 3vh, 40px); margin-bottom: calc(var(--child-w) * 1.06 + var(--child-bottom) - clamp(84px, 8vw, 136px) + 40px); }
  .hero-anchor-in { grid-template-columns: var(--hero-cols); gap: var(--hero-gap); }
  .hero .moon { top: 84px; inset-inline-start: auto; inset-inline-end: clamp(10px, 2.4vw, 56px); width: clamp(92px, 9vw, 140px); }
}
@media (max-width: 560px) { .hero-cta .btn-pill { max-width: none; } }

/* ---------- How it works: four flat pages, the order carried by the list and its numerals ---------- */
.how-grid { gap: 16px; }
.how-card { display: grid; align-content: start; gap: 6px; min-height: 230px; padding: 22px 22px 26px; border: 0; border-radius: 24px; background: color-mix(in srgb, var(--c) 15%, var(--paper)); box-shadow: none; }
.how-num { position: static; margin-bottom: clamp(18px, 3vw, 40px); font: 800 clamp(3rem, 5vw, 4.25rem)/.9 var(--f-ui); color: color-mix(in srgb, var(--c) 80%, var(--ink)); opacity: 1; }
.how-card h3 { font: 800 1.25rem/1.3 var(--f-ui); }
.how-card p { margin-top: 0; font-size: 1rem; }
@media (hover: hover) { .how-card:hover { box-shadow: none; } }
@media (max-width: 560px) { .how-card { min-height: 0; grid-template-columns: auto 1fr; column-gap: 18px; } .how-num { grid-row: span 2; margin: 0; } }

/* ---------- Sample book: a wider copy column so the title holds two lines ---------- */
:root { --peek-cols: minmax(0, 1fr) minmax(0, 1.25fr); }

/* ---------- Prices: the order action sits with the menu ---------- */
.prices-head .sec-title { margin-top: 0; }
.prices-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.prices-more { margin-top: 0; }
.prices-card { border: 0; box-shadow: none; }

/* ---------- FAQ: the question list beside its heading and the two ways to ask more ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 6vw, 88px); }
.faq-head { position: sticky; top: 104px; }
.faq-head .sec-title { margin-top: 0; }
.faq-more { display: grid; justify-items: start; gap: 2px; margin-top: 22px; }
.faq-more a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ink); font: 800 1.05rem/1.2 var(--f-ui); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.faq-more .icon { width: 1em; height: 1em; color: var(--orange); transition: translate .2s var(--out); }
@media (hover: hover) { .faq-more a:hover .icon { translate: calc(4px * var(--flip)) 0; } }
.faq-list { display: grid; gap: 10px; }
.home-faq .faq-item { padding-inline: 22px; border: 0; border-radius: 20px; background: var(--surface); transition: background-color .2s; }
.home-faq .faq-item[open] { background: #f3dfbd; }
.home-faq .faq-item summary { min-height: 64px; padding-inline: 0; font-size: 1.125rem; }
.home-faq .faq-item p { max-width: 60ch; padding: 0 0 22px; color: var(--ink); }
@media (hover: hover) { .home-faq .faq-item:not([open]):hover { background: #f5e4c6; } }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ---------- Footer: the back cover, on the same night as the hero ---------- */
.foot { padding: clamp(48px, 7vw, 88px) 0 max(36px, env(safe-area-inset-bottom)); background: var(--night-950); color: var(--cream); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: clamp(36px, 6vw, 96px); }
.foot-lead { display: grid; justify-items: start; gap: 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--cream); font: 800 clamp(1.6rem, 3vw, 2.25rem)/1.1 var(--f-ui); text-decoration: none; }
.foot-brand img { width: 56px; height: 56px; object-fit: contain; }
.foot-note { max-width: 26rem; color: rgba(255, 248, 236, .8); }
.foot-cta { display: inline-grid; place-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 800 1.05rem/1 var(--f-ui); text-decoration: none; transition: background-color .2s, transform .15s var(--out); }
.foot-cta:active { transform: scale(.96); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.foot-nav ul { display: grid; align-content: start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font: 700 1.05rem/1.3 var(--f-ui); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.foot-nav a[aria-current="page"] { color: var(--gold); }
.foot :focus-visible { outline-color: var(--gold); }
@media (hover: hover) { .foot-cta:hover { background: #ff8f3d; } .foot-nav a:hover { text-decoration-line: underline; } }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Order bar (phones): the action stays in reach between the hero and the form ---------- */
.buybar { display: none; }
@media (max-width: 720px) {
  .buybar { position: fixed; inset-inline: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 39; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; padding-inline-start: 20px; border-radius: 999px; background: rgba(23, 15, 46, .97); color: var(--cream); box-shadow: 0 14px 34px -18px rgba(10, 5, 25, .85); transform: translateY(calc(100% + 28px)); visibility: hidden; transition: transform .25s var(--out), visibility 0s linear .25s; }
  .buybar.is-on { transform: none; visibility: visible; transition: transform .45s var(--out), visibility 0s; }
  html:has(dialog[open]) .buybar { visibility: hidden; }
  .buybar-text { display: grid; min-width: 0; line-height: 1.25; }
  .buybar-text strong { font: 800 1rem/1.25 var(--f-ui); }
  .buybar-text span { overflow: hidden; color: rgba(255, 248, 236, .82); font-size: .875rem; white-space: nowrap; text-overflow: ellipsis; }
  .buybar-cta { flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 800 1rem/1 var(--f-ui); text-decoration: none; white-space: nowrap; transition: transform .15s var(--out); }
  .buybar-cta:active { transform: scale(.95); }
  .buybar-cta .icon { width: 1.15em; height: 1.15em; }
  .buybar :focus-visible { outline-color: var(--gold); }
}
