/* =========================================================
   Geladeira Cheia — estilos públicos
   Paleta "Preto & Rosa claro"
   ========================================================= */
:root {
  --bg: #FFF1F5;
  --surface: #FFFFFF;
  --surface-2: #FDE4EC;
  --border: rgba(17, 17, 17, 0.09);
  --text: #141414;
  --muted: #6B5F64;
  --primary: #141414;
  --on-primary: #FFFFFF;
  --accent: #E8336F;
  --accent-soft: #F9A8C4;
  --whats: #1FAF5A;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(20, 20, 20, 0.18);
  --container: 600px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Brilhos suaves no fundo (inspirado na referência) */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 360px at -10% -5%, rgba(232, 51, 111, 0.14), transparent 70%),
    radial-gradient(480px 380px at 110% 35%, rgba(249, 168, 196, 0.30), transparent 70%);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 241, 245, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; height: 56px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.logo-icon svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 22px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3;
  color: var(--accent); background: rgba(232, 51, 111, 0.10);
  border: 1px solid rgba(232, 51, 111, 0.25);
  padding: 5px 10px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(26px, 7vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em;
  margin-top: 12px;
}
.hero h1 em, .section-head h2 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---------- VSL ---------- */
.vsl-wrap { margin-top: 18px; }
.vsl {
  --vsl-ar: 0.5625;          /* largura / altura — definido em config.js */
  --vsl-maxh: 64vh;
  position: relative; margin: 0 auto; overflow: hidden;
  aspect-ratio: var(--vsl-ar);
  width: min(100%, calc(var(--vsl-maxh) * var(--vsl-ar)));
  border-radius: var(--radius);
  background: #141414;
  box-shadow: var(--shadow);
}
@supports (height: 1svh) { .vsl { --vsl-maxh: 64svh; } }
.vsl > iframe, .vsl > div:not(.vsl-placeholder) { position: absolute; inset: 0; width: 100%; height: 100%; }

.vsl-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(232, 51, 111, 0.35), transparent 70%),
    linear-gradient(180deg, #1d1418, #0f0f10);
  color: #fff;
}
.vsl-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vsl-play svg { width: 26px; height: 26px; margin-left: 4px; color: var(--accent); }
.vsl-placeholder small { font-size: 12px; opacity: .7; font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 20px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  color: var(--on-primary); background-color: var(--primary);
  background-image: linear-gradient(rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
  box-shadow: 0 10px 22px -10px rgba(20, 20, 20, 0.55);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-accent { background-color: var(--accent); box-shadow: 0 10px 22px -10px rgba(232, 51, 111, 0.7); }

.cta-block { margin-top: 16px; }
.microcopy { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Seções ---------- */
.section { padding-top: 44px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-head::before, .section-head::after { content: ""; flex: 1; height: 1px; }
.section-head::before { background: linear-gradient(to right, transparent, rgba(107, 95, 100, 0.35)); }
.section-head::after { background: linear-gradient(to left, transparent, rgba(107, 95, 100, 0.35)); }
.section-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Como funciona */
.steps { display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  color: var(--accent); background: var(--surface-2);
}
.step b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.step span { font-size: 14px; color: var(--muted); }

/* Quem está por trás */
.people { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px; }
.person-photo {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px rgba(232, 51, 111, 0.35);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-weight: 800; font-size: 16px; }
.person-handle { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.person-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Propósito / prova */
.proof-text { color: var(--muted); font-size: 15px; text-align: center; margin: -4px auto 16px; max-width: 46ch; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof-item { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.proof-media { aspect-ratio: 4 / 5; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.proof-media img { width: 100%; height: 100%; object-fit: cover; }
.proof-caption { font-size: 12.5px; padding: 8px 10px; color: var(--muted); }

/* CTA final */
.final {
  background: #141414; color: #fff; border-radius: 22px; padding: 26px 18px 20px; text-align: center;
  background-image: radial-gradient(80% 60% at 50% 0%, rgba(232, 51, 111, 0.35), transparent 70%);
  box-shadow: var(--shadow);
}
.final h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.final p { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; margin: 8px 0 18px; }
.final .microcopy { color: rgba(255, 255, 255, 0.6); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 16px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; font-weight: 600; line-height: 1;
  color: var(--accent); background: var(--surface-2); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 16px 15px; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); padding: 24px 0 120px; text-align: center; }
.site-footer .logo { font-size: 15px; }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- CTA fixo no rodapé ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 65%, rgba(255, 241, 245, 0));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { max-width: calc(var(--container) - 32px); margin: 0 auto; }

/* =========================================================
   Página de cadastro
   ========================================================= */
.site-header .container.split { justify-content: space-between; }
.progress-pill {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}

.capture { padding-top: 22px; padding-bottom: 32px; }
.capture-head h1 {
  font-size: clamp(26px, 7vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px;
}
.capture-head h1 em { font-style: normal; color: var(--accent); }
.capture-head .sub { color: var(--muted); font-size: 15px; margin-top: 10px; }

.form-card { margin-top: 20px; padding: 20px 16px; }
.form { display: grid; gap: 16px; }

.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; height: 52px; padding: 0 14px 0 44px;
  font: inherit; font-size: 16px; /* 16px evita zoom automático no iPhone */
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input::placeholder { color: #A39499; }
.field input:focus { outline: none; border-color: var(--text); background: var(--surface); box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.08); }
.field input:focus + svg, .input-wrap:focus-within svg { color: var(--text); }
.field.has-error input { border-color: #D92D20; background: #FFF6F5; }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12); }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-error { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #B42318; margin-top: 6px; }
.field-error::before { content: "!"; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #D92D20; }
.field.has-error .field-error { display: flex; }
.field.has-error .field-hint { display: none; }

.field label.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid rgba(20, 20, 20, 0.25); background: var(--surface);
  display: grid; place-items: center; transition: background-color .15s ease, border-color .15s ease;
}
.consent-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.consent input:checked + .consent-box { background: var(--primary); border-color: var(--primary); }
.consent input:checked + .consent-box svg { opacity: 1; }
.consent input:focus-visible + .consent-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.field.has-error .consent-box { border-color: #D92D20; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .75; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.45; padding: 12px 14px; border-radius: var(--radius-sm);
  color: #912018; background: #FEF3F2; border: 1px solid #FECDCA;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.trust { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); text-align: left; }
.trust svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.trust a { color: var(--text); font-weight: 700; }

/* Sucesso */
.success { text-align: center; padding: 28px 18px 22px; }
.success-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); animation: pop .35s ease-out; }
.success-icon span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 10px 22px -8px rgba(232, 51, 111, 0.7); }
.success-icon svg { width: 32px; height: 32px; color: #fff; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 16px; outline: none; }
.success p { color: var(--muted); font-size: 15px; margin: 8px auto 20px; max-width: 34ch; }
.btn-whats { background-color: var(--whats); box-shadow: 0 10px 22px -10px rgba(31, 175, 90, 0.75); }
.success .note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.link-btn { background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; margin-top: 16px; }

/* =========================================================
   Páginas legais (Privacidade / Termos)
   ========================================================= */
.legal { padding-top: 24px; padding-bottom: 24px; }
.legal-card { padding: 22px 18px; margin-top: 16px; }
.legal h1 { font-size: clamp(24px, 6vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 12px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: 6px; }
.legal h2 { font-size: 17px; font-weight: 800; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15px; color: #3d3438; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; margin-top: 6px; }
.legal .todo { background: #FFF7D6; border-radius: 4px; padding: 0 4px; color: #7A5B00; font-weight: 600; }
.draft-banner {
  font-size: 13px; font-weight: 600; line-height: 1.45; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #7A5B00; background: #FFF7D6; border: 1px solid #F5E2A0;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; margin-top: 20px; }
.back-link svg { width: 16px; height: 16px; }

[hidden] { display: none !important; }

@media (min-width: 640px) {
  .hero { padding-top: 36px; }
  .section { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
