/* Candy Sort Jam — estilo do site (candysortjam.com.br). Sem dependências além das fontes do Google. */
:root {
  --rosa: #ff5fa2;
  --rosa-escuro: #d63384;
  --roxo: #7b3fe4;
  --roxo-escuro: #4b1fa3;
  --verde: #7ccf3c;
  --amarelo: #ffc531;
  --azul: #22a6ff;
  --tinta: #2a1747;
  --texto: #4a3b5c;
  --papel: #fff8fc;
  --cartao: #ffffff;
  --borda: #f1dcec;
  --sombra: 0 10px 30px rgba(75, 31, 163, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --tinta: #fbeaff;
    --texto: #dccfe8;
    --papel: #1a1027;
    --cartao: #251838;
    --borda: #3a2a52;
    --sombra: 0 10px 30px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--roxo); }
@media (prefers-color-scheme: dark) { a { color: #c9a8ff; } }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; color: var(--tinta); line-height: 1.15; }

.cont { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--papel) 82%, transparent); border-bottom: 1px solid var(--borda); }
.topo .cont { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 20px; }
.marca img { width: 38px; height: 38px; border-radius: 10px; }
.topo nav { display: flex; gap: 16px; font-weight: 700; font-size: 15px; }
.topo nav a { text-decoration: none; color: var(--texto); }
.topo nav a:hover { color: var(--rosa-escuro); }
@media (max-width: 640px) { .topo nav .opcional { display: none; } }

/* Herói */
.heroi {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 15% 20%, #ff8cc0 0, transparent 40%),
              radial-gradient(circle at 85% 80%, #5b8cff 0, transparent 45%),
              linear-gradient(160deg, var(--rosa) 0%, var(--roxo) 100%);
}
.heroi .cont { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 56px 0 72px; }
.heroi h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin: 12px 0 10px; text-shadow: 0 3px 0 rgba(75, 31, 163, .35); }
.heroi p.lide { font-size: clamp(17px, 2.2vw, 20px); margin: 0 0 24px; opacity: .95; max-width: 34em; }
.heroi .logo { width: min(420px, 100%); filter: drop-shadow(0 12px 20px rgba(42, 23, 71, .35)); }
.heroi .icone { width: min(360px, 80%); margin-inline: auto; border-radius: 22%; box-shadow: 0 24px 50px rgba(42, 23, 71, .45); transform: rotate(4deg); }
@media (max-width: 760px) {
  .heroi .cont { grid-template-columns: 1fr; text-align: center; padding: 24px 0 48px; gap: 16px; }
  .heroi .logo { margin-inline: auto; width: min(290px, 100%); }
  .heroi .icone { width: 130px; order: -1; transform: none; border-radius: 24%; }
  .heroi h1 { margin-top: 4px; }
  .heroi p.lide { margin-inline: auto; }
  .acoes { justify-content: center; }
}
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.botao-play {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: 14px;
  background: #111; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.botao-play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, .35); }
.botao-play:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.botao-play svg { width: 28px; height: 28px; flex: none; }
.botao-play small { display: block; font-size: 11px; font-weight: 700; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.botao-play span { display: block; font-size: 19px; line-height: 1.1; }
.selo { display: inline-block; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }

/* Seções */
section.bloco { padding: 64px 0; }
section.bloco h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 8px; text-align: center; }
section.bloco p.sub { text-align: center; margin: 0 auto 36px; max-width: 36em; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 22px; padding: 24px; box-shadow: var(--sombra); }
.cartao h3 { margin: 10px 0 6px; font-size: 21px; }
.cartao p { margin: 0; }
.bolinha { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 24px; color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15); }
.c1 { background: var(--rosa); } .c2 { background: var(--azul); } .c3 { background: var(--verde); } .c4 { background: var(--amarelo); color: var(--tinta); }
.numero { font-family: "Baloo 2", sans-serif; font-size: 44px; font-weight: 800; color: var(--rosa-escuro); line-height: 1; }
@media (prefers-color-scheme: dark) { .numero { color: #ff8cc0; } }

.faixa { background: linear-gradient(90deg, #fff2c2, #ffe0ef); }
@media (prefers-color-scheme: dark) { .faixa { background: linear-gradient(90deg, #2d2140, #3a1f3a); } }
.cta-final { text-align: center; }
.cta-final .acoes { justify-content: center; margin-top: 18px; }

details { background: var(--cartao); border: 1px solid var(--borda); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 800; color: var(--tinta); }
details p { margin: 10px 0 0; }

/* Textos legais */
.legal { padding: 40px 0 64px; }
.legal .cont { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 4px; }
.legal h2 { font-size: 23px; margin-top: 34px; }
.legal .data { color: var(--texto); opacity: .8; margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--borda); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--cartao); color: var(--tinta); }
.caixa { background: var(--cartao); border: 1px solid var(--borda); border-left: 5px solid var(--rosa); border-radius: 12px; padding: 14px 18px; }

/* Rodapé */
footer { border-top: 1px solid var(--borda); padding: 28px 0 40px; font-size: 15px; }
footer .cont { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--texto); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
