/* Confete Play — tokens e componentes (plan.md §5).
   Sem build: um arquivo, organizado por seções. Classes em português, prefixo-free. */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  /* cores */
  --roxo-festa:   #4B1FB8;  /* fundo do hero e das faixas */
  --roxo-noite:   #2A1070;  /* rodapé, texto sobre claro */
  --lilas-nuvem:  #F3EEFF;  /* fundos claros, cards do painel */
  --amarelo-sol:  #FFC21A;  /* CTA principal (texto --roxo-noite) */
  --rosa-chiclete:#F2378F;  /* destaques, depoimentos */
  --verde-grama:  #7ED957;  /* sucesso, faixa de grama */
  --azul-ceu:     #2FA8FF;
  --laranja-bala: #FF8A3D;
  --tinta:        #24124D;  /* texto principal */
  --branco:       #FFFFFF;

  /* derivados */
  --tinta-suave:  #5B4A80;  /* texto secundário sobre branco (AA) */
  --lilas-borda:  #DDD0FF;  /* contornos decorativos */
  --borda-campo:  #8E7BCF;  /* contorno de campos: 3:1 sobre branco */
  --rosa-texto:   #C2185B;  /* rosa para texto pequeno ou fundo de texto branco (AA) */
  --erro:         #C81E5B;
  --amarelo-hover:#FFD24D;

  /* forma */
  --raio-card: 28px;  --raio-pill: 999px;  --raio-chip: 16px;  --raio-campo: 16px;
  --sombra: 0 12px 30px rgba(42,16,112,.18);
  --sombra-leve: 0 4px 14px rgba(42,16,112,.10);

  /* tipografia */
  --fonte-titulo: "Fredoka", system-ui, sans-serif;  /* 600/700, arredondada */
  --fonte-texto:  "Nunito", system-ui, sans-serif;   /* 400/600/800 */

  /* espaço */
  --gutter: 16px;
  --largura: 1120px;
  --secao-y: clamp(56px, 9vw, 112px);

  /* movimento */
  --ease-mola: cubic-bezier(.34, 1.56, .64, 1);
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--roxo-festa); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--roxo-festa); outline-offset: 3px; border-radius: 6px; }
.sobre-escuro :focus-visible { outline-color: var(--amarelo-sol); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular-link { position: absolute; left: 8px; top: -60px; z-index: 100; }
.pular-link:focus { top: 8px; }

/* ───────────────────────── Layout ───────────────────────── */
.container { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--gutter); }
.secao { position: relative; padding-block: var(--secao-y); isolation: isolate; }
.secao--roxo    { background: var(--roxo-festa); color: var(--branco); }
.secao--noite   { background: var(--roxo-noite); color: var(--branco); }
.secao--lilas   { background: var(--lilas-nuvem); }
.secao--amarelo { background: var(--amarelo-sol); color: var(--roxo-noite); }
/* faixa rosa: branco só passa AA em texto grande; conteúdo corrido vai dentro de .card */
.secao--rosa    { background: var(--rosa-chiclete); color: var(--branco); }
.secao--roxo a:not(.btn), .secao--noite a:not(.btn), .secao--rosa a:not(.btn) { color: var(--amarelo-sol); }

.secao__topo { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.secao__topo p { color: inherit; opacity: .85; font-size: 1.125rem; }

.sobrelinha {
  display: inline-block; margin-bottom: 12px;
  font-weight: 800; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rosa-texto);
}
.secao--roxo .sobrelinha, .secao--noite .sobrelinha { color: var(--amarelo-sol); }

/* palavra destacada nos títulos: "Convites que <span class=destaque>ganham vida</span>" */
.destaque { color: var(--roxo-festa); }
.secao--roxo .destaque, .secao--noite .destaque, .secao--rosa .destaque { color: var(--amarelo-sol); }
.destaque--rosa { color: var(--rosa-texto); }
.destaque--sublinhado {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amarelo-sol) 70%, transparent) 62% 92%, transparent 92%);
}

.grade { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grade--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grade--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grade--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pilha { display: flex; flex-direction: column; gap: 16px; }
.linha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.centro { text-align: center; justify-content: center; }

/* ícone de traço (sprite icones.svg) */
.icone { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────── Botões ───────────────────────── */
.btn {
  --btn-bg: var(--amarelo-sol);
  --btn-cor: var(--roxo-noite);
  --btn-borda: transparent;
  --btn-sombra: #D99A00;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid var(--btn-borda); border-radius: var(--raio-pill);
  background: var(--btn-bg); color: var(--btn-cor);
  font: 800 1rem/1.2 var(--fonte-texto);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--btn-sombra);
  transition: transform .18s var(--ease-mola), box-shadow .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--btn-sombra); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--btn-sombra); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn__seta { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--roxo-noite); color: var(--amarelo-sol); font-size: .9em; transition: transform .2s var(--ease-mola); }
.btn:hover .btn__seta { transform: translateX(3px); }
.btn svg { width: 20px; height: 20px; }

.btn--secundario { --btn-bg: var(--branco); --btn-cor: var(--roxo-noite); --btn-borda: var(--roxo-noite); box-shadow: none; }
.btn--secundario:hover, .btn--secundario:active { box-shadow: none; background: var(--lilas-nuvem); }
.secao--roxo .btn--secundario, .secao--noite .btn--secundario, .btn--claro {
  --btn-bg: transparent; --btn-cor: var(--branco); --btn-borda: var(--branco);
}
.secao--roxo .btn--secundario:hover, .secao--noite .btn--secundario:hover, .btn--claro:hover { background: rgba(255,255,255,.12); }
.btn--roxo { --btn-bg: var(--roxo-festa); --btn-cor: var(--branco); --btn-sombra: var(--roxo-noite); }
.btn--roxo .btn__seta { background: var(--amarelo-sol); color: var(--roxo-noite); }
.btn--texto { --btn-bg: transparent; --btn-cor: var(--roxo-festa); box-shadow: none; padding-inline: 12px; }
.btn--texto:hover, .btn--texto:active { box-shadow: none; transform: none; text-decoration: underline; }
.btn--grande { min-height: 58px; padding: 16px 36px; font-size: 1.125rem; }
.btn--bloco { width: 100%; }

/* botão redondo (play, ações do convite) */
.btn-redondo {
  display: inline-grid; place-items: center; width: 64px; height: 64px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--amarelo-sol); color: var(--roxo-noite);
  box-shadow: var(--sombra); transition: transform .2s var(--ease-mola);
}
.btn-redondo:hover { transform: scale(1.06); }
.btn-redondo svg { width: 45%; height: 45%; }
.btn-redondo--play { width: 88px; height: 88px; }
.btn-redondo--play svg { margin-left: 8%; }

/* ───────────────────────── Cards ───────────────────────── */
.card {
  position: relative;
  background: var(--branco); color: var(--tinta);
  border-radius: var(--raio-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--sombra);
}
.card--plano { box-shadow: none; border: 2px solid var(--lilas-borda); }
.card--lilas { background: var(--lilas-nuvem); box-shadow: none; }
.card--cor { --card-cor: var(--roxo-festa); background: var(--card-cor); color: var(--branco); }
.card--cor .chip { background: rgba(255,255,255,.2); }
.card--clicavel { text-decoration: none; transition: transform .25s var(--ease-mola), box-shadow .25s; }
.card--clicavel:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 20px 40px rgba(42,16,112,.24); }
.card__midia { margin: calc(-1 * clamp(20px, 3vw, 32px)); margin-bottom: 20px; border-radius: var(--raio-card) var(--raio-card) 0 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lilas-nuvem); }
.card__midia img, .card__midia video { width: 100%; height: 100%; object-fit: cover; }
.card__titulo { margin-bottom: 6px; }
.card__texto { color: var(--tinta-suave); margin: 0; }
.card--cor .card__texto { color: inherit; opacity: .9; }
.card__selo { position: absolute; top: 16px; right: 16px; }

/* ───────────────────────── Chips (ícone em quadrado arredondado) ───────────────────────── */
.chip {
  --chip-cor: var(--roxo-festa);
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: var(--raio-chip);
  background: var(--chip-cor); color: var(--branco);
}
.chip svg { width: 28px; height: 28px; }
.chip--pequeno { width: 40px; height: 40px; border-radius: 12px; }
.chip--pequeno svg { width: 20px; height: 20px; }
.chip--rosa    { --chip-cor: var(--rosa-chiclete); }
.chip--amarelo { --chip-cor: var(--amarelo-sol); color: var(--roxo-noite); }
.chip--verde   { --chip-cor: var(--verde-grama); color: var(--roxo-noite); }
.chip--azul    { --chip-cor: var(--azul-ceu); color: var(--roxo-noite); }
.chip--laranja { --chip-cor: var(--laranja-bala); color: var(--roxo-noite); }
.chip--noite   { --chip-cor: var(--roxo-noite); }
/* alterna as cores automaticamente numa lista */
.chips-alternados > :nth-child(6n+1) .chip { --chip-cor: var(--rosa-chiclete); }
.chips-alternados > :nth-child(6n+2) .chip { --chip-cor: var(--azul-ceu); color: var(--roxo-noite); }
.chips-alternados > :nth-child(6n+3) .chip { --chip-cor: var(--laranja-bala); color: var(--roxo-noite); }
.chips-alternados > :nth-child(6n+4) .chip { --chip-cor: var(--verde-grama); color: var(--roxo-noite); }
.chips-alternados > :nth-child(6n+5) .chip { --chip-cor: var(--amarelo-sol); color: var(--roxo-noite); }
.chips-alternados > :nth-child(6n)   .chip { --chip-cor: var(--roxo-festa); }

/* item com chip + texto (ex.: "Pronto em até 48 h") */
.item-chip { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.item-chip--coluna { flex-direction: column; align-items: flex-start; gap: 16px; font-weight: 400; }

/* pílulas / selos de texto */
.selo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--raio-pill);
  background: var(--lilas-nuvem); color: var(--roxo-festa);
  font-size: .8125rem; font-weight: 800; line-height: 1.6; white-space: nowrap;
}
.selo--amarelo { background: var(--amarelo-sol); color: var(--roxo-noite); }
.selo--rosa    { background: var(--rosa-texto); color: var(--branco); }
.selo--verde   { background: #E3F8D8; color: #24561A; }
.selo--alerta  { background: #FFE7D6; color: #8A3500; }
.selo--erro    { background: #FFE0EB; color: var(--erro); }

/* ───────────────────────── Formulário (base para o assistente e o painel) ───────────────────────── */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo__rotulo { font-weight: 800; }
.campo__ajuda { font-size: .875rem; color: var(--tinta-suave); }
.campo__erro { font-size: .875rem; color: var(--erro); font-weight: 600; }
.entrada {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid var(--borda-campo); border-radius: var(--raio-campo);
  background: var(--branco); color: var(--tinta);
  font: 600 1rem var(--fonte-texto);
  transition: border-color .15s, box-shadow .15s;
}
textarea.entrada { min-height: 110px; resize: vertical; }
.entrada::placeholder { color: #7D6FA6; font-weight: 400; }
.entrada:focus { outline: none; border-color: var(--roxo-festa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--roxo-festa) 18%, transparent); }
.entrada[aria-invalid="true"] { border-color: var(--erro); }

/* opção grande tocável (radio/checkbox em card) */
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcao__corpo {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  height: 100%; padding: 20px 12px;
  border: 2px solid var(--borda-campo); border-radius: var(--raio-card);
  background: var(--branco); font-weight: 800;
  transition: border-color .15s, background .15s, transform .2s var(--ease-mola);
}
.opcao:hover .opcao__corpo { border-color: var(--roxo-festa); }
.opcao input:checked + .opcao__corpo { border-color: var(--roxo-festa); background: var(--lilas-nuvem); transform: scale(1.02); }
.opcao input:focus-visible + .opcao__corpo { outline: 3px solid var(--roxo-festa); outline-offset: 3px; }

.aviso {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--raio-chip);
  background: var(--lilas-nuvem); color: var(--tinta); font-size: .9375rem;
}
.aviso--amarelo { background: #FFF4D1; }
.aviso--erro    { background: #FFE0EB; }

/* ───────────────────────── Divisórias: ondas e nuvens ───────────────────────── */
/* <svg class="divisoria"> fica no fim de uma seção e pinta com a cor da próxima (currentColor). */
.divisoria {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  width: 100%; height: clamp(40px, 7vw, 96px); pointer-events: none;
}
.divisoria--topo { top: -1px; bottom: auto; transform: scaleY(-1); }
.divisoria path { fill: currentColor; }
.cor-branco  { color: var(--branco); }
.cor-roxo    { color: var(--roxo-festa); }
.cor-noite   { color: var(--roxo-noite); }
.cor-lilas   { color: var(--lilas-nuvem); }
.cor-amarelo { color: var(--amarelo-sol); }
.cor-rosa    { color: var(--rosa-chiclete); }
.cor-verde   { color: var(--verde-grama); }

/* faixa de grama antes do CTA final */
.grama { height: 28px; background:
  radial-gradient(circle at 12px 28px, var(--verde-grama) 14px, transparent 15px) 0 0 / 24px 28px repeat-x; }

/* bloco em forma de nuvem (CTA final) */
.bloco-nuvem {
  position: relative; isolation: isolate; background: var(--amarelo-sol); color: var(--roxo-noite);
  border-radius: 48px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center;
}
.bloco-nuvem::before, .bloco-nuvem::after {
  content: ""; position: absolute; z-index: -1; background: var(--amarelo-sol); border-radius: 50%;
}
.bloco-nuvem::before { width: 38%; aspect-ratio: 1; top: -14%; left: 10%; }
.bloco-nuvem::after  { width: 28%; aspect-ratio: 1; top: -9%; right: 14%; }

/* ───────────────────────── Doodles ───────────────────────── */
/* <svg class="doodle" style="--x:8%;--y:20%"><use href="/static/svg/doodles.svg#estrela"/></svg> */
.doodle {
  position: absolute; left: var(--x, auto); top: var(--y, auto); right: var(--r, auto); bottom: var(--b, auto);
  z-index: -1; width: var(--tam, 56px); height: var(--tam, 56px);
  color: var(--doodle-cor, currentColor); opacity: var(--op, .45);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(var(--giro, 0deg));
  pointer-events: none;
}
.doodle--flutua { animation: flutua 6s ease-in-out infinite; animation-delay: var(--atraso, 0s); }
.doodle--gira   { animation: gira 18s linear infinite; }
@keyframes flutua { 50% { transform: translateY(-10px) rotate(calc(var(--giro, 0deg) + 4deg)); } }
@keyframes gira   { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .doodle { scale: .65; opacity: calc(var(--op, .45) * .6); }
  .doodle--some-mobile { display: none; }
}

/* confete de comemoração (tela de sucesso): spans .confete gerados por JS */
.confete {
  position: fixed; top: -12px; z-index: 50; width: 10px; height: 14px; border-radius: 3px;
  animation: cai var(--dur, 2.8s) cubic-bezier(.2,.6,.4,1) forwards; pointer-events: none;
}
@keyframes cai { to { transform: translate(var(--dx, 0), 105vh) rotate(var(--rot, 540deg)); opacity: .9; } }

/* ───────────────────────── Marca ───────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo__icone { width: 40px; height: 40px; flex: none; }
.logo__nome { font: 700 1.375rem/1 var(--fonte-titulo); letter-spacing: -.01em; }
.logo__nome b { color: var(--amarelo-sol); font-weight: 700; }
.sobre-claro .logo__nome b, .logo--escuro .logo__nome b { color: var(--rosa-texto); }

/* topo e rodapé do site */
.topo { position: relative; z-index: 10; background: var(--roxo-festa); color: var(--branco); }
.topo__barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.topo__nav { display: flex; align-items: center; gap: 20px; }
.topo__nav a:not(.btn) { color: var(--branco); text-decoration: none; font-weight: 800; }
.topo__nav a:not(.btn):hover { color: var(--amarelo-sol); }
@media (max-width: 760px) { .topo__nav a:not(.btn) { display: none; } .topo__nav .btn { padding: 10px 18px; min-height: 44px; } }

.rodape { background: var(--roxo-noite); color: #D9CCFF; padding: 56px 0 32px; font-size: .9375rem; }
.rodape a { color: var(--branco); text-decoration: none; }
.rodape a:hover { color: var(--amarelo-sol); }
.rodape__grade { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rodape h4 { color: var(--branco); font-size: 1rem; margin-bottom: 12px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .8125rem; }

/* ───────────────────────── Landing ───────────────────────── */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: calc(var(--secao-y) + 40px); }
.hero__grade { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero__sub { font-size: 1.1875rem; opacity: .92; max-width: 34em; margin-bottom: 28px; }
.hero__chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 860px) {
  .hero__grade { grid-template-columns: 1fr; text-align: center; }
  .hero__grade .linha, .hero__chips { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__celular { order: 2; }
}

/* celular com o convite tocando (placeholder até existir o preview.webm dos temas) */
.hero__celular { position: relative; display: grid; place-items: center; isolation: isolate; }
.celular {
  width: min(280px, 72vw); aspect-ratio: 9 / 18.5; padding: 10px;
  border-radius: 44px; background: var(--roxo-noite);
  box-shadow: 0 30px 60px rgba(20, 6, 60, .45), inset 0 0 0 2px rgba(255,255,255,.12);
  transform: rotate(3deg);
}
.celular__tela { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--lilas-nuvem); }
.cena {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px 18px 84px; background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--cena-detalhe) 35%, transparent) 0 30%, transparent 31%),
    var(--cena-bg);
  color: var(--cena-acento);
  opacity: 0; animation: cena 16s infinite; animation-delay: calc(var(--i) * 4s);
}
.cena:first-child { opacity: 1; }
@keyframes cena { 0% { opacity: 0; transform: scale(1.06); } 4%, 25% { opacity: 1; transform: none; } 29%, 100% { opacity: 0; } }
.cena__doodle { position: absolute; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.cena__doodle--1 { top: 9%; left: 10%; }
.cena__doodle--2 { top: 16%; right: 12%; width: 28px; height: 28px; color: var(--cena-detalhe); }
.cena__doodle--3 { top: 46%; left: 6%; width: 30px; height: 30px; transform: rotate(-18deg); }
.cena__estrela {
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%;
  background: var(--branco); border: 5px solid var(--cena-detalhe); box-shadow: var(--sombra);
}
.cena__estrela svg { width: 56px; height: 56px; fill: var(--cena-detalhe); stroke: var(--cena-acento); stroke-width: 1.2; }
.cena__card {
  display: flex; flex-direction: column; align-items: center; width: 100%;
  padding: 12px 10px; border-radius: 20px; background: rgba(255,255,255,.92); color: var(--tinta); text-align: center; line-height: 1.25;
}
.cena__card small { font-size: .75rem; color: var(--cena-acento); font-weight: 800; }
.cena__card strong { font: 700 1.75rem/1.1 var(--fonte-titulo); color: var(--cena-acento); }
.cena__card span { font-size: .8125rem; font-weight: 600; }
.celular__botoes { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px; }
.celular__botoes span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--amarelo-sol); color: var(--roxo-noite); box-shadow: var(--sombra-leve); }

/* faixa branca de números */
.faixa-numeros { position: relative; z-index: 2; margin-top: -48px; }
.faixa-numeros__grade {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--branco); border-radius: var(--raio-card); box-shadow: var(--sombra);
  padding: 24px clamp(12px, 3vw, 40px); text-align: center; max-width: 960px;
}
.faixa-numeros strong { display: block; font: 700 clamp(1.75rem, 4vw, 2.5rem)/1.1 var(--fonte-titulo); color: var(--roxo-festa); }
.faixa-numeros span { font-size: .9375rem; color: var(--tinta-suave); font-weight: 600; }
@media (max-width: 640px) { .faixa-numeros__grade { grid-template-columns: repeat(2, 1fr); row-gap: 20px; width: calc(100% - 2 * var(--gutter)); } }

/* cards de tema */
.tema-card { padding-top: 0; overflow: hidden; }
.tema-card__arte {
  position: relative; margin: 0 calc(-1 * clamp(20px, 3vw, 32px)) 20px; aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.65) 0 22%, transparent 23%), var(--tema-bg);
  color: var(--tema-acento);
}
.tema-card__doodle { position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-mola); }
.tema-card__brilho { position: absolute; top: 14%; right: 16%; width: 18%; height: 18%; fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .7; }
.tema-card:hover .tema-card__doodle { transform: scale(1.1) rotate(-6deg); }
.tema-card .card__titulo { color: var(--tema-texto); }
@media (max-width: 640px) {
  .temas-grade { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tema-card { padding: 0 14px 16px; }
  .tema-card__arte { margin: 0 -14px 12px; }
  .tema-card .card__titulo { font-size: 1.0625rem; }
  .tema-card .card__texto { font-size: .875rem; line-height: 1.45; }
}

/* passos */
.passos { list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.passo { position: relative; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.14); border-radius: var(--raio-card); padding: 28px 24px; }
.passo h3 { margin: 16px 0 8px; }
.passo p { margin: 0; opacity: .88; }
.passo__num { position: absolute; top: 18px; right: 22px; font: 700 2.5rem/1 var(--fonte-titulo); color: var(--amarelo-sol); opacity: .9; }

/* tipos de festa */
.festas { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.festa { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: var(--branco); border-radius: var(--raio-card); box-shadow: var(--sombra-leve); font-weight: 800; text-align: center; }

/* planos */
.planos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 820px; margin-inline: auto; align-items: start; }
.plano { display: flex; flex-direction: column; border: 2px solid var(--lilas-borda); box-shadow: none; }
.plano--destaque { border-color: var(--roxo-festa); box-shadow: var(--sombra); }
.plano__preco { font: 700 2.75rem/1 var(--fonte-titulo); color: var(--roxo-festa); margin: 20px 0; }
.plano__lista { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.plano__lista li { display: flex; gap: 10px; align-items: flex-start; }
.plano__lista .icone { color: var(--verde-grama); stroke-width: 3; margin-top: 3px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--branco); border-radius: 20px; box-shadow: var(--sombra-leve); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 22px; cursor: pointer; list-style: none;
  font: 600 1.125rem/1.3 var(--fonte-titulo);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lilas-nuvem); color: var(--roxo-festa); font: 700 1.25rem/1 var(--fonte-texto); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--amarelo-sol); color: var(--roxo-noite); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--tinta-suave); }

/* CTA final */
.cta-final { padding-top: calc(var(--secao-y) + 24px); padding-bottom: 0; }
.cta-final .container { margin-bottom: 48px; }

/* página simples (em breve, termos…) */
.pagina-simples { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ───────────────────────── Assistente (/criar) ───────────────────────── */
[x-cloak] { display: none !important; }
.wiz-pagina { min-height: 100vh; background: var(--lilas-nuvem); }
.wiz-topo { position: relative; isolation: isolate; background: var(--roxo-festa); color: var(--branco); padding-bottom: clamp(56px, 8vw, 96px); }
.wiz-topo__barra { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.wiz-topo__sair { min-height: 40px; padding: 8px 18px; }
.wiz-topo__titulo { margin: 8px 0 20px; text-align: center; font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 var(--fonte-titulo); }

/* trilha do foguete: cada passo é uma estrela que acende */
.trilha { --borda: 22px; position: relative; max-width: 720px; margin: 0 auto; padding-top: 6px; }
.trilha__linha { position: absolute; left: var(--borda); top: calc(var(--borda) + 5px); width: calc(100% - 2 * var(--borda)); height: 10px; overflow: visible; }
.trilha__linha path { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trilha__feito { position: absolute; left: var(--borda); top: calc(var(--borda) + 8px); height: 4px; width: calc((100% - 2 * var(--borda)) * var(--p, 0) / 100); border-radius: 4px; background: var(--amarelo-sol); transition: width .5s var(--ease-mola); }
.trilha__foguete {
  position: absolute; top: -24px; width: 30px; height: 30px;
  left: calc(var(--borda) + (100% - 2 * var(--borda)) * var(--p, 0) / 100);
  color: var(--amarelo-sol); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform: translateX(-50%) rotate(45deg);
  transition: left .5s var(--ease-mola); pointer-events: none;
}
.trilha__passos { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.trilha__passo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 44px; }
.trilha__estrela {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--roxo-noite); color: rgba(255,255,255,.45); cursor: pointer; transition: transform .25s var(--ease-mola), background .2s, color .2s;
}
.trilha__estrela:disabled { cursor: default; }
.trilha__estrela svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.trilha__passo--feito .trilha__estrela { background: var(--amarelo-sol); color: var(--roxo-noite); }
.trilha__passo--atual .trilha__estrela { background: var(--branco); color: var(--amarelo-sol); transform: scale(1.18); box-shadow: 0 0 0 6px rgba(255,194,26,.35); }
.trilha__passo--atual .trilha__estrela svg { stroke: var(--roxo-noite); stroke-width: 1.4; }
.trilha__nome { font-size: .8125rem; font-weight: 800; white-space: nowrap; opacity: .75; }
.trilha__passo--atual .trilha__nome { opacity: 1; color: var(--amarelo-sol); }
@media (max-width: 640px) {
  .trilha__nome { display: none; }
  .trilha__passo--atual .trilha__nome { display: block; position: absolute; top: 58px; left: 50%; transform: translateX(-50%); }
  .trilha { --borda: 18px; margin-bottom: 24px; }
  .trilha__estrela { width: 36px; height: 36px; }
  .trilha__passo { width: 36px; }
}

.wiz { position: relative; z-index: 2; margin-top: clamp(-56px, -6vw, -32px); padding-bottom: 64px; }
.wiz__conteudo { max-width: 760px; }
.wiz__rascunho { align-items: center; margin-bottom: 16px; background: var(--branco); box-shadow: var(--sombra-leve); }
.wiz__rascunho .icone { color: var(--verde-grama); stroke-width: 3; }
.wiz__rascunho .btn { margin-left: auto; min-height: 40px; }
.wiz-card { padding: clamp(22px, 4vw, 44px); scroll-margin-top: 16px; }
.wiz-card h2 { outline: none; margin-bottom: 4px; }
.wiz-card__passo { margin: 0 0 6px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rosa-texto); }
.wiz__isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wiz-grade { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.wiz-grade--festas { grid-template-columns: repeat(3, 1fr); }
.wiz-grade--temas { grid-template-columns: repeat(2, 1fr); }
.wiz-grade--planos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
@media (max-width: 520px) { .wiz-grade--festas { grid-template-columns: repeat(2, 1fr); } }
.wiz-grade[aria-invalid="true"] .opcao__corpo { border-color: var(--erro); }
.opcao--tema .opcao__corpo { padding: 0 0 16px; overflow: hidden; gap: 6px; }
.opcao__arte { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 6px; background: var(--tema-bg); color: var(--tema-acento); }
.opcao__arte svg { width: 44%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.opcao__desc { display: block; padding: 0 12px; font-weight: 400; font-size: .8125rem; line-height: 1.4; color: var(--tinta-suave); }
.opcao--plano .opcao__corpo { align-items: stretch; text-align: left; padding: 16px 18px; gap: 4px; }
.opcao__plano-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 1.0625rem; }
.opcao__plano-topo strong { font: 700 1.375rem var(--fonte-titulo); color: var(--roxo-festa); }
.opcao--plano .opcao__desc { padding: 0; }

fieldset.campo { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.wiz-campos { display: grid; gap: 18px; margin-top: 20px; }
.wiz-campos--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wiz-separador { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; color: var(--tinta-suave); font-weight: 800; font-size: .875rem; }
.wiz-separador::before, .wiz-separador::after { content: ""; flex: 1; height: 2px; background: var(--lilas-borda); border-radius: 2px; }
.campo__ajuda .icone { display: inline; vertical-align: -3px; width: 1em; height: 1em; }

/* fotos */
.dicas-foto { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 6px 0 14px; }
.dica { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--raio-chip); font-size: .9375rem; line-height: 1.45; }
.dica--boa { background: #EAF9E2; }
.dica--ruim { background: #FFEAF2; }
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.foto { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--lilas-nuvem); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto__remover {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(42,16,112,.8); color: var(--branco); cursor: pointer;
}
.foto__aviso { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: var(--raio-pill); background: #FFE7D6; color: #8A3500; font-size: .75rem; font-weight: 800; line-height: 1.5; }
.foto--adicionar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-align: center;
  border: 2px dashed var(--borda-campo); background: var(--branco); font-weight: 800; color: var(--roxo-festa); padding: 8px;
  transition: background .15s, border-color .15s;
}
.foto--adicionar:hover { background: var(--lilas-nuvem); border-color: var(--roxo-festa); }
.foto--adicionar:focus-within { outline: 3px solid var(--roxo-festa); outline-offset: 3px; }
.foto--carregando { opacity: .6; cursor: progress; }
.fotos[aria-invalid="true"] .foto--adicionar { border-color: var(--erro); }

.ajuda-maps { background: var(--lilas-nuvem); border-radius: var(--raio-chip); }
.ajuda-maps summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; cursor: pointer; font-weight: 800; color: var(--roxo-festa); }
.ajuda-maps ol { margin: 0; padding: 0 16px 16px 40px; display: grid; gap: 6px; }

/* revisão */
.resumo { margin-top: 20px; border: 2px solid var(--lilas-borda); border-radius: var(--raio-card); overflow: hidden; }
.resumo__topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; background: var(--tema-bg, var(--lilas-nuvem)); }
.resumo__topo small { display: block; font-weight: 800; color: var(--tema-acento, var(--roxo-festa)); }
.resumo__topo strong { display: block; font: 700 1.75rem/1.15 var(--fonte-titulo); color: var(--tema-acento, var(--roxo-festa)); }
.resumo__topo span { font-weight: 600; }
.resumo__fotos { display: flex; flex: none; }
.resumo__fotos img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--branco); margin-left: -14px; }
.resumo__lista { margin: 0; padding: 4px 20px; }
.resumo__lista > div { display: grid; grid-template-columns: 110px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--lilas-borda); }
.resumo__lista > div:last-child { border-bottom: 0; }
.resumo__lista dt { font-weight: 800; font-size: .875rem; color: var(--tinta-suave); }
.resumo__lista dd { margin: 0; overflow-wrap: anywhere; }
.resumo__lista .btn { min-height: 36px; padding: 4px 8px; font-size: .875rem; }
@media (max-width: 520px) { .resumo__lista > div { grid-template-columns: 1fr auto; } .resumo__lista dd { grid-column: 1 / -1; grid-row: 2; } }

.aceite { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--raio-chip); background: var(--lilas-nuvem); font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.aceite input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--roxo-festa); cursor: pointer; }
.aceite--erro { outline: 2px solid var(--erro); }

.wiz-nav { display: flex; gap: 12px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--lilas-nuvem); }
.wiz-nav__seguir { margin-left: auto; }
@media (max-width: 520px) { .wiz-nav { flex-direction: column-reverse; align-items: stretch; } .wiz-nav__seguir { margin-left: 0; } }

.wiz-sucesso { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wiz-sucesso .chip { width: 72px; height: 72px; border-radius: 22px; }
.wiz-sucesso .chip svg { width: 36px; height: 36px; stroke-width: 3; }
.wiz-sucesso__passos { text-align: left; max-width: 460px; margin: 12px 0 24px; padding-left: 20px; display: grid; gap: 8px; }

/* ───────────────────────── Utilitários ───────────────────────── */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.texto-suave { color: var(--tinta-suave); }
.largura-texto { max-width: 62ch; }

/* ───────────────────────── Movimento reduzido ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .confete { display: none; }
  .cena { animation: none !important; }
  .cena:not(:first-child) { display: none; }
}
