/* Bauducco: Esquenta Black Friday
   Paleta tirada dos pacotes: gema (amarelo), cacau (marrom da cobertura),
   vermelho do logo e um creme claro. */

:root {
  --yolk: #fdb40c;
  --yolk-pale: #ffebb0;
  --cream: #fff8e6;
  --cacau: #2c150c;
  --cacau-soft: #4a2a1d;
  --red: #d9231a;
  --red-deep: #a8160f;
  --white: #fff;

  --display: "Fraunces", "Georgia", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --radius-card: 28px;
  --shadow-card: 0 2px 0 rgba(44, 21, 12, 0.12), 0 28px 44px -28px rgba(44, 21, 12, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--yolk);
  color: var(--cacau);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--cacau);
  outline-offset: 3px;
}

/* ---------- faixa de urgência ---------- */
.band {
  background: var(--cacau);
  color: var(--yolk);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 18px;
  padding: 9px var(--gutter);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.band strong { font-weight: 800; color: var(--yolk-pale); }
.band .num { font-weight: 800; color: var(--yolk-pale); }
@media (max-width: 520px) {
  .band { gap: 2px 14px; font-size: 0.78125rem; }
  .band__item--wide { display: none; }
}

/* ---------- topo ---------- */
.top {
  padding: 18px var(--gutter) 6px;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
}
.top__logo { display: block; }
.top__logo img { height: 46px; width: auto; }

/* ---------- grade principal ---------- */
.layout {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 8px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "stage" "body";
  row-gap: 18px;
  align-content: start;
}
.screen { display: contents; }
.head { grid-area: head; }
.body { grid-area: body; }
.stage { grid-area: stage; }

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .band { font-size: 0.875rem; gap: 2px 32px; }
  .top { justify-content: flex-start; padding-top: 22px; }
  .top__logo img { height: 56px; }
  .layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    grid-template-areas: "head stage" "body stage";
    grid-template-rows: auto auto;
    column-gap: clamp(32px, 5vw, 88px);
    row-gap: 0;
    align-content: center;
    min-height: 64svh;
    padding-bottom: 56px;
  }
  .head { align-self: end; padding-bottom: 22px; }
  .body { align-self: start; }
  .stage { align-self: center; }
}

/* ---------- tipografia ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--cacau);
  color: var(--yolk);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.h1 {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1--md { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); line-height: 1.04; }
.h1:focus { outline: none; }

.lead {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cacau-soft);
  text-wrap: pretty;
}
.micro {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cacau-soft);
}
.micro--center { text-align: center; }

/* mensagem discreta após a conclusão do quiz */
.kit-note {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--cacau-soft);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 5px 0 var(--red-deep), 0 16px 26px -10px rgba(168, 22, 15, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--red-deep), 0 20px 28px -10px rgba(168, 22, 15, 0.55); }
.btn--primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-deep), 0 6px 12px -6px rgba(168, 22, 15, 0.55); }
.btn--primary:focus-visible { outline-color: var(--cacau); outline-offset: 5px; }
.btn--primary[disabled] {
  background: var(--cacau-soft);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.8;
}
.btn--block { width: 100%; }
#startBtn { width: 100%; margin-top: 26px; }

.linklike {
  margin-top: 16px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  #startBtn { width: auto; min-width: 320px; }
}

/* ---------- medidor de kits ---------- */
.meter { margin-top: 26px; max-width: 440px; }
.meter__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.meter__row strong { font-weight: 800; }
.meter__bar {
  margin-top: 9px;
  height: 12px;
  border-radius: 999px;
  background: rgba(44, 21, 12, 0.16);
  overflow: hidden;
}
.meter__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}

/* ---------- palco do kit ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  aspect-ratio: 1596 / 1131;
  isolation: isolate;
  container-type: inline-size; /* o desfoque das peças acompanha o tamanho do palco */
}
.stage__disc {
  position: absolute;
  z-index: -1;
  left: 4%;
  top: 4%;
  width: 90%;
  height: 100%;
  border-radius: 50%;
  background: var(--yolk-pale);
}
.piece {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  height: auto;
  z-index: var(--z);
  /* --c é o quanto a peça já foi liberada (0 a 1). O JS sobe esse valor a cada resposta:
     a peça começa cinza e meio opaca, e ganha cor e opacidade total ao ser liberada. */
  --c: 1;
  opacity: calc(0.28 + 0.72 * var(--c));
  filter:
    grayscale(calc((1 - var(--c)) * 1.35))
    drop-shadow(0 calc(10px * var(--c)) calc(12px * var(--c)) rgba(44, 21, 12, calc(0.3 * var(--c))));
  transition: filter 0.7s ease, opacity 0.7s ease;
  will-change: transform;
}
.piece.pop { animation: pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* a única entrada animada da página: o kit chega peça por peça */
.stage.is-entering .piece {
  animation: enter 0.85s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(var(--i) * 130ms + 120ms);
}
@keyframes enter {
  from { opacity: 0; transform: translateY(34px) scale(0.94); }
}

.sticker {
  position: absolute;
  z-index: 5;
  top: -4%;
  right: 0;
  width: clamp(88px, 21%, 132px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 0.95;
  transform: rotate(10deg);
  box-shadow:
    inset 0 0 0 5px var(--red),
    inset 0 0 0 7px rgba(255, 255, 255, 0.85),
    0 10px 20px -6px rgba(168, 22, 15, 0.6);
}
.sticker b { font-size: clamp(1.45rem, 5vw, 2.1rem); font-weight: 900; }
.sticker span { font-size: clamp(1.05rem, 3.4vw, 1.4rem); font-weight: 800; }

.stage__toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cacau);
  color: var(--yolk-pale);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}
.stage__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* palco menor nas perguntas (celular) para a pergunta caber na tela */
@media (max-width: 959px) {
  body[data-screen="quiz"] .stage { max-width: 270px; }
  .stage { max-width: 380px; }
  body[data-screen="quiz"] .sticker { width: 74px; top: -8%; }
  body[data-screen="quiz"] .sticker b { font-size: 1.2rem; }
  body[data-screen="quiz"] .sticker span { font-size: 0.9rem; }
}

/* ---------- progresso ---------- */
.progress__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.progress__meta span:last-child { color: var(--cacau-soft); font-weight: 600; text-align: right; }
.track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(44, 21, 12, 0.18);
  margin-right: 2px;
}
.track__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--cacau);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.track__dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--yolk);
  border: 3px solid var(--cacau);
  transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.track__dot:nth-of-type(1) { left: calc(25% - 20px); }
.track__dot:nth-of-type(2) { left: calc(50% - 20px); }
.track__dot:nth-of-type(3) { left: calc(75% - 20px); }
.track__dot:nth-of-type(4) { left: calc(100% - 20px); }
.track__dot.is-on { background: var(--red); transform: scale(1.12); }

/* ---------- cartão de pergunta ---------- */
.card {
  position: relative;
  padding: clamp(20px, 3.2vw, 32px);
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.q {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.q:focus { outline: none; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 10px -6px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cacau-soft);
}
.back:hover { background: rgba(44, 21, 12, 0.08); }

.options { display: grid; gap: 10px; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 2px solid rgba(44, 21, 12, 0.14);
  border-radius: 18px;
  background: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.option:hover { border-color: var(--cacau); transform: translateY(-2px); }
.option:active { transform: translateY(0); }
.option__check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(44, 21, 12, 0.22);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.option.is-selected {
  background: var(--cacau);
  border-color: var(--cacau);
  color: var(--yolk-pale);
}
.option.is-selected .option__check {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--cacau);
}
.options.is-locked .option:not(.is-selected) { opacity: 0.55; pointer-events: none; }

/* troca de pergunta: responde ao toque, então pode se mexer */
.card.swap-out .q,
.card.swap-out .options { opacity: 0; transform: translateX(-14px); transition: opacity 0.16s ease, transform 0.16s ease; }
.card.swap-in .q,
.card.swap-in .options { animation: swap-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.card.swap-in .options { animation-delay: 0.04s; }
@keyframes swap-in { from { opacity: 0; transform: translateX(18px); } }

/* ---------- formulário ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; }
.field input,
.field select {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 2px solid rgba(44, 21, 12, 0.2);
  border-radius: 16px;
  background: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
}
.field input::placeholder { color: rgba(74, 42, 29, 0.55); font-weight: 500; }
.field input:focus-visible,
.field select:focus-visible { outline: 3px solid var(--cacau); outline-offset: 2px; border-color: var(--cacau); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--red); }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232c150c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field__hint { margin-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--cacau-soft); }
.field__hint:empty { display: none; }
.field__error { min-height: 0; margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--red-deep); }
.field__error:empty { display: none; }
#consentError { margin-top: -8px; }

.check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.check__box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(44, 21, 12, 0.35);
  background: var(--white);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.check input:checked + .check__box { background: var(--cacau); border-color: var(--cacau); color: var(--yolk); }
.check input:focus-visible + .check__box { outline: 3px solid var(--cacau); outline-offset: 3px; }

/* ---------- checkout em etapas ---------- */
/* no celular o kit sai da tela e o rodapé some, para cada etapa caber inteira sem rolar */
@media (max-width: 959px) {
  body[data-screen="checkout"] .stage,
  body[data-screen="checkout"] .foot { display: none; }
  body[data-screen="checkout"] .layout {
    grid-template-areas: "head" "body";
    row-gap: 14px;
    padding-top: 4px;
    padding-bottom: 20px;
  }
  body[data-screen="checkout"] .top { padding-top: 10px; padding-bottom: 2px; }
  body[data-screen="checkout"] .top__logo img { height: 34px; }
  .checkout { padding: 20px 18px; }
  .step .field input,
  .step .field select { height: 54px; }
  .step .field label { margin-bottom: 6px; font-size: 0.9375rem; }
}

.steps__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.steps__meta span:last-child { color: var(--cacau-soft); font-weight: 600; text-align: right; }
.steps__bar { display: flex; gap: 6px; }
.steps__bar i {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(44, 21, 12, 0.18);
  transition: background-color 0.35s ease;
}
.steps__bar i.is-on { background: var(--cacau); }

.step { display: grid; gap: 14px; }
.step.is-in { animation: step-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--dx, 18px)); } }
.step__title {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.step__title:focus { outline: none; }
.step__sub { margin-top: -6px; font-weight: 500; color: var(--cacau-soft); }
.step__actions { display: flex; gap: 10px; margin-top: 6px; }
.step__actions .btn { min-height: 60px; }
.step__actions .btn--primary { flex: 1; padding: 0 14px; font-size: 1.125rem; white-space: nowrap; }

.btn--ghost {
  padding: 0 20px;
  border: 2px solid rgba(44, 21, 12, 0.28);
  background: transparent;
  color: var(--cacau);
  font-size: 1.0625rem;
}
.btn--ghost:hover { border-color: var(--cacau); background: rgba(44, 21, 12, 0.08); }

.row { display: grid; gap: 14px; }
.row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row--city { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.addr__rest { display: grid; gap: 14px; }

.cep-help {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cacau);
  text-underline-offset: 3px;
}
.addr__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--yolk-pale);
}
.addr__line1 { font-weight: 800; line-height: 1.3; }
.addr__line2 { font-size: 0.9375rem; font-weight: 500; color: var(--cacau-soft); }
.addr__card .linklike { margin: 0; padding: 6px 2px; }

/* opções de frete: botões de rádio de verdade, com cartão por cima */
.ship { display: grid; gap: 10px; }
.ship__opt { position: relative; display: block; cursor: pointer; }
.ship__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ship__card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-areas: "dot name price" ". eta eta";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 16px;
  border: 2px solid rgba(44, 21, 12, 0.16);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ship__opt:hover .ship__card { border-color: var(--cacau); }
.ship__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(44, 21, 12, 0.3);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease;
}
.ship__dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cacau);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ship__opt input:checked + .ship__card { border-color: var(--cacau); box-shadow: inset 0 0 0 2px var(--cacau); }
.ship__opt input:checked + .ship__card .ship__dot { border-color: var(--cacau); }
.ship__opt input:checked + .ship__card .ship__dot::after { transform: scale(1); }
.ship__opt input:focus-visible + .ship__card { outline: 3px solid var(--cacau); outline-offset: 3px; }
.ship__text { display: contents; }
.ship__dot { grid-area: dot; }
.ship__price { grid-area: price; }
.ship__eta { grid-area: eta; }
.ship__name { grid-area: name; display: block; font-weight: 800; line-height: 1.25; }
.ship__eta { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--cacau-soft); line-height: 1.35; }
.ship__price { font-size: 1.1875rem; font-weight: 800; }

.summary { padding: 16px; border-radius: 20px; background: var(--yolk-pale); }
.summary__item { display: flex; align-items: center; gap: 14px; }
.summary__item img { flex: none; width: 88px; height: auto; }
.summary__name { font-weight: 800; line-height: 1.25; }
.summary__desc { font-size: 0.9375rem; font-weight: 500; color: var(--cacau-soft); line-height: 1.35; }
.summary__lines { margin: 12px 0 0; display: grid; gap: 6px; }
.summary__lines div { display: flex; justify-content: space-between; gap: 16px; }
.summary__lines dt { font-weight: 600; }
.summary__lines dd { margin: 0; font-weight: 700; text-align: right; }
.summary__free { color: var(--red-deep); }
.summary__total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 2px dashed rgba(44, 21, 12, 0.28);
  font-size: 1.25rem;
}
.summary__total dt, .summary__total dd { font-weight: 800; }

.shipto {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid rgba(44, 21, 12, 0.14);
  border-radius: 16px;
  background: var(--white);
}
.shipto__label { font-size: 0.875rem; font-weight: 700; color: var(--cacau-soft); }
.shipto__name { font-weight: 800; line-height: 1.3; }
.shipto__addr { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; }
.shipto .linklike { margin: 0; padding: 2px; flex: none; }

/* order bump: oferta extra, opcional */
.bump {
  position: relative;
  display: block;
  margin-top: 10px;
  padding: 22px 14px 14px;
  border: 2px dashed var(--red);
  border-radius: 18px;
  background: var(--yolk-pale);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.bump input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bump:has(input:checked) { border-style: solid; border-color: var(--cacau); background: var(--white); }
.bump__tag {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}
.bump__main { display: grid; grid-template-columns: clamp(112px, 46%, 150px) minmax(0, 1fr); gap: 14px; align-items: center; }

/* a foto abre ampliada ao tocar (fica acima da área que marca a oferta) */
.bump__art {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid rgba(44, 21, 12, 0.14);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 6px 14px -8px rgba(44, 21, 12, 0.6);
}
.bump__art:focus-visible { outline: 3px solid var(--cacau); outline-offset: 3px; }
.bump__art:disabled { cursor: default; }
.bump__img { display: grid; place-items: center; width: 100%; height: 100%; }
.bump__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bump__zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cacau);
  color: var(--yolk-pale);
  box-shadow: 0 2px 6px rgba(44, 21, 12, 0.4);
}
.bump__title { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.bump__desc { display: block; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--cacau-soft); }

.bump__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed rgba(217, 35, 26, 0.35);
}
.bump:has(input:checked) .bump__cta { border-top-color: rgba(44, 21, 12, 0.2); }
.bump__box {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(44, 21, 12, 0.4);
  background: var(--white);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bump input:checked ~ .bump__cta .bump__box { background: var(--cacau); border-color: var(--cacau); color: var(--yolk); }
.bump input:focus-visible ~ .bump__cta .bump__box { outline: 3px solid var(--cacau); outline-offset: 3px; }
.bump__price { font-size: 1.0625rem; font-weight: 800; color: var(--red-deep); }

/* foto ampliada */
.zoom {
  width: min(92vw, 720px);
  max-width: none;
  max-height: 92svh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.zoom::backdrop { background: rgba(44, 21, 12, 0.86); }
.zoom img { display: block; width: 100%; height: auto; max-height: 88svh; object-fit: contain; border-radius: 18px; background: var(--white); }
.zoom__close {
  position: absolute;
  z-index: 1;
  top: -14px;
  right: -6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--cacau);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.live-total { margin-top: -2px; font-size: 0.9375rem; font-weight: 600; color: var(--cacau-soft); }
.live-total strong { color: var(--cacau); font-weight: 800; }
.icon-x {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 2px solid rgba(44, 21, 12, 0.35);
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.icon-x:hover { background: var(--cacau); border-color: var(--cacau); color: var(--yolk-pale); }

/* o aviso legal já foi lido nas telas anteriores; aqui ele só tiraria espaço da etapa */
body[data-screen="checkout"] .foot { display: none; }
@media (min-width: 960px) {
  body[data-screen="checkout"] .layout { padding-bottom: 16px; min-height: 0; }
  body[data-screen="checkout"] .head { padding-bottom: 14px; }
  body[data-screen="checkout"] .top { padding-top: 14px; }
  body[data-screen="checkout"] .top__logo img { height: 46px; }
}

/* celulares: campos e espaços um pouco mais compactos para a etapa caber sem rolar */
@media (max-width: 959px) {
  .step { gap: 12px; }
  .row, .addr__rest { gap: 12px; }
  .step .field input,
  .step .field select { height: 50px; }
}
/* celulares baixos (como o iPhone SE): mais um aperto */
@media (max-width: 959px) and (max-height: 740px) {
  body[data-screen="checkout"] .top { padding-top: 6px; }
  body[data-screen="checkout"] .top__logo img { height: 28px; }
  .checkout { padding: 16px; }
  .step { gap: 10px; }
  .step .field label { margin-bottom: 4px; font-size: 0.9375rem; }
  .step .field input,
  .step .field select { height: 46px; }
  .summary { padding: 12px 14px; }
  .summary__item img { width: 64px; }
  .summary__lines { margin-top: 8px; gap: 4px; }
  .shipto { padding: 10px 14px; }
  .check { font-size: 0.875rem; }
  .step__actions .btn { min-height: 54px; }
  .ship__card { padding: 12px 14px; }
  .live-total { display: none; }
  .bump { padding: 20px 12px 10px; }
  .bump__main { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .bump__title { font-size: 1rem; }
  .bump__desc { font-size: 0.8125rem; }
  .bump__cta { margin-top: 8px; padding-top: 8px; }
  .shipto__addr { font-size: 0.875rem; line-height: 1.35; }
  .addr__card { padding: 10px 14px; }
}
/* celulares muito baixos: o logo sai do checkout para a etapa caber inteira */
@media (max-width: 959px) and (max-height: 700px) {
  body[data-screen="checkout"] .top { display: none; }
  body[data-screen="checkout"] .layout { padding-top: 12px; padding-bottom: 8px; }
  .step { gap: 8px; }
}

/* ---------- ingresso de resgate ---------- */
.ticket {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ticket__top {
  padding: 24px clamp(20px, 3.2vw, 32px) 22px;
  text-align: center;
}
.ticket__label { font-size: 0.9375rem; font-weight: 700; color: var(--cacau-soft); }
.ticket__code {
  margin: 6px 0 14px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.25rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid var(--cacau);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
}
.chip:hover { background: var(--cacau); color: var(--yolk-pale); }

.ticket__bottom {
  position: relative;
  padding: 22px clamp(20px, 3.2vw, 32px) 26px;
  border-top: 3px dashed rgba(44, 21, 12, 0.28);
}
/* recortes laterais do ingresso */
.ticket__bottom::before,
.ticket__bottom::after {
  content: "";
  position: absolute;
  top: -15px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--yolk);
}
.ticket__bottom::before { left: -14px; }
.ticket__bottom::after { right: -14px; }
.ticket__kit { font-weight: 800; font-size: 1.125rem; line-height: 1.35; text-align: center; text-wrap: balance; }
.ticket__ship { margin-top: 4px; text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--cacau-soft); }
.ticket__hold { margin: 10px 0 18px; text-align: center; font-weight: 600; color: var(--cacau-soft); }
.ticket__hold strong { color: var(--red-deep); font-weight: 800; }
.ticket.is-expired .ticket__hold strong { color: var(--cacau-soft); }

/* ---------- rodapé ---------- */
.foot {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--gutter) 32px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cacau-soft);
}
.foot p { max-width: 70ch; }
.noscript { padding: 16px var(--gutter); font-weight: 700; }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
