/* ============================================================
   VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
  --bg:#fef7f1;
  --tx:#0f172a;
  --muted:#64748b;
  --brand:#7300e6;
  --brand-light:#8b33f0;
  --brand-dark:#5b00b8;
  --card:#ffffff;
  --border:#e2e8f0;
  --accent:#f8f4ff;
}

/* Reset */
*{ box-sizing:border-box; margin:0; padding:0 }
html{ scroll-behavior:smooth }
body{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height:1.6;
  overflow-x:hidden;
}

/* ===== ÁREA PRINCIPAL DAS PÁGINAS INTERNAS ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* Texto dentro das sections (pág. Profissionais / Pacientes / etc.) */
.section {
  text-align: left;          /* garante alinhamento agradável */
}

/* Listas dentro das sections */
.section ul {
  margin: 14px 0 0;
  padding-left: 1.4rem;      /* indentação do bullet */
  list-style: none;          /* vamos desenhar nosso próprio bullet */
}

.section li {
  position: relative;
  margin: 8px 0;
  padding-left: 0.8rem;      /* espaço entre o bullet custom e o texto */
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Bullet customizado (bolinha roxa) */
.section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

/* Destaque para <strong> dentro das listas */
.section li strong {
  color: var(--tx);
  font-weight: 600;
}


/* ============================================================
   HEADER
   ============================================================ */
header{
  position:sticky; top:0; z-index:100;
  background: rgba(254, 247, 241, 0.85);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom:1px solid rgba(115,0,230,0.15);
  box-shadow: 0 4px 20px rgba(115,0,230,0.08);
  transition: all 0.3s ease;
}
header.scrolled{
  background: rgba(254, 247, 241, 0.95);
  box-shadow: 0 4px 20px rgba(115,0,230,0.15);
}

.header-wrap{
  max-width:1200px; margin:0 auto; padding:16px 24px;
  display:flex; justify-content:space-between; align-items:center;
}

.logo{
  display:flex; align-items:center; gap:12px;
  font-weight:800; font-size:22px; color:var(--tx);
}
.logo-icon{
  width:150px; height:40px; display:grid; place-items:center;
}
.logo-icon img{ width:100%; height:100% }

.header-nav{
  display:flex; gap:32px; align-items:center;
}
.header-link{
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
  transition: color 0.2s ease;
}
.header-link:hover{ color:var(--brand) }

.header-btn{
  padding:10px 24px; border-radius:12px; border:none;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color:#fff; font-weight:600; cursor:pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(115,0,230,0.25);
}
.header-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(115,0,230,0.35);
}

.mobile-menu-btn{
  display:none; background:transparent; border:none;
  font-size:24px; color:var(--brand); cursor:pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  max-width:1400px; margin:0 auto;
  display:grid; grid-template-columns: 1fr 1fr;
  gap:60px; align-items:center;
  padding:80px 24px;
  min-height:600px;
}

.hero-content{ z-index:2 }

.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:20px;
  background: linear-gradient(135deg, rgba(115,0,230,0.1), rgba(147,51,234,0.08));
  color: var(--brand-dark);
  font-size:14px; font-weight:600;
  margin-bottom:24px;
}

.hero h1{
  font-size:56px; font-weight:700; line-height:1.1;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom:24px;
  padding:10px;
}

.hero-subtitle{
  font-size:20px; color:var(--muted); line-height:1.6;
  margin-bottom:40px; max-width:540px;
}

.hero-ctas{
  display:flex; gap:16px; flex-wrap:wrap;
}

.cta-primary, .cta-secondary{
  padding:16px 32px; border-radius:14px; font-size:16px;
  font-weight:600; cursor:pointer; transition: all 0.3s ease;
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none;
  border: 1px solid #ff000000;
}
.cta-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color:#fff; box-shadow: 0 8px 24px rgba(115,0,230,0.3);
}
.cta-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(115,0,230,0.4);
}

.cta-secondary{
  background:#fff; color:var(--brand);
  border:2px solid var(--brand);
}
.cta-secondary:hover{
  background:var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   CARROSSEL
   ============================================================ */
.hero-carousel{
  position:relative;
  width:100%; height:500px;
  border-radius:24px;
  background:#2d3748;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.carousel-track{
  display:flex;
  height:100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide{
  min-width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.carousel-placeholder{
  width:100%; height:100%; display:flex;
  align-items:center; justify-content:center;
  color:#a0aec0; background:linear-gradient(135deg, #2d3748, #1a202c);

}
.carousel-placeholder img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* sem cortar, sempre inteiro */
}

.carousel-controls{
  position:absolute; bottom:24px; left:50%;
  transform:translateX(-50%);
  display:flex; gap:8px;
}
.carousel-dot{
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,0.4); border:none;
  cursor:pointer; transition:0.3s;
}
.carousel-dot.active{
  width:32px; border-radius:5px; background:#fff;
}
.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,0.9); border:none;
  width:48px; height:48px; border-radius:50%;
  font-size:20px; color:var(--brand); cursor:pointer;
  transition:0.3s; box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
.carousel-arrow:hover{
  background:#fff; box-shadow:0 6px 20px rgba(0,0,0,0.25);
}
.carousel-arrow.prev{ left:16px }
.carousel-arrow.next{ right:16px }

/* ============================================================
   SEÇÕES (usadas nas páginas internas)
   ============================================================ */
.section{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:20px; padding:32px;
  margin:20px 0;
  box-shadow:0 4px 24px rgba(0,0,0,0.04);
  transition:0.3s; position:relative; overflow:hidden;
}
.section::before{
  content:''; position:absolute; top:0; left:0;
  width:100%; height:4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity:0; transition:0.3s;
}
.section:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 32px rgba(115,0,230,0.12);
}
.section:hover::before{ opacity:1 }

.section h2{
  font-size:28px; font-weight:600; margin:0 0 10px;
}
.section p{
  font-size:16px; color:var(--muted); margin-bottom:14px;
}

/* Badge de seção */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; font-size:12px; border-radius:20px;
  background:linear-gradient(135deg, rgba(115,0,230,0.1), rgba(147,51,234,0.08));
  border:1px solid rgba(115,0,230,0.2);
  color:var(--brand-dark);
  margin-bottom:16px;
  margin-top:20px !important;
}

/* ============================================================
   GRID DE FEATURES
   ============================================================ */
.features{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:18px; margin-top:26px;
}
.feature-card{
  background:linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  border:1px solid var(--border);
  border-radius:16px; padding:20px;
  transition:0.3s;
}
.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(115,0,230,0.15);
}
.feature-icon{
  width:44px; height:44px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand), var(--brand-light));
  display:grid; place-items:center; color:#fff;
  font-size:18px; box-shadow:0 4px 12px rgba(115,0,230,0.3);
  margin-bottom:14px;
}
.feature-card h3{
  font-size:17px; font-weight:600; margin-bottom:6px;
}
.feature-card p{
  font-size:14px; color:var(--muted);
}

/* ============================================================
   SUBNAV (para páginas com tabs)
   ============================================================ */
.subnav{
  position:sticky; top:80px; z-index:90;
  background:var(--bg);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
  opacity:0; visibility:hidden; max-height:0;
  transition:0.3s;
}
.subnav.visible{
  opacity:1; visibility:visible; max-height:100px;
}
.subnav-wrap{
  max-width:1200px; margin:0 auto;
  padding:12px 24px; display:flex; gap:8px;
  overflow-x:auto; scrollbar-width:none;
}
.subnav-wrap::-webkit-scrollbar{ display:none }

.subnav-btn{
  background:#fff; border:1px solid var(--border);
  color:var(--muted); padding:8px 16px;
  font-size:13px; border-radius:10px; cursor:pointer;
  white-space:nowrap; transition:0.2s;
}
.subnav-btn:hover{
  color:var(--tx); border-color:var(--brand);
  transform:translateY(-1px);
}
.subnav-btn.active{
  background:var(--brand); color:#fff;
  border-color:transparent;
  box-shadow:0 4px 12px rgba(115,0,230,0.25);
}

/* ============================================================
   TABS (conteúdo interno)
   ============================================================ */
.tab{ display:none; animation: fadeIn 0.4s ease }
.tab.active{ display:block }
@keyframes fadeIn{
  from{opacity:0} to{opacity:1}
}

/* ============================================================
   PROFESSIONALS (Landing principal)
   ============================================================ */
.professionals{
  background:linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  padding:100px 24px;
}
.professionals-wrap{
  max-width:1200px; margin:0 auto; text-align:center;
}
.section-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; border-radius:20px;
  background:linear-gradient(135deg, rgba(115,0,230,0.1), rgba(147,51,234,0.08));
  border:1px solid rgba(115,0,230,0.2);
  text-transform:uppercase; color:var(--brand-dark);
}
.professionals h2{
  font-size:42px; margin-bottom:16px;
}
.professionals-intro{
  font-size:18px; color:var(--muted);
  max-width:800px; margin:0 auto 60px;
}
.professionals-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:24px; margin-top:48px;
}
.professional-card{
  background:#fff;
  border:1px solid var(--border);
  padding:32px; border-radius:20px;
  transition:0.3s; text-align:left;
}
.professional-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(115,0,230,0.15);
  border-color:rgba(115,0,230,0.3);
}
.professional-icon{
  width:56px; height:56px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brand-light));
  color:#fff; margin-bottom:20px; font-size:24px;
  box-shadow:0 6px 16px rgba(115,0,230,0.3);
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.ecosystem{
  max-width:1200px; margin:0 auto;
  padding:100px 24px; text-align:center;
}
.ecosystem h2{
  font-size:42px; margin-bottom:16px;
}
.ecosystem-intro{
  font-size:18px; color:var(--muted);
  max-width:700px; margin:0 auto 60px;
}
.ecosystem-grid{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap:32px;
}
.ecosystem-card{
  background:linear-gradient(135deg,#fff 0%,var(--accent)100%);
  border:1px solid var(--border);
  border-radius:20px; padding:40px 32px;
  transition:0.3s; position:relative;
}
.ecosystem-card::before{
  content:""; position:absolute; top:0; left:0;
  width:100%; height:4px;
  background:linear-gradient(90deg,var(--brand),var(--brand-light));
  opacity:0; transition:0.3s;
}
.ecosystem-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 40px rgba(115,0,230,0.2);
}
.ecosystem-card:hover::before{ opacity:1 }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta{
  background:linear-gradient(135deg,var(--brand-dark),var(--brand));
  color:#fff; padding:80px 24px; text-align:center;
  margin-top: 120px;
}
.final-cta h2{
  font-size:42px; margin-bottom:16px;
}
.final-cta-btn{
  padding:18px 48px; border-radius:14px;
  background:#fff; color:var(--brand);
  font-size:18px; font-weight:700;
  border:none; cursor:pointer; transition:0.3s;
}
.final-cta-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(0,0,0,0.3);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop{
  position: fixed; inset:0; z-index:1000;
  background:rgba(17,24,39,0.6);
  display:none; opacity:0; transition:0.3s;
  backdrop-filter:blur(8px);
}
.modal-backdrop.show{ display:block; opacity:1 }

.modal{
  position:fixed; z-index:1001;
  left:50%; top:50%;
  width:min(760px, calc(100% - 32px));
  background:rgba(255,255,255,0.98);
  border-radius:20px; padding:0;
  border:1px solid var(--border);
  backdrop-filter:blur(14px);
  box-shadow:0 24px 80px rgba(115,0,230,0.25);
  transform:translate(-50%, -46%); opacity:0;
  pointer-events:none; transition:0.3s;
}
.modal.show{
  transform:translate(-50%, -50%);
  opacity:1; pointer-events:auto;
}

.modal-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:24px; border-bottom:1px solid var(--border);
  background:linear-gradient(135deg,rgba(115,0,230,0.06), rgba(147,51,234,0.04));
}
.modal-title{
  font-size:20px; font-weight:700;
}
.modal-close{
  background:none; border:none; cursor:pointer;
  font-size:20px; color:var(--muted);
  padding:8px; border-radius:8px;
}
.modal-close:hover{
  color:var(--tx); background:rgba(115,0,230,0.1);
}
.modal-body{ padding:32px 24px }

.modal-grid{
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(200px,1fr));
}
.option-card{
  background:linear-gradient(135deg,#fff 0%, var(--accent)100%);
  border:2px solid var(--border);
  border-radius:16px; padding:24px;
  cursor:pointer; transition:0.2s;
}
.option-card:hover{
  transform:translateY(-4px);
  border-color:var(--brand);
  box-shadow:0 12px 32px rgba(115,0,230,0.2);
}
.option-icon{
  width:48px; height:48px; border-radius:12px;
  display:grid; place-items:center; background:linear-gradient(135deg,var(--brand),var(--brand-light));
  color:#fff; font-size:22px;
  box-shadow:0 6px 16px rgba(115,0,230,0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background:linear-gradient(135deg,#fff 0%, var(--accent)100%);
  border-top:1px solid var(--border);
  padding:60px 24px 32px;
}

.footer-wrap{
  max-width:1200px; margin:0 auto;
}
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px; margin-bottom:40px;
}
.footer-section h4{
  font-size:14px; text-transform:uppercase;
  font-weight:600; margin-bottom:16px;
}
.footer-section a{
  color:var(--muted); text-decoration:none; font-size:15px;
  transition:0.2s;
}
.footer-section a:hover{
  color:var(--brand); padding-left:4px;
}
.footer-bottom{
  border-top:1px solid var(--border);
  padding-top:24px; text-align:center; font-size:14px;
  color:var(--muted);
}
.footer-icon{ width:150px; height:40px; margin-left:-20px } .footer-icon img{ width:100%; height:100% }
.footer-icon{ width:150px; height:40px; margin-left:-20px } .footer-icon img{ width:100%; height:100% }
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:968px){
  .hero{
    grid-template-columns:1fr; gap:40px; padding:60px 24px;
  }
  .hero-carousel{
    height:400px;
  }
  .ecosystem-grid{
    grid-template-columns:1fr;
  }
  .footer-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .header-nav{ display:none }
  .mobile-menu-btn{ display:block }

  .hero h1{
    font-size:32px;
  }
  .hero-subtitle{
    font-size:16px;
  }
  .professionals h2,
  .ecosystem h2,
  .final-cta h2{
    font-size:32px;
  }
  .professionals-grid{
    grid-template-columns:1fr;
  }
  .modal-grid{
    grid-template-columns:1fr;
  }
}

/* ===== CTA Pacientes (correção) ===== */
.patients-cta-wrapper {
  text-align: center;
  margin-top: 24px;
  position: relative;
}

.patients-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  position: relative;
}

.patients-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* Asterisco no botão */
.patients-cta-btn::after {
  content: "    ";
  font-size: 18px;
  font-weight: 700;
  margin-left: 6px;
}

/* Nota explicativa */
.patients-cta-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  opacity: 0.9;
}
/* ===========================
   HERO – variações da página de API
   =========================== */

.hero-highlight {
  font-size: 14px;
  color: var(--brand-dark);
  margin-bottom: 18px;
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(115, 0, 230, 0.28);
  background: var(--accent);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-pill i {
  font-size: 11px;
}

/* Botões de CTA genéricos (usados na API) */
.cta-btn {
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(115, 0, 230, 0.25);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(115, 0, 230, 0.35);
}

.cta-btn.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(115, 0, 230, 0.18);
}

.cta-btn.secondary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Card lateral do hero (API) */
.hero-side-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  color: var(--muted);
}

.hero-side-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--tx);
}

.hero-side-card ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.hero-side-card li {
  margin-bottom: 4px;
}

/* ===========================
   SEÇÕES GENÉRICAS (API / Dados)
   =========================== */

.section {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 24px 24px 24px 24px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(115, 0, 230, 0.1),
    rgba(147, 51, 234, 0.08)
  );
  border: 1px solid rgba(115, 0, 230, 0.25);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.section-title {
  font-size: 26px;
  margin-top: 14px;
  margin-bottom: 6px;
  color: var(--tx);
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 22px;
}

/* ===========================
   GRID + CARDS (API)
   =========================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 10px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(115, 0, 230, 0.3);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--tx);
}

.card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card ul {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.8;
  margin-top: 4px;
}

.card li {
  margin-bottom: 4px;
}

/* Observações menores (embaixo dos cards) */
.notice {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ===========================
   FORMATO DE RESPOSTA (JSON / MD / STREAM)
   =========================== */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.mode-card {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
}

.mode-label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===========================
   CTA FINAL – ações (botões à direita)
   =========================== */

.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.final-actions a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.final-actions .primary {
  background: #fff;
  color: var(--brand);
}

.final-actions .ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Responsivo extra para as seções da API */
@media (max-width: 900px) {
  .section {
    padding: 20px 20px;
  }

  .grid {
    gap: 16px;
  }

  .final-cta {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .final-actions {
    justify-content: flex-start;
  }
}
/* =====================================
   AJUSTES ESPECÍFICOS – PÁGINA DE API
   (usa <body class="page-api">)
===================================== */


/* Título maior, na mesma pegada das outras telas */
.page-api .hero h1{
  font-size: 52px;
  line-height: 1.05;
}

/* Botões do hero da API com o mesmo visual dos CTAs globais */
.page-api .hero-ctas a{
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Botão principal = igual ao .cta-primary */
.page-api .hero-ctas a.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(115,0,230,0.30);
  transition: all 0.3s ease;
}
.page-api .hero-ctas a.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(115,0,230,0.40);
}

/* Botão secundário = igual ao .cta-secondary */
.page-api .hero-ctas a.secondary{
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
  transition: all 0.3s ease;
}
.page-api .hero-ctas a.secondary:hover{
  background: var(--accent);
  transform: translateY(-2px);
}

/* =====================================
   CARDS & BADGES – RESPIRO NO TOPO
===================================== */

/* Dá um pouco mais de padding no topo dos cards
   pra badge / conteúdo não ficar colado no limite */
.card{
  padding: 26px 24px 24px;
}

/* Se quiser aplicar só na página de API, use:
   .page-api .card { ... } em vez de .card { ... } */

/* Um respiro mínimo nas pílulas/badges em qualquer lugar */
.section-kicker,
.hero-badge,
.pill{
  margin-top: 4px;
}
@media (max-width: 900px){
  .header-nav{
    display: none;
    position: absolute;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.25);
    border: 1px solid rgba(148,163,184,0.5);
    z-index: 50;
  }

  .header-nav.header-nav--open{
    display: flex;
  }

  .mobile-menu-btn{
    display: inline-flex;
  }

  body.menu-open{
    overflow: hidden;
  }
}

/* opcional: header quando rola */
header.header--scrolled{
  background: rgba(254,247,241,0.96);
  box-shadow: 0 6px 20px rgba(15,23,42,0.12);
}
