/* =========================================================
   Dorama Prime · Indique e Ganhe + Sorteio
   Mobile-first. Sem framework, sem build.
   ========================================================= */

:root {
  /* Paleta da marca */
  --rosa-site:   #e6026d; /* botões, destaques, títulos grandes (só texto >= 24px / 18.66px negrito) */
  --rosa-logo:   #d63383; /* detalhes, bordas, ícones */
  --rosa-suave:  #eeaacb; /* texto pequeno de destaque, links */
  --fundo:       #0b0420; /* confirmado: fundo do banner amostrado em #06021a e do mosaico desfocado em #0c0620 */
  --fundo-card:  #170c33; /* um degrau acima do --fundo */
  --texto:       #ffffff;
  --texto-suave: rgba(255, 255, 255, .75);

  /* Derivados das cores acima (mesma cor, só opacidade) */
  --borda:       rgba(238, 170, 203, .16); /* --rosa-suave a 16% */
  --brilho-rosa: rgba(230, 2, 109, .18);   /* --rosa-site a 18% */

  /* Fora da paleta de propósito: marca pendências [ENTRE COLCHETES]
     para serem achadas e removidas antes de publicar. */
  --alerta:      #ffd43b;

  --raio: 16px;
  --largura: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;           /* 16px */
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
strong { font-weight: 700; }

a { color: var(--rosa-suave); text-underline-offset: 3px; }
a:hover { color: var(--texto); }

:focus-visible {
  outline: 3px solid var(--rosa-suave);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--estreito { max-width: 840px; }

.icone {
  width: 1em;
  height: 1em;
  fill: var(--rosa-logo);
  flex: none;
}

/* Link "pular para o conteúdo" (teclado) */
.pular {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--texto);
  color: var(--fundo);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.pular:focus { top: 12px; }

/* ---------- Pendências ---------- */
.pendente {
  color: var(--alerta);
  background: rgba(255, 212, 59, .08);
  border: 2px dashed var(--alerta);
  border-radius: 6px;
  padding: 0 .3em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 40px 56px;
  text-align: center;
}

.hero__fundo,
.hero__fundo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__fundo img {
  object-fit: cover;
  object-position: center top;
}

/* Overlay escuro: garante leitura do texto sobre as capas */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(11, 4, 32, .86) 0%,
      rgba(11, 4, 32, .90) 55%,
      var(--fundo) 100%);
}

.hero__conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__logo { width: 200px; }

.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rosa-logo);
  border-radius: 999px;
  background: rgba(11, 4, 32, .6);
  color: var(--rosa-suave);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(2rem, 6.5vw + .6rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 16ch;
}
.destaque { color: var(--rosa-site); }

.hero__sub {
  font-size: clamp(1.125rem, 2vw + .75rem, 1.375rem);
  color: var(--texto-suave);
}
.hero__sub strong { color: var(--rosa-suave); }

.botoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--rosa-site);
  border-radius: 999px;
  background: var(--rosa-site);
  color: var(--texto);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.botao:hover {
  background: var(--rosa-logo);
  border-color: var(--rosa-logo);
  color: var(--texto);
}
.botao--contorno {
  background: rgba(11, 4, 32, .55);
}
.botao--contorno:hover {
  background: var(--brilho-rosa);
  border-color: var(--rosa-site);
}

.hero__regras { font-size: .9375rem; }

@media (min-width: 480px) {
  .botoes {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
}

/* Desktop: texto à esquerda, mosaico de capas à direita */
@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 600px;
    padding-block: 72px;
    text-align: left;
  }
  .hero__fundo,
  .hero__fundo img {
    left: auto;
    width: 64%;
  }
  .hero__fundo img {
    object-position: left center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  }
  .hero::after {
    background:
      linear-gradient(90deg,
        var(--fundo) 0%,
        var(--fundo) 40%,
        rgba(11, 4, 32, .55) 70%,
        rgba(11, 4, 32, .35) 100%),
      linear-gradient(0deg, var(--fundo) 0%, transparent 25%);
  }
  .hero__conteudo { align-items: flex-start; }
  .hero__conteudo > * { max-width: 34rem; }
  .hero__logo { width: 250px; }
  .botoes { justify-content: flex-start; }
}

/* ---------- Seções ---------- */
.secao {
  padding-block: 64px;
  scroll-margin-top: 24px;
}
.secao--alt {
  background:
    radial-gradient(ellipse 60% 35% at 50% 30%, var(--brilho-rosa), transparent 70%),
    var(--fundo);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--rosa-suave);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.secao h2 {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 2.5rem);
  font-weight: 700;
  margin-bottom: 32px;
}

.card {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 24px;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { color: var(--texto-suave); }

/* Passos */
.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.passo { position: relative; }
.passo__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 2px solid var(--rosa-logo);
  border-radius: 50%;
  color: var(--rosa-site);
  font-size: 1.625rem; /* 26px: texto grande, permitido em --rosa-site */
  font-weight: 700;
  line-height: 1;
}

/* Etapas do sorteio */
.etapas {
  display: grid;
  gap: 16px;
}
.etapa__rotulo {
  color: var(--rosa-suave) !important;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.etapa__valor {
  margin-block: 4px 12px;
  color: var(--rosa-site) !important;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Destaque "Até R$ 300" */
.total {
  position: relative;
  margin-top: 16px;
  padding: 32px 24px;
  border: 2px solid var(--rosa-logo);
  border-radius: var(--raio);
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, var(--brilho-rosa), transparent 75%),
    var(--fundo-card);
  text-align: center;
}
.total__coracao {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  fill: var(--rosa-logo);
}
.total__titulo {
  color: var(--rosa-site);
  font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem);
  font-weight: 700;
}
.total__conta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-block: 12px 16px;
  font-size: 1.125rem;
  font-weight: 600;
}
.total__conta .op { color: var(--rosa-suave); }
.total__conta strong { color: var(--texto); }
.total > p:last-child {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--texto-suave);
}

@media (min-width: 768px) {
  .secao { padding-block: 88px; }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .etapas { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 28px; }
  .total { padding: 40px 32px; }
}

/* ---------- Acordeões (regulamento e dúvidas) ---------- */
.acordeao {
  display: grid;
  gap: 12px;
}

.acordeao details {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: 12px;
}
.acordeao details[open] { border-color: var(--rosa-logo); }

.acordeao summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
}
.acordeao summary::-webkit-details-marker { display: none; }

.acordeao summary h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Ícone + / − desenhado em CSS */
.acordeao summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--rosa-suave), var(--rosa-suave)) center / 100% 2px no-repeat,
    linear-gradient(var(--rosa-suave), var(--rosa-suave)) center / 2px 100% no-repeat;
  transition: background-size .2s ease;
}
.acordeao details[open] > summary::after {
  background-size: 100% 2px, 2px 0; /* vira "−" */
}

.acordeao details > p {
  padding: 0 20px 18px;
  color: var(--texto-suave);
}
.acordeao details > p + p { padding-top: 0; margin-top: -6px; }

/* ---------- Rodapé ---------- */
.rodape {
  padding-block: 48px;
  border-top: 1px solid var(--borda);
  text-align: center;
  color: var(--texto-suave);
}
.rodape .container {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.rodape__logo {
  width: 160px;
  margin-bottom: 8px;
}
.rodape__topo { margin-top: 8px; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Canal do WhatsApp ---------- */
.canal {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 24px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--fundo-card);
  text-align: center;
}
.canal h2 { margin-bottom: 0 !important; }
.canal p:not(.kicker) { color: var(--texto-suave); max-width: 36rem; }
.canal .botao { margin-top: 8px; }
@media (min-width: 768px) {
  .canal { padding: 48px 40px; }
}

/* ---------- Assinatura (merchan) ---------- */
.assinar {
  display: grid;
  overflow: hidden;
  border: 2px solid var(--rosa-logo);
  border-radius: var(--raio);
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, var(--brilho-rosa), transparent 70%),
    var(--fundo-card);
}
.assinar__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.assinar__texto {
  display: grid;
  gap: 12px;
  padding: 8px 24px 32px;
}
.assinar__texto h2 {
  margin-bottom: 0 !important;
  font-size: clamp(1.625rem, 2.5vw + 1rem, 2.25rem) !important;
}
.assinar__texto > p:not(.kicker) { color: var(--texto-suave); }
.assinar__texto .kicker { margin-bottom: 0; }
.assinar__vagas {
  color: var(--rosa-site) !important;
  font-size: 1.5rem; /* 24px: texto grande, permitido em --rosa-site */
  font-weight: 700;
  line-height: 1.3;
}
.assinar .botoes { margin-top: 8px; }

@media (min-width: 900px) {
  .assinar { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .assinar__img {
    order: 2;
    height: 100%;
    min-height: 420px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  }
  .assinar__texto { padding: 48px 8px 48px 48px; }
  .assinar .botoes { justify-content: flex-start; }
}
