/* ============================================================
   index.css
   Estilos da landing page pública (sem sidebar/topbar do app).
   ============================================================ */

:root {
  --endo-dark:   #005954;
  --endo-mid:    #338b85;
  --endo-accent: #5dc1b9;
  --endo-light:  #9ce0db;
  --endo-pale:   #d5ffff; 
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #222; background: #fff; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; }

/* ── NAVBAR ── */
.navbar-endo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(0,89,84,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand .brand-icon {
  width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-brand .brand-icon i { color: var(--endo-pale); font-size: 1.3rem; }
.navbar-brand .brand-name { color: #fff; font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; }
.navbar-brand .brand-sub  { color: var(--endo-light); font-size: .72rem; display: block; font-weight: 400; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .2s; }
.navbar-links a:hover { color: var(--endo-pale); }
.btn-nav { background: var(--endo-accent); color: #fff !important; padding: 8px 22px; border-radius: 8px; font-weight: 600 !important; transition: background .2s !important; }
.btn-nav:hover { background: var(--endo-mid) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--endo-dark) 0%, var(--endo-mid) 60%, var(--endo-accent) 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: var(--endo-pale);
  padding: 6px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--endo-pale); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero {
  padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-hero-primary { background: #fff; color: var(--endo-dark); }
.btn-hero-primary:hover { background: var(--endo-pale); color: var(--endo-dark); }
.btn-hero-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Hero visual */
.hero-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  display: none;
}
@media (min-width: 992px) { .hero-visual { display: block; } }
.hero-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 16px;
  padding: 20px 24px; min-width: 240px; margin-bottom: 16px;
  color: #fff;
}
.hero-card .card-label { font-size: .72rem; opacity: .7; margin-bottom: 4px; }
.hero-card .card-value { font-size: 1.6rem; font-weight: 800; font-family: 'Sora', sans-serif; }
.hero-card .card-sub { font-size: .75rem; opacity: .75; }
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 10px; }
.mini-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.4); transition: height .5s; }

/* ── STATS ── */
.section-stats {
  background: var(--endo-dark); padding: 48px 5%;
}
.stat-item { text-align: center; color: #fff; }
.stat-item .num { font-size: 2.2rem; font-weight: 800; font-family: 'Sora', sans-serif; color: var(--endo-pale); }
.stat-item .lbl { font-size: .82rem; opacity: .75; margin-top: 4px; }

/* ── FEATURES ── */
.section-features { padding: 80px 5%; background: #f8fdfc; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--endo-dark); font-weight: 800; }
.section-title p { color: #667; font-size: .95rem; margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  border: 1px solid #e8f5f4; box-shadow: 0 2px 16px rgba(0,89,84,.06);
  height: 100%; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,89,84,.12); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--endo-dark), var(--endo-mid));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem; color: #fff;
}
.feature-card h5 { font-size: .98rem; font-weight: 700; color: var(--endo-dark); margin-bottom: 10px; }
.feature-card p { font-size: .83rem; color: #667; line-height: 1.65; }

/* ── HOW IT WORKS ── */
.section-how { padding: 80px 5%; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--endo-dark), var(--endo-mid));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: 'Sora', sans-serif; font-size: 1.1rem;
}
.step-item h5 { font-size: .95rem; font-weight: 700; color: var(--endo-dark); margin-bottom: 6px; }
.step-item p  { font-size: .82rem; color: #667; line-height: 1.6; }
.step-connector { width: 2px; height: 32px; background: var(--endo-light); margin: 8px 0 8px 21px; }

/* ── PERFIS ── */
.section-perfis { padding: 80px 5%; background: #f8fdfc; }
.perfil-card {
  background: #fff; border-radius: 16px; padding: 32px 24px; text-align: center;
  border: 2px solid transparent; transition: all .25s;
  box-shadow: 0 2px 16px rgba(0,89,84,.06);
}
.perfil-card:hover { border-color: var(--endo-accent); transform: translateY(-4px); }
.perfil-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}
.perfil-card h5 { font-size: 1.05rem; font-weight: 700; color: var(--endo-dark); margin-bottom: 10px; }
.perfil-card p { font-size: .82rem; color: #667; line-height: 1.65; margin-bottom: 20px; }
.btn-perfil {
  display: inline-block; padding: 10px 24px; border-radius: 8px;
  font-size: .85rem; font-weight: 700; text-decoration: none;
  background: var(--endo-pale); color: var(--endo-dark); transition: background .2s;
}
.btn-perfil:hover { background: var(--endo-light); color: var(--endo-dark); }

/* ── LGPD BANNER ── */
.section-lgpd {
  background: linear-gradient(135deg, var(--endo-dark), var(--endo-mid));
  padding: 48px 5%; color: #fff;
}
.lgpd-items { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.lgpd-item { display: flex; align-items: flex-start; gap: 12px; max-width: 260px; }
.lgpd-item i { font-size: 1.4rem; color: var(--endo-pale); flex-shrink: 0; margin-top: 2px; }
.lgpd-item h6 { font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.lgpd-item p { font-size: .78rem; opacity: .8; line-height: 1.5; }

/* ── CTA ── */
.section-cta {
  padding: 80px 5%; text-align: center;
  background: radial-gradient(ellipse at center, #e8fafa 0%, #fff 70%);
}
.section-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--endo-dark); font-weight: 800; margin-bottom: 16px; }
.section-cta p { color: #667; font-size: .95rem; max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }

/* ── FOOTER ── */
footer {
  background: var(--endo-dark); color: rgba(255,255,255,.75);
  padding: 48px 5% 28px;
}
footer .footer-brand { color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
footer .footer-desc { font-size: .82rem; line-height: 1.6; margin-bottom: 0; }
footer h6 { color: var(--endo-pale); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .83rem; display: block; margin-bottom: 8px; transition: color .2s; }
footer a:hover { color: var(--endo-pale); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 28px 0 20px; }
.footer-bottom { font-size: .75rem; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Animações */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .6s ease forwards; }
/* ══════════════════════════════════════════════════════
   ACESSIBILIDADE — TEMA ESCURO E CONTROLES
   ══════════════════════════════════════════════════════ */
body.dark-theme {
  background: #0c211f !important;
  color: #d8ece9 !important;
}
body.dark-theme .section-features,
body.dark-theme .section-perfis {
  background: #0f2725 !important;
}
body.dark-theme .feature-card,
body.dark-theme [class*="perfil-card"],
body.dark-theme .section-features > div > div,
body.dark-theme .section-perfis > div > div {
  background: #16302e !important;
  color: #d8ece9 !important;
}
body.dark-theme [style*="color:#888"], body.dark-theme [style*="color: #888"],
body.dark-theme [style*="color:#999"], body.dark-theme [style*="color: #999"],
body.dark-theme [style*="color:#777"], body.dark-theme [style*="color: #777"],
body.dark-theme [style*="color:#666"], body.dark-theme [style*="color: #666"],
body.dark-theme [style*="color:#555"], body.dark-theme [style*="color: #555"],
body.dark-theme [style*="color:#222"], body.dark-theme [style*="color: #222"] {
  color: #a9c2bf !important;
}
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4 {
  color: #e8f4f3 !important;
}

.a11y-controls-public {
  display: flex; align-items: center; gap: 2px;
  margin-right: 12px; padding: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
}
.a11y-btn-public {
  height: 28px; min-width: 28px; padding: 0 8px;
  border-radius: 7px; border: none;
  background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; font-family: 'Inter', sans-serif;
  transition: background .15s, transform .1s;
}
.a11y-btn-public:hover  { background: rgba(255,255,255,.22); }
.a11y-btn-public:active { transform: scale(.94); }
.a11y-divider-public { width: 1px; height: 16px; background: rgba(255,255,255,.3); margin: 0 3px; }
