/* ==========================================================================
   Página temporária de esgotado — "Lista da Volta"
   Depende do styles.css oficial (tokens, botões, rodapé). Aqui vive apenas
   o que é exclusivo desta página.
   ========================================================================== */

/* ---------- Abertura ---------- */

.sold-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px) 0 clamp(120px, 14vw, 180px);
  background:
    radial-gradient(circle at 82% 18%, rgba(159, 208, 131, .14), transparent 42%),
    radial-gradient(circle at 8% 80%, rgba(96, 170, 60, .1), transparent 38%),
    #0d2715;
  color: var(--white);
}

.sold-watermark {
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 8vw, 90px);
  transform: translateX(-50%);
  font-family: "Manrope", sans-serif;
  font-size: clamp(90px, 19vw, 280px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Cápsulas flutuando, como no hero do site. */
.sold-capsule {
  position: absolute;
  width: 74px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(100deg, #9fd083 48%, #eef8ea 52%);
  opacity: .16;
  filter: blur(1px);
  animation: sold-flutua 9s var(--ease) infinite alternate;
  pointer-events: none;
}

.sc-a { top: 16%; left: 6%; transform: rotate(-24deg); }
.sc-b { top: 62%; left: 44%; width: 52px; height: 21px; transform: rotate(18deg); animation-delay: -3s; }
.sc-c { top: 24%; right: 8%; width: 92px; height: 37px; transform: rotate(32deg); animation-delay: -6s; }

@keyframes sold-flutua {
  from { translate: 0 -10px; }
  to   { translate: 0 16px; }
}

.sold-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 76px);
  position: relative;
  z-index: 2;
}

.sold-logo img {
  width: clamp(120px, 14vw, 158px);
}

.sold-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  padding-bottom: 3px;
  transition: color 180ms ease, border-color 180ms ease;
}

.sold-back:hover {
  color: var(--white);
  border-color: #9fd083;
}

.sold-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.sold-copy h1 {
  margin: 18px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.sold-copy h1 em {
  font-style: normal;
  color: #9fd083;
}

.sold-lead {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.sold-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.sold-actions-note {
  margin: 0;
  max-width: 24ch;
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
}

.sold-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.sold-proof li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
}

.sold-proof svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: #9fd083;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Frasco + selo girando */

.sold-visual {
  display: grid;
  justify-items: center;
}

.sold-product {
  position: relative;
  max-width: min(340px, 72vw);
}

.sold-product > img {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45));
}

.sold-stamp {
  position: absolute;
  top: -9%;
  right: -13%;
  width: clamp(122px, 13vw, 170px);
  height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .4));
}

/* Borda creme por fora: efeito de adesivo recortado colado no frasco. */
.stamp-borda {
  fill: none;
  stroke: var(--cream);
  stroke-width: 3;
}

.stamp-ring {
  fill: #0d2715;
  stroke: #9fd083;
  stroke-width: 1.3;
}

.stamp-core {
  fill: none;
  stroke: rgba(159, 208, 131, .45);
  stroke-width: 1;
  stroke-dasharray: .5 3.5;
  stroke-linecap: round;
}

.stamp-text {
  font-family: "Manrope", sans-serif;
  font-size: 8.2px;
  font-weight: 700;
  letter-spacing: .55px;
  fill: var(--cream);
  animation: stamp-gira 30s linear infinite;
  transform-origin: 60px 60px;
}

.stamp-label {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  fill: var(--white);
}

.stamp-sub {
  font-family: "Manrope", sans-serif;
  font-size: 5.4px;
  font-weight: 700;
  letter-spacing: .3em;
  fill: #9fd083;
}

@keyframes stamp-gira {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-text,
  .sold-capsule { animation: none; }
}

/* Foco viajante na manchete: a palavra da vez fica nítida dentro de uma
   moldura de mira; as outras desfocam de leve. Só CSS + meia dúzia de linhas
   de JS — nada de biblioteca. */
/* A moldura é absoluta em relação ao próprio título — sem isto ela ancora
   no ancestral posicionado e aparece longe da palavra. */
.true-focus {
  position: relative;
}

.tf-word {
  display: inline-block;
  transition: filter 450ms ease, opacity 450ms ease;
}

.tf-word.tf-blur {
  filter: blur(4px);
  opacity: .55;
}

.tf-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 550ms var(--ease),
    width 550ms var(--ease),
    height 550ms var(--ease),
    opacity 300ms ease;
}

.tf-frame.is-on {
  opacity: 1;
}

.tf-frame i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid #9fd083;
  filter: drop-shadow(0 0 7px rgba(159, 208, 131, .55));
}

.tf-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.tf-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.tf-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.tf-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .tf-word.tf-blur { filter: none; opacity: 1; }
  .tf-frame { display: none; }
}

.sold-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(34px, 5vw, 70px);
  fill: var(--cream);
}

/* ---------- Cartão da Lista da Volta ---------- */

/* O display:grid destas caixas venceria o atributo hidden sem isto. */
.sold-form[hidden],
.sold-card-intro[hidden],
.sold-sucesso[hidden] {
  display: none;
}

.sold-form-section {
  padding-top: 0;
  margin-top: clamp(-100px, -9vw, -60px);
  position: relative;
  z-index: 3;
}

.sold-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(30px, 5vw, 60px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sold-card-intro h2 {
  margin: 16px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--green-950);
}

.sold-card-intro h2 em {
  font-style: normal;
  color: var(--green-700);
}

.sold-card-intro > p {
  margin: 14px 0 0;
  line-height: 1.7;
  color: var(--gray);
}

.sold-card-perks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.sold-card-perks li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
}

.sold-card-perks span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: var(--mint);
  border: 1px solid var(--line);
}

.sold-card-perks svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--green-800);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Formulário */

.sold-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.campo {
  display: grid;
  gap: 7px;
}

.campo label {
  font-size: .86rem;
  font-weight: 700;
  color: var(--green-950);
}

.campo input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.campo input::placeholder {
  color: #a8ada3;
}

.campo input:focus-visible {
  background: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(63, 127, 50, .14);
}

.campo input[aria-invalid="true"] {
  border-color: #b3462e;
  box-shadow: 0 0 0 4px rgba(179, 70, 46, .1);
}

/* Honeypot fora da tela — para gente, é como se não existisse. */
.campo-site {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aceite {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  font-size: .84rem;
  line-height: 1.6;
  color: var(--gray);
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.aceite input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--green-800);
  cursor: pointer;
}

.aceite a {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sold-submit {
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
}

.sold-submit[disabled] {
  opacity: .65;
  pointer-events: none;
}

.sold-form-erro {
  margin: 0;
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: #8a3320;
  background: #fdefe9;
  border: 1px solid rgba(179, 70, 46, .25);
  border-radius: 14px;
}

.sold-form .microcopy {
  margin: 0;
  text-align: center;
}

/* Sucesso */

.sold-sucesso {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(16px, 3vw, 30px);
  text-align: center;
}

.sucesso-selo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--green-200);
  border: 2px solid var(--green-500);
  animation: sucesso-pulsa 900ms var(--ease);
}

.sucesso-selo svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--green-800);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes sucesso-pulsa {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.sold-sucesso h3 {
  margin: 8px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  color: var(--green-950);
}

.sold-sucesso p {
  max-width: 48ch;
  margin: 0;
  line-height: 1.7;
  color: var(--gray);
}

.sucesso-dica {
  font-size: .86rem;
  padding: 12px 18px;
  margin-top: 8px !important;
  background: var(--mint);
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ---------- Passos ---------- */

.sold-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}

.sold-step {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.sold-step > span {
  font-family: "Manrope", sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green-500);
}

.sold-step h3 {
  margin: 12px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--green-950);
}

.sold-step p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--gray);
}

/* ---------- Enquanto isso ---------- */

.sold-meanwhile {
  padding-bottom: clamp(90px, 10vw, 140px);
}

.sold-meanwhile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  background: var(--green-200);
  border-radius: var(--radius-lg);
}

.sold-meanwhile h2 {
  margin: 14px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--green-950);
}

.sold-meanwhile p:last-child {
  margin: 12px 0 0;
  line-height: 1.7;
  color: #41543c;
}

.sold-meanwhile-actions {
  display: grid;
  gap: 12px;
}

.sold-meanwhile-actions .button {
  width: 100%;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  /* Com o layout empilhado, texto centralizado assenta melhor. */
  .sold-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sold-copy .eyebrow {
    justify-content: center;
  }

  .sold-lead {
    margin-inline: auto;
  }

  .sold-actions {
    flex-direction: column;
    justify-content: center;
  }

  .sold-actions-note {
    max-width: none;
    text-align: center;
  }

  .sold-proof {
    justify-content: center;
  }

  .sold-visual {
    order: -1;
  }

  .sold-product {
    max-width: min(240px, 58vw);
    margin-top: 16px;
  }

  .sold-stamp {
    top: -11%;
    right: -8%;
  }

  .sold-card {
    grid-template-columns: 1fr;
  }

  .sold-card-intro {
    text-align: center;
  }

  .sold-card-intro .eyebrow {
    justify-content: center;
  }

  /* O bloco centraliza, mas cada linha fica ícone + texto à esquerda:
     item de lista centrado quebra torto quando o texto vira duas linhas. */
  .sold-card-perks {
    width: fit-content;
    margin-inline: auto;
  }

  .sold-card-perks li {
    text-align: left;
  }

  .section-heading,
  .sold-form-section .microcopy {
    text-align: center;
    margin-inline: auto;
  }

  .section-heading .eyebrow {
    justify-content: center;
  }

  .sold-steps {
    grid-template-columns: 1fr;
  }

  .sold-step {
    text-align: center;
  }

  .sold-meanwhile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sold-meanwhile .eyebrow {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .sold-hero {
    padding-bottom: 120px;
  }

  .sold-back {
    font-size: .84rem;
  }

  .sold-actions .button {
    width: 100%;
  }

  /* No site principal o botão sobe por causa da barra fixa do kit; aqui não
     tem barra nenhuma, então ele desce para o canto de verdade. */
  .pagina-esgotado .whatsapp-btn {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
