/* TS Treinamentos em Saúde — Landing Page (protótipo)
   Paleta e tipografia reaproveitadas do site original (ver old_site/). */

:root {
  --background: #ffffff;
  --foreground: #2C3E50;
  --primary: #1B5E20;
  --primary-foreground: #ffffff;
  --accent: #4CAF50;
  --accent-foreground: #ffffff;
  --secondary: #F1F8E9;
  --muted: #F1F4F8;
  --muted-foreground: #5C6B7A;
  --border: #E2E7EE;
  --warning: #F59E0B;
  --destructive: #EF4444;
  --radius: .75rem;
  --shadow-card: 0 10px 30px -10px rgba(44,62,80,.18);
  --shadow-cta: 0 8px 24px -6px rgba(76,175,80,.55);
  --gradient-primary: linear-gradient(135deg,#0E3A12,#3A8540);
  --gradient-hero: linear-gradient(180deg,rgba(14,58,18,.85),rgba(8,40,14,.92));
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Poppins','Inter',sans-serif; font-weight: 700; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .75rem 1rem; border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

.container { margin: 0 auto; width: 100%; max-width: 1152px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .container { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .container { padding-left: 56px; padding-right: 56px; } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-head { max-width: 640px; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0; }
.section-head h2 { margin-top: .5rem; font-size: 1.85rem; font-weight: 800; color: var(--primary); }
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
.section-head .muted { margin-top: .75rem; color: rgba(44,62,80,.75); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; border-radius: .6rem; padding: .75rem 1.25rem; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: var(--transition);
  text-decoration: none; line-height: 1.1; min-height: 3rem;
}
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #164e1a; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: var(--shadow-cta); }
.btn-accent:hover { background: #3f9b43; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-muted { background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226,231,238,.7);
}
/* Navegadores sem suporte a backdrop-filter (nenhum dos dois prefixos): cabeçalho
   sólido em vez de semi-transparente sem desfoque (ficaria "vazado" por cima do hero). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #ffffff; }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .header-inner { height: 80px; } }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 40px; width: 40px; object-fit: contain; }
@media (min-width: 768px) { .brand img { height: 48px; width: 48px; } }
.brand-text { display: none; line-height: 1.1; }
@media (min-width: 480px) { .brand-text { display: block; } }
.brand-text strong { display: block; font-family: 'Poppins',sans-serif; color: var(--primary); font-size: 1rem; font-weight: 800; }
.brand-text small { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

.primary-nav { display: none; }
@media (min-width: 900px) { .primary-nav { display: block; } }
.primary-nav .menu { display: flex; gap: 1.75rem; align-items: center; }
.primary-nav .menu a { font-size: .92rem; font-weight: 600; color: rgba(44,62,80,.85); }
.primary-nav .menu a:hover { color: var(--primary); }

.nav-aluno-logado {
  background: rgba(90,127,84,.12); color: var(--primary) !important; padding: .4rem .85rem;
  border-radius: 999px;
}
.nav-aluno-logado:hover { background: rgba(90,127,84,.2); }

/* Menu "Bem-vindo, {nome}" do aluno logado (desktop) — agrupa Minha
   conta/Meus dados/Financeiro/Sair da conta num só item com dropdown, em vez
   de 4 itens soltos no menu principal (lotava/quebrava linha em telas entre
   900-1200px). No menu mobile (gaveta) continua uma lista simples, sem
   dropdown — não faz sentido aninhar menu dentro de menu numa coluna vertical. */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { font: inherit; font-size: .92rem; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.nav-dropdown-caret { font-size: .7em; transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + .6rem); right: 0; z-index: 120; min-width: 190px;
  background: #fff; border: 1px solid var(--border); border-radius: .75rem; box-shadow: var(--shadow-card);
  padding: .4rem; display: none; flex-direction: column;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { display: block; padding: .8rem; min-height: 44px; box-sizing: border-box; border-radius: .5rem; font-size: .9rem; font-weight: 600; color: rgba(44,62,80,.85) !important; }
.nav-dropdown-menu a:hover { background: var(--secondary); color: var(--primary) !important; }
/* Saudação — separada dos links de verdade, não é clicável nem parece um botão. */
.nav-dropdown-greeting {
  padding: .5rem .8rem .6rem; margin-bottom: .3rem; border-bottom: 1px solid var(--border);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent);
}

.menu-disabled { opacity: .5; cursor: not-allowed; }
.soon { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--muted); color: var(--muted-foreground); padding: .1rem .4rem; border-radius: .3rem; margin-left: .4rem; }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--primary);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; margin: 0 auto; transition: var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 110; height: 100%; width: min(320px, 85vw);
  background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,.15);
  transform: translateX(100%); transition: transform .3s ease;
  padding: 90px 24px 24px;
  /* A lista de itens do menu cresce (equipe logada, aluno logado com Meus
     dados/Financeiro/Sair da conta) — em telas baixas (celular deitado,
     iPhone SE) o conteúdo pode passar da altura da tela. Sem isso, o item
     de baixo (ex.: "Sair da conta") fica inacessível, sem rolagem nenhuma. */
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav[hidden], .mobile-nav-overlay[hidden] { display: none !important; }
.mobile-nav a { display: block; padding: .9rem 0; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
/* Saudação do aluno — texto solto acima do link "Área do Aluno", separada da
   lista de links (não é clicável, não parece nav item). */
.mobile-nav-greeting {
  padding: 1.1rem 0 .3rem; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent);
}
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 105; background: rgba(15,23,17,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content { padding: 64px 20px 56px; max-width: 1152px; }
@media (min-width: 768px) { .hero-content { padding: 120px 40px; } }
@media (min-width: 1024px) { .hero-content { padding: 128px 56px; } }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; background: rgba(76,175,80,.2);
  color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(76,175,80,.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero h1 { margin-top: 1.25rem; font-size: 2.1rem; line-height: 1.08; font-weight: 800; max-width: 680px; }
@media (min-width: 480px) { .hero h1 { font-size: 2.5rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.5rem; } }
.hero h1 .accent { color: var(--accent); }
.lead { margin-top: 1.1rem; font-size: 1.02rem; color: rgba(255,255,255,.88); max-width: 560px; }
.hero-ctas { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 560px) { .hero-ctas { flex-direction: row; } }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.25rem; max-width: 420px; }
.hero-stats dt { font-family: 'Poppins',sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.hero-stats dd { margin: 0; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.78); }

/* Credibilidade */
.section-credibility { padding: 28px 0; background: var(--secondary); }
.credibility-inner { text-align: center; }
.credibility-inner p { font-size: .95rem; color: var(--foreground); }
.credibility-inner strong { color: var(--primary); }

/* Agenda / Cursos */
.agenda-overview { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.agenda-overview a { display: block; max-width: 320px; width: 100%; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); transition: var(--transition); }
.agenda-overview a:hover { transform: translateY(-4px); }
.agenda-overview img { width: 100%; height: auto; display: block; }
.agenda-overview-caption { margin-top: .75rem; font-size: .82rem; color: var(--muted-foreground); }
.course-grid { margin-top: 2.25rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3,1fr); } }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.course-card:hover { transform: translateY(-4px); }
.course-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-img img { transform: scale(1.05); }
.course-status {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  font-size: .68rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px;
}
.status-open { background: rgba(76,175,80,.15); color: #2e7d32; box-shadow: inset 0 0 0 1px rgba(76,175,80,.35); }
.status-last { background: rgba(245,158,11,.18); color: #b45309; box-shadow: inset 0 0 0 1px rgba(245,158,11,.35); }
.status-out { background: rgba(239,68,68,.12); color: #b91c1c; box-shadow: inset 0 0 0 1px rgba(239,68,68,.3); }
.course-date {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: var(--gradient-primary); color: #fff; width: 52px; height: 58px; border-radius: .6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.course-date b { font-family: 'Poppins',sans-serif; font-size: 1.15rem; line-height: 1; }
.course-date small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.course-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.course-body h3 { font-size: 1.05rem; color: var(--primary); line-height: 1.3; }
.course-body h3 a:hover { text-decoration: underline; }
.course-loc { font-size: .82rem; color: var(--muted-foreground); }
.course-price { font-size: .98rem; font-weight: 800; color: var(--primary); font-family: 'Poppins',sans-serif; }
.course-body .btn { margin-top: auto; }

.schedule-cta { margin-top: 2.5rem; text-align: center; }

/* Páginas de status do checkout (erro / pagamento concluído) */
.checkout-status-page { text-align: center; }
.checkout-status-title { margin-top: 1.25rem; color: var(--primary); }
.checkout-status-msg { margin-top: 1rem; }
.checkout-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.checkout-order-nsu { margin-top: 2rem; }
.badge-success { background: rgba(76,175,80,.15); color: var(--accent); border-color: rgba(76,175,80,.4); }

/* Página individual de curso */
.page-content { max-width: 760px; }
.curso-hero-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .curso-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.curso-hero-img { position: relative; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-card); }
.curso-hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.curso-hero-status { position: absolute; top: 1rem; left: 1rem; }
.curso-hero h1 { margin-top: .5rem; font-size: 1.9rem; color: var(--primary); }
@media (min-width: 768px) { .curso-hero h1 { font-size: 2.25rem; } }
.curso-meta { margin-top: 1.75rem; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.curso-meta dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.curso-meta dd { margin: .25rem 0 0; font-weight: 700; color: var(--foreground); }
.curso-price-big { color: var(--primary) !important; font-family: 'Poppins',sans-serif; font-size: 1.3rem; }
.curso-hero .btn { margin-top: 2rem; }
.curso-note { margin-top: .85rem; text-align: center; font-size: .82rem; color: var(--muted-foreground); }
.curso-back { margin-top: 1.5rem; text-align: center; }
.curso-back a { font-weight: 700; color: var(--primary); }

/* Produtos TS Treinamentos (cards, kits, books) */
.section-produtos { background: var(--muted); padding-bottom: 40px; }
.produtos-scroll {
  margin-top: 1.75rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 8px; -ms-overflow-style: none; scrollbar-width: none;
}
@media (min-width: 640px) { .produtos-scroll { padding: 0 40px 8px; } }
@media (min-width: 1024px) { .produtos-scroll { padding: 0 56px 8px; } }
.produtos-scroll::-webkit-scrollbar { display: none; }
.produto-item {
  position: relative; display: block; flex: 0 0 auto; width: 220px; border-radius: 1rem;
  overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow-card); background: #fff;
}
.produto-item img { width: 100%; height: 220px; object-fit: cover; }
.produto-status { position: absolute; top: .6rem; left: .6rem; }
.produto-info { display: block; padding: .85rem 1rem 1.1rem; }
.produto-tipo { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.produto-nome { display: block; margin-top: .3rem; font-family: 'Poppins',sans-serif; font-weight: 700; color: var(--primary); font-size: .98rem; line-height: 1.3; }
.produto-preco { display: block; margin-top: .4rem; font-weight: 800; color: var(--foreground); }

/* Sobre */
.about-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.about-img { border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-card); }
.about-img img { width: 100%; }
.section-about h2 { margin-top: .5rem; font-size: 1.85rem; color: var(--primary); }
@media (min-width: 768px) { .section-about h2 { font-size: 2.1rem; } }
.lead-muted { margin-top: 1rem; color: var(--muted-foreground); font-size: 1.02rem; line-height: 1.65; }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.check-list li { font-size: .95rem; }
.section-about .btn { margin-top: 1.75rem; }
.card-frame { border-radius: 1rem; overflow: hidden; max-width: 100%; }
.card-frame iframe { width: 100%; max-width: 100%; height: 100%; min-height: 180px; border: 0; display: block; }

/* FAQ */
.section-faq { background: var(--secondary); }
.faq-container { max-width: 760px; }
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; background: none; border: 0; text-align: left; font-weight: 700; color: var(--primary); font-size: 1rem;
}
.faq-icon { font-size: 1.25rem; line-height: 1; transition: transform .25s ease; color: var(--accent); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--muted-foreground); font-size: .92rem; line-height: 1.6; }

/* CTA final */
.section-cta-final { background: var(--gradient-primary); color: #fff; text-align: center; }
.cta-final-inner h2 { font-size: 1.75rem; color: #fff; }
@media (min-width: 768px) { .cta-final-inner h2 { font-size: 2.1rem; } }
.cta-final-inner p { margin-top: .9rem; color: rgba(255,255,255,.88); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-final-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
@media (min-width: 560px) { .cta-final-actions { flex-direction: row; } }
.section-cta-final .btn-outline-dark { background: #fff; border-color: #fff; }
.section-cta-final .btn-outline-dark:hover { background: rgba(255,255,255,.85); }

/* Footer */
.site-footer { background: #14261a; color: rgba(255,255,255,.85); overflow: hidden; }
.footer-grid { padding-top: 56px; padding-bottom: 32px; display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
.footer-grid > * { min-width: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { height: 40px; width: 40px; flex-shrink: 0; }
.brand-title { font-family: 'Poppins',sans-serif; font-weight: 800; color: #fff; font-size: 1.05rem; }
.brand-sub { font-size: .75rem; color: rgba(255,255,255,.6); }
.footer-desc { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.7); max-width: 320px; line-height: 1.6; overflow-wrap: break-word; }
.social { margin-top: 1.25rem; display: flex; gap: .75rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; transition: var(--transition); flex-shrink: 0; }
.social a:hover { background: var(--accent); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .9rem; overflow-wrap: break-word; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.footer-contact li .ico { flex-shrink: 0; }
.footer-contact li { overflow-wrap: break-word; min-width: 0; }
.footer-map-col .card-frame { height: 180px; border: 1px solid rgba(255,255,255,.12); max-width: 100%; }
.footer-bottom {
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: .35rem; align-items: center; text-align: center;
  font-size: .78rem; color: rgba(255,255,255,.55);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-version { font-family: ui-monospace, Menlo, monospace; }
.footer-stage { opacity: .8; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 999px; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); }

/* Modal (contrato) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,17,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: #fff; border-radius: 1rem; max-width: 640px; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 1.75rem; position: relative; box-shadow: var(--shadow-card);
}
.modal-close {
  position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border-radius: 999px;
  border: 0; background: var(--muted); color: var(--foreground); font-size: 1.2rem; cursor: pointer;
  line-height: 1;
}
.modal-box h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: .75rem; padding-right: 2rem; }
.modal-box ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.modal-box ol li { font-size: .88rem; line-height: 1.6; color: var(--foreground); }
.modal-box ol ul { margin-top: .4rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; list-style: disc; }
.modal-box ol ul li { font-size: .85rem; }
.contrato-aviso {
  background: rgba(245,158,11,.15); color: #92600a; padding: .6rem .85rem; border-radius: .5rem;
  font-size: .82rem; margin-bottom: 1rem;
}

/* Abas dentro do modal (quando há mais de um contrato pra visualizar) */
.modal-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; flex-wrap: wrap; padding-right: 2rem; }
.modal-tab-btn {
  background: none; border: 0; padding: .65rem .8rem; font-size: .78rem; font-weight: 700;
  color: var(--muted-foreground); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.modal-tab-btn.is-active { color: var(--primary); border-bottom-color: var(--accent); }
.modal-tab-panel { display: none; }
.modal-tab-panel.is-active { display: block; }

/* Aceite de contrato no checkout */
.contrato-check {
  margin-top: 1.25rem; display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem;
  color: var(--muted-foreground); text-align: left;
}
.contrato-check input { margin-top: .2rem; width: 18px; height: 18px; flex-shrink: 0; }
.contrato-check a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* Login / Cadastro */
.auth-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-col { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; box-shadow: var(--shadow-card); }
.auth-col h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.25rem; }
.form-field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--foreground); }
.form-field input, .form-field select {
  padding: .65rem .85rem; border: 1px solid var(--border); border-radius: .5rem;
  font: inherit; font-size: .92rem; background: #fff; color: var(--foreground); min-height: 44px;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 110px 1fr; }
.form-errors-box {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #b91c1c;
  padding: .85rem 1rem; border-radius: .6rem; margin-bottom: 1.25rem; font-size: .85rem;
}
.form-errors-box ul { padding-left: 1.1rem; list-style: disc; }

.foto-upload { display: flex; flex-direction: column; gap: .85rem; }
.foto-preview img {
  max-width: 160px; max-height: 160px; border-radius: .6rem; border: 1px solid var(--border);
  object-fit: cover; display: block;
}
.foto-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.foto-actions .btn { padding: .55rem .9rem; font-size: .85rem; min-height: auto; cursor: pointer; }
.camera-box { display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.camera-box video { width: 100%; border-radius: .6rem; border: 1px solid var(--border); background: #000; }
.camera-box-actions { display: flex; gap: .6rem; }
.btn-google {
  background: #fff; border: 1px solid var(--border); color: var(--foreground); width: 100%;
  margin-top: .75rem; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.btn-google:hover { background: #f8f8f8; }
.btn-google:disabled, a.btn-google[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.auth-divider { text-align: center; color: var(--muted-foreground); font-size: .78rem; margin: 1.25rem 0; text-transform: uppercase; letter-spacing: .04em; }
.auth-success { text-align: center; }

/* Minha Conta — cabeçalho enxuto (compras vêm logo abaixo, ver .pedidos-list) */
.minha-conta-hero { padding-bottom: 0; }
.minha-conta-hero h1 { margin-top: .5rem; font-size: 1.85rem; font-weight: 800; color: var(--primary); }
@media (min-width: 768px) { .minha-conta-hero h1 { font-size: 2.25rem; } }
.minha-conta-em-construcao { text-align: center; font-size: .85rem; }

/* Meus pedidos (minha-conta.php) — mobile-first: card empilha (info em cima,
   ações embaixo, botão ocupando a largura toda) até 560px, vira linha única
   com ações à direita a partir daí. */
.pedidos-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.pedido-card {
  background: #fff; border: 1px solid var(--border); border-radius: .85rem; padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 560px) {
  .pedido-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
}
.pedido-card-info { min-width: 0; }
.pedido-card h3 { font-size: 1rem; color: var(--primary); }
.pedido-card .muted { font-size: .82rem; color: var(--muted-foreground); margin-top: .2rem; }
.pedido-card-actions { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 480px) { .pedido-card-actions { flex-direction: row; flex-wrap: wrap; } }
.pedido-card-actions .btn { padding: .65rem 1rem; font-size: .85rem; min-height: 44px; }
.pedido-status-btn { cursor: default; }
.pedido-status-btn.btn-accent:hover { background: var(--accent); }

/* Contrato assinado (meu-contrato.php) — impressão amigável */
.contrato-full { max-width: 760px; }
.contrato-full .contrato-aviso { margin-bottom: 1.5rem; }
.contrato-full h3 { margin-top: 2rem; }
.contrato-full h3:first-child { margin-top: 0; }
.contrato-full ol ul { margin-top: .4rem; padding-left: 1.1rem; list-style: disc; }
@media print {
  .site-header, .site-footer, .wa-float, .mobile-nav, .mobile-nav-overlay, .skip-link, .contrato-print-btn { display: none !important; }
  .section { padding: 0; }
  body { background: #fff; }
}

/* Certificado/diploma público (certificado.php) */
.certificado-box {
  border: 3px double var(--primary); border-radius: 1rem; padding: 2.5rem 1.5rem;
  text-align: center; max-width: 640px; margin: 0 auto; background: #fff;
}
.certificado-marca { font-family: 'Poppins',sans-serif; font-weight: 800; color: var(--primary); letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.certificado-titulo { font-family: 'Poppins',sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--foreground); margin: .6rem 0 1.5rem; }
.certificado-corpo { font-size: 1.02rem; line-height: 1.8; color: var(--foreground); max-width: 480px; margin: 0 auto; }
.certificado-assinaturas { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2.5rem; }
.certificado-assinatura { min-width: 180px; }
.certificado-assinatura img { max-height: 60px; max-width: 180px; object-fit: contain; margin-bottom: .4rem; }
.certificado-assinatura-nome { font-weight: 700; border-top: 1px solid var(--border); padding-top: .4rem; margin-top: .4rem; }
.certificado-assinatura-cargo { font-size: .8rem; color: var(--muted-foreground); }
.certificado-codigo { margin-top: 2rem; font-size: .78rem; color: var(--muted-foreground); font-family: ui-monospace, Menlo, monospace; }
@media (min-width: 640px) { .certificado-box { padding: 3.5rem 3rem; } }

/* "Em atualização" — agenda/cursos/produtos sem nenhum item ativo (ver placeholder_em_atualizacao() em includes/functions.php) */
.placeholder-atualizacao {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding-top: 3rem; padding-bottom: 3rem; border: 1px dashed var(--border); border-radius: 1rem;
  background: rgba(27,94,32,.03); text-align: center; color: var(--muted-foreground);
}
.placeholder-atualizacao img { width: 64px; height: 64px; object-fit: contain; opacity: .55; }
.placeholder-atualizacao p { font-size: .95rem; font-weight: 600; max-width: 320px; color: var(--foreground); }
