/**
 * Funil WHITE — visual alinhado a white_index_reference.html (Planilla PRO).
 */
:root {
  --ink: #0f0d0a;
  --ink2: #2d2820;
  --muted: #6b6258;
  --bg: #f7f3ec;
  --bg2: #efe9df;
  --card: #fff;
  --accent: #c2410c;
  --accent2: #9a3209;
  --accent-soft: rgba(194, 65, 12, 0.10);
  --accent-border: rgba(194, 65, 12, 0.25);
  --gold: #b45309;
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.12);
  --line: rgba(15, 13, 10, 0.08);
  --line2: rgba(15, 13, 10, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(15, 13, 10, 0.06), 0 8px 32px rgba(15, 13, 10, 0.06);
  --shadow-lg: 0 4px 16px rgba(15, 13, 10, 0.07), 0 20px 64px rgba(15, 13, 10, 0.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}

/* Nav — igual ao index */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; gap: 1rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.04em; color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink2); }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Footer — igual ao index */
footer.site-foot {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg2);
  margin-top: auto;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.foot-brand { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.03em; }
.foot-brand span { color: var(--accent); }
.foot-tagline { color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }

/* Botões */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.9rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(194, 65, 12, 0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1.5px solid var(--line2); background: var(--card); color: var(--ink2);
  padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, color 0.2s;
  text-decoration: none; width: 100%;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* Funil pós-compra */
.funnel-page {
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(194, 65, 12, 0.05) 0%, transparent 65%), var(--bg);
}
.funnel-container {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.funnel-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.funnel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.step-msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin: 0 0 0.5rem;
}
.spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--line2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wp-spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes wp-spin { to { transform: rotate(360deg); } }
.content-box { display: none; text-align: left; }
.content-box.visible { display: block; }
.loading-box.visible { display: block; }
.loading-box.hidden { display: none; }
.funnel-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.funnel-head i { color: var(--accent); font-size: 1.5rem; }
.box-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.box-text { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1rem; }
.box-amount {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}
.box-note {
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.55;
}
.btn-pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; margin-top: 0.35rem;
  background: var(--accent); color: #fff;
  padding: 0.95rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(194, 65, 12, 0.28);
  transition: background 0.2s, transform 0.15s;
}
.btn-pay:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-pay:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-voltar { margin-top: 0.65rem; }
.err-msg { color: var(--accent); font-size: 0.875rem; margin-top: 0.75rem; }

#pay-modal {
  position: fixed; inset: 0;
  background: rgba(15, 13, 10, 0.55);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 1.25rem;
}
#pay-modal.visible { display: flex; }
.modal-inner {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line2);
  padding: 1.75rem;
  max-width: 420px; width: 100%;
}
.modal-inner h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.modal-inner .field { margin-bottom: 1rem; }
.modal-inner .label {
  display: block; font-weight: 600; font-size: 0.78rem;
  color: var(--muted); margin-bottom: 0.45rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
#card-element {
  min-height: 48px; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line2);
}
#card-element:focus-within { border-color: var(--accent); }

/* Checkout WHITE */
.ck-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(194, 65, 12, 0.05) 0%, transparent 65%), var(--bg);
  padding-bottom: 2rem;
}
.ck-wrap { max-width: 560px; margin: 0 auto; padding: 0 1.25rem; }
.ck-hero { text-align: center; margin: 1.5rem 0 1.25rem; }
.ck-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 0.5rem;
}
.ck-sub { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.ck-bullets { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: left; }
.ck-bullets li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.88rem; color: var(--ink2); margin-bottom: 0.5rem; line-height: 1.45;
}
.ck-bullets li i { color: var(--green); margin-top: 0.15rem; flex-shrink: 0; }
.ck-note {
  font-size: 0.82rem; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  margin-bottom: 1.25rem; line-height: 1.5; text-align: left;
}
.ck-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
  padding: 1.65rem 1.5rem;
  position: relative; overflow: hidden;
}
.ck-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.ck-price-row {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  margin: 0.75rem 0 1.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.ck-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em;
}
.ck-price-sub { font-size: 0.85rem; color: var(--muted); }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.field input {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg); border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  color: var(--ink); font-family: inherit; font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--accent); }
.btn-outline {
  width: 100%; margin-bottom: 1rem; padding: 0.85rem;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  border: 1.5px solid var(--line2); background: var(--card);
  border-radius: var(--radius-sm); color: var(--ink2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.15rem; }
.modal-actions button { flex: 1; padding: 0.9rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 0.88rem; }
.btn-cancel { background: transparent; border: 1.5px solid var(--line2); color: var(--muted); }
.btn-cancel:hover { border-color: var(--ink2); color: var(--ink); }
.ck-secure {
  text-align: center; font-size: 0.78rem; color: var(--muted);
  margin-top: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.ck-secure i { color: var(--green); }
.ck-foot { text-align: center; padding: 1.75rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* Aprovada */
.aprovada-page {
  min-height: calc(100vh - 66px);
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(22, 163, 74, 0.08) 0%, transparent 60%), var(--bg);
}
.aprovada-wrap { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; width: 100%; flex: 1; }
.aprovada-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}
.aprovada-icon { font-size: 3rem; color: var(--green); margin-bottom: 1rem; }
.aprovada-card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.aprovada-steps {
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  list-style: none;
}
.aprovada-steps li {
  margin-bottom: 0.65rem;
  color: var(--ink2);
  font-size: 0.92rem;
  padding-left: 0;
}
.aprovada-steps li i { color: var(--green); margin-right: 0.5rem; width: 1.1rem; }
