/* Quiz Caixa Livre · Fluxo B (estrutura FaceScan, cores vindas do config) */

/* fontes hospedadas junto com o quiz (subset latin do Google Fonts, fontes variáveis):
   sem as 2 conexões extras com fonts.googleapis.com e fonts.gstatic.com */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/playfair-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/playfair-italic-latin.woff2") format("woff2"); }

:root {
  --primary: #1FA34A;
  --primary-dark: #178A3D;
  --accent: #D4A544;
  --bg: #FFFFFF;
  --soft: #F7F1E7;
  --text: #1B1512;
  --muted: #6E655E;
  --border: #E6DCCB;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
strong { font-weight: 700; }

.app { min-height: 100vh; min-height: 100dvh; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- moldura das telas ---------- */
.screen {
  max-width: 460px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: 0 18px 32px;
  padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px));
}
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; }
.back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text); }
.back:hover { background: var(--soft); }
.back svg { width: 20px; height: 20px; }
.back[hidden] { visibility: hidden; display: grid; }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 99px; transition: width .35s ease; }
.body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 12px; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q { font-size: 22px; line-height: 1.28; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.help { color: var(--muted); text-align: center; font-size: 14px; margin-top: 6px; }
.serif { font-family: var(--serif); font-weight: 500; }

/* ---------- opções ---------- */
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; font-weight: 500; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .08s;
}
.opt:hover { border-color: var(--primary); }
.opt:active { transform: scale(.99); }
.opt.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); box-shadow: 0 0 0 1px var(--primary) inset; }
.opt .emo { font-size: 22px; line-height: 1; flex: none; width: 28px; text-align: center; }
.opt .chk { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; }
.opt.sel .chk { background: var(--primary); border-color: var(--primary); }

/* ---------- dica ---------- */
.tip { margin-top: 16px; background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; animation: enter .25s ease both; scroll-margin-bottom: 96px; }
.tip[hidden] { display: none; }

/* botão "Continuar" preso no rodapé: em celular pequeno ele fica sempre à vista, mesmo
   quando as opções ou o print passam da altura da tela. O degradê só cobre o próprio
   espaço do dock, então não esconde nada quando ele está no lugar normal. */
.dock {
  position: sticky; bottom: 0; z-index: 4; margin-top: 6px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent) 0, var(--bg) 14px);
}
.dock[hidden] { display: none; }
.dock .btn { margin-top: 0; }

/* ---------- botões ---------- */
.btn {
  display: block; width: 100%; margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; text-align: center; text-decoration: none;
  box-shadow: 0 10px 24px -12px var(--primary), inset 0 -3px 0 rgba(0,0,0,.16);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn[hidden] { display: none; }
.link { display: block; margin: 14px auto 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.small { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 10px; }

/* ---------- capa ----------
   A capa ocupa exatamente a altura visível (svh = com as barras do navegador à mostra).
   A foto é o único item que encolhe, até 150px, pra título, subtítulo e botão caberem
   sem rolar no navegador do Instagram. Em tela alta ela fica quadrada. */
.screen[data-type=cover] { height: 100vh; height: 100svh; min-height: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.screen[data-type=cover] .body { min-height: 0; padding: 0; }
.cover { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: 16px; }
.cover > * { flex-shrink: 0; }
.cover .cover-img {
  flex: 0 1 auto; width: 100%; height: calc(min(100vw, 460px) - 36px); min-height: 150px;
  object-fit: cover; object-position: 50% 22%; border-radius: 20px; background: var(--soft);
}
.cover-title { font-size: 22px; line-height: 1.3; font-weight: 800; margin-top: 22px; letter-spacing: -.01em; }
.cover-sub { font-size: 21px; line-height: 1.3; margin-top: 12px; }

/* ---------- campo ---------- */
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1.5px solid var(--border);
  font: inherit; font-size: 16px; background: #fff; color: var(--text); outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.input.err { border-color: #C2413A; }
.err-msg { color: #C2413A; font-size: 13px; margin-top: 6px; }
.ask { font-size: 21px; text-align: center; margin-top: 12px; }

/* ---------- frase ---------- */
.quote { font-family: var(--serif); font-size: 27px; line-height: 1.3; text-align: center; font-weight: 500; }
.quote::before { content: "“"; display: block; color: var(--accent); font-size: 54px; line-height: .8; }
.qask { text-align: center; font-weight: 600; margin-top: 22px; }
.answers { display: grid; gap: 10px; margin-top: 16px; }
.ans { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; font-weight: 700; letter-spacing: .04em; background: #fff; }
.ans:hover, .ans.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
.caption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; font-style: italic; }

/* ---------- marco ---------- */
.milestone { text-align: center; }
.milestone .mt { font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 600; }
.milestone .mtx { margin-top: 18px; font-size: 17px; line-height: 1.55; }
.milestone .mtx p + p { margin-top: 12px; }
.milestone .mtx strong { display: inline-block; color: var(--primary-dark); font-size: 1.35em; font-weight: 800; }
.badge-ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); font-size: 26px; }

/* ---------- depoimento no meio do fluxo ---------- */
.depo { text-align: center; }
.depo .dk { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); background: color-mix(in srgb, var(--primary) 10%, #fff); padding: 5px 10px; border-radius: 99px; }
.depo .dt { font-family: var(--serif); font-size: 26px; line-height: 1.25; font-weight: 600; margin-top: 12px; }
.depo .dtx { margin-top: 12px; font-size: 16px; line-height: 1.55; }
.depo .dtx p + p { margin-top: 10px; }
.depo .dtx strong { color: var(--primary-dark); }
.dimg { margin-top: 16px; background: var(--soft); border-radius: 16px; padding: 10px; }
.dimg img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; background: #fff; }
.dimg figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ---------- captura ---------- */
.cap-title { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; text-align: center; font-weight: 500; }
.consent { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 12px; }

/* ---------- carregando ---------- */
.loading { text-align: center; }
.loading .lt { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.25; }
.bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 22px 0 8px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 99px; }
.pct { font-weight: 700; color: var(--primary-dark); }
.checks { list-style: none; text-align: left; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--muted); transition: color .3s; }
.checks li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; transition: all .3s; }
.checks li.done { color: var(--text); font-weight: 600; }
.checks li.done i { background: var(--primary); border-color: var(--primary); }

/* ---------- depoimento ---------- */
.testi { margin-top: 24px; background: var(--soft); border-radius: 16px; padding: 14px; text-align: left; }
.testi img { border-radius: 10px; width: 100%; max-height: 360px; object-fit: contain; background: #fff; }
.testi p { font-size: 14.5px; margin-top: 10px; }

/* ---------- resultado e oferta ---------- */
.result { max-width: 560px; margin: 0 auto; padding: 0 18px 40px; padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
.result section { margin-top: 26px; }
.r-head { padding-top: 26px; text-align: center; }
.r-head h1 { font-family: var(--serif); font-size: 30px; line-height: 1.2; font-weight: 600; }
.r-perfil { margin-top: 14px; font-size: 15px; color: var(--muted); }
.r-perfil strong { display: block; color: var(--text); font-size: 20px; line-height: 1.3; margin-top: 4px; }
.r-support { margin-top: 10px; font-size: 16px; }

.nums { border: 1.5px solid var(--border); border-radius: 18px; padding: 6px 18px 16px; background: #fff; box-shadow: 0 18px 40px -28px rgba(27,21,18,.35); }
.nums .row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.nums .row b { font-size: 17px; white-space: nowrap; }
.nums .big { display: block; text-align: center; padding: 16px 0 6px; }
.nums .big span { display: block; font-size: 14px; color: var(--muted); }
.nums .big b { display: block; font-size: 34px; color: var(--primary-dark); font-weight: 800; letter-spacing: -.01em; }
.nums .big.zero b { font-size: 22px; }
.disc { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 10px; }

.h2 { font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 600; text-align: center; }
.between { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.between li { background: var(--soft); border-radius: 14px; padding: 14px 16px 14px 44px; position: relative; font-size: 15.5px; }
.between li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.absol { margin-top: 16px; text-align: center; font-size: 16px; font-weight: 600; }

.mech-intro { text-align: center; color: var(--muted); margin-top: 6px; }
.mech-items { display: grid; gap: 10px; margin-top: 16px; }
.mech-item { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.mech-item .ic { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, #fff); display: grid; place-items: center; font-size: 18px; flex: none; }
.mech-item b { display: block; color: var(--primary-dark); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.future p { font-family: var(--serif); font-size: 22px; line-height: 1.4; text-align: center; font-weight: 500; }

.roi { background: var(--text); color: #fff; border-radius: 18px; padding: 22px 20px; }
.roi .h2 { color: #fff; }
.roi p { margin-top: 10px; text-align: center; font-size: 16px; }

.offer { text-align: center; border-top: 1px solid var(--border); padding-top: 28px; }
.offer .kicker { color: var(--primary-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.offer .ot { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.offer .oimg { margin: 16px auto 0; max-width: 420px; }
.offer .ointro { margin-top: 14px; font-weight: 600; }
.ben { list-style: none; text-align: left; display: grid; gap: 10px; margin-top: 14px; }
.ben li { display: flex; gap: 10px; font-size: 15px; }
.ben li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.social { margin-top: 16px; font-weight: 600; }
.bonus { margin-top: 18px; background: var(--soft); border-radius: 16px; padding: 16px; text-align: left; }
.bonus h3 { font-size: 16px; }
.bonus ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.bonus li { font-size: 14.5px; padding-left: 26px; position: relative; }
.bonus li::before { content: "🎁"; position: absolute; left: 0; }
.price { margin-top: 22px; border: 2px solid var(--primary); border-radius: 20px; padding: 22px 18px 18px; background: #fff; position: relative; }
.price .pn { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.price .pi { font-size: 34px; font-weight: 800; color: var(--primary-dark); margin-top: 6px; letter-spacing: -.01em; }
.price .pc { font-weight: 600; }
.guar { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

.blk { margin-top: 26px; }
.blk-text p { margin-top: 8px; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-top: 14px; }
.carousel img { flex: 0 0 78%; scroll-snap-align: center; border-radius: 12px; border: 1px solid var(--border); max-height: 440px; object-fit: contain; background: #fff; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; text-align: left; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }
.foot { color: var(--muted); font-size: 11.5px; text-align: center; margin-top: 36px; line-height: 1.5; }

@media (min-width: 520px) {
  .q, .cover-title { font-size: 24px; }
  .quote { font-size: 30px; }
}
/* tela baixa (navegador do Instagram/Facebook em celular pequeno): tudo um pouco mais junto */
@media (max-height: 680px) {
  .topbar { padding: 10px 0 6px; }
  .q { font-size: 20px; }
  .opts { gap: 8px; margin-top: 16px; }
  .opt { padding: 11px 14px; font-size: 14.5px; }
  .opt .emo { font-size: 20px; }
  .tip { margin-top: 12px; padding: 12px 14px; font-size: 14px; }
  .quote { font-size: 24px; }
  .quote::before { font-size: 46px; }
  .qask { margin-top: 16px; }
  .milestone .mt { font-size: 26px; }
  .badge-ok { width: 48px; height: 48px; margin-bottom: 14px; font-size: 22px; }
  .depo .dt { font-size: 22px; }
  .depo .dtx { font-size: 15px; }
  .dimg img, .testi img { max-height: 300px; }
  .cover { padding-top: 12px; }
  .cover-title { font-size: 20px; margin-top: 14px; }
  .cover-sub { font-size: 18px; margin-top: 8px; }
  .cover .btn { margin-top: 14px; }
  .link { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
