/* ==========================================
   DESIGN TOKENS - YVETECH health
   Landing (index.html). Fica em arquivo próprio porque a CSP do host
   (style-src 'self') bloqueia <style> e atributos style= embutidos.
   ========================================== */
:root {
  --brand: #0bb9a7;
  --brand-dark: #00547b;
  --brand-deep: #0e4a68;
  --ink: #173d49;
  --muted: #7c949b;
  --bg: #f8fbfc;
  --line: #e4ecef;
  --gradient-primary: linear-gradient(135deg, #0bb9a7, #0aa28f);
  --gradient-dark: linear-gradient(135deg, #00547b, #0e4a68);

  /* Cores dos Módulos */
  --mod-atendimento: #e76d6d;
  --mod-consultorio: #28b8b1;
  --mod-exame: #7e5ce7;
  --mod-laboratorio: #f19a4a;
  --mod-faturamento: #4296ea;
  --mod-financeiro: #e5b437;
  --mod-estoque: #34c98d;
  --mod-bi: #8c61f7;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
}

.logo span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 14px;
}

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

.btn-login {
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 185, 167, 0.2);
  transition: transform 0.2s;
}
.btn-login:hover { transform: translateY(-2px); }

/* --- HERO SECTION --- */
.hero {
  background: var(--gradient-dark);
  color: #ffffff;
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

.ecg-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
}

/* --- MÓDULOS SECTION --- */
.modules {
  padding: 80px 5%;
  text-align: center;
}

.modules h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
  color: var(--brand-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 84, 123, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 84, 123, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

/* --- MODAL LOGIN TENANT --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 45, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: #ffffff;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  position: relative;
}

.modal h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 185, 167, 0.1);
}

.btn-full {
  width: 100%;
  height: 48px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

/* --- FOOTER --- */
footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 40px 5%;
  font-size: 13px;
}

/* --- Antes em atributos style= do HTML --- */
.btn-hero { padding: 16px 36px; font-size: 16px; }

.mod-atendimento { background: var(--mod-atendimento); }
.mod-consultorio { background: var(--mod-consultorio); }
.mod-faturamento { background: var(--mod-faturamento); }
.mod-financeiro { background: var(--mod-financeiro); }
.mod-laboratorio { background: var(--mod-laboratorio); }
.mod-exame { background: var(--mod-exame); }
.mod-estoque { background: var(--mod-estoque); }
.mod-bi { background: var(--mod-bi); }

.footer-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--brand); }
.footer-infra { margin-top: 8px; opacity: 0.5; }

.modal-rodape { margin-top: 16px; text-align: center; }
.link-master { font-size: 12px; color: var(--brand); font-weight: 600; }
