/* Design tokens -------------------------------------------------------- */
:root {
  --bg: #f4f4f2;
  --bg-soft: #f7f5fb;
  --text: #201629;
  --text-muted: #6b6075;
  --border: #e8e3ef;
  --primary: #4b1664;
  --primary-hover: #3a1150;
  --primary-soft: #f1e9f8;
  --primary-soft-border: #d9c7ea;
  --danger: #b3261e;
  /* Verde da logo Encontre Sua Franquia — cor principal dos botões de ação. */
  --brand-green: #8cc63f;
  --brand-green-dark: #6fa82a;
  --ink: #21182a;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(32, 22, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(32, 22, 41, 0.08);
  --max: 560px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(900px 500px at 12% -5%, rgba(140, 198, 63, .16), transparent 60%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Botões --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  border: none; border-radius: var(--radius-lg); cursor: pointer; padding: 16px 28px;
  text-decoration: none; transition: transform .15s ease, background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand-green); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(111,168,42,.55); }
.btn-primary:not(:disabled):hover { background: #98d046; }
.btn-primary:not(:disabled):active { transform: scale(.98); }
.btn-lg { padding: 17px 30px; font-size: 16px; width: 100%; text-transform: uppercase; letter-spacing: .03em; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--text-muted); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px; }
.icon-btn { background: none; border: none; color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; display: flex; }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.ic { flex: none; }

/* ============ LANDING ============ */
#v-landing {
  min-height: 100vh; display: flex; align-items: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #3a2a4a 0%, transparent 60%), linear-gradient(160deg, #2a1f34 0%, #21182a 60%, #1a1221 100%);
}
.hero { width: 100%; padding: 40px 0 48px; position: relative; z-index: 1; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 300px at 10% 110%, rgba(140, 198, 63, .18), transparent 70%),
    radial-gradient(400px 260px at 100% 10%, rgba(242, 164, 28, .12), transparent 70%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; position: relative; z-index: 1; }
.hero-tx { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }

/* Selo de curadoria --------------------------------------------------- */
.esf-selo {
  --selo-size: 108px;
  --selo-velocidade: 18s;
  position: relative; width: var(--selo-size); height: var(--selo-size); flex: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}
.esf-selo__base, .esf-selo__texto { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.esf-selo__texto { animation: esf-selo-girar var(--selo-velocidade) linear infinite; transform-origin: 50% 50%; }
.esf-selo__texto text { font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: 2px; fill: #2a1f34; }
.esf-selo__simbolo { position: absolute; left: 31%; top: 31%; width: 38%; height: 38%; object-fit: contain; }
.esf-selo:hover .esf-selo__texto { animation-play-state: paused; }
@keyframes esf-selo-girar { to { transform: rotate(360deg); } }

.esf-curadoria {
  display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: 6px;
}
.esf-curadoria__tx { min-width: 0; display: grid; gap: 3px; text-align: left; }
.esf-curadoria__k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-green); }
.esf-curadoria__d { margin: 0; font-size: 14px; line-height: 1.4; color: #d9d0df; }
@media (prefers-reduced-motion: reduce) {
  .esf-selo__texto { animation: none; }
}

.hero-h { font-size: clamp(28px, 7vw, 42px); line-height: 1.12; font-weight: 800; margin: 0; letter-spacing: -.4px; color: #fff; }
.hero-h em { font-style: normal; background: linear-gradient(90deg, #b5dd5e, var(--brand-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-s { font-size: 16px; color: #d9d0df; margin: 0; max-width: 480px; }
.hero-highlight { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #f2a41c; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.hero-highlight svg { flex: none; color: #f2a41c; }
.hero-meta { font-size: 13px; color: #bfb3c6; margin: 4px 0 0; }

.resume { width: 100%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #fff; }
.resume-actions { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.link-light { color: #d9d0df; }


/* ============ QUIZ ============ */
.quiz { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1000px 600px at 88% -5%, rgba(140, 198, 63, .16), transparent 60%), var(--bg); }
.qbar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 10; }
.qbar-in { max-width: var(--max); margin: 0 auto; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.qbar-mid { flex: 1; }
.qbar-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.prog { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.prog > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green)); border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); width: 0%; position: relative; overflow: hidden; }
.prog > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.2s ease-in-out infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.quiz-main { flex: 1; display: flex; align-items: center; padding: 24px 0 100px; }
.quiz-stage { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.q-card { animation: qin .35s cubic-bezier(.2,.8,.2,1) both; }
.q-card.is-back { animation: qback .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qin { from { opacity: 0; transform: translateX(18px); } }
@keyframes qback { from { opacity: 0; transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) {
  .q-card, .q-card.is-back { animation: none; }
}
.q-eyebrow { font-size: 13px; font-weight: 800; color: var(--brand-green-dark); margin: 0 0 6px; }
.q-title { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.2px; }
.q-subtitle { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }
.q-title + .opts, .q-title + .field, .q-title + .loc { margin-top: 20px; }

.qfoot { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 65%, transparent); padding-top: 24px; }
.qfoot-in { max-width: var(--max); margin: 0 auto; padding: 18px 20px; }

/* Tela de transição que precisa chamar atenção (ex.: "quase pronto") ------ */
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(135deg, #3a1f30, #4a2438); border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: 0 16px 36px -16px rgba(32, 10, 24, .55);
  animation: info-in .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes info-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.info-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .14);
  color: #ff8aa0; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  animation: info-wiggle 1.8s ease-in-out .4s infinite;
}
@keyframes info-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-5deg); } }
.info-card .q-title { color: #fff; margin-bottom: 6px; }
.info-card .q-subtitle { margin-bottom: 0; color: #e7c9d4; }
@media (prefers-reduced-motion: reduce) {
  .info-card, .info-ic { animation: none; }
}

/* Opções (cards) --------------------------------------------------------- */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  --i: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 15px 16px; cursor: pointer; box-shadow: var(--shadow-sm);
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .1s ease, box-shadow .15s ease;
  animation: optin .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms + 60ms);
}
@keyframes optin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .opt { animation: none; }
}
.opt:hover { border-color: var(--primary-soft-border); background: var(--bg-soft); }
.opt:active { transform: scale(.985); }
.opt.is-on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft-border); }
.opt.is-dim { opacity: .4; cursor: not-allowed; }
.opt-tx { flex: 1; }
.opt-help { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-top: 3px; }
.opt-ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.opt.is-on .opt-ic { background: var(--primary); color: #fff; }
.opt-check { flex: none; color: var(--primary); opacity: 0; transition: opacity .15s ease, transform .25s cubic-bezier(.2,.8,.2,1); transform: scale(.6); }
.opt.is-on .opt-check { opacity: 1; transform: scale(1); }
.sel-count { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 10px; min-height: 18px; }
.note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px;
  background: linear-gradient(135deg, #2a1f34, #382a45); border-radius: var(--radius-md);
  box-shadow: 0 10px 26px -14px rgba(32, 22, 41, .5);
}
.note-ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(242, 164, 28, .18); color: #f2a41c; display: flex; align-items: center; justify-content: center; flex: none; }
.note-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f2a41c; margin: 0 0 4px; }
.note-tx { margin: 0; font-size: 13.5px; line-height: 1.5; color: #efeaf3; }

/* Campos de texto -------------------------------------------------------- */
.field { margin-top: 4px; }
.field-open { margin-top: 14px; }
.input {
  width: 100%; font-family: var(--font); font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--text);
  outline: none; transition: border-color .15s ease;
}
.input:focus { border-color: var(--primary); }
.input-xl { font-size: 19px; font-weight: 700; padding: 16px 18px; }
.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }

.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.check-row input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.check-row-lg { font-size: 14.5px; color: var(--text); background: var(--bg-soft); padding: 14px 16px; border-radius: var(--radius-md); }

/* Localização ------------------------------------------------------------ */
.loc .field + .field { margin-top: 18px; }
.uf-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.uf {
  min-width: 44px; padding: 9px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--text); cursor: pointer;
}
.uf:hover { border-color: var(--primary-soft-border); }
.uf.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ PROCESSAMENTO ============ */
.proc {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(1100px 600px at 85% -10%, #3a2a4a 0%, transparent 60%), linear-gradient(160deg, #2a1f34 0%, #21182a 60%, #1a1221 100%);
}
.proc-in { max-width: 420px; text-align: center; padding: 0 24px; }
.proc-orb { position: relative; width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.proc-orb img { width: 56px; height: 56px; object-fit: contain; }
.proc-orb span { position: absolute; inset: -12px; border-radius: 50%; border: 2.5px solid transparent; border-top-color: var(--brand-green); border-right-color: rgba(140, 198, 63, .3); animation: proc-spin 1.3s linear infinite; }
.proc-orb span:last-child { inset: -22px; border-width: 2px; border-top-color: #f2a41c; border-right-color: transparent; animation-duration: 2.1s; animation-direction: reverse; opacity: .7; }
@keyframes proc-spin { to { transform: rotate(360deg); } }
.proc-h { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.proc-s { font-size: 14.5px; color: #d9d0df; margin: 0 0 24px; }

.proc-bar { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.proc-bar > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green)); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.proc-pct { font-size: 12.5px; font-weight: 700; color: var(--brand-green); margin: 0 0 20px; font-variant-numeric: tabular-nums; }

.proc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.proc-list li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: #8f84a0; background: transparent;
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
}
.proc-list li.on { opacity: 1; transform: none; color: #cfc5da; }
.proc-list li.done { background: rgba(255, 255, 255, .06); color: #fff; }
.proc-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; }
.proc-list li.on:not(.done) .proc-ic { border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--brand-green); animation: proc-spin .8s linear infinite; }
.proc-list li.done .proc-ic { background: var(--brand-green); border-color: var(--brand-green); color: var(--ink); animation: none; }
.proc-ic svg { opacity: 0; transition: opacity .2s ease; }
.proc-list li.done .proc-ic svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .proc-list li, .proc-orb span, .proc-ic { transition: none; animation: none; }
}

/* ============ CONVERSÃO WHATSAPP ============ */
.result {
  min-height: 100vh; padding: 48px 0; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #3a2a4a 0%, transparent 60%), linear-gradient(160deg, #2a1f34 0%, #21182a 60%, #1a1221 100%);
}
.wa-in { display: flex; flex-direction: column; text-align: center; align-items: center; }
.wa-bar { position: relative; width: 100%; max-width: 560px; height: 32px; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
#wa-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-green-dark), var(--brand-green)); border-radius: 999px; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.wa-bar-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.wa-title { font-size: clamp(24px, 5vw, 30px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.3px; color: #fff; }
.wa-text { font-size: 16px; color: #d9d0df; margin: 0 0 8px; max-width: 480px; }
.wa-text strong { color: var(--brand-green); }

.henrique-banner { width: 100%; max-width: 480px; height: auto; border-radius: 15px; margin: 24px 0; }

.wa-checklist {
  width: 100%; max-width: 420px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px; text-align: left;
}
.wa-checklist strong { display: block; font-size: 14.5px; color: #fff; margin-bottom: 12px; }
.wa-checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wa-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #e6dfea; }
.wa-check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-green); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.wa-checklist-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #cdc3d6; line-height: 1.5; }

.wa-cta-block { width: 100%; max-width: 420px; }
.wa-fine { text-align: center; font-size: 12.5px; color: #bfb3c6; margin: 10px 0 0; }
.wa-config-warning { font-size: 12px; color: #ff9b94; text-align: center; margin: 10px 0 0; }

/* Botão do WhatsApp — verde oficial (quebra o roxo de propósito: reconhecimento
   instantâneo de que o botão abre o WhatsApp) + pulso em loop pra chamar atenção. */
.btn-whatsapp {
  --wa-green: #25d366;
  background: var(--wa-green);
  color: #fff;
}
.btn-whatsapp:not(:disabled):hover { background: #1fb959; }
.wa-ic-wrap { display: inline-flex; flex: none; }

@keyframes wa-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.btn-pulse { animation: wa-pulse-ring 2.2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}

/* Rodapé ------------------------------------------------------------------ */
.foot { padding: 28px 0 40px; }
.foot-in p { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 8px; }
.foot-in a { color: var(--primary); }
.fine { opacity: .8; }

/* Desktop: respiro maior e tudo mais centralizado ------------------------- */
@media (min-width: 720px) {
  .wrap, .quiz-stage, .qbar-in, .qfoot-in { max-width: var(--max); }
  .hero { padding: 72px 0; }
  .btn-lg { width: auto; min-width: 320px; }
  .q-title, .q-subtitle { text-align: left; }
  .quiz-main { padding: 48px 0 120px; }
  .foot-in { text-align: center; }
  .esf-selo { --selo-size: 128px; }
  .esf-selo__texto text { font-size: 16px; letter-spacing: 2.4px; }
  .esf-curadoria { padding: 12px 26px 12px 12px; gap: 18px; }
  .esf-curadoria__k { font-size: 15px; }
  .esf-curadoria__d { font-size: 15px; }
}

@media (min-width: 1024px) {
  .hero-h, .hero-s { max-width: 560px; }
  .btn-lg { width: auto; min-width: 320px; }
}

/* Mobile: tira o centro-vertical forçado (que criava vão enorme no topo),
   mas mantém o fundo roxo preenchendo a tela toda (senão o rodapé branco
   aparece colado embaixo do hero). Conteúdo alinhado mais pro topo, com
   a seta do botão acompanhando o texto em vez de flutuar no meio. */
@media (max-width: 719px) {
  #v-landing { align-items: flex-start; }
  .hero { padding: 28px 0 44px; position: static; }
  .hero-glow { position: absolute; }
  [data-start] { display: block; text-align: center; line-height: 1.35; }
  [data-start] #hero-cta-label { display: inline; }
  [data-start] .ic { display: inline-block; vertical-align: -4px; margin-left: 8px; }
  .esf-curadoria + .hero-h { margin-top: 22px; }
  .hero-highlight { margin-top: 20px; }
  [data-start] { margin-top: 20px; }
}
