/* ==========================================================================
   VitalData — Landing page (public)
   Tokens isolados (--blue, --slate-*) para não colidir com base.html (--vd-*)
   ========================================================================== */

:root {
  --blue:        #1e40af;
  --blue-deep:   #1e3a8a;
  --blue-light:  #eff6ff;
  --blue-soft:   #dbeafe;
  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748b;
  --slate-400:   #94a3b8;
  --slate-300:   #cbd5e1;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--slate-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---------- shell ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1100px) { .container { padding: 0 56px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--slate-600); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--slate-900); }
.nav-cta { display: none; gap: 12px; align-items: center; }
.nav-cta .login {
  background: transparent; border: 0; color: var(--slate-700);
  font-size: 13.5px; font-weight: 500; padding: 8px 14px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.nav-cta .login:hover { color: var(--slate-900); }
.nav-burger {
  width: 40px; height: 40px; border: 1px solid var(--slate-200); background: #fff; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
}
@media (min-width: 900px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 10px;
  cursor: pointer; white-space: nowrap; border: 0;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--slate-900); border: 1px solid var(--slate-200); }
.btn-ghost:hover { background: var(--slate-50); }
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 72px 0 56px; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  padding: 6px 12px; border: 1px solid var(--blue-soft); background: var(--blue-light);
  border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

h1.hero-title {
  font-size: 40px; line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; color: var(--slate-900); margin: 0;
}
@media (min-width: 600px)  { h1.hero-title { font-size: 52px; } }
@media (min-width: 1024px) { h1.hero-title { font-size: 64px; } }
h1.hero-title .accent {
  color: var(--blue); font-weight: 400; font-style: italic;
  font-family: 'Instrument Serif', serif; letter-spacing: -0.01em;
}

.hero-sub { font-size: 16.5px; line-height: 1.55; color: var(--slate-600); margin: 22px 0 28px; max-width: 520px; }
@media (min-width: 1024px) { .hero-sub { font-size: 18px; } }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-ctas .btn { flex: 1 1 auto; min-width: 0; }
@media (min-width: 600px) { .hero-ctas .btn { flex: 0 0 auto; } }

/* ---------- dashboard mock ---------- */
.dash-stage { position: relative; perspective: 2000px; }
.dash-frame {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 24px 48px -16px rgba(15,23,42,0.18), 0 4px 12px -4px rgba(15,23,42,0.08);
  overflow: hidden;
  transform-origin: center center;
  transition: transform .4s ease;
}
@media (min-width: 1024px) {
  .dash-frame { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1.5deg); }
  .dash-stage:hover .dash-frame { transform: rotateY(-6deg) rotateX(2deg) rotateZ(-0.5deg); }
}

/* dashboard navbar (dark) */
.dash-nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--slate-900); }
.dash-nav .dn-logo { display: flex; align-items: center; gap: 6px; }
.dash-nav .dn-logo svg { width: 18px; height: 18px; }
.dash-nav .dn-logo span { font-weight: 500; letter-spacing: -0.025em; font-size: 13px; color: #fff; }
.dash-nav .dn-logo span small { font-weight: 300; color: var(--slate-400); }
.dash-nav .dn-pill {
  font-size: 11px; color: var(--slate-300);
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  background: rgba(255,255,255,0.04);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.dash-nav .dn-tabs { display: flex; gap: 4px; margin-left: auto; }
.dash-nav .dn-tabs span { font-size: 11px; color: var(--slate-300); padding: 5px 9px; border-radius: 6px; }
.dash-nav .dn-tabs span.act { background: rgba(255,255,255,0.10); color: #fff; }
@media (max-width: 600px) {
  .dash-nav .dn-pill,
  .dash-nav .dn-tabs span:not(.act) { display: none; }
}

.dash-body { padding: 16px; background: #f8fafc; }
@media (min-width: 600px) { .dash-body { padding: 20px; } }

/* filter bar */
.dash-filter {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 10px;
  padding: 10px 12px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px;
  margin-bottom: 14px;
  align-items: end;
}
.dash-filter .field .l {
  font-family: 'JetBrains Mono', monospace; font-size: 8.5px;
  color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.dash-filter .field .v {
  font-size: 11.5px; color: var(--slate-800);
  padding: 5px 8px; border: 1px solid var(--slate-200); border-radius: 6px; background: #fff;
}
.dash-filter .filtrar {
  background: var(--slate-900); color: #fff; font-size: 11px;
  padding: 7px 12px; border-radius: 7px; align-self: end; white-space: nowrap;
}
@media (max-width: 600px) {
  .dash-filter { grid-template-columns: 1fr 1fr; }
  .dash-filter .filtrar { grid-column: 1 / -1; text-align: center; }
}

/* KPI grid */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 600px) { .kpis { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.kpi { padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; }
.kpi .l { font-size: 10.5px; color: var(--slate-500); margin-bottom: 4px; }
.kpi .v { font-size: 22px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; line-height: 1; }
.kpi .v.red { color: #dc2626; }
.kpi .v.green { color: #16a34a; }
.kpi .sub { font-size: 10.5px; color: var(--slate-500); margin-top: 4px; }
.kpi .badge {
  display: inline-block; font-size: 9.5px; padding: 2px 7px; border-radius: 4px;
  background: #dcfce7; color: #15803d; font-weight: 500; margin-top: 3px;
}

/* chart cards */
.charts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; padding: 14px; }
.chart-card .ct { font-size: 13px; font-weight: 600; color: var(--slate-900); letter-spacing: -0.01em; margin-bottom: 6px; }
.chart-card .leg { display: flex; gap: 14px; margin-bottom: 6px; }
.chart-card .leg span { font-size: 10px; color: var(--slate-600); display: flex; align-items: center; gap: 5px; }
.chart-card .leg .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- benefits ---------- */
section.benefits { padding: 72px 0 32px; }
.section-eb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.section-h {
  font-size: 32px; line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; color: var(--slate-900);
  margin: 0 0 16px; max-width: 760px;
}
@media (min-width: 768px) { .section-h { font-size: 44px; } }
.section-h .accent {
  color: var(--blue); font-weight: 400; font-style: italic;
  font-family: 'Instrument Serif', serif;
}
.section-sub {
  font-size: 16px; color: var(--slate-600);
  max-width: 640px; margin: 0 0 40px; line-height: 1.6;
}

.benefit-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.b-card {
  border: 1px solid var(--slate-200); border-radius: 16px;
  padding: 24px; background: #fff;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.b-card:hover { border-color: var(--slate-300); box-shadow: 0 8px 24px -12px rgba(15,23,42,0.12); }
.b-card.feat { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }
.b-card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); display: grid; place-items: center; color: var(--blue);
}
.b-card.feat .ico { background: rgba(255,255,255,0.08); color: #fff; }
.b-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--slate-900); }
.b-card.feat h3 { color: #fff; }
.b-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate-600); }
.b-card.feat p { color: var(--slate-300); }

/* ---------- capabilities ---------- */
.capabilities { padding: 80px 0; background: #fff; }
.cap-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cap-grid { grid-template-columns: 1.1fr 1fr; gap: 20px; } }

.cap-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cap-list { grid-template-columns: 1fr 1fr; } }
.cap-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--slate-200); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cap-item:hover { border-color: var(--slate-300); box-shadow: 0 4px 12px -8px rgba(15,23,42,0.12); }
.cap-item .cap-ico {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 8px; background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center;
}
.cap-item .cap-text {
  font-size: 14px; font-weight: 500; color: var(--slate-900);
  letter-spacing: -0.01em; line-height: 1.35;
}
.cap-item .cap-text small {
  display: block; font-weight: 400; color: var(--slate-500);
  font-size: 12.5px; margin-top: 2px;
}

.cap-ai {
  background: var(--slate-900); color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.cap-ai .cap-ai-eb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-light); align-self: flex-start;
  background: rgba(37,99,235,0.18);
  padding: 6px 10px; border-radius: 999px;
}
.cap-ai h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.cap-ai p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate-300); }
.cap-ai .cap-ai-mock {
  margin-top: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--slate-300);
  line-height: 1.7;
}
.cap-ai .cap-ai-mock .ai-line { display: block; }
.cap-ai .cap-ai-mock .ai-line .b { color: #93c5fd; }

/* ---------- about ---------- */
section.about {
  padding: 80px 0; background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.pillars { display: grid; gap: 14px; }
.pillar { background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 18px 20px; }
.pillar .l {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.pillar h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--slate-900); letter-spacing: -0.02em; }
.pillar p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate-600); }

.tagline {
  margin-top: 24px; padding: 28px;
  border: 1px solid var(--blue-soft); background: var(--blue-light);
  border-radius: 16px;
  font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.3;
  color: var(--blue-deep);
}
.tagline strong { font-family: 'Inter', sans-serif; font-weight: 500; color: var(--slate-900); }

/* ---------- system / how it works ---------- */
section.system { padding: 80px 0; }
.system-steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px)  { .system-steps { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .system-steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border: 1px solid var(--slate-200); border-radius: 14px;
  background: #fff;
}
.step .num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
}
.step h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--slate-900); letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--slate-600); }
.step ul {
  margin: 4px 0 0; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.step ul li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: var(--slate-700); line-height: 1.45;
}
.step ul li::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-size: contain;
}

/* ---------- CTA band ---------- */
section.cta-band { padding: 64px 0; background: var(--slate-900); color: #fff; }
.cta-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cta-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.cta-h { font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 12px; }
@media (min-width: 768px) { .cta-h { font-size: 40px; } }
.cta-h .accent {
  color: #93c5fd; font-style: italic;
  font-family: 'Instrument Serif', serif; font-weight: 400;
}
.cta-sub { font-size: 15.5px; color: var(--slate-300); margin: 0 0 24px; line-height: 1.5; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-buttons .btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.cta-buttons .btn-ghost:hover { background: rgba(255,255,255,0.06); }
.cta-buttons .btn-light { background: #fff; color: var(--slate-900); border: 0; }
.cta-buttons .btn-light:hover { background: var(--slate-100); color: var(--slate-900); }

/* ---------- footer ---------- */
footer {
  padding: 48px 0 32px; background: var(--slate-900);
  color: var(--slate-400);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.foot-brand .lockup { display: flex; align-items: center; gap: 8px; }
.foot-brand p { font-size: 13.5px; color: var(--slate-400); line-height: 1.55; margin: 0; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px; margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px; color: var(--slate-500);
}

/* ---------- mobile menu ---------- */
.mobile-menu { display: none; }
.mobile-menu.is-open {
  display: block; padding-top: 12px; padding-bottom: 18px;
  border-top: 1px solid var(--slate-100);
}
@media (min-width: 900px) {
  .mobile-menu,
  .mobile-menu.is-open { display: none; }
}
.mobile-menu a:not(.btn) {
  display: block; padding: 12px 0;
  font-size: 15px; color: var(--slate-700);
  text-decoration: none; font-weight: 500;
}
.mobile-menu .actions { display: flex; gap: 10px; padding-top: 8px; }
.mobile-menu .actions .btn { flex: 1; }
