/* ==========================================================================
   LuzSim Energia — funis de aquisição (quiz, elegibilidade, calculadora,
   advertorial, VSL e obrigado). Usa as variáveis, fontes e botões do main.css.
   ========================================================================== */

.funil { background: var(--lilac); min-height: 100vh; display: flex; flex-direction: column; }
.funil main { flex: 1; }
.funil--white { background: var(--white); }
.funil--night { background: var(--night); color: var(--white); }

/* Cabeçalho enxuto: só a marca (sem menu, para não tirar a pessoa do funil) */
.f-header { background: var(--white); border-bottom: 1px solid var(--line); }
.f-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.f-header img { height: 34px; width: auto; }
.f-header__secure { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.f-header__secure .icon { color: var(--purple); width: 16px; height: 16px; }
.f-header--night { background: var(--night); border-bottom-color: rgba(255, 255, 255, .1); }
.f-header--night .f-header__secure { color: #cfc4f2; }
.f-header--night .f-header__secure .icon { color: var(--yellow); }

.f-footer { padding: 28px 0 32px; font-size: 13px; color: var(--muted); text-align: center; }
.f-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.f-footer a { text-decoration: underline; text-underline-offset: 2px; }
.f-footer a:hover { color: var(--purple); }
.funil--night .f-footer { color: #a99fcc; }

.f-narrow { width: min(640px, 100% - var(--gutter) * 2); margin-inline: auto; }
.f-mid { width: min(980px, 100% - var(--gutter) * 2); margin-inline: auto; }

.f-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.f-eyebrow .icon { width: 16px; height: 16px; }
.f-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; }
.f-title em { font-style: normal; color: var(--purple); }
.f-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 12px; }
.f-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.f-note a { color: var(--purple); text-decoration: underline; }

.f-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }

/* Selos de confiança */
.f-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.f-trust span { display: inline-flex; align-items: center; gap: 6px; }
.f-trust .icon { width: 16px; height: 16px; color: var(--green); }

.f-checks { display: grid; gap: 10px; }
.f-checks li { display: flex; gap: 10px; align-items: flex-start; }
.f-checks .icon { color: var(--green); width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.4; }

/* Campos */
.f-field { display: grid; gap: 6px; }
.f-field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.f-input { width: 100%; height: 54px; border: 1px solid #bcb2d9; border-radius: var(--radius-sm); padding: 0 16px; background: #f9f8ff; font-size: 17px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.f-input::placeholder { color: #9a92b6; }
.f-input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(133, 76, 249, .15); }
.f-field.has-error .f-input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 56, 77, .12); }
.f-error { display: none; font-size: 13px; color: var(--red); }
.f-field.has-error .f-error { display: block; }
.f-form { display: grid; gap: 14px; }
.f-form .btn { min-height: 56px; font-size: 17px; }

/* ---------- Quiz (uma pergunta por tela) ---------- */
.quiz { padding: 28px 0 40px; }
.quiz__bar { display: flex; align-items: center; gap: 14px; }
.quiz__back { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); }
.quiz__back .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.quiz__back[hidden] { display: grid !important; visibility: hidden; }
.quiz__progress { flex: 1; height: 8px; border-radius: 8px; background: var(--lilac-200); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #a577fa); transition: width .45s var(--ease); }
.quiz__count { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 44px; text-align: right; }

.quiz__step { display: none; margin-top: 26px; }
.quiz__step.is-active { display: block; animation: step-in .45s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }
.quiz__q { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; }
.quiz__hint { margin-top: 8px; color: var(--muted); }

.options { display: grid; gap: 12px; margin-top: 22px; }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px 18px; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.option:hover { border-color: var(--purple-300); box-shadow: 0 12px 26px -18px rgba(80, 46, 149, .7); transform: translateY(-1px); }
.option.is-selected { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(133, 76, 249, .18); }
.option__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--lilac); color: var(--purple); }
.option__icon .icon { width: 22px; height: 22px; }
.option small { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.option__arrow { margin-left: auto; color: var(--purple-300); width: 18px; height: 18px; }
.options--2 .option { flex-direction: column; align-items: flex-start; min-height: 128px; }
.options--2 .option__arrow { display: none; }

.quiz__money { margin-top: 26px; text-align: center; }
.quiz__money output { display: block; font-family: var(--font-title); font-size: clamp(38px, 6vw, 56px); font-weight: 700; color: var(--purple); line-height: 1; }
.quiz__money .range { margin-top: 22px; }
.quiz__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.quiz__next { margin-top: 26px; }

/* Faixa de seleção (mesmo visual do simulador do site) */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--purple) var(--fill, 20%), var(--lilac-200) var(--fill, 20%)); outline: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple); box-shadow: 0 6px 14px -6px rgba(80, 46, 149, .7); cursor: pointer; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple); cursor: pointer; }

/* Tela de análise */
.analyzing { text-align: center; padding: 30px 0 10px; }
.analyzing__ring { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; border: 6px solid var(--lilac-200); border-top-color: var(--purple); animation: spin 1s linear infinite; }
.analyzing ul { display: grid; gap: 12px; max-width: 360px; margin: 28px auto 0; text-align: left; }
.analyzing li { display: flex; align-items: center; gap: 10px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; }
.analyzing li .icon { width: 20px; height: 20px; color: var(--green); opacity: 0; transition: opacity .3s; stroke-width: 2.6; }
.analyzing li.is-done { opacity: 1; color: var(--ink); }
.analyzing li.is-done .icon { opacity: 1; }

/* Resultado */
.result { padding: 8px 0 40px; }
.result__hero { text-align: center; }
.result__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #e3f7e7; color: #11834f; font-size: 14px; font-weight: 700; }
.result__badge .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.result__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { padding: 18px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.stat small { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; margin-top: 4px; font-family: var(--font-title); font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--purple); line-height: 1.1; }
.stat--hl { background: var(--purple); border-color: var(--purple); }
.stat--hl small { color: #e5dbff; }
.stat--hl strong { color: var(--yellow); }

.f-section { margin-top: 30px; }
.f-section h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; }
.steps3 { display: grid; gap: 14px; margin-top: 16px; counter-reset: s; }
.steps3 li { display: flex; gap: 14px; align-items: flex-start; }
.steps3 li::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--yellow); font-weight: 700; }
.steps3 strong { display: block; }
.steps3 span { color: var(--muted); font-size: 15.5px; }

.objection { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.objection .icon { width: 28px; height: 28px; flex: none; color: var(--purple); }
.objection p { font-size: 15.5px; color: var(--muted); margin-top: 4px; }

.f-cta-stack { display: grid; gap: 10px; margin-top: 22px; }
.f-cta-stack .btn { min-height: 58px; font-size: 17px; }
.btn--whats { border: 1px solid #11834f; color: #11834f; background: var(--white); }
.btn--whats:hover { background: #ecf9ef; }

/* Lista de espera (fora da área atendida) */
.waitlist { text-align: center; }
.waitlist__icon { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--purple); }
.waitlist__icon .icon { width: 34px; height: 34px; }

/* ---------- Calculadora (estilo simulador de crédito) ---------- */
.calc-hero { padding: clamp(32px, 5vw, 64px) 0; background: radial-gradient(900px 500px at 90% -10%, rgba(133, 76, 249, .5), transparent 60%), var(--night); color: var(--white); }
.calc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.calc-hero .f-title { color: var(--white); }
.calc-hero .f-title em { color: var(--yellow); }
.calc-hero .f-lead { color: #d8cff5; }
.calc-hero .f-checks { margin-top: 22px; }
.calc-panel { padding: 26px; color: var(--ink); }
.calc-panel__value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-panel__value label { font-weight: 600; }
.calc-panel__value output { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: var(--purple); }
.calc-panel .range { margin-top: 16px; }
.compare-bars { display: grid; gap: 10px; margin-top: 22px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 14px; }
.bar__track { height: 34px; border-radius: 8px; background: var(--lilac); overflow: hidden; }
.bar__fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; border-radius: 8px; color: var(--white); font-weight: 700; font-size: 14px; white-space: nowrap; transition: width .4s var(--ease); }
.bar__fill--now { background: #8f88a8; width: 100%; }
.bar__fill--sim { background: var(--purple); }
.calc-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.calc-panel__grid .stat { padding: 14px 12px; }
.calc-panel__grid .stat strong { font-size: 24px; }
.calc-panel__lead { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.calc-panel__lead .f-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-panel__lead .btn, .calc-panel__lead .f-note { grid-column: 1 / -1; }

.f-band { padding: clamp(40px, 6vw, 72px) 0; }
.f-band--white { background: var(--white); }
.f-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-align: center; }
.f-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.f-tile { padding: 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.f-band--white .f-tile { background: var(--lilac); border-color: transparent; }
.f-tile .icon { width: 30px; height: 30px; color: var(--purple); }
.f-tile h3 { font-size: 19px; font-weight: 700; margin-top: 12px; }
.f-tile p { font-size: 15.5px; color: var(--muted); margin-top: 6px; }

.f-faq { max-width: 760px; margin: 24px auto 0; }
.f-faq details { border-bottom: 1px solid var(--line); }
.f-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--purple); }
.f-faq details[open] summary::after { content: "–"; }
.f-faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Advertorial ---------- */
.adv-flag { background: var(--ink); color: #d8cff5; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 12px; }
.adv { width: min(720px, 100% - var(--gutter) * 2); margin: 0 auto; padding: 34px 0 60px; }
.adv__cat { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.adv h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; margin-top: 12px; }
.adv__dek { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin-top: 14px; line-height: 1.5; }
.adv__by { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 0; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.adv__by img { width: 40px; height: 40px; }
.adv__by strong { color: var(--ink); display: block; }
.adv figure { margin: 26px 0; }
.adv figure img { width: 100%; border-radius: 14px; }
.adv figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.adv__body { font-size: 19px; line-height: 1.7; }
.adv__body > * + * { margin-top: 18px; }
.adv__body h2 { font-size: clamp(23px, 3vw, 29px); font-weight: 700; margin-top: 38px; }
.adv__body strong { color: var(--ink); }
.adv__body mark { background: var(--yellow-100); padding: 0 3px; }
.adv-quote { padding: 18px 22px; border-left: 4px solid var(--purple); background: var(--lilac); border-radius: 0 12px 12px 0; font-size: 18px; }
.adv-quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.adv-box { padding: 24px; border-radius: 18px; background: var(--lilac); border: 1px solid var(--line); }
.adv-box h3 { font-size: 21px; font-weight: 700; }
.adv-box .btn { margin-top: 16px; min-height: 56px; }
.adv-box--cta { background: var(--night); color: var(--white); border: 0; text-align: center; }
.adv-box--cta h3 { color: var(--white); font-size: clamp(22px, 3vw, 28px); }
.adv-box--cta p { color: #d8cff5; margin-top: 8px; font-size: 17px; }
.adv-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.adv-table th, .adv-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.adv-table th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adv-table td:last-child { font-weight: 700; color: var(--purple); }
.adv__disclaimer { margin-top: 34px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Barra fixa de CTA no celular */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 24px -16px rgba(31, 22, 55, .5); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 50px; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- VSL ---------- */
.vsl { padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.vsl .f-title { color: var(--white); max-width: 900px; margin-inline: auto; }
.vsl .f-title em { color: var(--yellow); }
.vsl .f-lead { color: #d8cff5; max-width: 720px; margin-inline: auto; }
.player { position: relative; width: min(900px, 100%); margin: 26px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0d0724; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center; border: 0; background: radial-gradient(600px 300px at 50% 40%, rgba(133, 76, 249, .45), transparent 70%), #120a33; color: var(--white); }
.player__play { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 12px rgba(255, 255, 0, .18); animation: pulse-ring 2.4s infinite; }
.player__play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; stroke: none; }
.player__poster span { font-size: 14px; color: #cfc4f2; }
.player__sound { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .6); font-size: 13px; color: var(--white); }
.vsl__cta { margin-top: 26px; }
.vsl__cta .btn { min-height: 62px; padding: 0 40px; font-size: 18px; }
.vsl__cta.is-locked { display: none; }
.vsl__wait { margin-top: 18px; font-size: 14px; color: #a99fcc; }
.vsl__wait[hidden] { display: none !important; }

/* Responsivo */
@media (max-width: 900px) {
  .calc-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .f-grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .f-header__inner { height: 58px; }
  .f-header img { height: 28px; }
  .f-header__secure span { display: none; }
  .result__stats { grid-template-columns: minmax(0, 1fr); }
  .result__stats .stat { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .result__stats .stat strong { margin-top: 0; }
  .options--2 .option { min-height: 112px; padding: 14px; font-size: 16px; }
  .option { font-size: 16px; min-height: 62px; }
  .calc-panel { padding: 20px 16px; }
  .calc-panel__lead .f-form { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 84px minmax(0, 1fr); font-size: 13px; }
  .adv__body { font-size: 18px; }
  .player__play { width: 72px; height: 72px; }
}

/* Ícones dentro de linhas de texto */
.f-note .icon, .chat__day--note .icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.calc-hero__copy .f-eyebrow .icon, .f-eyebrow .icon { flex: none; }

/* Calculadora no celular: só o título acima do simulador, para a economia aparecer na primeira tela */
@media (max-width: 900px) {
  .calc-hero { padding: 18px 0 28px; }
  .calc-hero__more { display: none; }
  .calc-hero .f-title { font-size: clamp(24px, 6.6vw, 34px); margin-top: 6px !important; }
  .calc-hero__grid { gap: 16px; }
}
@media (max-width: 560px) {
  .calc-panel .compare-bars { margin-top: 14px; gap: 8px; }
  .calc-panel .bar__track { height: 28px; }
  .calc-panel__grid { margin-top: 12px; }
}
.quiz__q:focus, .quiz__q:focus-visible { outline: none; }
