/* Petit Génie — "Play" variant, inspired by LazyLeaf's color-blocked, sticker-style look.
   Palette: Moroccan saffron + Majorelle blue, with the mint, rose and sky of the cards and reader.
   Mobile-first: base rules target phones; wider layouts are added with min-width queries. */

:root {
  --saffron: #FFC23C;
  --saffron-deep: #F5A913;
  --majorelle: #4A3FD8;
  --mint: #2BB08F;
  --mint-soft: #C9F0E2;
  --rose: #FF6FA5;
  --sky: #9ED8F5;
  --lilac: #B8AEFF;
  --ink: #1C1F3B;
  --ink-soft: #4A4E6A;
  --cream: #FFF3DF;
  --white: #FFFFFF;
  --danger: #C62828;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 34px;
  --shadow: 0 10px 0 rgba(28, 31, 59, .12);
  --shadow-soft: 0 14px 34px rgba(28, 31, 59, .14);

  --font-display: "Lalezar", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --sticky-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.latin { font-family: var(--font-display); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--majorelle); outline-offset: 3px; border-radius: 10px; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Highlight words */
.hl { color: var(--white); -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--ink); }
.hl-blue { color: var(--majorelle); }
.hl-mint { color: var(--mint); }
.hl-pink { color: var(--rose); }

/* ---------- Pill buttons (white pill + dark arrow square) ---------- */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 10px 8px 20px; padding-inline-start: 22px;
  background: var(--white); color: var(--ink); border: 0; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 rgba(28, 31, 59, .18);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(28, 31, 59, .18); }
.pill-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(28, 31, 59, .18); }
.pill-dark { background: var(--ink); color: var(--white); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.pill-lg { min-height: 58px; font-size: 19px; }
.pill-sm { min-height: 46px; font-size: 16px; padding-inline-start: 16px; }
.pill-block { width: 100%; }
.pill-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--white); flex: none; }
.arrow svg { width: 18px; height: 18px; }
.pill-dark .arrow { background: var(--saffron); color: var(--ink); }

/* ---------- Header ---------- */
.topbar {
  position: absolute; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
}
.logo-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--white); border-radius: 999px; padding: 6px 16px 4px; box-shadow: 0 4px 0 rgba(28, 31, 59, .15);
}
.logo-pill { padding: 5px 16px 5px 12px; }
.topbar .pill-btn { flex: none; white-space: nowrap; }
.logo-pill { min-width: 0; }
.logo-mark { width: auto; height: 40px; }
.logo-word { width: auto; height: 24px; }
.topnav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--saffron); padding: 80px 0 36px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
}
.hero::before { width: 360px; height: 360px; background: var(--saffron-deep); inset-inline-end: -180px; top: 40%; opacity: .55; }
.hero::after { width: 260px; height: 260px; background: #FFD877; inset-inline-start: -120px; top: -60px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 16px; }
.hero-copy { text-align: center; }
.eyebrow {
  display: inline-block; background: var(--ink); color: var(--saffron); font-weight: 800; font-size: 14px;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; transform: rotate(-2deg);
}
.hero h1 { font-size: clamp(42px, 12vw, 92px); line-height: 1.05; color: var(--ink); }
.lead { margin: 14px auto 0; font-size: 18px; font-weight: 500; max-width: 32ch; color: var(--ink); }

.hero-media { position: relative; display: grid; place-items: center; padding: 14px 0 6px; }
.splash {
  position: absolute; width: 86%; aspect-ratio: 1; z-index: 0;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}
.splash-pink { background: var(--rose); transform: rotate(12deg); }
.splash-yellow { background: var(--saffron); }
.splash-lilac { background: var(--lilac); transform: rotate(-20deg); }
.hero-media .splash { width: min(68vw, 290px); }
.sticker {
  position: relative; z-index: 1; width: min(50vw, 215px);
  background: var(--white); padding: 10px; border-radius: 28px;
  transform: rotate(-4deg); box-shadow: var(--shadow-soft);
}
.sticker img { border-radius: 20px; aspect-ratio: 679 / 848; }
.tag {
  position: absolute; z-index: 2; font-family: var(--font-display); font-size: 20px; line-height: 1;
  padding: 10px 16px 7px; border-radius: 14px; box-shadow: 0 5px 0 rgba(28, 31, 59, .2);
}
.tag-a { background: var(--majorelle); color: var(--white); top: 10%; inset-inline-start: 2%; transform: rotate(-8deg); }
.tag-b { background: var(--mint); color: var(--ink); bottom: 12%; inset-inline-end: 2%; transform: rotate(6deg); }

.hero-buy { display: grid; justify-items: center; gap: 14px; text-align: center; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.price-num { font-size: 58px; line-height: 1; }
.price-cur { font-family: var(--font-display); font-size: 28px; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.perks li {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px;
  background: var(--white); color: var(--ink); padding: 7px 14px; border-radius: 999px;
}
.perks .ico { width: 18px; height: 18px; color: var(--mint); }
.hero-ctas { display: grid; gap: 12px; width: 100%; max-width: 420px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--saffron); overflow: hidden; padding: 12px 0 6px; transform: rotate(-1.5deg) scale(1.03); margin-top: -10px; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; font-size: 28px; line-height: 1.2; white-space: nowrap; animation: tick 38s linear infinite; }
.ticker-track span { padding-inline-end: 8px; }
@keyframes tick { to { transform: translateX(50%); } }

/* ---------- Stats ---------- */
.stats-band { padding: 44px 0 36px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; text-align: center; }
.stats li { display: grid; gap: 2px; }
.stats strong { font-size: 30px; line-height: 1.15; color: var(--majorelle); }
.stats strong.latin { font-size: 56px; line-height: 1; }
.stats span { font-weight: 700; color: var(--ink-soft); }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Color blocks ---------- */
.block { padding: 56px 0; }
.block-mint { background: var(--mint); }
.block-ink { background: var(--ink); color: var(--cream); }
.block-cream { background: var(--cream); }
.block-lilac { background: var(--lilac); }
.head { text-align: center; margin-bottom: 28px; display: grid; gap: 8px; justify-items: center; }
.head h2 { font-size: clamp(36px, 9.5vw, 66px); }
.head p { font-size: 18px; font-weight: 500; max-width: 40ch; }
.block-ink .head p { color: #C9CBE0; }

/* Scalloped edges between blocks */
.scallop { height: 26px; background-repeat: repeat-x; background-size: 52px 26px; }
.scallop-ink { background-color: var(--mint); background-image: radial-gradient(circle at 50% 100%, var(--ink) 25px, transparent 26px); }
.scallop-ink-down { background-color: var(--cream); background-image: radial-gradient(circle at 50% 0, var(--ink) 25px, transparent 26px); }
.scallop-mint { background-color: var(--cream); background-image: radial-gradient(circle at 50% 100%, var(--mint) 25px, transparent 26px); }

/* ---------- Demo panel ---------- */
.panel { background: var(--cream); border-radius: var(--r-lg); padding: 36px 16px 28px; box-shadow: var(--shadow); }
.demo-video { margin: 0 auto 24px; max-width: 760px; }
.demo-video video { width: 100%; border-radius: var(--r); background: var(--ink); }
.steps { display: grid; gap: 28px; }
.step { display: grid; justify-items: center; text-align: center; gap: 8px; }
.step-art { position: relative; display: grid; place-items: center; width: 100%; max-width: 320px; padding: 12px; }
.step-art .splash { width: 82%; }
.step-art img { position: relative; z-index: 1; width: 100%; border-radius: 22px; background: var(--white); aspect-ratio: 438 / 348; box-shadow: var(--shadow-soft); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--majorelle); color: var(--white); font-size: 24px; line-height: 1; padding-top: 4px; margin-top: -30px; position: relative; z-index: 2; border: 4px solid var(--cream); }
.step h3 { font-size: 26px; }
.step p { color: var(--ink-soft); max-width: 30ch; }
.panel-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Features (dark) ---------- */
.features { display: grid; gap: 22px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.f-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; flex: none; color: var(--ink); transform: rotate(-4deg); }
.f-ico svg { width: 28px; height: 28px; }
.bg-yellow { background: var(--saffron); }
.bg-pink { background: var(--rose); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-lilac { background: var(--lilac); }
.feature h3 { font-size: 26px; color: var(--mint); }
.feature:nth-child(3n+2) h3 { color: var(--rose); }
.feature:nth-child(3n) h3 { color: var(--saffron); }
.feature p { color: #D7D9EA; margin-top: 4px; }

/* ---------- Contents split ---------- */
.split { display: grid; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.split-panel { background: var(--majorelle); color: var(--white); padding: 30px 20px; }
.split-panel h2 { font-size: clamp(36px, 9vw, 58px); margin-bottom: 16px; }
.box-list { display: grid; gap: 10px; font-weight: 700; font-size: 18px; }
.box-list li { display: flex; gap: 10px; align-items: flex-start; }
.box-list .ico { color: var(--saffron); margin-top: 4px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.extras li { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 15px; }
.specs { margin: 22px 0 0; background: rgba(255, 255, 255, .1); border-radius: var(--r); padding: 4px 16px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .28); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: #D8D5FF; }
.specs dd { margin: 0; font-weight: 800; text-align: left; }
.split-media { background: var(--sky); display: grid; gap: 14px; padding: 20px; align-content: center; justify-items: center; }
.split-photo img { width: min(100%, 360px); aspect-ratio: 560 / 550; border-radius: var(--r); }
.split-cards { background: var(--white); border-radius: var(--r); padding: 8px; transform: rotate(-2deg); box-shadow: var(--shadow-soft); }
.split-cards img { aspect-ratio: 1140 / 295; border-radius: 14px; }

/* ---------- Gallery (polaroids) ---------- */
.gallery-block { padding-top: 24px; }
.polaroids {
  display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 14px var(--gutter) 22px; scrollbar-width: none;
}
.polaroids::-webkit-scrollbar { display: none; }
.polaroid { scroll-snap-align: center; background: var(--white); padding: 10px 10px 12px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.polaroid:nth-child(1) img { object-position: 50% 15%; }
.polaroid:nth-child(2) img { object-position: 0% 50%; }
.polaroid figcaption { text-align: center; font-size: 22px; padding-top: 10px; }
.tilt-r { transform: rotate(2.5deg); }
.tilt-l { transform: rotate(-2.5deg); }

/* Reviews (real data only) */
.review-grid { display: grid; gap: 14px; }
.review { background: var(--white); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-soft); }
.review footer { margin-top: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Offer ---------- */
.offer {
  position: relative; background: var(--saffron); border-radius: var(--r-lg); padding: 40px 18px 24px;
  text-align: center; display: grid; justify-items: center; gap: 14px; box-shadow: var(--shadow);
}
.offer-kicker { background: var(--ink); color: var(--saffron); font-weight: 800; padding: 4px 14px; border-radius: 999px; }
.offer-price { font-size: 96px; line-height: .95; }
.offer-cur { font-size: 36px; }
.badge { position: absolute; top: -34px; inset-inline-start: -6px; width: 104px; height: 104px; border-radius: 50%; background: var(--rose); box-shadow: 0 6px 0 rgba(28, 31, 59, .18); }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; direction: ltr; } /* RTL base direction breaks textPath in Chrome */
.badge text { font-family: var(--font-body); font-weight: 800; font-size: 14px; fill: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
.howto { display: grid; gap: 10px; width: 100%; margin-top: 14px; text-align: start; }
.howto li { display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: var(--r); padding: 12px 14px; }
.howto-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--majorelle); color: var(--white); font-size: 24px; line-height: 1; padding-top: 4px; flex: none; transform: rotate(-5deg); }
.howto strong { display: block; font-size: 18px; }
.howto p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--r); box-shadow: 0 5px 0 rgba(28, 31, 59, .08); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 64px; padding: 12px 18px; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink); color: var(--saffron); font: 400 26px/1 var(--font-display); padding-top: 4px; transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--majorelle); color: var(--white); }
.faq details p { padding: 0 18px 18px; color: var(--ink-soft); }

/* ---------- Order ---------- */
.order-card { background: var(--cream); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.order-summary { display: flex; gap: 14px; align-items: center; background: var(--sky); border-radius: var(--r); padding: 12px; }
.order-summary img { width: 84px; height: 105px; object-fit: cover; border-radius: var(--r-sm); background: var(--white); flex: none; transform: rotate(-3deg); }
.summary-brand { font-family: var(--font-display); font-size: 18px; line-height: 1.2; color: var(--majorelle); }
.summary-name { font-weight: 800; line-height: 1.35; }
.summary-price { font-size: 30px; line-height: 1.2; }
.perks-sm { justify-content: flex-start; margin-top: 4px; }
.perks-sm li { font-size: 13px; padding: 4px 10px; }
.order-panel { padding: 4px 6px 8px; }
.order-panel h2 { font-size: clamp(34px, 8.6vw, 52px); }
.order-sub { color: var(--ink-soft); margin: 4px 0 20px; font-weight: 500; }

.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; font-size: 17px;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px;
  transition: box-shadow .15s, border-color .15s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--majorelle); box-shadow: 0 4px 0 var(--majorelle); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #FFF5F5; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 700; margin-top: 4px; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

.qty { display: inline-flex; align-items: center; background: var(--white); border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; height: 56px; }
.qty-btn { width: 44px; height: 52px; border: 0; background: transparent; font-size: 24px; font-weight: 800; cursor: pointer; }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.field .qty input { width: 38px; min-height: 0; height: 52px; padding: 0; border: 0; background: transparent; text-align: center; font: 400 24px var(--font-display); padding-top: 4px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field .qty input:focus { box-shadow: none; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 2.5px dashed var(--ink); padding-top: 14px; margin: 6px 0 18px; font-weight: 800; font-size: 18px; }
.total-row strong { font-size: 34px; line-height: 1; }
.form-hint { font-size: 14px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.privacy-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; text-align: center; }

.order-status { background: var(--mint-soft); border-radius: var(--r); padding: 20px; }
.order-status h3 { font-size: 30px; }
.order-status p { margin-top: 4px; }
.order-status.is-error { background: #FDECEA; }
.status-actions { display: grid; gap: 12px; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D7D9EA; padding: 48px 0 calc(28px + var(--sticky-h)); text-align: center; }
/* Full logo sits on a cream card: its grey tagline and yellow letters need a light background */
.footer-logo { display: inline-block; background: var(--cream); border-radius: var(--r-lg); padding: 18px 26px 14px; transform: rotate(-2deg); }
.footer-logo img { width: auto; height: 150px; }
.footer-tag { margin-top: 4px; }
.footer-grid { display: grid; gap: 26px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-h { font-size: 24px; color: var(--white); margin-bottom: 8px; }
.footer-list { display: grid; gap: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--saffron); }
.footer-wa { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.copyright { margin-top: 30px; font-size: 13px; color: #9EA1BC; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(130%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .pill-btn { min-height: 58px; font-size: 18px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 12px 30px rgba(28, 31, 59, .3); }
.sticky-sep { opacity: .45; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero-ctas { grid-auto-flow: column; max-width: none; width: auto; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stats li:last-child:nth-child(odd) { grid-column: auto; }
  .features { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
  .polaroids { grid-auto-columns: 42%; }
  .howto { grid-template-columns: repeat(3, 1fr); }
  .howto li { flex-direction: column; text-align: center; }
  .status-actions { grid-auto-flow: column; justify-content: start; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: start; }
}

/* ---------- ≥ 960px: desktop ---------- */
@media (min-width: 960px) {
  :root { --sticky-h: 0px; }
  body { font-size: 18px; }
  .topbar { padding: 18px 28px; }
  .logo-mark { height: 48px; }
  .logo-word { height: 30px; }
  .footer-logo img { height: 190px; }
  .topnav { display: flex; gap: 6px; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: 0 4px 0 rgba(28, 31, 59, .15); }
  .topnav a { text-decoration: none; font-weight: 800; padding: 6px 16px; border-radius: 999px; }
  .topnav a:hover { background: var(--saffron); }

  .hero { padding: 120px 0 80px; }
  .hero::before { width: 620px; height: 620px; inset-inline-end: -260px; top: 30%; }
  .hero::after { width: 420px; height: 420px; inset-inline-start: -180px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "copy media" "buy media"; column-gap: 40px; row-gap: 26px; align-items: center; }
  .hero-copy { grid-area: copy; text-align: start; align-self: end; }
  .hero-buy { grid-area: buy; justify-items: start; text-align: start; align-self: start; }
  .hero-media { grid-area: media; }
  .lead { margin-inline: 0; font-size: 21px; }
  .hero-media .splash { width: 440px; }
  .sticker { width: 340px; padding: 14px; }
  .tag { font-size: 26px; }
  .price-num { font-size: 84px; }
  .perks { justify-content: flex-start; }

  .ticker-track { font-size: 36px; }
  .stats-band { padding: 64px 0 56px; }
  .stats strong.latin { font-size: 80px; }
  .stats strong { font-size: 40px; }

  .block { padding: 96px 0; }
  .head { margin-bottom: 44px; }
  .panel { padding: 56px 44px 44px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; }

  .split { grid-template-columns: 1.05fr 1fr; }
  .split-panel { padding: 48px 44px; }
  .split-media { padding: 40px; }

  .polaroids { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 14px 20px 10px; gap: 34px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }

  .offer { padding: 64px 48px 40px; }
  .offer-price { font-size: 150px; }
  .offer-cur { font-size: 52px; }
  .badge { width: 140px; height: 140px; top: -50px; inset-inline-start: 30px; }
  .howto { max-width: 860px; margin-top: 24px; }

  .order-card { grid-template-columns: 340px 1fr; gap: 44px; padding: 22px; align-items: start; }
  .order-summary { flex-direction: column; align-items: stretch; padding: 22px; position: sticky; top: 24px; }
  .order-summary img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; padding: 12px; }
  .order-panel { padding: 18px 10px 18px 22px; }

  .sticky-cta { display: none; }
}

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

/* Stock line + per-order limit */
.stock-note { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.stock-note .latin { color: var(--saffron); font-size: 18px; line-height: 1; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(43, 176, 143, .3); }
.stock-out { background: var(--danger); }
.qty-hint { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }

/* Product clip (subtitle band at the bottom of the source video is cropped off) */
.clip { display: grid; justify-items: center; gap: 12px; margin: 0 auto 36px; }
.clip-frame { position: relative; display: grid; place-items: center; padding: 14px; }
.clip-frame .splash { width: 92%; transform: rotate(-14deg); }
.clip-crop {
  position: relative; z-index: 1; width: min(62vw, 270px); aspect-ratio: 540 / 777; overflow: hidden;
  border-radius: 20px; background: var(--white);
  transform: rotate(3deg); box-shadow: 0 0 0 8px var(--white), var(--shadow-soft); /* ring outside, so the crop ratio is exact */
}
.clip-video { display: block; width: 100%; height: auto; }
.clip figcaption { font-size: 24px; }
@media (min-width: 960px) { .clip-crop { width: 300px; } }

/* Very small phones (< 360px): drop the header CTA arrow so the full logo fits */
@media (max-width: 359px) {
  .topbar { gap: 8px; }
  .topbar .pill-btn { padding-inline: 14px; }
  .topbar .pill-btn .arrow { display: none; }
  .logo-pill { padding-inline: 10px 12px; gap: 4px; }
  .logo-mark { height: 34px; }
  .logo-word { height: 21px; }
}

/* Bundle promotion */
/* Promo tag: a tilted price-tag sticker with a punch hole, always on one line */
.promo {
  position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--rose); color: var(--white); font-weight: 800; font-size: 16px;
  padding: 7px 18px 7px 12px; padding-inline-start: 30px;
  border-radius: 10px 16px 16px 10px; transform: rotate(-2deg);
  box-shadow: 0 5px 0 rgba(28, 31, 59, .2);
  animation: tag-swing 3.5s ease-in-out infinite;
}
/* punch hole on the tag's start edge */
.promo::before {
  content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--saffron); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.promo-tag { background: var(--white); color: var(--rose); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.promo-main b { font-weight: 400; font-size: 26px; line-height: 1; color: var(--white); margin-inline: 2px; }
.promo del { font-family: var(--font-display); font-size: 18px; color: rgba(255, 255, 255, .75); text-decoration-thickness: 2px; }
.promo-lg { font-size: 18px; padding-block: 9px; }
.promo-lg::before { background: var(--saffron); }
.promo-lg .promo-main b { font-size: 34px; }
@keyframes tag-swing { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(1.5deg); } }
@media (max-width: 359px) { .promo { font-size: 14px; gap: 7px; padding-inline-end: 12px; } .promo-main b { font-size: 22px; } }

.packs { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.packs legend { font-weight: 800; font-size: 16px; margin-bottom: 8px; padding: 0; }
.pack {
  position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; cursor: pointer;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; padding: 16px 8px 12px;
  transition: box-shadow .15s, transform .15s;
}
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack-qty { font-weight: 800; }
.pack-price { font-size: 15px; color: var(--ink-soft); }
.pack-price b { font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); }
.pack-price del { font-family: var(--font-display); }
.pack-badge { position: absolute; top: -12px; inset-inline: 0; margin-inline: auto; width: max-content; background: var(--rose); color: var(--white); font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.pack.is-on, .pack:has(input:checked) { border-color: var(--majorelle); box-shadow: 0 5px 0 var(--majorelle); background: #F1EFFF; }
.pack:has(input:focus-visible) { outline: 3px solid var(--majorelle); outline-offset: 3px; }
.has-packs .field-qty { display: none; }
.has-packs .field-row { grid-template-columns: 1fr; }
#order-total-regular { font-size: 20px; color: var(--ink-soft); }
.saving { margin: -12px 0 16px; text-align: left; color: #17805F; font-weight: 800; }

/* Floating WhatsApp support button (bottom-left in RTL; rises above the sticky order bar) */
.wa-float {
  position: fixed; z-index: 55; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: bottom .25s ease, transform .15s;
}
body.sticky-on .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float-btn {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white); box-shadow: 0 5px 0 rgba(28, 31, 59, .2), 0 10px 24px rgba(37, 211, 102, .35);
}
.wa-float-btn svg { width: 30px; height: 30px; }
.wa-float-label {
  background: var(--white); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 7px 12px; border-radius: 12px; box-shadow: 0 4px 0 rgba(28, 31, 59, .12);
}
@media (max-width: 599px) { .wa-float-label { display: none; } }
@media (min-width: 960px) { .wa-float { left: 24px; bottom: 24px; } }

/* =====================================================================
   Playful motion (kid-friendly). Transform/opacity only; looping hero
   animations pause off-screen; everything is off with reduced motion.
   ===================================================================== */

/* --- Floating letters from the three languages --- */
.letters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.l {
  position: absolute; font-family: var(--font-display); line-height: 1; --r: -10deg;
  animation: drift 7s ease-in-out infinite;
}
/* Letters live in the outer margins only, never behind the headline, price or buttons */
.l1 { top: 11%; left: 2%;  font-size: 40px; color: rgba(255,255,255,.7); --r: -12deg; }
.l2 { top: 24%; right: 1.5%; font-size: 44px; color: rgba(74,63,216,.35); --r: 10deg; animation-duration: 8s; animation-delay: -2s; }
.l3 { top: 64%; left: 1.5%; font-size: 36px; color: rgba(255,111,165,.55); --r: 14deg; animation-duration: 6.5s; animation-delay: -1s; }
.l4 { top: 90%; right: 3%; font-size: 40px; color: rgba(255,255,255,.75); --r: -8deg; animation-duration: 9s; animation-delay: -4s; }
.l5 { top: 40%; left: 1%;  font-size: 34px; color: rgba(43,176,143,.5); --r: 18deg; animation-duration: 7.5s; animation-delay: -3s; }
.l6 { top: 52%; right: 1%; font-size: 34px; color: rgba(255,111,165,.45); --r: -14deg; animation-duration: 8.5s; }
.l7 { top: 93%; left: 18%; font-size: 32px; color: rgba(74,63,216,.3); --r: 8deg; animation-duration: 6s; animation-delay: -5s; }
.l8 { top: 86%; left: 4%;  font-size: 38px; color: rgba(255,255,255,.6); --r: -16deg; animation-duration: 10s; animation-delay: -2.5s; }
/* Phones: content fills the width, so keep just a few small letters in the side gutters */
/* Phones/tablets: the text fills the width, so the margin letters are hidden and two letters
   sit in the free corners beside the product sticker instead (top-left and bottom-right). */
.lm { display: none; z-index: 2; font-size: 34px; }
@media (max-width: 959px) {
  .letters { display: none; }
  .lm { display: block; }
  .lm1 { top: 2%; left: 3%; color: rgba(255,255,255,.85); --r: -12deg; }
  .lm2 { bottom: 4%; right: 4%; color: rgba(74,63,216,.45); --r: 10deg; animation-duration: 8s; animation-delay: -2s; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-18px) rotate(calc(var(--r) * -1)); }
}

/* --- Hero product: bobbing sticker, morphing blob, wiggling tags --- */
.sticker { animation: bob 5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-10px); }
}
.hero-media .splash { animation: morph 9s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(12deg); }
  50%      { border-radius: 60% 40% 38% 62% / 55% 36% 64% 45%; transform: rotate(24deg) scale(1.04); }
}
.tag-a { animation: wiggle-a 3.2s ease-in-out infinite; }
.tag-b { animation: wiggle-b 3.6s ease-in-out infinite .6s; }
@keyframes wiggle-a { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-2deg) translateY(-5px); } }
@keyframes wiggle-b { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(0deg) translateY(-5px); } }

/* Sound waves coming out of the reader (it "talks") */
.waves { position: absolute; z-index: 2; left: 4%; top: 44%; width: 60px; height: 60px; }
.waves i {
  position: absolute; inset: 0; border-radius: 50%; border: 5px solid transparent; border-left-color: var(--ink);
  opacity: 0; animation: wave 1.8s ease-out infinite;
}
.waves i:nth-child(2) { inset: -14px; animation-delay: .3s; }
.waves i:nth-child(3) { inset: -28px; animation-delay: .6s; }
@keyframes wave { 0% { opacity: 0; transform: scale(.7); } 30% { opacity: .85; } 100% { opacity: 0; transform: scale(1.15); } }
@media (min-width: 960px) { .waves { left: 2%; } }

/* Confetti twinkle */
.confetti g, .confetti > path { transform-box: fill-box; transform-origin: center; animation: twinkle 6s ease-in-out infinite; }
.confetti g:nth-of-type(2) { animation-delay: -1.5s; animation-duration: 7s; }
.confetti g:nth-of-type(3) { animation-delay: -3s; }
.confetti > path:nth-of-type(1) { animation: spin-slow 12s linear infinite; }
.confetti > path:nth-of-type(2) { animation: spin-slow 16s linear infinite reverse; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: .55; transform: translateY(-8px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Main CTA: arrow nudge + soft glow */
.pill-dark .arrow svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.hero-ctas .pill-dark { animation: glow 3.4s ease-in-out infinite; }
@keyframes glow {
  0%, 70%, 100% { box-shadow: 0 5px 0 rgba(0,0,0,.25), 0 0 0 0 rgba(28,31,59,.35); }
  85%           { box-shadow: 0 5px 0 rgba(0,0,0,.25), 0 0 0 10px rgba(28,31,59,0); }
}

/* Pause looping hero animations when the hero is off-screen (saves battery) */
.hero.paused *, .hero.paused .confetti * { animation-play-state: paused !important; }

/* --- Scroll pop-in (only when JS is on) --- */
.js .pop { opacity: 0; transform: translateY(28px) scale(.94); transition: opacity .5s ease, transform .75s cubic-bezier(.34, 1.56, .64, 1); }
.js .pop.in { opacity: 1; transform: none; }
.js .polaroid.pop { transform: translateY(40px) rotate(-12deg); }
.js .polaroid.tilt-r.pop.in { transform: rotate(2.5deg); }
.js .polaroid.tilt-l.pop.in { transform: rotate(-2.5deg); }

/* Little surprises once things appear */
.step.in .step-num { animation: pop-num .6s .35s both; }
@keyframes pop-num { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
.step-art img { transition: transform .3s; }
.step:hover .step-art img { animation: boing .6s; }
@keyframes boing { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.03); } }
.feature.in .f-ico { animation: wiggle-ico .8s .3s both; }
.feature:hover .f-ico { animation: wiggle-ico .6s; }
@keyframes wiggle-ico { 0%, 100% { transform: rotate(-4deg); } 25% { transform: rotate(-16deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-8deg); } }
.offer.in .offer-price { animation: price-pop .8s .2s both; }
@keyframes price-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.polaroid { transition: transform .75s cubic-bezier(.34, 1.56, .64, 1), opacity .5s, box-shadow .2s; }
.polaroid:hover, .js .polaroid.pop.in:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.pack.is-on { animation: pick .35s ease-out; }
@keyframes pick { 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .js .pop, .js .polaroid.pop { opacity: 1 !important; transform: none !important; }
  .js .polaroid.tilt-r.pop { transform: rotate(2.5deg) !important; }
  .js .polaroid.tilt-l.pop { transform: rotate(-2.5deg) !important; }
  .waves { display: none; }
}
