/* ============================================================================
   CERO SENTADILLAS — QUIZ · design system do handoff §3
   vinho #7B2D3E = marca/seleção · verde #1B7A4D = CTA de avanço
   mobile-first · container ~max-w-md · sem animação > 300ms (exceto loading)
============================================================================ */
:root {
  --bg: #faf7f5;
  --bg-2: #f3ecea;
  --card: #ffffff;
  --line: rgba(123, 45, 62, .14);
  --line-2: rgba(123, 45, 62, .28);
  --tx: #2b1a1f;
  --tx-soft: #6f5a60;
  --tx-mute: #a08d93;
  --brand: #7B2D3E;
  --brand-soft: rgba(123, 45, 62, .08);
  --go: #1B7A4D;
  --go-2: #14603c;
  --urgent: #b3261e;
  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 16px 40px -18px rgba(123, 45, 62, .25);
  --maxw: 448px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
.hl { color: var(--brand); font-weight: 700; }

/* ------------------------------------------------ topbar (perfil IG) */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar__row {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 14px;
}
.topbar__back {
  background: none; border: 0; color: var(--tx); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
}
.topbar__back:disabled { opacity: .3; }
.topbar__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand);
}
img.topbar__avatar, img.story__avatar { object-fit: cover; }
.topbar__name { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__namerow { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.topbar__name em { font-style: normal; color: var(--tx-mute); font-size: 12px; }
.timerbar {
  background: var(--urgent); color: #fff; text-align: center; padding: 6px 10px;
}
.timerbar__l1 { display: block; font-weight: 800; font-size: 11.5px; letter-spacing: .4px; }
.timerbar__l2 { display: block; font-weight: 500; font-size: 10.5px; opacity: .92; }
.progress { height: 4px; background: var(--bg-2); }
.progress__bar { height: 100%; background: var(--go); transition: width .3s ease; }

/* ------------------------------------------------ stage */
.stage { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 40px; }
.screen--testimonial, .screen--vsl { margin: -18px -16px -40px; }

.q__title {
  font-size: clamp(21px, 6vw, 26px); font-weight: 800; line-height: 1.25;
  color: var(--tx); margin: 6px 0 18px;
}
.q__title--center { text-align: center; }
.kicker { color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: 1.2px; }

/* opções em lista */
.qopts { display: flex; flex-direction: column; gap: 10px; }
.qopt {
  text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 15px 16px; font-size: 15.5px; font-weight: 600;
  color: var(--tx); transition: all .15s ease;
}
.qopt.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* grid de cards com foto */
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qgrid--3 { grid-template-columns: 1fr; gap: 10px; }
.qgrid--3 .qcard { flex-direction: row; align-items: stretch; }
.qgrid--3 .qcard__imgwrap { aspect-ratio: 1/1; width: 42%; flex-shrink: 0; }
.qgrid--3 .qcard__imgwrap img { object-position: center 55%; }
.qgrid--3 .qcard__bar {
  flex: 1; display: flex; align-items: center; text-align: left;
  padding: 10px 14px; font-size: 14px; line-height: 1.35;
}
.qcard {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  overflow: hidden; padding: 0; display: flex; flex-direction: column;
  transition: all .15s ease; box-shadow: var(--shadow);
}
.qcard.is-selected { border-color: var(--brand); transform: scale(.98); }
.qcard__imgwrap { display: block; aspect-ratio: 3/4; background: var(--bg-2); position: relative; overflow: hidden; }
.qcard__imgwrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.qcard__bar {
  display: block; padding: 10px 8px; font-weight: 700; font-size: 13.5px; color: var(--tx);
  background: var(--card); text-align: center;
}

/* placeholder de imagem ausente */
.ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-soft), var(--bg-2)); }
.ph__label { color: var(--brand); font-size: 11px; font-weight: 700; opacity: .6; padding: 6px; text-align: center; }

/* decor (mockups) */
.qdecor { display: flex; gap: 12px; margin-top: 18px; justify-content: center; }
.qdecor__item { width: 44%; aspect-ratio: 9/16; display: block; background: transparent; }
.qdecor__item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.16)); }

/* ------------------------------------------------ CTA */
.cta {
  display: block; width: 100%; margin-top: 18px;
  background: var(--go); color: #fff; border: 0; border-radius: var(--r-sm);
  padding: 16px; font-size: 16px; font-weight: 800; letter-spacing: .3px;
  transition: background .15s ease, transform .1s ease;
}
.cta:active { transform: scale(.98); background: var(--go-2); }
.cta--big { padding: 18px; font-size: 17px; }
.shake { animation: shake .3s ease; }
@keyframes shake { 25% { transform: translateX(-5px);} 75% { transform: translateX(5px);} }

/* ------------------------------------------------ medidas */
.mform { display: flex; gap: 12px; }
.mfield { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mfield__label { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--tx-soft); }
.mfield__box {
  display: flex; align-items: center; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 4px 14px;
}
.mfield__box input {
  width: 100%; border: 0; outline: 0; font: inherit; font-size: 22px; font-weight: 700;
  padding: 10px 0; color: var(--tx); background: none; -moz-appearance: textfield;
}
.mfield__box input::-webkit-outer-spin-button, .mfield__box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mfield__box b { color: var(--tx-mute); font-size: 14px; }
.mnote { margin-top: 14px; color: var(--tx-soft); font-size: 13.5px; line-height: 1.45; }
.mnote--extra { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------ stories / vídeo */
.story { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
.story__bars { display: flex; gap: 4px; padding: 10px 12px 6px; position: relative; z-index: 3; }
.story__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.story__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: storybar linear forwards; animation-duration: 30s; }
@keyframes storybar { from { transform: scaleX(0);} to { transform: scaleX(1);} }
.story__head { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; position: relative; z-index: 3; }
.story__avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; flex: none;
}
.story__who { color: #fff; display: flex; flex-direction: column; line-height: 1.2; }
.story__who strong { font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.story__who em { font-style: normal; font-size: 12px; opacity: .85; }
.vwrap { position: relative; }
.vwrap--story { flex: 1; display: flex; }
.vwrap--story video { width: 100%; height: 100%; object-fit: cover; }
.vsound {
  position: absolute; inset: 0; margin: auto; width: min(78%, 300px); height: 92px;
  background: rgba(0,0,0,.65); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 16px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.vsound span { font-weight: 800; font-size: 15px; }
.vsound em { font-style: normal; font-size: 13px; opacity: .85; }

/* placeholder DEV de vídeo */
.vdev__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: rgba(255,255,255,.85);
  background: repeating-linear-gradient(45deg, #1c1c22 0 22px, #23232b 22px 44px);
  font-size: 12.5px; z-index: 1;
}
.vdev__ph strong { font-size: 15px; letter-spacing: 1px; }
.vdev__skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: var(--go); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 800;
}
.vwrap--reels .vdev__ph { position: static; height: 100%; }

/* ------------------------------------------------ loading */
.screen--loading { text-align: center; }
.loading { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 12vh 26px 0; gap: 22px; }
.loading__msg { font-size: 21px; font-weight: 800; line-height: 1.35; color: var(--tx); max-width: 340px; }
.loading__dots { display: flex; gap: 8px; }
.loading__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: pulse 1s ease-in-out infinite; }
.loading__dots i:nth-child(2) { animation-delay: .18s; }
.loading__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7);} }
.loading__frame { width: min(72%, 270px); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.loading__img { display: block; aspect-ratio: 9/14; background: var(--bg-2); }
.loading__img img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------ diagnóstico */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ba__col { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ba__tag { font-size: 12px; font-weight: 800; color: var(--tx-soft); text-align: center; }
.ba__tag--gold { color: var(--brand); }
.ba__img { display: block; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__bubble {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: rgba(43,26,31,.85); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 5px 10px;
}
.ba__bubble--gold { background: var(--brand); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cmp__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.cmp__col b { font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--tx-mute); margin-top: 6px; }
.cmp__col b:first-child { margin-top: 0; }
.cmp__col span { font-size: 13.5px; font-weight: 700; }
.cmp__bars { display: flex; gap: 4px; padding-top: 4px; }
.cmp__bars i { width: 18px; height: 7px; border-radius: 4px; background: var(--bg-2); }
.cmp__bars i.on { background: var(--go); }
.imc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin-bottom: 14px; }
.imc__chip { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.imc p { font-size: 14px; line-height: 1.5; color: var(--tx); }
.imc strong { color: var(--brand); font-size: 16px; }
.empatia { text-align: center; font-weight: 700; color: var(--brand); font-size: 15px; margin: 6px 0 4px; }

/* ------------------------------------------------ oferta (post reels) */
.screen--offer { padding-bottom: 30px; }
.reels { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.reels__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.reels__who { display: flex; flex-direction: column; line-height: 1.2; }
.reels__who strong { font-size: 14px; }
.reels__who em { font-style: normal; font-size: 11.5px; color: var(--tx-mute); }
.reels__more { margin-left: auto; color: var(--tx-mute); letter-spacing: 2px; }
.reels__caption { font-size: 16.5px; font-weight: 700; line-height: 1.4; padding: 0 14px 12px; }
.reels__video { position: relative; aspect-ratio: 9/13; background: #000; }
.reels__video video { width: 100%; height: 100%; object-fit: cover; }
.reels__cta {
  display: block; margin: 12px 14px 4px; text-align: center; text-decoration: none;
  background: var(--go); color: #fff; border-radius: var(--r-sm);
  padding: 16px; font-size: 16px; font-weight: 800;
  animation: ctapulse 1.6s ease-in-out infinite;
}
@keyframes ctapulse { 50% { transform: scale(1.02); box-shadow: 0 8px 22px -8px rgba(27,122,77,.55);} }
.reels__actions { display: flex; gap: 18px; padding: 12px 16px 16px; color: var(--tx-soft); font-size: 14px; font-weight: 600; }
