/* Clube Histórias Mágicas, landing page.
   Cores e tipografia seguem o tema do app (src/theme no chm-expo):
   céu lavanda, menta nas ações, verde esmeralda nos destaques,
   e o violeta com dourado do ícone para os momentos mágicos. */

@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-400Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-600SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-700Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-800ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --surface: #F9F9F9;
  --white: #FFFFFF;
  --ink: #1A1C1C;
  --muted: #5C5D6E;
  --muted-strong: #444655;
  --lav-200: #E1E1F5;
  --lav-150: #E6E6FA;
  --lav-300: #C5C5D8;
  --mist: #E4F4EC;
  --mint: #98FF98;
  --mint-350: #8CF58C;
  --mint-400: #77DC7A;
  --mint-050: #E9FBEA;
  --emerald: #006E20;
  --emerald-600: #1F7A45;
  --teal: #37656B;
  --teal-100: #C0F0F6;
  --gold: #FFC83D;
  --gold-light: #FFF0A8;
  --gold-deep: #F29A1F;
  --violet: #3A1B99;
  --violet-soft: #5A2FC9;
  --violet-deep: #1F0E5E;
  --night: #140A3D;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-xxl: 40px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 12px 32px rgba(185, 185, 230, 0.5);
  --shadow-poster: 0 14px 34px rgba(31, 14, 94, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Barra de rolagem mágica: trilho lavanda e um cometa violeta com estrela dourada. */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: linear-gradient(180deg, var(--lav-200), var(--lav-150) 50%, var(--mist)); }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent; border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF0A8' d='M12 0C12 6.6 17.4 12 24 12C17.4 12 12 17.4 12 24C12 17.4 6.6 12 0 12C6.6 12 12 6.6 12 0Z'/%3E%3C/svg%3E") center / 8px 8px no-repeat padding-box,
    linear-gradient(180deg, var(--gold) 0%, var(--violet-soft) 45%, var(--violet) 100%) padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFFFFF' d='M12 0C12 6.6 17.4 12 24 12C17.4 12 12 17.4 12 24C12 17.4 6.6 12 0 12C6.6 12 12 6.6 12 0Z'/%3E%3C/svg%3E") center / 9px 9px no-repeat padding-box,
    linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 25%, var(--violet-soft) 70%, var(--violet) 100%) padding-box;
}
::-webkit-scrollbar-corner { background: var(--lav-150); }
/* Firefox não aceita gradiente: fica nas cores da marca. Chrome ignora o ::-webkit se isso valer para ele. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--violet-soft) var(--lav-200); }
}

/* Rastro de progresso no topo, com a estrela andando junto. */
.scroll-trail {
  position: fixed; top: 0; left: 0; z-index: 60; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold) 60%, var(--violet-soft));
  transform-origin: left; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px rgba(255, 200, 61, 0.7); pointer-events: none;
}
.scroll-star {
  position: fixed; top: -4px; z-index: 61; width: 16px; height: 16px;
  left: calc(var(--p, 0) * (100% - 16px));
  fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold));
  transform: rotate(calc(var(--p, 0) * 720deg));
  opacity: var(--show, 0); transition: opacity 0.3s; pointer-events: none;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-400));
  color: var(--emerald);
  box-shadow: 0 10px 26px rgba(31, 122, 69, 0.22), inset 0 -3px 0 rgba(0, 110, 32, 0.12);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(31, 122, 69, 0.3), inset 0 -3px 0 rgba(0, 110, 32, 0.12); }
.btn--ghost { background: var(--white); color: var(--emerald); box-shadow: inset 0 0 0 2px var(--lav-300); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--mint-400); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn--link { background: none; color: var(--teal); padding: 0 8px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.pulse { position: relative; isolation: isolate; }
.pulse::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--mint); animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.18, 1.4); opacity: 0; } }

/* ---------- Barra do topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 12px 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.topbar.is-scrolled {
  background: rgba(249, 249, 249, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(185, 185, 230, 0.35);
  padding: 8px 0;
}
.topbar__inner { display: flex; align-items: center; gap: 24px; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 14px rgba(58, 27, 153, 0.25); transition: transform 0.4s var(--ease-bounce); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__name { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: -0.02em; color: var(--emerald); }
.brand__name small { font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; }
.topbar__nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted-strong); transition: background 0.2s, color 0.2s; }
.topbar__nav a:hover { background: var(--white); color: var(--emerald); }
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- Céu e brilhos ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; fill: var(--white); opacity: 0.85; filter: drop-shadow(0 10px 18px rgba(185, 185, 230, 0.45)); }
.cloud--1 { width: 180px; height: 90px; top: 16%; left: -200px; animation: drift 60s linear infinite; }
.cloud--2 { width: 120px; height: 60px; top: 58%; left: -140px; animation: drift 46s linear infinite -20s; opacity: 0.7; }
.cloud--3 { width: 240px; height: 120px; top: 8%; left: -260px; animation: drift 80s linear infinite -48s; opacity: 0.6; }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }

.twinkles { position: absolute; inset: 0; pointer-events: none; }
.twinkle {
  position: absolute; width: var(--s, 12px); height: var(--s, 12px);
  fill: var(--c, #fff); opacity: 0;
  animation: twinkle var(--t, 3.6s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: var(--o, 0.9); transform: scale(1) rotate(45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 36px;
  background: linear-gradient(160deg, var(--lav-200) 0%, var(--lav-150) 45%, var(--mist) 100%);
  border-radius: 0 0 var(--r-xxl) var(--r-xxl);
  box-shadow: var(--shadow-glow);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--mint); color: var(--emerald); font-weight: 700; font-size: 15px;
}
.badge svg { width: 15px; height: 15px; fill: currentColor; animation: spin-soft 6s ease-in-out infinite; }
@keyframes spin-soft { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(180deg) scale(1.2); } }
.hero__title { margin-top: 18px; font-weight: 800; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; }
.magic-word { position: relative; display: inline-block; isolation: isolate; color: var(--violet-soft); }
.magic-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.26em; z-index: -1;
  background: var(--gold); border-radius: 999px; opacity: 0.55;
  transform-origin: left; transform: scaleX(0); animation: underline 0.9s 0.7s var(--ease-out) forwards;
}
.magic-word svg { position: absolute; top: -0.18em; right: -0.42em; width: 0.42em; height: 0.42em; fill: var(--gold); animation: twinkle 2.6s ease-in-out infinite; --o: 1; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__lead { margin-top: 20px; max-width: 540px; font-size: 19px; color: var(--muted-strong); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero__facts li {
  padding: 8px 14px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-card);
  font-size: 14px; color: var(--muted);
}
.hero__facts strong { color: var(--emerald); font-weight: 800; font-size: 16px; margin-right: 2px; }

/* Palco: livro aberto, estrela e capas voando */
.stage { position: relative; aspect-ratio: 1 / 0.92; width: 100%; max-width: 560px; justify-self: center; }
.stage [data-depth] { transition: translate 0.4s var(--ease-out); }
.stage__halo {
  position: absolute; inset: 8% 6% 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 74, 0.45), rgba(255, 210, 74, 0) 65%);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
.stage__book { position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%; filter: drop-shadow(0 18px 24px rgba(31, 14, 94, 0.25)); }
.page-flip { transform-box: view-box; transform-origin: 200px 120px; animation: flip 7s var(--ease-out) infinite; }
@keyframes flip {
  0%, 62% { transform: scaleX(1); opacity: 0; }
  64% { opacity: 1; }
  80% { transform: scaleX(-1); opacity: 1; }
  82%, 100% { transform: scaleX(-1); opacity: 0; }
}
.stage__star {
  position: absolute; left: 50%; top: 24%; width: 23%; margin-left: -11.5%;
  filter: drop-shadow(0 0 22px rgba(255, 200, 61, 0.85));
  animation: star-float 4.5s ease-in-out infinite;
}
@keyframes star-float {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  50% { transform: translateY(-16px) rotate(12deg) scale(1.06); }
}
.sparks { position: absolute; left: 30%; right: 30%; bottom: 30%; height: 46%; pointer-events: none; }
.sparks i {
  position: absolute; bottom: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
  animation: rise 3.6s ease-in infinite;
}
.sparks i:nth-child(1) { left: 10%; animation-delay: 0s; }
.sparks i:nth-child(2) { left: 28%; animation-delay: 0.9s; width: 6px; height: 6px; }
.sparks i:nth-child(3) { left: 46%; animation-delay: 1.8s; }
.sparks i:nth-child(4) { left: 64%; animation-delay: 0.4s; width: 5px; height: 5px; }
.sparks i:nth-child(5) { left: 82%; animation-delay: 2.4s; }
.sparks i:nth-child(6) { left: 38%; animation-delay: 2.9s; width: 6px; height: 6px; background: var(--white); }
.sparks i:nth-child(7) { left: 56%; animation-delay: 1.3s; width: 7px; height: 7px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.sparks i:nth-child(8) { left: 20%; animation-delay: 3.2s; width: 5px; height: 5px; background: var(--white); }
@keyframes rise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--x, 14px), -230px) scale(1.1); opacity: 0; }
}
.sparks i:nth-child(odd) { --x: -18px; }

.fly {
  position: absolute; margin: 0; width: 34%;
  border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  border: 5px solid var(--white); box-shadow: var(--shadow-poster);
  animation: fly 6s ease-in-out infinite;
}
.fly img { width: 100%; height: auto; border-radius: calc(var(--r-lg) - 6px); }
.fly--a { left: 0; top: 6%; --r: -9deg; }
.fly--b { right: 0; top: 0; --r: 8deg; width: 38%; animation-delay: -2s; }
.fly--c { right: 6%; top: 44%; --r: 5deg; width: 27%; animation-delay: -4s; }
@keyframes fly {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r) * 0.6)); }
}

/* Vitrine rolando de capas */
.showcase { position: relative; display: grid; gap: 14px; margin-top: 54px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.showcase__row { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.showcase__row--reverse { animation-direction: reverse; animation-duration: 70s; }
.showcase:hover .showcase__row { animation-play-state: paused; }
.showcase__row img {
  width: 150px; height: 150px; object-fit: cover; border-radius: var(--r-md);
  box-shadow: var(--shadow-soft); transition: transform 0.35s var(--ease-bounce);
}
.showcase__row img:hover { transform: scale(1.08) rotate(-2deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-600);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.section__title { margin-top: 12px; max-width: 760px; font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
.section__lead { margin-top: 18px; max-width: 680px; font-size: 19px; color: var(--muted); }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pillar {
  padding: 28px; border-radius: var(--r-lg); background: var(--white);
  border: 1px solid #F0F0F0; box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s;
}
.pillar:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-glow); }
.pillar h3 { margin-top: 20px; font-size: 21px; font-weight: 800; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.pillar__icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: var(--r-md);
  transition: transform 0.5s var(--ease-bounce);
}
.pillar:hover .pillar__icon { transform: rotate(-10deg) scale(1.1); }
.pillar__icon svg { width: 32px; height: 32px; }
.pillar__icon--mint { background: var(--mint-050); color: var(--emerald-600); fill: var(--emerald-600); }
.pillar__icon--teal { background: var(--teal-100); color: var(--teal); fill: var(--teal); }
.pillar__icon--gold { background: #FFF4D1; color: var(--violet-soft); fill: var(--violet-soft); }

/* Passos */
.steps { background: linear-gradient(180deg, var(--surface), #F5F5FB 50%, var(--surface)); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 56px 0 0; padding: 0; list-style: none; }
.steps__path { position: absolute; left: 6%; right: 6%; top: 30px; width: 88%; height: 60px; overflow: visible; pointer-events: none; }
.steps__path path {
  fill: none; stroke: var(--lav-300); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 0.012 0.018; stroke-dashoffset: 0;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num {
  position: absolute; top: -6px; left: calc(50% + 30px); z-index: 2;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--emerald); color: var(--white); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 110, 32, 0.3);
}
.step__art {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 104px; height: 104px; margin: 0 auto; border-radius: 34px;
  box-shadow: var(--shadow-soft); transition: transform 0.5s var(--ease-bounce);
}
.step:hover .step__art { transform: translateY(-8px) rotate(6deg); }
.step__art svg { width: 50px; height: 50px; }
.step__art--lav { background: var(--lav-200); color: var(--violet-soft); }
.step__art--mint { background: var(--mint); color: var(--emerald); }
.step__art--teal { background: var(--teal-100); color: var(--teal); }
.step__art--gold { background: #FFE7A3; color: var(--violet); }
.step h3 { margin-top: 22px; font-size: 20px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Formatos */
.formats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.format { display: flex; flex-direction: column; gap: 26px; padding: 30px; border-radius: var(--r-xl); }
.format--hq { background: linear-gradient(160deg, var(--white), var(--mint-050)); border: 1px solid #E3F5E4; box-shadow: var(--shadow-card); }
.format--audio { background: linear-gradient(160deg, var(--violet), var(--violet-deep)); color: var(--white); box-shadow: 0 20px 40px rgba(31, 14, 94, 0.3); }
.format h3 { margin-top: 14px; font-size: 26px; font-weight: 800; }
.format__head p { margin-top: 8px; color: var(--muted); }
.format--audio .format__head p { color: #D7D0F5; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.chip svg { width: 18px; height: 18px; }
.chip--mint { background: var(--mint); color: var(--emerald); }
.chip--night { background: rgba(255, 200, 61, 0.18); color: var(--gold); }

.comic { margin-top: auto; }
.comic__pages { position: relative; aspect-ratio: 1 / 1.42; max-width: 400px; margin: 0 auto; }
.comic__page {
  position: absolute; inset: 0; margin: 0; padding: 10px 10px 0;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-poster);
  opacity: 0; transform: translateX(30px) rotate(3deg) scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.comic__page.is-active { opacity: 1; transform: none; z-index: 2; }
.comic__page.is-leaving { opacity: 0; transform: translateX(-40px) rotate(-5deg) scale(0.94); }
.comic__page img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); }
.comic__page figcaption { display: flex; align-items: center; flex: 1; padding: 10px 8px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.comic__source { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.comic__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.comic__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: var(--lav-300); cursor: pointer; transition: width 0.3s var(--ease-out), background 0.3s;
}
.comic__dots button[aria-selected="true"] { width: 28px; background: var(--emerald-600); }

.player {
  margin-top: auto; padding: 22px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.player__cover { position: relative; width: 62%; max-width: 230px; margin: 0 auto; }
.player__cover img { position: relative; z-index: 1; width: 100%; border-radius: var(--r-lg); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); animation: bob 5s ease-in-out infinite; }
.player__glow { position: absolute; inset: 10%; border-radius: 50%; background: var(--gold); filter: blur(40px); opacity: 0.45; animation: breathe 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.player__info { margin-top: 20px; text-align: center; }
.player__title { font-weight: 800; font-size: 20px; }
.player__voice { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--gold); font-weight: 600; font-size: 15px; }
.player__voice svg { width: 16px; height: 16px; color: var(--gold); }
.eq { display: flex; align-items: center; justify-content: center; gap: 4px; height: 46px; margin-top: 16px; }
.eq i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--gold-light), var(--gold-deep)); transform-origin: center; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(3n) { animation-duration: 0.9s; }
.eq i:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -0.3s; }
.eq i:nth-child(4n) { animation-delay: -0.6s; }
.eq i:nth-child(5n) { animation-duration: 0.8s; animation-delay: -0.2s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.player__bar { height: 6px; margin-top: 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.player__bar span { display: block; height: 100%; width: 34%; border-radius: inherit; background: var(--mint); animation: progress 20s linear infinite; }
@keyframes progress { from { width: 20%; } to { width: 80%; } }
.player__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.player__time { font-size: 13px; color: #BDB3EE; font-variant-numeric: tabular-nums; }
.player__play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--mint); color: var(--emerald); box-shadow: 0 0 0 8px rgba(152, 255, 152, 0.15); }
.player__play svg { width: 24px; height: 24px; fill: currentColor; }

/* Galeria */
.gallery { background: linear-gradient(180deg, var(--surface), var(--lav-150)); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.gallery__grid figure {
  margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-bounce), box-shadow 0.3s;
}
.gallery__grid figure:nth-child(even) { transform: translateY(22px); }
.gallery__grid figure:hover { transform: translateY(-6px) scale(1.06) rotate(-2deg); box-shadow: var(--shadow-poster); z-index: 1; }
.gallery__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Noite das 18h */
.night { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 130px) 0; background: radial-gradient(120% 90% at 80% 0%, var(--violet-soft) 0%, var(--violet) 40%, var(--night) 100%); color: var(--white); }
.night .section__lead { color: #D7D0F5; }
.night__sky { position: absolute; inset: 0; pointer-events: none; }
.night__moon { position: absolute; top: 9%; right: 8%; width: 90px; height: 90px; fill: #FFF3C4; filter: drop-shadow(0 0 28px rgba(255, 233, 160, 0.7)); animation: bob 8s ease-in-out infinite; }
.shooting {
  position: absolute; top: 18%; left: 10%; width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  transform: rotate(-18deg); opacity: 0; animation: shoot 7s ease-in infinite 2s;
}
@keyframes shoot {
  0%, 88% { opacity: 0; transform: translate(0, 0) rotate(-18deg); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(420px, 140px) rotate(-18deg); }
}
.night__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.week { padding: 26px; border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); }
.week__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week__days span {
  position: relative; display: grid; place-items: center; height: 56px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06); color: #BDB3EE; font-weight: 700; font-size: 14px;
}
.week__days .is-on { background: var(--mint); color: var(--emerald); font-weight: 800; animation: day-pop 3s var(--ease-bounce) infinite; }
.week__days .is-on:nth-child(3) { animation-delay: 1s; }
.week__days .is-on:nth-child(5) { animation-delay: 2s; }
.week__days .is-on svg { position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
@keyframes day-pop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px) scale(1.06); } }
.arrival {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px;
  border-radius: var(--r-lg); background: var(--white); color: var(--ink);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  animation: arrive 6s var(--ease-bounce) infinite;
}
.arrival img { width: 78px; height: 78px; border-radius: var(--r-md); object-fit: cover; }
.arrival__tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--emerald-600); }
.new { padding: 2px 9px; border-radius: 999px; background: var(--emerald-600); color: var(--white); font-size: 12px; font-weight: 800; }
.arrival__title { margin-top: 4px; font-weight: 800; font-size: 18px; }
.arrival__time { font-size: 14px; color: var(--muted); }
@keyframes arrive {
  0% { transform: translateY(18px) scale(0.96); opacity: 0; }
  10%, 85% { transform: none; opacity: 1; }
  100% { transform: translateY(-6px); opacity: 0; }
}
.progress { margin-top: 18px; }
.progress__bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mint-400), var(--mint)); transition: width 2.4s var(--ease-out); }
.week.is-visible .progress__bar span { width: 99%; }
.progress p { margin-top: 10px; font-size: 14px; color: #D7D0F5; }
.progress strong { color: var(--mint); font-size: 16px; }

/* Cuidado */
.care__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.care__item { padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid #F0F0F0; box-shadow: var(--shadow-card); }
.care__item h3 { margin-top: 18px; font-size: 20px; font-weight: 800; }
.care__item p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.care__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; }
.care__icon svg { width: 30px; height: 30px; }
.care__icon--mint { background: var(--mint-050); color: var(--emerald-600); }
.care__icon--teal { background: var(--teal-100); color: var(--teal); }
.care__icon--gold { background: #FFF4D1; color: var(--coral, #C2410C); }

/* Perguntas */
.faq { padding-top: 0; }
.faq__list { display: grid; gap: 12px; margin-top: 36px; }
.faq details { border-radius: var(--r-md); background: var(--white); border: 1px solid #F0F0F0; box-shadow: var(--shadow-card); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23006E20' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.35s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details[open] p { animation: fade-down 0.4s var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* CTA final */
.final { padding: 0 var(--gutter) clamp(72px, 10vw, 110px); }
.final__card {
  position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: var(--r-xxl); text-align: center; color: var(--white);
  background: radial-gradient(90% 120% at 50% 0%, var(--violet-soft), var(--violet) 55%, var(--violet-deep));
  box-shadow: 0 30px 60px rgba(31, 14, 94, 0.3);
}
.final__star { width: 70px; height: 70px; margin: 0 auto; filter: drop-shadow(0 0 18px rgba(255, 200, 61, 0.9)); animation: star-float 4s ease-in-out infinite; }
.final__card h2 { position: relative; max-width: 720px; margin: 22px auto 0; font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.03em; }
.final__card p { position: relative; max-width: 560px; margin: 16px auto 0; font-size: 19px; color: #D7D0F5; }
.final__ctas { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* Rodapé */
.footer { padding: 30px 0 40px; border-top: 1px solid #ECECF3; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { font-size: 14px; color: var(--muted); }
.brand--small img { width: 36px; height: 36px; border-radius: 10px; }
.brand--small .brand__name { font-size: 16px; }

/* ---------- Formulário em janela ---------- */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
}
.modal[open] { animation: modal-in 0.45s var(--ease-bounce); }
.modal::backdrop { background: rgba(20, 10, 61, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.3s ease; }
.modal.is-closing { animation: modal-out 0.22s ease forwards; }
.modal.is-closing::backdrop { animation: fade 0.22s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes fade { from { opacity: 0; } }
.modal__card {
  position: relative; max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 36px 34px 30px; border-radius: var(--r-xl);
  background: linear-gradient(170deg, var(--white) 0%, var(--white) 60%, var(--mist) 100%);
  box-shadow: 0 30px 70px rgba(20, 10, 61, 0.35);
  scrollbar-width: none;
}
.modal__card::-webkit-scrollbar { display: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--lav-150); color: var(--muted-strong); transition: transform 0.3s var(--ease-bounce), background 0.2s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--lav-200); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.modal__head { text-align: center; }
.modal__star { width: 46px; height: 46px; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(255, 200, 61, 0.8)); animation: star-float 4s ease-in-out infinite; }
.modal__head h2, .modal__done h2 { margin-top: 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.modal__head p, .modal__done p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.form { display: grid; gap: 16px; margin-top: 24px; }
.form.shake { animation: shake 0.45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.field em { font-style: normal; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  border: 2px solid var(--lav-300); background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #9A9BAA; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--mint-400); box-shadow: 0 0 0 4px rgba(152, 255, 152, 0.35); }
.field__error { display: none; font-size: 13px; font-weight: 600; color: #BA1A1A; }
.is-invalid .field__error, .check.is-invalid + .field__error { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E5A29B; }
.age-input { position: relative; display: block; max-width: 180px; }
.age-input input { padding-right: 64px; font-weight: 700; font-size: 18px; }
.age-input__suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); pointer-events: none; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--muted-strong); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--emerald-600); }
.field__error--check { margin-top: -10px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__submit.is-loading { pointer-events: none; opacity: 0.8; }
.form__submit.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal__done { position: relative; padding: 24px 0 6px; text-align: center; }
.modal__done .btn { margin-top: 24px; }
.modal__star--big { width: 84px; height: 84px; animation: pop-star 0.8s var(--ease-bounce), star-float 4s 0.8s ease-in-out infinite; }
@keyframes pop-star { from { transform: scale(0) rotate(-90deg); } }
.done__burst { position: absolute; left: 50%; top: 66px; width: 0; height: 0; }
.done__burst i {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  animation: burst 0.9s var(--ease-out) forwards;
}
.done__burst i:nth-child(1) { --x: -90px; --y: -40px; }
.done__burst i:nth-child(2) { --x: 90px; --y: -40px; background: var(--mint); }
.done__burst i:nth-child(3) { --x: -60px; --y: 50px; background: var(--violet-soft); }
.done__burst i:nth-child(4) { --x: 60px; --y: 50px; }
.done__burst i:nth-child(5) { --x: 0; --y: -80px; background: var(--mint); }
.done__burst i:nth-child(6) { --x: -110px; --y: 10px; background: var(--teal-100); }
.done__burst i:nth-child(7) { --x: 110px; --y: 10px; background: var(--violet-soft); }
.done__burst i:nth-child(8) { --x: 0; --y: 70px; }
@keyframes burst { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }

/* ---------- Entrada ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.8s var(--ease-out) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .steps__path path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.js .steps__list.is-visible .steps__path path { stroke-dashoffset: 0; }

/* ---------- Telas menores ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__ctas, .hero__facts { justify-content: center; }
  .stage { max-width: 440px; }
  .pillars, .care__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps__path { display: none; }
  .formats__grid, .night__inner { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__lead, .section__lead, .final__card p { font-size: 17px; }
  .btn--lg { width: 100%; }
  .hero__ctas { flex-direction: column; }
  .hero__facts li { font-size: 13px; }
  .showcase { margin-top: 36px; }
  .showcase__row img { width: 112px; height: 112px; }
  .steps__list { grid-template-columns: 1fr; }
  .step__art { width: 92px; height: 92px; border-radius: 30px; }
  .format { padding: 22px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .comic__pages { aspect-ratio: 1 / 1.5; }
  .comic__page figcaption { font-size: 14px; }
  .gallery__grid figure:nth-child(even) { transform: none; }
  .modal__card { padding: 26px 18px 22px; border-radius: var(--r-lg); }
  .week { padding: 18px; }
  .week__days span { height: 46px; font-size: 12px; }
  .night__moon { width: 60px; height: 60px; }
  .cloud--3 { display: none; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps__path path { stroke-dashoffset: 0; }
  .week .progress__bar span { width: 99%; }
  .magic-word::after { transform: none; }
}
