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

:root {
  --blue:      #1a56db;
  --blue-dark: #1447b8;
  --blue-light:#eff6ff;
  --gold:      #f59e0b;
  --gold-light:#fffbeb;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --green:     #16a34a;

  --bg: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0,0,0,0.08);
  --overlay-color: rgba(0,0,0,0.5);
  --footer-bg: #111827;
  --nav-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] {
  --blue:      #4c7dff;
  --blue-dark: #6d94ff;
  --blue-light:#16233f;
  --gold:      #f5b83d;
  --gold-light:#2a2110;
  --green:     #22c55e;

  --gray-50:   #161c2c;
  --gray-100:  #1c2333;
  --gray-200:  #2a3242;
  --gray-400:  #6b7280;
  --gray-600:  #9ca3af;
  --gray-700:  #d1d5db;
  --gray-900:  #f3f4f6;

  --bg: #0f1420;
  --bg-card: #161c2c;
  --border-color: #2a3242;
  --shadow-color: rgba(0,0,0,0.35);
  --overlay-color: rgba(0,0,0,0.65);
  --footer-bg: #05070c;
  --nav-bg: rgba(15, 20, 32, 0.92);
}

body, nav, .plan-card, .modal-box, .btn-plan, .nav-mobile-panel,
.nav-user-btn, .nav-user-dropdown, .btn-contato {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.nav-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

nav .btn-primary {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

nav .btn-primary:hover {
  background: var(--blue-dark);
}

.nav-auth-guest {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color 0.15s, color 0.15s;
}

.nav-user-btn span {
  white-space: nowrap;
}

.nav-user-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.nav-user-btn i.ti-chevron-down {
  font-size: 13px;
  transition: transform 0.2s;
}

.nav-user-btn.aberto i.ti-chevron-down { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-color);
  width: 100%;
  min-width: 150px;
  box-sizing: border-box;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.nav-user-dropdown.aberto {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.6; /* FIX: style_principal.css define line-height:1.6 no
                        body, e esses itens herdam esse valor lá. Aqui o
                        body não define line-height (fica no padrão do
                        navegador, ~1.2), então os itens ficavam com
                        menos altura de linha e pareciam mais "grudados".
                        Definindo explicitamente, o espaçamento fica igual
                        em todas as páginas, independente do line-height
                        do body. */
  color: var(--gray-600);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-user-dropdown a:hover {
  background: var(--gray-50);
  color: #dc2626;
}

/* ── BOTÃO HAMBÚRGUER ── */
.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray-700);
  transition: background 0.15s, border-color 0.15s;
}

.nav-burger:hover {
  background: var(--gray-100);
}

.nav-burger.ativo {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── PAINEL MOBILE ── */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 64px;
  z-index: 99;
  background: var(--bg-card);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px var(--shadow-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-mobile-panel.aberto {
  max-height: 420px;
}

.nav-mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-panel a:last-child {
  border-bottom: none;
}

.nav-mobile-panel a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-mobile-theme-spacer {
  width: 18px;
  visibility: hidden;
}

@media (max-width: 1080px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-cta { gap: 8px; margin-right: 10px; }
  .btn-ghost, .nav-cta .btn-primary { padding: 8px 14px; font-size: 13px; }
  .nav-burger { display: flex; }
  .nav-mobile-panel { display: flex; }
  .nav-cta > .theme-toggle { display: none; }
  .nav-mobile-panel a.nav-mobile-theme { gap: 10px; }
  .nav-logo { margin-right: auto; }
  .nav-user-menu { position: relative; top: 2px; }
}

@media (max-width: 680px) {
  .nav-logo-text { font-size: 15px; }
}

/* ── CONTEÚDO ── */
.page-content {
  flex: 1;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 40px 24px 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── PLANOS ── */
.plans-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  padding: 0 24px 64px;
  max-width: 680px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 28px;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, background-color .2s;
}

.plan-card:hover {
  box-shadow: 0 8px 32px var(--shadow-color);
}

.plan-card.selecionado {
  border: 2px solid var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.08);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .3px;
}

.plan-name {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
  line-height: 1.5;
}

.plan-price {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price sup {
  font-size: 18px;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.plan-price span.periodo {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
}

.plan-period {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 24px;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.features li i {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.features li .ti-check { color: var(--blue); }
.features li .ti-x     { color: var(--gray-400); }

.features li strong { color: var(--gray-900); }

.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-plan.free {
  background: var(--bg-card);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn-plan.free:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.btn-plan.pro {
  background: var(--blue);
  color: #fff;
}

.btn-plan.pro:hover {
  background: var(--blue-dark);
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--overlay-color);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px var(--shadow-color);
}

.modal-icon-info {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.modal-box h2 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.modal-box p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-box p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.modal-contatos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-contato {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gray-200);
}

.btn-contato.whatsapp {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.btn-contato.whatsapp:hover {
  background: #dcfce7;
}

[data-theme="dark"] .btn-contato.whatsapp {
  background: #113321;
  color: #22c55e;
  border-color: #14532d;
}

.btn-contato.email {
  background: var(--blue-light);
  color: var(--blue);
}

.btn-contato.email:hover {
  filter: brightness(0.97);
}

.modal-box .btn-fechar {
  background: none;
  color: var(--gray-600);
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
}

.modal-box .btn-fechar:hover {
  color: var(--gray-900);
}

/* ── FOOTER (mesmo padrão de principal.html / login.html) ── */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 1300px) {
  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-inmetro {
    text-align: right;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.footer-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-inmetro {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  .hero {
    padding: 32px 20px 32px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .plans-wrap {
    flex-direction: column;
    align-items: center;
    padding: 0 20px 48px;
  }

  .plan-card {
    max-width: 100%;
    width: 100%;
  }
}

/* ── MOBILE (≈420px) ── */
@media (max-width: 420px) {
  .modal-box {
    padding: 32px 24px;
  }
}

/* ── BADGE (bolinha) DE NOTIFICAÇÃO NÃO VISTA — sino no dropdown do usuário ── */
.sino-wrap {
  position: relative;
  display: inline-flex;
}

.badge-notificacao {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  border: 1.5px solid var(--bg-card);
}