/* ═══════════ DESIGN TOKENS ═══════════ */
:root {
  --navy-950: #060c18;
  --navy-900: #0b1526;
  --navy-800: #13233d;
  --navy-700: #1c3157;
  --gold-300: #e7cd7a;
  --gold-400: #d4af37;
  --gold-500: #c9a227;
  --gold-600: #9c7e1c;
  --paper: #f7f5ef;
  --card: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b84;
  --line: #e8e2d2;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-600: #15803d;
  --green-50: #ecfdf3;
  --red-500: #dc2626;
  --red-50: #fef2f2;
  --radius: 18px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 10px 34px rgba(11, 21, 38, 0.09);
  --shadow-btn: 0 8px 22px rgba(201, 162, 39, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }

/* Skip link (a11y) */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: top 0.18s ease;
}
.skip:focus-visible { top: 12px; }

/* Funnel column — mobile-first */
.funnel { max-width: 560px; margin: 0 auto; padding: 0 20px; }
section.block { padding: 52px 0; }
section.block-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#quiz-section { scroll-margin-top: 70px; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  border: none;
  border-radius: 14px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-btn);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(201, 162, 39, 0.45); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.btn-lg { font-size: 1.15rem; padding: 17px 36px; width: 100%; }
.btn-sm { font-size: 0.85rem; padding: 10px 18px; border-radius: 10px; box-shadow: none; }
.btn.block { display: block; width: 100%; }
.btn.ghost-dark {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
  box-shadow: none;
}
.btn.ghost-dark:hover { background: rgba(37, 99, 235, 0.07); filter: none; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--navy-900); }
.brand svg { width: 30px; height: 30px; }
.brand strong { font-weight: 800; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  padding: 64px 0 0;
  text-align: center;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: radial-gradient(circle, rgba(201,162,39,0.55), transparent 70%); top: -140px; right: -120px; }
.blob-b { width: 380px; height: 380px; background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 70%); bottom: -40px; left: -140px; }
.hero-in { position: relative; z-index: 1; padding-bottom: 52px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.badge svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 2.9rem); font-weight: 800; margin: 0 0 16px; }
.hero .sub { color: #c3cee6; font-size: 1.08rem; max-width: 30rem; margin: 0 auto 28px; }
.hero .fine { margin: 14px 0 0; font-size: 0.83rem; color: #8d9bbd; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: #dbe3f5;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px; border-radius: 999px;
}
.chip svg { width: 13px; height: 13px; color: var(--gold-400); }
.hero-strip { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.09); background: rgba(0,0,0,0.22); }
.strip-in {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  padding-top: 13px; padding-bottom: 13px;
  font-size: 0.78rem; font-weight: 500; color: #93a3c7;
}
.strip-in span + span { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 12px; margin-left: 12px; }

/* ═══════════ SECTIONS / CARDS ═══════════ */
h2.sec { font-size: 1.55rem; font-weight: 800; margin: 0 0 10px; text-align: center; color: var(--navy-900); }
p.lead { text-align: center; color: var(--muted); max-width: 30rem; margin: 0 auto 30px; font-size: 1.02rem; }
.eyebrow {
  display: inline-block; font-size: 0.88rem; font-weight: 600;
  color: var(--gold-600); margin-bottom: 10px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  animation: rise 0.5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fine-dark { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

/* Steps */
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-card);
}
.step-n {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin: 2px 0 4px; font-size: 1.05rem; color: var(--navy-900); }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ═══════════ QUIZ ═══════════ */
#quiz, #result, #paywall { display: none; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.q-count { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }
.q-pct { font-weight: 700; color: var(--gold-600); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.progress { height: 10px; background: #ece7d6; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress > div {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.q-subject {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--navy-800); background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.q-stem { font-size: 1.06rem; line-height: 1.7; margin: 0 0 20px; color: var(--ink); }
#q-opts.swap { animation: optswap 0.32s ease; }
@keyframes optswap { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 2px solid var(--line); border-radius: 14px;
  background: #fff; padding: 15px 16px; margin-bottom: 11px;
  font-family: var(--font-body); font-size: 0.99rem; line-height: 1.5;
  cursor: pointer; color: var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.opt:hover { border-color: var(--navy-700); background: #faf8f1; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,21,38,0.08); }
.opt:active { transform: scale(0.985); }
.opt:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.opt .letter {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  background: #f0ebdb; color: var(--navy-800);
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.opt.correct { border-color: var(--green-600); background: var(--green-50); }
.opt.correct .letter { background: var(--green-600); color: #fff; }
.opt.wrong { border-color: var(--red-500); background: var(--red-50); }
.opt.wrong .letter { background: var(--red-500); color: #fff; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.correct):not(.wrong) { opacity: 0.55; }
.q-source {
  font-size: 0.8rem; color: var(--muted); margin: 16px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.q-next { margin-top: 18px; text-align: right; }

/* ═══════════ RESULT ═══════════ */
.score-ring { position: relative; width: 148px; height: 148px; margin: 6px auto 18px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #ece7d6; stroke-width: 11; }
.ring-fg {
  fill: none; stroke: url(#ringGrad); stroke: #c9a227; stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-num {
  position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center;
  font-family: var(--font-head); padding-top: 44px;
}
.score-num #score-num { font-size: 3rem; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.score-num .of { color: var(--muted); font-size: 1.05rem; font-weight: 600; }
.msg-box {
  border-left: 4px solid var(--gold-500);
  background: #fdf9ec;
  padding: 15px 18px; border-radius: 0 12px 12px 0;
  margin: 20px 0; font-size: 0.99rem;
}
table.diag { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
table.diag th, table.diag td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.diag th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.pill { display: inline-block; padding: 4px 13px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: #dcf5e5; color: #147a4c; }
.pill.bad { background: #fde3e3; color: #b03232; }
.pay-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
#btn-unlock { margin-top: 8px; }

/* ═══════════ PAYWALL ═══════════ */
.paywall-card { border-top: 4px solid var(--gold-500); }
.badge-sale {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #b03232, #d64545);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.price-wrap { text-align: center; margin: 22px 0 6px; padding: 20px; background: #fdf9ec; border: 1px dashed rgba(201,162,39,0.55); border-radius: var(--radius); }
.price-wrap .de { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-wrap .de s { color: #b03232; }
.price { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.price small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
ul.check { list-style: none; padding: 0; margin: 24px 0; }
ul.check li { padding: 9px 0 9px 38px; position: relative; font-size: 1rem; border-bottom: 1px solid #f1ecdd; }
ul.check li:last-child { border-bottom: none; }
ul.check li::before {
  content: "✓"; position: absolute; left: 2px; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  font-weight: 900; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
#pay-demo, #pay-hotmart, #pay-pix { margin-top: 6px; }
.pix-key { font-family: ui-monospace, monospace; background: #f1ecdd; padding: 13px; border-radius: 10px; word-break: break-all; margin: 12px 0; font-size: 0.9rem; }
.plan-pick { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.guarantee {
  display: flex; gap: 15px; align-items: flex-start;
  background: #f2f7ff; border: 1px solid #d4e2fb; border-radius: var(--radius);
  padding: 18px; margin-top: 24px;
}
.guarantee svg { flex: 0 0 auto; width: 40px; height: 40px; color: var(--blue-700); }
.guarantee strong { font-family: var(--font-head); color: var(--navy-900); font-size: 1rem; }
.guarantee p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.secure-row {
  display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center;
  margin-top: 18px; font-size: 0.82rem; color: var(--muted); font-weight: 600;
}
.secure-row span { display: inline-flex; align-items: center; gap: 6px; }
.secure-row svg { width: 14px; height: 14px; color: var(--green-600); }

/* ═══════════ FAQ ═══════════ */
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 11px; background: #fff; overflow: hidden; transition: box-shadow 0.15s ease; }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item summary {
  padding: 17px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy-900);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: #f0ebdb; color: var(--gold-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold-500); color: #fff; }
.faq-item p { padding: 0 20px 19px; margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--navy-950); color: #8d99bb; padding: 36px 0 110px; font-size: 0.85rem; }
footer p { margin: 0 0 10px; }

/* ═══════════ STICKY CTA (mobile) ═══════════ */
#sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#sticky-cta .sticky-in {
  margin: 0 auto; max-width: 560px;
  background: rgba(11, 21, 38, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  pointer-events: auto;
}
.sticky-txt strong { display: block; color: #fff; font-family: var(--font-head); font-size: 0.92rem; }
.sticky-txt span { color: #9fb0d0; font-size: 0.78rem; }
@media (max-width: 640px) {
  #sticky-cta.show { transform: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (min-width: 641px) {
  section.block { padding: 68px 0; }
  .card { padding: 38px 36px; }
  .btn-lg { width: auto; min-width: 340px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; text-align: left; }
}
@media (max-width: 640px) {
  .hero { padding-top: 52px; }
  .card { padding: 24px 19px; }
  .q-stem { font-size: 1rem; }
  .opt { padding: 14px 13px; font-size: 0.95rem; }
  .price { font-size: 2.9rem; }
  table.diag { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
