/* ==========================================================================
   Estética Viral — quiz funnel
   Paleta nude + dourado (nicho estética), CTA verde para conversão.
   ========================================================================== */

:root {
  --nude-50:  #FDFBF9;
  --nude-100: #F8F2EC;
  --nude-200: #EFE3D6;
  --nude-300: #E2D0BE;

  --ink:      #26201C;
  --ink-soft: #5B4E45;
  --muted:    #8A7A6E;

  --gold:      #C8A45C;
  --gold-deep: #A07C34;
  --gold-soft: #F6ECDA;

  --green:      #17A24A;
  --green-deep: #0E7C38;
  --green-soft: #E4F5E9;

  --rose:      #E9B7B0;
  --danger:    #C0392B;
  --danger-bg: #FBE4E1;

  --radius:    18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(38,32,28,.06), 0 4px 12px rgba(38,32,28,.05);
  --shadow-md: 0 2px 6px rgba(38,32,28,.07), 0 14px 34px rgba(38,32,28,.09);
  --shadow-cta: 0 6px 18px rgba(23,162,74,.32);

  --wrap: 560px;
  --ease: cubic-bezier(.22,.8,.3,1);

  /* Tamanho único para todo texto de apoio (legendas, opções, avisos, rodapé
     de oferta) — mantém o quiz inteiro no mesmo padrão de leitura.
     Menor no celular, maior a partir de tablet/desktop (ver media query
     no fim do arquivo). */
  --text-body: 18px;
}

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

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

body {
  margin: 0;
  background: var(--nude-50);
  background-image:
    radial-gradient(1100px 520px at 50% -180px, #FFF7EE 0%, rgba(255,247,238,0) 70%);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.0;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.hl { color: var(--green-deep); font-weight: 700; }

/* --------------------------------------------------------------- topbar -- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253,251,249,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--nude-200);
  padding: 10px 0 11px;
}

.topbar__inner {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
}

.progress {
  flex: 1;
  height: 7px;
  background: var(--nude-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
  transition: width .55s var(--ease);
}

.topbar__count {
  flex: none;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- shell -- */

.quiz {
  flex: 1;
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  padding: 26px 0 40px;
}

.step {
  animation: stepIn .45s var(--ease) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- typography -- */

h1, h2, h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 8vw, 40px); }
h2 { font-size: clamp(24px, 6.2vw, 31px); }
h3 { font-size: 19px; }

.lead {
  font-size: var(--text-body);
  color: var(--ink-soft);
  margin: 0 0 22px;
  text-wrap: pretty;
}

.hint {
  font-size: var(--text-body);
  color: var(--muted);
  margin: -6px 0 20px;
}

.center { text-align: center; }

/* ------------------------------------------------------------- elements -- */

.badge {
  display: inline-block;
  font-size: 16px; font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid var(--nude-300);
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 0 22px;
  line-height: 0;
}
.hero img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

/* ------------------------------------------------------------- botões ---- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  border: 0; border-radius: 99px;
  font: inherit; font-size: var(--text-body); font-weight: 700;
  letter-spacing: .01em;
  text-align: center; text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,162,74,.38); }
.btn:active { transform: translateY(0) scale(.99); }
.btn[disabled] {
  background: var(--nude-200);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn__arrow { font-size: 1.05em; line-height: 1; }

.btn--pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(23,162,74,.32); }
  50%      { box-shadow: 0 6px 30px rgba(23,162,74,.55); }
}

.cta-wrap { margin-top: 26px; }
.cta-note {
  margin: 14px 0 0;
  font-size: var(--text-body); color: var(--muted); text-align: center;
}

/* --------------------------------------------------------- opções lista -- */

.options { display: grid; gap: 12px; margin: 4px 0 0; }

.option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font: inherit; font-size: var(--text-body); font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--nude-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease), background-color .18s;
}
.option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.option__mark {
  flex: none;
  width: 24px; height: 24px;
  border: 2px solid var(--nude-300);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .18s var(--ease);
}
.option__mark svg { width: 13px; height: 13px; opacity: 0; transform: scale(.4); transition: all .18s var(--ease); color: #fff; }
.option[aria-checked="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.option[aria-checked="true"] .option__mark {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.option[aria-checked="true"] .option__mark svg { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------------- cards foto --- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0;
  text-align: center;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--nude-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }

.card__media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--nude-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.card--illustration .card__media { aspect-ratio: 1 / 1; padding: 8px; background: #fff; }
.card--illustration .card__media img { object-fit: contain; }

.card__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 16px 16px 18px;
}
.card__title {
  font-size: var(--text-body); font-weight: 700; line-height: 1.0;
  overflow-wrap: break-word; -webkit-hyphens: none; hyphens: none;
}
.card__label {
  font-size: var(--text-body); line-height: 1.0; color: var(--ink-soft);
  overflow-wrap: break-word; -webkit-hyphens: none; hyphens: none;
}

.card__check {
  position: absolute; top: 9px; right: 9px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--nude-300);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: all .2s var(--ease);
}
.card__check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }

.card[aria-checked="true"] { border-color: var(--gold-deep); background: var(--gold-soft); }
.card[aria-checked="true"] .card__check { background: var(--gold-deep); border-color: var(--gold-deep); }
.card[aria-checked="true"] .card__check svg { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------------- input --- */

.field { margin: 6px 0 0; }
.field__label {
  display: block;
  font-size: var(--text-body); font-weight: 700; line-height: 1.0;
  margin-bottom: 10px;
}
.field__box {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--nude-200);
  border-radius: 99px;
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field__box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,164,92,.18);
}
.field__at { font-size: var(--text-body); font-weight: 600; color: var(--muted); padding-right: 2px; }
.field__box input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: var(--text-body);
  color: var(--ink);
  padding: 18px 0;
  min-width: 0;
}
.field__box input::placeholder { color: #B9AAA0; }

.field__error {
  display: none;
  color: var(--danger);
  font-size: var(--text-body); font-weight: 600;
  margin: 10px 0 0;
}
.field__error.is-visible { display: block; }

/* ------------------------------------------------------------- loading --- */

.loading {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 22px;
  padding: 20px 0;
}

.loading__spinner {
  width: 54px; height: 54px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 3px solid var(--nude-200);
  border-top-color: var(--gold-deep);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading__list {
  display: grid; gap: 16px;
  margin: 0 auto; padding: 0;
  list-style: none;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.loading__item {
  display: flex; align-items: center; gap: 13px;
  font-size: var(--text-body); font-weight: 600;
  color: #C0B3A9;
  transition: color .35s var(--ease);
}
.loading__icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--nude-200);
  display: grid; place-items: center;
  color: #fff;
  transition: background-color .35s var(--ease);
}
.loading__icon svg { width: 14px; height: 14px; }

.loading__item.is-active { color: var(--gold-deep); }
.loading__item.is-active .loading__icon { background: var(--gold); animation: beat 1.1s ease-in-out infinite; }
.loading__item.is-done   { color: var(--ink); }
.loading__item.is-done .loading__icon { background: var(--green); }
@keyframes beat { 50% { transform: scale(1.14); } }

.loading__track {
  height: 7px;
  background: var(--nude-200);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.loading__fill {
  height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transition: width .4s linear;
}

/* -------------------------------------------------------------- análise -- */

.kicker {
  display: inline-block;
  font-size: var(--text-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 10px 20px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.handle-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--text-body); font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--nude-200);
  padding: 10px 20px;
  border-radius: 99px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.chart {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--nude-200);
  margin: 4px 0 28px;
  line-height: 0;
}
.chart img { width: 100%; display: block; border-radius: var(--radius); }

.erro {
  background: var(--danger-bg);
  border: 1px solid #F3C9C3;
  border-left: 5px solid var(--rose);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
}
.erro.is-in { animation: stepIn .5s var(--ease) both; }

.erro__title {
  display: flex; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body); font-weight: 700; line-height: 1.0;
  margin: 0 0 10px;
  color: #7E2B21;
}
.erro p { margin: 0 0 10px; font-size: var(--text-body); color: #4B2C27; }
.erro p:last-child { margin-bottom: 0; }

.virada { margin: 34px 0 20px; text-align: center; }
.virada h2 { font-size: clamp(22px, 5.6vw, 28px); }

.slider {
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  background: linear-gradient(90deg, #E8705F 0%, #E9B14C 50%, #4FD07A 100%);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.slider__title {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body); font-weight: 700; line-height: 1.0; color: #21331F;
  margin: 0 0 18px;
  text-align: center;
}
.slider__track {
  position: relative;
  height: 14px;
  background: rgba(255,255,255,.85);
  border-radius: 99px;
  margin-bottom: 16px;
}
.slider__knob {
  position: absolute; top: 50%; left: 0;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: left 1.6s var(--ease);
}
.slider__labels {
  display: flex; justify-content: space-between;
  font-size: var(--text-body); font-weight: 700; color: #21331F;
}

.destaque {
  background: var(--green-soft);
  border: 1px solid #BDE3C9;
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  font-size: var(--text-body);
  margin-bottom: 24px;
}
.destaque p { margin: 0; }

.fecho { text-align: center; margin-bottom: 8px; }
.fecho p { margin: 0 0 12px; font-size: var(--text-body); }

/* --------------------------------------------------------------- oferta -- */

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin: 0 auto 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #17120F;
  box-shadow: var(--shadow-md);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* O player da VTurb já define a própria largura máxima e proporção
   (caixa vertical 9:16 via padding-top), então a moldura só entra com
   os cantos arredondados e a sombra — sem forçar tamanho por cima. */
.video-frame--vturb {
  aspect-ratio: auto;
  max-width: none;
}

.video-frame__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  color: #EFE3D6;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, #3A2E27 0%, #17120F 100%);
}
.video-frame__play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  font-size: 24px;
  padding-left: 5px;
}
.video-frame__placeholder small { font-size: var(--text-body); opacity: .7; max-width: 22ch; line-height: 1.0; }

.bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: var(--text-body);
  background: #fff;
  border: 1px solid var(--nude-200);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.bullets li::before {
  content: '✓';
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px; font-weight: 700;
  display: grid; place-items: center;
  margin-top: 2px;
}

.offer-card {
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.offer-card__flag {
  background: linear-gradient(90deg, #E33D2B, #C0392B);
  color: #fff;
  font-size: var(--text-body); font-weight: 700;
  text-align: center;
  padding: 12px 14px;
}
.offer-card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px;
  flex-wrap: wrap;
}
.offer-card__name {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: var(--text-body); font-weight: 700; line-height: 1.0;
}
.offer-card__price {
  background: var(--nude-100);
  border-radius: 14px;
  padding: 8px 12px;
  text-align: right;
  line-height: 1.0;
}
.offer-card__from { display: block; font-size: var(--text-body); color: var(--muted); text-decoration: line-through; }
.offer-card__now  { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.offer-card__now small { font-size: 14px; font-weight: 700; }
.offer-card__cash { display: block; font-size: var(--text-body); color: var(--muted); }

.timer { text-align: center; margin: 26px 0 8px; }
.timer__ring {
  width: 116px; height: 116px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid var(--danger);
  display: grid; place-items: center;
  font-size: 29px; font-weight: 700;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
  background: #fff;
  box-shadow: 0 6px 20px rgba(192,57,43,.16);
}
.timer__label { color: var(--danger); font-weight: 600; font-size: var(--text-body); margin: 8px 0 0; }

.guarantee {
  margin: 22px 0 0;
  padding: 18px 20px;
  background: var(--nude-100);
  border: 1px dashed var(--nude-300);
  border-radius: 14px;
  font-size: var(--text-body); color: var(--ink-soft);
  text-align: center;
}

/* Barra fixa de checkout: entra quando o botão principal sai da tela. */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(253,251,249,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--nude-200);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.dock.is-visible { transform: none; opacity: 1; visibility: visible; }
.dock .btn { max-width: var(--wrap); margin-inline: auto; min-height: 56px; }

/* --------------------------------------------------------------- footer -- */

.sitefoot {
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--nude-200);
}
.sitefoot p { margin: 0; }

/* ------------------------------------------------------------ responsivo -- */

@media (min-width: 620px) {
  :root { --text-body: 24px; }
  body { font-size: 17.5px; }
  .quiz { padding: 38px 0 56px; }
  .cards { gap: 16px; }
  .video-frame { max-width: 380px; }
  .offer-card__body { padding: 18px 20px; gap: 14px; }
  .offer-card__price { padding: 10px 16px; }
  .offer-card__now { font-size: 34px; }
  .offer-card__now small { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
