/* ==========================================================================
   06 · COMO PARTICIPAR (fundo claro e quente)
   1. Fundo  2. Topo (título + texto de apoio)  3. Rota de passos
   4. Regra das chances  5. Simulador
   ========================================================================== */

/* ---------- 1. Fundo: creme com luz dourada suave ---------- */
.how {
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 60%);
}

.how__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 78% 18%, rgb(237 203 125 / 0.38), transparent 70%),
    radial-gradient(35% 30% at 10% 85%, rgb(237 203 125 / 0.18), transparent 70%);
}

/* ---------- 2. Topo ---------- */
.how__top {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Texto de apoio ao lado do título, com fio dourado à esquerda */
.how__note {
  max-width: 26rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-400);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-on-light);
}

@media (min-width: 64rem) {
  .how__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .how__intro {
    grid-column: 1 / span 6;
  }
  /* Desktop: texto alinhado à direita, na base do título */
  .how__note {
    grid-column: 8 / span 5;
    justify-self: end;
    align-self: end;
  }
}

/* ---------- 3. Rota de passos ---------- */
.journey {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

/* Linha tracejada dourada que liga os cartões (aparece nos espaços entre eles) */
.journey::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 2.75rem;
  border-left: 1.5px dashed rgb(127 92 10 / 0.45);
}

.journey__step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgb(127 92 10 / 0.18);
  border-radius: var(--radius-lg);
  background: #fffdf9; /* opaco: a linha da rota só aparece entre os cartões */
  box-shadow: 0 20px 40px -30px rgb(127 92 10 / 0.45);
  transition:
    transform var(--dur-base) var(--ease-silk),
    box-shadow var(--dur-base) var(--ease-silk);
}

.journey__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -30px rgb(127 92 10 / 0.6);
}

.journey__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.journey__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gold-700);
}

/* Ícone em círculo escuro com traço dourado */
.journey__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--gold-300);
}

.journey__icon .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.journey__title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.journey__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-on-light-muted);
}

/* Avião no fim da rota (desenhado em CSS com o ícone via máscara SVG) */
.journey::after {
  content: '';
  position: absolute;
  bottom: -2.25rem;
  left: 2.75rem;
  width: 1.75rem;
  height: 1.75rem;
  translate: -50% 0;
  rotate: 180deg; /* no celular o avião aponta para baixo */
  background: var(--gold-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 64rem) {
  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 4rem;
  }
  /* No desktop a rota fica na horizontal, na altura dos números */
  .journey::before {
    top: 3.25rem;
    bottom: auto;
    left: 0;
    right: -1.5rem;
    border-left: 0;
    border-top: 1.5px dashed rgb(127 92 10 / 0.45);
  }
  .journey::after {
    top: 3.25rem;
    bottom: auto;
    left: auto;
    right: -2.75rem;
    translate: 0 -50%;
    rotate: 90deg;
  }
  .journey__step {
    padding: 2rem;
  }
}

/* ---------- 4. Regra das chances ----------
   Fica na seção própria #chances, logo depois de Prêmios (ver index.html).
   ------------------------------------------------------------------------ */

/* Fundo claro com a mesma luz dourada suave do "Como participar" */
.chances-section {
  background:
    radial-gradient(40% 50% at 0% 100%, rgb(237 203 125 / 0.22), transparent 70%),
    var(--cream-100);
}

/* Na seção própria, o bloco não precisa do fio e do espaço de separação */
.chances-section .chances {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Sobrancelhas deste bloco ("A regra das chances", "Exemplos", "Simule suas chances") sem espaçamento */
.chances .eyebrow {
  letter-spacing: 0;
}

.chances {
  display: grid;
  gap: 3rem;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(127 92 10 / 0.25); /* fio dourado suave */
}

.chances__value {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* "em compras = 1 número da sorte": mesma família, sem itálico */
.chances__value span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-light-muted);
}

.chances__rule .check-list {
  margin-top: 2rem;
  color: var(--text-on-light-muted);
}

/* Tabela de exemplos */
.chances__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.chances__table caption {
  margin-bottom: 1rem;
  text-align: left;
  color: var(--text-on-light-muted);
}

.chances__table td {
  padding-block: 0.875rem;
  border-bottom: 1px solid rgb(21 18 15 / 0.1);
  font-size: var(--fs-body-lg);
  font-variant-numeric: tabular-nums;
}

.chances__table td:first-child {
  font-weight: 500;
}

.chances__table td:last-child {
  text-align: right;
  color: var(--text-on-light-muted);
}

.chances__table strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  color: var(--text-on-light);
}

@media (min-width: 64rem) {
  .chances {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 8rem;
    padding-top: 4rem;
  }
  .chances__rule { grid-column: 1 / span 5; }
  .chances__table { grid-column: 7 / span 3; align-self: start; }
  .simulator { grid-column: 10 / span 3; }
}

/* ---------- 5. Simulador ---------- */
.simulator__label {
  display: block;
  color: var(--text-on-light-muted);
}

.simulator__control {
  position: relative;
  margin-top: 1rem;
}

.simulator__prefix {
  position: absolute;
  top: 50%;
  left: 1rem;
  translate: 0 -50%;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--text-on-light-muted);
}

.simulator__input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1rem 0 3rem;
  border: 1px solid rgb(21 18 15 / 0.2);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast);
}

.simulator__input:focus {
  border-color: var(--ink-950);
  box-shadow: 0 0 0 4px rgb(207 156 0 / 0.18);
}

.simulator__output {
  display: block;
  margin-top: 1.25rem;
}

.simulator__count {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-light-muted);
}

.simulator__count strong {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-light);
}

.simulator__next {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-on-light-muted);
}

.simulator__next strong {
  color: var(--text-on-light);
}

.simulator__disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-on-light-muted);
}
