/* ──────────────────────────────────────────────────────────────────
   LP-EXTRAS · componentes de captura compartilhados pelas variações
   (dor, demo, vip, calc). Não carregar no index.html principal.
   ────────────────────────────────────────────────────────────────── */

/* Override eyebrow padding (gap consistente) */
.eyebrow {
  padding: 9px 18px;
  gap: 10px;
}

/* ── EMAIL DETECTOR (inline feedback abaixo do campo email) ─────── */
.email-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 6px;
  letter-spacing:var(--ls-mono);
  line-height: 1.4;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
}
.email-hint.show {
  display: inline-flex;
  animation: fadeUpSm .3s var(--ease-out) both;
}
.email-hint.business {
  color: var(--accent-text, var(--accent-bright));
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}
.email-hint.personal {
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
}
.email-hint::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.email-hint.business::before {
  background: var(--accent-bright);
}
.email-hint.personal::before {
  background: var(--muted);
}
@keyframes fadeUpSm {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── STICKY FORM SIDEBAR (desktop only) ──────────────────────────── */
.sticky-form {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 40;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 10px 25px -10px rgba(0, 0, 0, 0.25);
  display: none;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
@media (min-width: 1280px) {
  .sticky-form {
    display: block;
  }
}
.sticky-form.show {
  transform: translateY(0);
  opacity: 1;
}
.sticky-form-eye {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sticky-form-eye::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.sticky-form h4 {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text);
}
.sticky-form p {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.45;
  margin-bottom: 14px;
}
.sticky-form .form-stack {
  gap: 8px;
}
.sticky-form .form-field {
  padding: 10px 12px;
  font-size: 13px;
}
.sticky-form .btn-cta {
  padding: 12px;
  font-size: 13px;
}
.sticky-form .consent {
  font-size: 10.5px;
  line-height: 1.35;
}

/* #1214: previously "Hide sticky form when sticky-cta is showing (mobile
 * mostly)" via an unguarded `body.sticky-shown .sticky-form{display:none}`.
 * Removed: .sticky-form is only ever display:block at >=1280px, while
 * .sticky-cta only ever shows at <=720px (see styles.css), so the two
 * conditions this rule tried to coordinate can never be true at the same
 * viewport width — the rule had no legitimate effect. Its only real-world
 * effect was hiding the desktop sidebar with no replacement CTA once the
 * page auto-scrolled past onScroll()'s sticky-shown threshold (app.js),
 * which silently broke the showFieldError() focus-on-error handoff for the
 * sticky form's fields (the .focus() call on a display:none ancestor is a
 * silent no-op). */

/* ── CALC INLINE (mini calc on DOR) ──────────────────────────────── */
.mini-calc-sec {
  padding:var(--sec-y-md) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mini-calc-sec::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mini-calc-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.mini-calc-head {
  text-align: center;
  margin-bottom: 40px;
}
.mini-calc-head h2 {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: var(--ls-display-sm);
  line-height: 1.1;
  margin-bottom: 14px;
}
.mini-calc-head h2 .hl {
  color: var(--accent-text, var(--accent-bright));
}
.mini-calc-head p {
  font-size: 14.5px;
  color: var(--dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.mini-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
@media (max-width: 780px) {
  .mini-calc-grid {
    grid-template-columns: 1fr;
  }
}
.mini-calc-input {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
@media (max-width: 780px) {
  .mini-calc-input {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px;
  }
}
.mini-calc-input .calc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.mini-calc-input .calc-field-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
}
.mini-calc-input .calc-field-val {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
}
.mini-calc-input .calc-range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: var(--card2);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--border);
}
/* #1214 — pass 10, foco de teclado. dor.html nao carrega lp-calc.css, entao o
 * `.calc-range:focus-visible` de la nunca alcancava este slider; sem ele, o
 * `outline: none` acima ficava sem substituto e o controle era invisivel ao
 * tabular. Mesmo tratamento de .calc-range e .plan-calc-range. */
.mini-calc-input .calc-range:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
.mini-calc-input .calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  /* #1214 — era o unico dos tres sliders com polegar de 20px, sem o
   * transform de hover e, no Firefox, sem o anel ambar. Passa a ser o
   * mesmo controle de .calc-range e .plan-calc-range. */
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bright);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-subtle);
}
.mini-calc-input .calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bright);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-bright), 0 4px 16px var(--accent-glow);
}
.mini-calc-input .calc-range-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing:var(--ls-label);
  margin-top: 6px;
}
.mini-calc-result {
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.mini-calc-result .mc-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
  color: var(--warn-text, var(--warn));
}
.mini-calc-result .mc-val {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: var(--ls-display);
  line-height: 1;
  color: var(--warn-text, var(--warn));
  font-variant-numeric: tabular-nums;
}
.mini-calc-result .mc-meta {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}
.mini-calc-result .mc-cta {
  margin-top: 8px;
}
.mini-calc-result .mc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid var(--accent-bright);
  transition: background-color .2s cubic-bezier(.7,0,.3,1),
              border-color .2s cubic-bezier(.7,0,.3,1),
              color .2s cubic-bezier(.7,0,.3,1);
}
.mini-calc-result .mc-cta-btn:hover {
  background-color: var(--accent-bright-deep);
  border-color: var(--accent-bright-deep);
}

/* ── EMAIL GATE OVERLAY (CALC) ───────────────────────────────────── */
.calc-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.86) 0%, rgba(10, 22, 38, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out);
  z-index: 10;
  border-radius: 20px;
}
:root[data-theme="light"] .calc-gate {
  background: linear-gradient(180deg, rgba(244, 237, 222, 0.86) 0%, rgba(244, 237, 222, 0.95) 100%);
}
.calc-gate.show {
  opacity: 1;
  pointer-events: auto;
}
.calc-gate-card {
  position: relative;
  max-width: 480px;
  padding: 36px 32px;
  background: var(--surface);
  border: 2px solid var(--accent-bright);
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-panel);
  animation: popIn .4s var(--ease-out) both;
}
.calc-gate-eye {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.calc-gate-card h2 {
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-display-sm);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}
.calc-gate-card h2 .hl {
  color: var(--accent-text, var(--accent-bright));
}
.calc-gate-card p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 20px;
}
.calc-gate-card p strong {
  color: var(--text);
  font-weight: 500;
}
.calc-gate-form {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.calc-gate-form .form-field {
  padding: 12px 14px;
  font-size: 14px;
}
.calc-gate-form .btn-cta {
  padding: 13px;
  font-size: 13.5px;
}
/* #1214 — era o unico controle do site sem raio nem area de toque: 30x30
 * quadrado, sem superficie de hover. Passa a falar a mesma lingua do
 * .theme-btn, o outro controle so-icone do sistema (raio 8, 32x32 minimo,
 * fundo de destaque no hover). O anel de foco vem da regra geral. */
.calc-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color var(--dur-base), background var(--dur-base), border-color var(--dur-base);
}
.calc-gate-close:hover {
  color: var(--accent-text, var(--accent-bright));
  background: var(--accent-dim);
  border-color: var(--accent-border);
}
.calc-gate-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: var(--ls-mono);
  margin-top: 12px;
}

/* ── VIP APPLICATION (quiz/qualifier) ────────────────────────────── */
.app-sec {
  padding:var(--sec-y-md) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.app-sec::before {
  content: "";
  position: absolute;
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.app-in {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.app-head {
  text-align: center;
  margin-bottom: 36px;
}
.app-head h2 {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: var(--ls-display-sm);
  line-height: 1.1;
  margin-bottom: 14px;
}
.app-head h2 .hl {
  color: var(--accent-text, var(--accent-bright));
}
.app-head p {
  font-size: 14.5px;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: var(--shadow-panel);
}
.app-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.app-progress span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.app-progress span.done {
  background: var(--accent-bright);
}
.app-progress span.cur {
  background: var(--accent-bright);
  opacity: 0.5;
}
.app-step {
  display: none;
  flex-direction: column;
  gap: 18px;
}
.app-step.active {
  display: flex;
  animation: fadeUpSm .35s var(--ease-out) both;
}
.app-step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
}
.app-step h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: var(--ls-tight);
  line-height: 1.22;
  text-wrap: balance;
  color: var(--text);
}
.app-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 520px) {
  .app-options {
    grid-template-columns: 1fr;
  }
}
.app-opt {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background-color .2s cubic-bezier(.7,0,.3,1),
              border-color .2s cubic-bezier(.7,0,.3,1),
              color .2s cubic-bezier(.7,0,.3,1);
  font-size: 14px;
  color: var(--text);
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-opt:hover {
  border-color: var(--accent-border);
  background-color: var(--card2);
}
.app-opt.selected {
  border-color: var(--accent-bright);
  background: var(--accent-dim);
  color: var(--accent-text, var(--accent-bright));
}
.app-opt-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
}
.app-opt.selected .app-opt-check {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: var(--btn-text);
}
.app-opt.selected .app-opt-check::after {
  content: "✓";
}
.app-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.app-nav-btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color .2s cubic-bezier(.7,0,.3,1),
              border-color .2s cubic-bezier(.7,0,.3,1),
              color .2s cubic-bezier(.7,0,.3,1);
}
.app-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.app-nav-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.app-nav-btn.primary {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--btn-text);
  font-weight: 600;
}
.app-nav-btn.primary:hover:not(:disabled) {
  background-color: var(--accent-bright-deep);
  border-color: var(--accent-bright-deep);
}
.app-qualified {
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  margin-bottom: 18px;
}
.app-qualified-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing:var(--ls-caps);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.app-qualified-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}
.app-qualified-msg strong {
  color: var(--accent-text, var(--accent-bright));
  font-weight: 700;
}

/* ── LIVE COUNTER (VIP) ──────────────────────────────────────────── */
.live-counter-w {
  margin-top: 32px;
}
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text, var(--accent-bright));
  letter-spacing:var(--ls-wide);
}
.live-counter::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.live-counter .lc-val {
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ── DEMO MICRO-CONVERSION ────────────────────────────────────────── */
.micro-conv {
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--accent-dim), var(--card));
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  text-align: center;
}
.micro-conv-in {
  max-width: 680px;
  margin: 0 auto;
}
.micro-conv .eyebrow {
  margin-bottom: 16px;
}
.micro-conv h2 {
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-display-sm);
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text);
}
.micro-conv h2 .hl {
  color: var(--accent-text, var(--accent-bright));
}
.micro-conv p {
  font-size: 14.5px;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.micro-conv-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.micro-conv-form .form-field {
  flex: 1;
  min-width: 200px;
}
/* #1214 — o .field-error do app.js entra como irmao do input, e num flex
 * em linha ele ficaria espremido entre o campo e o botao. Ocupa a linha
 * inteira e fica por ultimo, como nos formularios do hero. */
.micro-conv-form .field-error { flex: 0 0 100%; order: 2; }
.micro-conv-form .btn-cta {
  flex-shrink: 0;
  padding: 13px 22px;
  font-size: 13.5px;
  width: auto;
  max-width: none;
}
/* #1214 - goteira lateral no mobile: alinha os wrappers internos ao degrau
   base de 20px que as faixas de cards ja aplicam em max-width:720px. */
@media (max-width: 720px) {
  .mini-calc-in,
  .app-in,
  .micro-conv {
    padding-left: 20px;
    padding-right: 20px;
  }
}
