/* Landing page (/). Built on the tokens and components of styles.css; no raw values here.
   Full-width bands, content capped at --max and left aligned. The hero is a night sky:
   the product lives at bedtime. */

/* ---------- Bands ---------- */
.band { padding: var(--band-y) var(--gutter); }
.band-in { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; } /* same content edge as the top bar */
.band h2 { max-width: 24ch; }
.paper { background: var(--bg); }
.paper-2 { background: var(--bg-alt); }

/* ---------- Hero: night sky with a live story page ---------- */
.night { position: relative; overflow: hidden; color: var(--on-dark); background: radial-gradient(120% 90% at 80% 0%, var(--night-glow) 0%, var(--navy) 45%, var(--night-deep) 100%); }
.night h1, .night h2 { color: var(--on-dark); }
.night .sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(120px, 12vw, 170px); }
.hero-in h1 { max-width: 12ch; margin: 0 0 var(--sp-5); font-size: var(--fs-display); line-height: .98; letter-spacing: -.02em; }
.hero-in .pitch { max-width: 46ch; margin: 0 0 var(--sp-6); color: var(--on-dark-muted); font-size: var(--fs-lg); }
.hero-in .row { margin-top: 0; }
.hero-in .assure { margin: var(--sp-5) 0 0; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.hero-in .assure a { color: var(--on-dark); font-weight: 800; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: clamp(70px, 9vw, 120px); }
.namefield { display: flex; align-items: center; gap: var(--sp-3); max-width: 440px; margin: 0 0 var(--sp-6); }
.namefield label { color: var(--on-dark-muted); font-weight: 800; white-space: nowrap; }
.namefield input[type="text"] { border-color: transparent; }
.namefield input[type="text"]:focus { border-color: var(--highlight); }

/* The live page: a real scene from the story engine, framed like an open book page */
.livepage { position: relative; padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.livepage .scene { box-shadow: none; }
.livepage .lines { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.livepage .line { opacity: 1; font-size: var(--fs-md); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .livepage { max-width: 520px; transform: none; }
}
@media (max-width: 480px) { .namefield { flex-direction: column; align-items: stretch; gap: var(--sp-2); } }

/* Closing call: same night sky, one line and two buttons */
.closing .hero-in { grid-template-columns: 1fr; gap: 0; padding-bottom: var(--band-y); }
.closing h2 { max-width: 16ch; margin: 0 0 var(--sp-5); font-size: var(--fs-h1); }

/* ---------- How it works: a real sequence, so numbered ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin: 0; padding: 0; list-style: none; counter-reset: st; }
.steps4 li { padding-top: var(--sp-4); border-top: 3px solid var(--ink); counter-increment: st; }
.steps4 li::before { content: counter(st); display: block; margin-bottom: var(--sp-3); color: var(--accent); font: 600 var(--fs-h1) / 1 var(--display); }
.steps4 p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }

/* ---------- Split sections: text + list or illustration ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Trust band: teal ground, deep night ink */
.trust { background: var(--teal); color: var(--night-deep); }
.trust h2, .trust .lead { color: var(--night-deep); }
.checks { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: var(--sp-6); font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--on-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233e6446' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Family cast and the two modes: rows on paper use the raised surface */
.cast { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.cast li, .modes > div, .faq2 details, .prices article, .keep .thumb { border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cast li { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); align-items: center; padding: var(--sp-4); }
.cast .avatar { width: 56px; height: 56px; font-size: var(--fs-h3); }
.cast b { display: block; font: 600 var(--fs-lg) var(--display); }
.cast span { color: var(--muted); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.modes > div { padding: var(--sp-4); }
.modes h3 { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-2); }
.modes .ic { width: 34px; height: 34px; }
.modes p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Stories by passion: the four tile washes ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.shelf article { padding: var(--sp-5); border-radius: var(--r-md); }
.shelf article { border: 2px solid var(--line); background: var(--surface); }
.shelf svg { display: block; width: 64px; height: 64px; margin-bottom: var(--sp-2); }
.shelf .passion-ico { display: block; width: 72px; height: auto; margin-bottom: var(--sp-2); border-radius: 50%; box-shadow: var(--shadow-sm); }
.shelf ul { margin: 0; padding-left: var(--sp-4); font-size: var(--fs-sm); }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .shelf { grid-template-columns: 1fr; } }

/* ---------- Keepsakes ---------- */
.keep { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.keep h3 { margin: var(--sp-4) 0 var(--sp-2); }
.keep p { margin: 0; color: var(--muted); }
.keep .thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; padding: var(--sp-4); }
.keep .thumb svg { max-width: 100%; max-height: 100%; }
.keep .thumb .scene { width: 100%; border-width: 3px; }
@media (max-width: 800px) { .keep { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
/* Monthly / yearly switch above the plans. */
.billing { display: inline-grid; grid-auto-flow: column; gap: var(--sp-1); margin: 0 0 var(--sp-5); padding: var(--sp-1); border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--surface-sunk); }
.billing button { min-height: var(--tap); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: 700 var(--fs-sm) var(--body); cursor: pointer; }
.billing button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.billing .save { margin-left: var(--sp-2); padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--accent); color: var(--surface); font-size: var(--fs-xs); }
.prices .per-year { display: none; }
.prices.yearly .per-year { display: inline; }
.prices.yearly .per-month { display: none; }
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
.prices article { display: flex; flex-direction: column; padding: var(--sp-5); }
.prices article.best { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.prices h3 { margin: 0 0 var(--sp-2); }
.prices .amount { margin: var(--sp-2) 0 var(--sp-3); color: var(--ink); font: 600 var(--fs-h1) / 1.1 var(--display); }
.prices .amount small { display: block; margin-top: var(--sp-1); color: var(--muted); font-size: var(--fs-md); }
.prices ul { flex: 1; margin: 0 0 var(--sp-5); padding-left: var(--sp-4); color: var(--muted); }
.prices .btn, .prices .tag { align-self: flex-start; }
.prices .tag { margin-bottom: var(--sp-3); }
.note { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 1100px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-5); align-items: start; }
.faq2 details { padding: var(--sp-4) var(--sp-5); }
.faq2 summary { font-weight: 800; cursor: pointer; min-height: var(--tap); display: flex; align-items: center; }
.faq2 details p { margin: var(--sp-3) 0 0; color: var(--muted); }
@media (max-width: 800px) { .faq2 { grid-template-columns: 1fr; } }

/* ---------- Give your voice: the gift band right under the hero ---------- */
.offer { background: var(--paper-2); }

/* Welcome banner for families invited by a referral link. */
.refbanner { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; max-width: var(--max); margin: var(--sp-4) auto 0; padding: var(--sp-3) var(--sp-5); border: 2px solid var(--accent); border-radius: var(--r-md); background: var(--surface); }
.refbanner p { margin: 0; color: var(--ink); }

/* ---------- From photo to hero ---------- */
.morph { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr); gap: var(--sp-5); align-items: center; margin: var(--sp-5) 0; }
.morph figure { margin: 0; }
.morph figcaption { margin-top: var(--sp-3); color: var(--ink); font-weight: 700; text-align: center; }
.polaroid { display: grid; place-items: center; align-content: center; gap: var(--sp-3); aspect-ratio: 4 / 5; padding: var(--sp-5); border: 3px dashed var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-weight: 700; text-align: center; transform: rotate(-3deg); box-shadow: var(--shadow-sm); }
.polaroid svg { width: 72px; height: 72px; color: var(--accent); }
.morph-arrow { display: grid; justify-items: center; gap: var(--sp-2); color: var(--accent-hover); font: 700 var(--fs-sm) var(--body); }
.morph-arrow svg { width: 120px; height: 40px; }
.morph-hero img { display: block; width: 100%; height: auto; border: 6px solid var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.photo-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.photo-trust li { padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--fs-sm); }
.photo-trust li::before { content: "✓ "; color: var(--accent); }
@media (max-width: 800px) {
  .morph { grid-template-columns: 1fr; }
  .polaroid { max-width: 220px; margin: 0 auto; aspect-ratio: 1; }
  .morph-arrow svg { transform: rotate(90deg); width: 60px; }
  .photo-trust { justify-content: flex-start; }
}

/* ---------- Phone: swipeable worlds and a call to action that stays in reach ---------- */
.stickycta { display: none; }
@media (max-width: 700px) {
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  .shelf article { scroll-snap-align: start; }
  .stickycta { display: flex; justify-content: center; position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--sp-3) + env(safe-area-inset-bottom)); z-index: 20; box-shadow: var(--shadow-md); transform: translateY(160%); transition: transform .25s ease; }
  .stickycta.show { transform: none; }
  body { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .stickycta { transition: none; } }

/* ---------- Toute la famille raconte: each voice plays its line ---------- */
.cast-wrap { display: grid; gap: var(--sp-3); }
.cast li { display: block; padding: 0; }
.cast-play { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-4); align-items: center; width: 100%; padding: var(--sp-4); border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.cast-play:hover { background: var(--surface-sunk); }
.cast-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cast-txt b { display: block; font: 600 var(--fs-lg) var(--display); }
.cast-txt span { color: var(--muted); }
.cast-txt q { display: block; margin-top: var(--sp-1); color: var(--ink); font-style: italic; }
.cast-btn { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--accent); color: var(--surface); }
.cast-btn svg { width: 20px; height: 20px; }
.cast-play .ic-stop, .cast-play.on .ic-play { display: none; }
.cast-play.on .ic-stop { display: block; }
.cast li:has(.on) { border-color: var(--accent); }
.wave { position: absolute; right: calc(var(--sp-4) + var(--tap) + var(--sp-3)); top: 50%; display: none; gap: 3px; height: 20px; transform: translateY(-50%); }
.cast-play.on .wave { display: flex; align-items: center; }
.wave i { width: 4px; height: 100%; border-radius: 2px; background: var(--accent); animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.cast-all { justify-self: start; }
.cast-note { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 700px) { .wave { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
.cast-btn svg path, .cast-btn svg rect { fill: var(--surface); }
.cast-txt q { quotes: "«\00a0" "\00a0»"; }

/* ---------- Global polish: step pictures, ticked prices, closing band ---------- */
.steps4 li { display: flex; flex-direction: column; }
.step-art { order: -1; display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: var(--sp-4); object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.steps4 li::before { margin-bottom: var(--sp-2); font-size: var(--fs-h2); }
.prices ul.ticks { padding-left: 0; list-style: none; color: var(--ink); }
.prices ul.ticks li { position: relative; padding: var(--sp-1) 0 var(--sp-1) 28px; }
.prices ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.prices ul.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.55em + 4px); width: 5px; height: 9px; border: solid var(--surface); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.finale .band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-6); align-items: center; padding-top: var(--sp-7, 64px); padding-bottom: var(--sp-7, 64px); }
.finale-art { display: block; width: 100%; height: auto; border: 6px solid var(--surface); border-radius: var(--r-lg); transform: rotate(-2deg); box-shadow: var(--shadow-md); }
.finale .lead { color: var(--on-dark); opacity: .9; }
@media (max-width: 800px) { .finale .band-in { grid-template-columns: 1fr; } .finale-art { max-width: 420px; } }
.step-art { height: auto; }
.steps4 li { border-top: 0; padding-top: 0; }
@media (max-width: 520px) {
  .steps4 li { display: grid; grid-template-columns: 96px 1fr; column-gap: var(--sp-4); align-content: start; }
  .step-art { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 1; margin: 0; }
  .steps4 li::before { font-size: var(--fs-h3); margin: 0; }
  .steps4 h3 { margin: var(--sp-1) 0; }
}

/* ---------- Daytime: the hero and the closing band under a sunny sky ---------- */
.day { position: relative; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, var(--day-sky) 0%, var(--day-sky-2) 100%); }
.day .sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.day h1, .day h2 { color: var(--ink); }
.day .hero-in .pitch, .day .hero-in .assure, .day .namefield label { color: var(--muted); }
.day .hero-in .assure a { color: var(--ink); }
.day .namefield input[type="text"] { border-color: var(--line); }
.day .namefield input[type="text"]:focus { border-color: var(--accent); }
.day.finale .lead { color: var(--muted); opacity: 1; }
.finale-art { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- One picture style: watercolour ---------- */
.livepage .scene.wc { overflow: hidden; border-radius: var(--r-md); }
.livepage .scene.wc img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.hero-medal { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 6px solid var(--surface); border-radius: var(--r-lg); background: var(--surface-sunk); box-shadow: var(--shadow-md); }
.morph-hero .hero-medal img { border: 0; width: 52%; height: auto; border-radius: 50%; box-shadow: var(--shadow-sm); }
.morph-hero .hero-medal .medal-fox { position: absolute; right: 8%; bottom: 8%; width: 30%; }
.step-art { object-position: 50% 15%; }

/* ---------- Gift card section ---------- */
.giftsec { align-items: center; }
.gc-visual { position: relative; padding: var(--sp-5) var(--sp-5) var(--sp-7) 0; }
.gc-card { position: relative; overflow: hidden; aspect-ratio: 1.6; padding: var(--sp-5); border-radius: var(--r-lg); background: radial-gradient(120% 120% at 85% 0%, var(--night-glow) 0%, var(--navy) 50%, var(--night-deep) 100%); color: var(--on-dark); box-shadow: var(--shadow-lg); transform: rotate(-4deg); display: flex; flex-direction: column; }
.gc-ribbon { position: absolute; top: 0; bottom: 0; right: 22%; width: 28px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-hover) inset; }
.gc-ribbon::after { content: ""; position: absolute; left: -26px; top: 30%; width: 80px; height: 28px; background: var(--accent); }
.gc-kicker { margin: 0; color: var(--mustard); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }
.gc-title { margin: var(--sp-3) 0 var(--sp-1); max-width: 60%; font: 600 var(--fs-h2) / 1.1 var(--display); color: var(--on-dark); }
.gc-from { margin: 0; max-width: 60%; color: var(--on-dark-muted); }
.gc-bottom { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.gc-qrbox { width: 54px; height: 54px; border-radius: var(--r-sm, 8px); background: repeating-conic-gradient(var(--on-dark) 0 25%, transparent 0 50%) 0 0 / 14px 14px; opacity: .85; }
.gc-codeline { font-weight: 800; letter-spacing: .08em; color: var(--on-dark); }
.gc-fox { position: absolute; right: 0; bottom: 0; width: 34%; height: auto; border-radius: 50%; border: 6px solid var(--surface); box-shadow: var(--shadow-md); transform: rotate(6deg); }
.gc-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-5); padding: 0; list-style: none; counter-reset: gs; color: var(--ink); font-weight: 700; }
.gc-steps li { counter-increment: gs; display: flex; align-items: center; gap: var(--sp-2); }
.gc-steps li::before { content: counter(gs); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--surface); font-size: var(--fs-sm); }
.gift-options { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.gift-options a { display: grid; grid-template-columns: 1fr auto; column-gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-4); border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.gift-options a:hover { border-color: var(--accent); }
.gift-options .best a { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.go-name { font: 600 var(--fs-lg) var(--display); }
.go-text { grid-column: 1; color: var(--muted); font-size: var(--fs-sm); }
.go-price { grid-column: 2; grid-row: 1 / span 2; font: 600 var(--fs-h3) var(--display); white-space: nowrap; }
@media (max-width: 900px) { .gc-visual { max-width: 460px; margin: 0 auto var(--sp-4); } }
.gc-ribbon::after { display: none; }
@media (max-width: 600px) {
  .gc-visual { padding: var(--sp-3) var(--sp-3) var(--sp-6) 0; }
  .gc-card { aspect-ratio: auto; min-height: 200px; padding: var(--sp-4); }
  .gc-kicker { font-size: 11px; letter-spacing: .04em; }
  .gc-title { font-size: var(--fs-h3); max-width: 70%; }
  .gc-from { font-size: var(--fs-sm); max-width: 70%; }
  .gc-bottom { margin-top: var(--sp-3); }
  .gc-qrbox { width: 36px; height: 36px; background-size: 9px 9px; }
  .gc-codeline { font-size: var(--fs-sm); }
  .gc-fox { width: 28%; }
}
@media (max-width: 600px) { .gc-fox { width: 22%; right: -6px; bottom: 6px; } }

/* Gift card page */
.giftpage h1 { margin: 0 0 var(--sp-4); font-size: var(--fs-h1); line-height: var(--lh-heading, 1.1); }
.giftpage .giftsec { align-items: start; }
.giftpage .gc-visual { margin-top: var(--sp-7); }
@media (max-width: 900px) { .giftpage .gc-visual { margin-top: 0; } }
@media (max-width: 600px) { .gc-ribbon { right: 8%; width: 18px; } }

/* ---------- Gift card page (v3): the card stays, the rest is lighter ---------- */
.g3-hero .giftsec { align-items: center; }
.g3-hero .gc-visual { margin-top: 0; }
.g3-eyebrow { margin: 0 0 var(--sp-2); color: var(--accent); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; }
.g3-occasions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-5); padding: 0; list-style: none; }
.g3-occasions li { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--shadow-sm); }
.g3-offers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.g3-offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-5) var(--sp-4); border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-align: center; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.g3-offer:hover { transform: translateY(-3px); border-color: var(--accent); }
.g3-offer.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.g3-offer img { width: 84px; height: 84px; margin-bottom: var(--sp-2); object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-sm); }
.g3-offer b { font: 600 var(--fs-lg) / 1.2 var(--display); }
.g3-text { flex: 1; color: var(--muted); font-size: var(--fs-sm); }
.g3-price { margin-top: var(--sp-2); font: 600 var(--fs-h3) var(--display); }
.g3-cta { margin-top: var(--sp-2); color: var(--accent); font-weight: 800; }
.g3-cta::after { content: " →"; }
.g3-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px var(--sp-3); border-radius: var(--r-pill); background: var(--accent); color: var(--surface); font-weight: 800; font-size: 12px; white-space: nowrap; }
.g3-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0 0; padding: 0; list-style: none; counter-reset: g3; }
.g3-steps li { counter-increment: g3; display: grid; gap: var(--sp-1); }
.g3-steps li::before { content: counter(g3); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-2); border-radius: 50%; background: var(--accent); color: var(--surface); font: 600 var(--fs-lg) var(--display); }
.g3-steps b { font: 600 var(--fs-lg) var(--display); color: var(--ink); }
.g3-steps span { color: var(--muted); }
@media (max-width: 1000px) { .g3-offers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .g3-offers, .g3-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .g3-offers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .g3-offer { transition: none; } .g3-offer:hover { transform: none; } }

/* Day sky: 3D sun and clouds, same soft style as the illustrations */
.day .sky img { position: absolute; height: auto; }
.day .sunlight { position: absolute; top: -18%; right: -10%; width: 55vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--cloud), transparent); opacity: .75; }
.day .cloud.c1 { top: 1%; left: -4%; width: clamp(120px, 12vw, 190px); }
.day .cloud.c2 { top: 2%; left: 45%; width: clamp(90px, 9vw, 135px); opacity: .9; }
.day .cloud.c3 { top: 15%; left: 54%; width: clamp(90px, 9vw, 130px); transform: scaleX(-1); opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .day .cloud.c1, .day .cloud.c2 { animation: cloud-drift 18s ease-in-out infinite alternate; }
}
@keyframes cloud-drift { to { translate: 24px 0; } }
@media (max-width: 760px) { .day .cloud { display: none; } }

/* ---------- Legal pages ---------- */
.legalpage h1 { margin: 0 0 var(--sp-3); font-size: var(--fs-h1); }
.legalpage .prose { max-width: 72ch; }
.legalpage .prose h2 { margin: var(--sp-6) 0 var(--sp-2); font-size: var(--fs-h3); }
.legalpage .prose p, .legalpage .prose li { color: var(--ink); line-height: 1.6; }
.legalpage .prose ul { padding-left: var(--sp-5); }
.draft-note { display: inline-block; margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md); background: var(--surface); border: 2px dashed var(--line); color: var(--muted); font-size: var(--fs-sm); }
mark.todo { padding: 0 4px; border-radius: 4px; background: var(--day-sky-2); color: var(--accent); font-weight: 700; }
.sitefoot .legal a { color: inherit; }

/* 3D family portraits in place of the letter badges */
.cast .avatar-3d { padding: 0; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
#livepage .scene img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Day and night, side by side, each with its own picture */
.modes > div { overflow: hidden; }
.modes .mode-art { display: block; width: calc(100% + 2 * var(--sp-4)); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-4); object-fit: cover; }
.modes > .night { background: var(--navy); border-color: var(--navy); }
.modes > .night h3 { color: var(--on-dark); }
.modes > .night p { color: var(--on-dark-muted); }

/* Breathing room under the univers grid; the family title sits at the top of its column */
.modes { margin-top: var(--sp-6); }
#offrir .band-in.split { align-items: start; }

/* Photo block now lives inside "Comment ça marche" */
.photo-block { margin-top: var(--sp-8, 64px); padding-top: var(--sp-6); border-top: 2px dashed var(--line); }
.photo-block h3 { margin: 0 0 var(--sp-2); font: 600 var(--fs-h2) / 1.15 var(--display); color: var(--ink); }
.polaroid.has-photo { padding: var(--sp-2) var(--sp-2) var(--sp-6); border: 0; box-shadow: var(--shadow-md); }
.polaroid.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm, 6px); }
.morph-photo .polaroid.has-photo { max-width: 300px; margin: 0 auto; }

/* Footer legal links match the small legal text */
.sitefoot .legal a { font-size: inherit; }
/* Family block: the title follows the voice cards instead of leaving a gap */
@media (min-width: 901px) { #offrir .band-in.split > div:first-child { position: sticky; top: 120px; } }
/* Phone header: menu on the far right, and no second "Créer une histoire" once the bottom button shows */
@media (max-width: 900px) { .topbar .menu { order: 2; } }
@media (max-width: 760px) { body.cta-on .topbar .btn.small { visibility: hidden; } }

.polaroid.has-photo { position: relative; }
.sample-note { position: absolute; left: 0; right: 0; bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-align: center; }

/* ---------- Mascot: the little fox ---------- */
.mascot { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--surface); box-shadow: var(--shadow-md); }
.finale-art.mascot { aspect-ratio: 1; transform: none; justify-self: center; }
.notfound .band-in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--sp-6); align-items: center; min-height: 60vh; }
.notfound h1 { margin: 0 0 var(--sp-3); font-size: var(--fs-h1); }
@media (max-width: 800px) { .notfound .band-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .notfound .mascot { max-width: 240px; } .notfound .row { justify-content: center; } }
.finale { padding-inline: var(--gutter); }
@media (max-width: 800px) { .finale-art.mascot { max-width: 240px; } }

/* Mascot without its disc: the cream backdrop melts into the section, edges fade out. */
.mascot { border: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* ---------- Kouti, the mascot, top right of "Comment ça marche" ---------- */
.hero-art { position: relative; }
.has-kouti { position: relative; }
.kouti-hello { position: absolute; top: -70px; right: 0; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; }
.kouti-hello img { width: 200px; height: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); animation: kouti-bob 3s ease-in-out infinite; }
.kouti-hello .bubble { position: relative; max-width: 230px; margin: 0; text-align: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-md); }
.kouti-hello .bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: var(--surface); }
@keyframes kouti-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1100px) { .kouti-hello { position: relative; top: auto; right: auto; align-items: flex-end; margin: 0 0 calc(var(--sp-4) * -1); } .kouti-hello .bubble::after { left: auto; right: 50px; transform: none; } .kouti-hello img { width: 130px; } }
@media (prefers-reduced-motion: reduce) { .kouti-hello img { animation: none; } }
/* Gift card: Kouti cut out, sitting on the card's corner, no disc */
.gc-fox { width: 40%; right: -6%; bottom: -4%; border: 0; border-radius: 0; box-shadow: none; transform: none; filter: drop-shadow(var(--shadow-md)); }
@media (max-width: 600px) { .gc-fox { width: 32%; right: -4%; bottom: 0; } }

/* Gift card: Kouti bigger, with his speech bubble and gentle bob, like on the home page */
.gc-fox { width: 52%; right: -14%; bottom: -10%; animation: kouti-bob 3s ease-in-out infinite; }
.gc-bubble { position: absolute; right: -16%; bottom: 72%; z-index: 2; max-width: 190px; margin: 0; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; box-shadow: var(--shadow-md); }
.gc-bubble::after { content: ""; position: absolute; left: 30%; bottom: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--surface); }
@media (max-width: 900px) { .gc-fox { right: -6%; } .gc-bubble { right: -4%; } }
@media (max-width: 600px) { .gc-fox { width: 40%; right: -4%; bottom: -4%; } .gc-bubble { max-width: 170px; right: -2%; bottom: auto; top: -52px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .gc-fox { animation: none; } }

/* Production pass: the hidden sticky button is out of the tab order; Kouti's bubble and fox leave room for the title and the code */
@media (max-width: 700px) {
  .stickycta { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .stickycta.show { visibility: visible; transition: transform .25s ease; }
}
.gc-bubble { right: 2%; bottom: 74%; }
@media (max-width: 600px) { .gc-fox { width: 34%; right: -8%; bottom: -14%; } .gc-bubble { right: -2%; bottom: auto; } }

/* ---------- "Entends ta voix raconter": record and hear one's own voice, in a dialog ---------- */
.tryvoice { width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg, 0 20px 60px rgba(5, 15, 35, .3)); }
.tryvoice::backdrop { background: var(--scrim); }
.tv-in { position: relative; padding: var(--card-pad); }
.tv-in h2 { margin: 0 var(--sp-6) var(--sp-3) 0; font: 600 var(--fs-h3)/var(--lh-heading) var(--display); }
.tv-in .lead { margin: 0 0 var(--sp-4); font-size: var(--fs-md); color: var(--muted); }
.tv-close { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.tv-label { margin: 0 0 var(--sp-2); font-weight: 800; font-size: var(--fs-sm); color: var(--muted); }
.tryvoice .segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-1); margin: 0 0 var(--sp-4); padding: var(--sp-1); border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--surface-sunk); }
.tryvoice .segmented button { min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: 700 var(--fs-sm) var(--body); cursor: pointer; }
.tryvoice .segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.tv-tips { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); color: var(--muted); font-size: var(--fs-sm); }
.tv-read { margin: 0 0 var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface-sunk); font: 400 var(--fs-lg)/1.6 var(--display); }
.tv-meter { height: 10px; margin: 0 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-sunk); overflow: hidden; }
.tv-meter span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .08s linear; }
.tv-time { margin: 0 0 var(--sp-3); color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.tryvoice audio { width: 100%; margin: 0 0 var(--sp-2); }
.tryvoice .consent { margin: var(--sp-3) 0; padding: var(--sp-4); border: 2px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-sm); }
.tryvoice .consent label { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); cursor: pointer; }
.tryvoice .consent label:last-child { margin-bottom: 0; }
.tryvoice .consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.tv-account { margin: var(--sp-4) 0 0; }
.tryvoice .linkbtn, .assure .linkbtn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.tv-wait { display: grid; justify-items: center; gap: var(--sp-2); text-align: center; }
.tv-wait img { width: 140px; height: 140px; object-fit: contain; animation: tv-bob 1.6s ease-in-out infinite; }
@keyframes tv-bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .tv-wait img { animation: none; } }
.tv-lines p { margin: 0 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--line); border-radius: var(--r-sm); background: var(--surface-sunk); font: 400 var(--fs-md)/1.55 var(--display); }
.tv-lines p.on { border-left-color: var(--accent); }
.tv-lines b { display: block; margin-bottom: var(--sp-1); font: 800 var(--fs-xs) var(--body); color: var(--accent); }
.tryvoice .row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 0; }

/* ---------- Peluche Kouti (coming soon) ---------- */
.pl-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.pl-fox { width: min(320px, 70%); height: auto; filter: drop-shadow(0 18px 30px rgba(31, 58, 95, .18)); }
.pl-card { position: absolute; right: 4%; bottom: 6%; display: grid; gap: var(--sp-1); width: 170px; padding: var(--sp-2) var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); transform: rotate(6deg); }
.pl-card img { width: 100%; height: 96px; object-fit: cover; border-radius: var(--r-sm); }
.pl-card b { font: 600 var(--fs-sm)/1.2 var(--display); color: var(--ink); }
.pl-card span { font-size: var(--fs-xs); color: var(--muted); }
.pl-form { max-width: 440px; margin-top: var(--sp-4); }
.pl-form .hint { margin: var(--sp-2) 0 0; }


.pl-teaser img { width: min(280px, 60%); height: auto; justify-self: center; filter: drop-shadow(0 14px 24px rgba(31, 58, 95, .16)); }

/* ---------- Story card opening (/carte/) ---------- */
.cardopen .band-in { display: grid; justify-items: center; text-align: center; min-height: 60vh; align-content: center; }
.cardopen-fox { width: 160px; height: auto; animation: kouti-bob 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cardopen-fox { animation: none; } }

.pl-teaser .pl-book { width: 100%; height: auto; border-radius: var(--r-lg); filter: none; box-shadow: var(--shadow-md); }
.trybtn { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* Terms of use (/cgu/): a short header with Kouti, the essentials as cards, then a sticky summary
   beside numbered section cards. */
.cgu .band-in { display: grid; gap: var(--sp-7); }
.cgu-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--sp-6); align-items: center; }
.cgu-head h1 { max-width: 18ch; }
.cgu-kicker { margin: 0 0 var(--sp-2); color: var(--accent); font-size: var(--fs-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cgu-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 0; }
.cgu-meta span { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--surface-sunk); color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.cgu-mascot { width: 100%; height: auto; }
.cgu-essentials h2 { margin: 0 0 var(--sp-4); font-size: var(--fs-h3); }
.cgu-essentials ul, .cgu-promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.cgu-essentials li { display: grid; gap: var(--sp-2); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.cgu-essentials li span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.cgu-essentials svg, .cgu-promises svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); flex: none; }
.cgu-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.cgu-toc { position: sticky; top: 110px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.cgu-toc p { margin: 0 0 var(--sp-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cgu-toc ol { margin: 0; padding-left: var(--sp-5); }
.cgu-toc li { margin: var(--sp-1) 0; font-size: var(--fs-sm); }
.cgu-toc a { color: var(--ink); text-decoration: none; }
.cgu-toc a:hover, .cgu-toc a:focus-visible { color: var(--accent); text-decoration: underline; }
.cgu-body { display: grid; gap: var(--sp-5); }
.cgu-sec { padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 110px; }
.cgu-sec h2 { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-h3); max-width: none; }
.cgu-num { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 var(--fs-md) / 1 var(--body); }
.cgu-sec .prose { max-width: 70ch; }
.cgu-sec .prose h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-md); }
.cgu-sec .prose > :first-child { margin-top: 0; }
.cgu-ethic { background: var(--ok-soft); border-color: var(--ok-line); }
.cgu-promises { margin: var(--sp-4) 0; }
.cgu-promises li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); line-height: 1.4; }
.cgu-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-radius: var(--r-lg); background: var(--surface-sunk); }
.cgu-contact div { display: grid; gap: var(--sp-1); }
.cgu-contact span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .cgu-layout { grid-template-columns: 1fr; }
  .cgu-toc { position: static; }
  .cgu-head { grid-template-columns: 1fr; }
  .cgu-mascot { display: none; }
  .cgu-sec { padding: var(--sp-5); }
}
.legalpage .prose ul.cgu-promises { padding-left: 0; }
