/* =============================================================
   Single page de venda do curso
   ============================================================= */

:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #273449;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-2: #38bdf8;
  --warning: #fbbf24;
  --danger: #f87171;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code { background: rgba(56,189,248,0.1); color: var(--accent-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ===== HEADER ===== */
.site-header {
  background: rgba(15,23,42,0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .logo { font-weight: 700; font-size: 1.1rem; }
.site-header .logo .accent { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}
.hero .wrap { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 32px;
}

/* ===== VIDEO BOX ===== */
.video-wrap {
  max-width: 900px;
  margin: 0 auto 40px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-wrap iframe,
.video-wrap video,
.video-wrap .video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.video-placeholder .play-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.video-placeholder .play-icon::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 22px solid var(--bg);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(34,197,94,0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--panel-2); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--panel); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 18px 36px; font-size: 1.15rem; }

/* ===== SEÇÕES ===== */
.section {
  padding: 60px 24px;
}
.section .wrap { max-width: 1100px; margin: 0 auto; }
.section h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  text-align: center;
}
.section .section-subtitle {
  color: var(--muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* ===== GRID DE BENEFÍCIOS ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.benefit {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.benefit .icon {
  width: 48px; height: 48px;
  background: rgba(34,197,94,0.12);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.benefit h3 { margin: 0 0 8px; font-size: 1.2rem; }
.benefit p { margin: 0; color: var(--muted); }

/* ===== PROGRAMA (lista de aulas) ===== */
.programa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.programa-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.programa-item .nr {
  background: var(--accent);
  color: var(--bg);
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.programa-item .titulo { font-weight: 600; }
.programa-item .desc { font-size: 0.9rem; color: var(--muted); }

/* ===== PRICING ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.price-card.destaque {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 60px rgba(34,197,94,0.15);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.price-card .valor {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-card .valor .cifrao { font-size: 1.4rem; vertical-align: top; margin-right: 4px; color: var(--muted); }
.price-card .complemento { color: var(--muted); margin-bottom: 24px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.price-card ul li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

/* ===== FAQ ===== */
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CHECKOUT (pagamento.php) ===== */
.page-simple {
  padding: 30px 16px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.checkout-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 20px;
}
.resumo {
  background: var(--panel-2);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resumo .item { font-size: 0.95rem; color: var(--muted); }
.resumo .total { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin: 24px 0 24px;
}
.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 12px 22px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== ALERTAS ===== */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(34,197,94,0.12); border-left: 4px solid var(--accent); }
.alert-danger  { background: rgba(248,113,113,0.12); border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(251,191,36,0.10); border-left: 4px solid var(--warning); }
.alert ul { margin: 8px 0 0; padding-left: 22px; }

/* ===== PIX QR ===== */
.pix-qr {
  text-align: center;
  margin: 24px 0;
}
.pix-qr img {
  background: white;
  padding: 16px;
  border-radius: 12px;
  max-width: 280px;
  width: 100%;
}
.pix-copia {
  margin-top: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  word-break: break-all;
  font-family: "Consolas", monospace;
  font-size: 0.8rem;
}
.pix-status {
  text-align: center;
  margin: 24px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-2);
}
.pix-status.pago { background: rgba(34,197,94,0.15); color: var(--accent); font-weight: 700; }

/* Spinner (tela de espera do cartão) */
.spinner {
  width: 48px; height: 48px;
  border: 5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: girar 0.9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1rem; }
  .section { padding: 40px 16px; }
  .section h2 { font-size: 1.5rem; }
  .checkout-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .resumo { flex-direction: column; align-items: flex-start; gap: 8px; }
}
