/* Estilos partilhados por todas as páginas: cores, base, cabeçalho e rodapé.
   Cada página mantém no seu <style> apenas o que é dela. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tema claro (PLANO-MARCA.md, D1/D2, 23 out 2026). Os nomes das variáveis mantêm-se para não mexer nas páginas;
   contrastes medidos em branco: --text 17,7:1 · --text2 7,6:1 · --text3 4,8:1 · --amber-d 5,0:1. */
:root {
  color-scheme: light;
  --font-display: 'Sora', 'Inter', sans-serif;      /* títulos, botões, números */
  --font-body:    'Inter', sans-serif;              /* texto corrido */
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;  /* etiquetas pequenas */
  --amber:      #f59e0b;  /* fundos de botões, símbolo, números grandes — nunca texto (2,15:1) */
  --amber-h:    #fbbf24;
  --amber-l:    #fef3c7;  /* âmbar claro: fundos de destaque */
  --amber-d:    #b45309;  /* texto âmbar sobre claro (5,0:1) */
  --accent:     #b45309;  /* segunda linha dos títulos */
  --ink:        #111827;  /* bloco escuro único por página (rodapé / chamada final) */
  --bg:         #ffffff;
  --bg2:        #ffffff;  /* cartões */
  --bg3:        #fffbf2;  /* secções alternadas (creme) */
  --border:     #e5e7eb;
  --border-control: #6b7280;  /* campos e botões secundários (3:1) */
  --text:       #111827;
  --text2:      #4b5563;
  --text3:      #6b7280;  /* mínimo permitido */
  --text-body:  #374151;  /* texto corrido longo */
  --green:      #059669;
  --green-t:    #047857;
  --green-l:    #d1fae5;
  --red:        #dc2626;
  --red-l:      #fee2e2;
  --red-t:      #b91c1c;
  --glass:      linear-gradient(transparent, transparent);  /* sem vidro no tema claro */
  --shadow:     0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .04);
  --shadow-lg:  0 12px 32px -16px rgba(17, 24, 39, .18);
  --glow:       0 0 0 2px #f59e0b, 0 12px 32px -16px rgba(180, 83, 9, .35);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
}
html { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg3) 0, var(--bg) 640px) no-repeat, var(--bg);
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.accent { color: var(--accent); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--amber-l); color: var(--amber-d);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 16px;
}

/* ── BOTÕES ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  background: var(--amber); color: #111827;
  transition: background .15s;
}
.btn-primary:hover { background: var(--amber-h); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap;
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-primary-lg {
  padding: 12px 28px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 600;
  background: var(--amber); color: #111827;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.btn-primary-lg:hover { background: var(--amber-h); }
.btn-outline-lg {
  padding: 12px 28px; border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 500;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.btn-outline-lg:hover { background: var(--bg3); }

/* ── CABEÇALHO ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo img { display: block; height: 28px; width: auto; }
.logo .amber { color: var(--amber); }
.logo .muted { color: var(--text3); }
.nav-menu { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg3); color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: var(--radius-sm);
  border: none; background: transparent; color: var(--text3);
  cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit;
  transition: color .15s, background .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--text); background: var(--bg3); }
.nav-burger {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text); cursor: pointer; border-radius: var(--radius-sm);
}
.nav-burger:hover { background: var(--bg3); }
.nav-burger .icon { width: 24px; height: 24px; }
.nav-burger .icon-close { display: none; }
.site-nav.open .nav-burger .icon-open { display: none; }
.site-nav.open .nav-burger .icon-close { display: block; }

@media (max-width: 1099px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgba(17, 24, 39, .25);
    padding: 8px 24px 20px;
  }
  .site-nav.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-links a { padding: 0 8px; min-height: 48px; display: flex; align-items: center; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-tools { justify-content: space-between; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
  .lang-btn { min-width: 48px; min-height: 44px; }
  .nav-tools .btn-ghost { min-height: 44px; padding: 0 20px; }
}
.site-nav .logo, .nav-cta, .nav-burger { flex-shrink: 0; }
@media (max-width: 400px) {
  .site-nav .logo .muted { display: none; }  /* "bridgetaxes" + botão + menu cabem a 360 px */
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; gap: 8px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo img { height: 24px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .nav-menu { padding: 8px 16px 20px; }
}

/* ── RODAPÉ ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 40px;
}
.footer-brand .logo { font-size: 16px; }
.footer-brand .logo img { height: 22px; }
.footer-brand p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.footer-trust { display: flex; gap: 8px; align-items: flex-start; color: var(--text2); }
.footer-trust .icon { color: var(--green-t); margin-top: 1px; }
.footer-social { display: flex; gap: 4px; margin: 12px 0 0 -12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; color: var(--text2); transition: color .15s, background .15s;
}
.footer-social a:hover { color: var(--text); background: var(--bg3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 8px; }
.footer-cols ul { list-style: none; }
.footer-cols a {
  display: inline-flex; align-items: center; min-height: 36px;
  font-size: 14px; color: var(--text2); transition: color .15s;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--text3);
}
.footer-bottom a { color: var(--text2); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols a { min-height: 44px; }
}
@media (max-width: 420px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════ ESTILO CLARO (PLANO-MARCA.md, D5) ══════════
   Prefixo "html body" para se sobrepor ao CSS próprio de cada página. Sem vidro, sem brilhos. */

/* Tipografia: títulos, botões e números na letra de destaque; etiquetas em mono */
h1, h2, h3, .logo,
.btn-primary, .btn-ghost, .btn-primary-lg, .btn-outline-lg, .btn-lg, .plan-cta, .toggle-btn,
.plan-name, .plan-price .amount, .proof-item .num, .step-num, .nf .code, .nav-links a, .flow-node .name {
  font-family: var(--font-display);
}
h1, h2 { letter-spacing: -.025em; color: var(--text); }
.section-label, .spot-kicker, .badge, .post-card .tag, span.label, .footer-h, .popular-badge,
.flow-node .label, .plan-included-h, .toc .t, .lang-btn, .save-badge {
  font-family: var(--font-mono); letter-spacing: .06em;
}
.badge { font-size: 12px; }

/* Segunda linha dos títulos: âmbar de texto liso (5,0:1), sem gradiente */
.accent { color: var(--accent); -webkit-text-fill-color: currentColor; background: none; }

/* Etiquetas tipo "tag" */
html body .section-label, html body span.label {
  background: var(--amber-l); color: #92400e; border: 1px solid #fde68a; box-shadow: none;
}

/* Botões: âmbar sólido com texto escuro (8,3:1); secundário branco com contorno */
html body .btn-primary, html body .btn-primary-lg, html body .plan-cta.primary, html body .btn-lg {
  background: var(--amber); color: var(--ink); border: none;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .12);
  transition: background .15s, transform .15s, box-shadow .15s;
}
html body .btn-primary:hover, html body .btn-primary-lg:hover, html body .plan-cta.primary:hover, html body .btn-lg:hover {
  background: var(--amber-h); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(180, 83, 9, .5);
}
html body .btn-ghost, html body .btn-outline-lg, html body .plan-cta.secondary {
  background: #fff; color: var(--text);
  border: 1px solid var(--border-control);
  transition: border-color .15s, background .15s;
}
html body .btn-ghost:hover, html body .btn-outline-lg:hover, html body .plan-cta.secondary:hover {
  background: var(--bg3); border-color: var(--ink);
}

/* Caixas brancas com contorno e sombra suave */
html body :is(.feature-card, .step-card, .plan-card, .pain-col, details, .flow-card, .privacy-summary,
  .channel-card, .post-card, .toc, .note, .cta-box, .plan-included, .data-card, .badge, .pricing-toggle) {
  background: var(--bg2);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
html body :is(.feature-card, .step-card, .channel-card, .post-card, details):hover {
  border-color: #fcd34d;
  box-shadow: var(--shadow-lg);
}
html body :is(.plan-card.popular, .pain-col.solution, .cta-box) {
  border-color: var(--amber);
  box-shadow: var(--glow);
}
html body .toggle-btn.active { background: var(--amber-l); color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }

/* Ícones em "chip" âmbar claro */
html body :is(.feature-icon, .channel-icon, .pp-icon, .flow-node .icon) {
  background: var(--amber-l); color: var(--amber-d);
  border: 1px solid #fde68a; box-shadow: none;
}
html body .step-num { background: var(--amber); color: var(--ink); box-shadow: none; }
html body .proof-item .num { text-shadow: none; color: var(--amber-d); }

/* Cabeçalho branco translúcido */
.site-nav {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}
.logo img { height: 28px; filter: none; }
.logo .amber { color: var(--amber-d); }
@media (max-width: 1099px) { .nav-menu { background: #fff; } }

/* Rodapé = o bloco escuro único da página (D1) */
.site-footer { background: var(--ink); border-top: none; color: #e5e7eb; }
.site-footer .logo { color: #fff; }
.site-footer .logo .amber { color: #fbbf24; }
.site-footer .logo .muted, .site-footer .footer-h { color: #9ca3af; }  /* 7,6:1 em #111827 */
.site-footer .footer-brand p, .site-footer .footer-trust, .site-footer .footer-cols a,
.site-footer .footer-social a, .site-footer .footer-bottom a { color: #d1d5db; }
.site-footer .footer-cols a:hover, .site-footer .footer-social a:hover, .site-footer .footer-bottom a:hover { color: #fff; }
.site-footer .footer-social a:hover { background: rgba(255, 255, 255, .08); }
.site-footer .footer-trust .icon { color: #34d399; }
.site-footer .footer-bottom { color: #9ca3af; border-top-color: rgba(255, 255, 255, .12); }
.site-footer :focus-visible { outline-color: #fbbf24; }
