/* ============================================================
   HospControl — Design tokens
   ============================================================ */
:root {
  --navy-950: #0E2438;
  --navy-800: #16354F;
  --navy-700: #1F4863;
  --teal-600: #1C7A8C;
  --teal-500: #2E93A6;
  --teal-400: #45B8C4;
  --mint-300: #8FE3D6;
  --bg: #F5F8F9;
  --surface: #FFFFFF;
  --line: #DCE5E8;
  --line-strong: #C3D2D7;
  --slate-600: #55707C;
  --slate-700: #3D4F59;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --wrap: 1180px;
  --pad: 24px;
  --radius: 14px;
  --section-pad-y: 128px;
}

@media (max-width: 900px) {
  :root { --section-pad-y: 88px; }
}
@media (max-width: 560px) {
  :root { --section-pad-y: 64px; --pad: 20px; }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy-800);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-950);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--mint-300); }

.section-lead {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 640px;
  margin-top: 18px;
}

.section {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--line);
}
.section-tinted {
  background: linear-gradient(180deg, #EFF5F6 0%, var(--bg) 100%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(28, 122, 140, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(28, 122, 140, 0.6); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-text {
  color: var(--teal-600);
  padding: 12px 4px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-color: var(--teal-500); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-950);
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-700);
}
.main-nav a:hover { color: var(--teal-600); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-panel { display: flex; align-items: center; gap: 32px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy-950);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-panel { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav-panel {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    padding: 12px var(--pad) 8px;
    gap: 4px;
  }
  .site-header.nav-open .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .header-cta {
    display: flex;
    padding: 16px var(--pad) 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header.nav-open .header-cta .btn { justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 88px 0 var(--section-pad-y);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--slate-600);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.circuit-deco {
  position: absolute;
  width: 160px;
  height: 160px;
  color: var(--mint-300);
  opacity: 0.55;
  top: -40px;
  right: -20px;
  z-index: 0;
}

.asset-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: 0 30px 60px -24px rgba(14, 36, 56, 0.5);
  border: 1px solid var(--navy-700);
  animation: card-rise 0.7s ease both;
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.asset-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.asset-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mint-300);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(143, 227, 214, 0.14);
  color: var(--mint-300);
}
.status-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-300);
  display: inline-block;
}
.asset-card-rows { display: flex; flex-direction: column; gap: 11px; }
.asset-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.83rem;
  opacity: 0;
  animation: row-in 0.5s ease forwards;
}
.asset-row:nth-child(1) { animation-delay: 0.15s; }
.asset-row:nth-child(2) { animation-delay: 0.25s; }
.asset-row:nth-child(3) { animation-delay: 0.35s; }
.asset-row:nth-child(4) { animation-delay: 0.45s; }
.asset-row:nth-child(5) { animation-delay: 0.55s; }
.asset-row:nth-child(6) { animation-delay: 0.65s; }
.asset-row:nth-child(7) { animation-delay: 0.75s; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.asset-row dt { color: rgba(255,255,255,0.55); font-weight: 400; }
.asset-row dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.asset-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-400);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .asset-card { max-width: 440px; }
}

/* ============================================================
   Before / After diptych
   ============================================================ */
.diptych {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: stretch;
}
.diptych-divider {
  width: 1px;
  background: var(--line-strong);
}
.diptych-col { padding-top: 4px; }
.diptych-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.diptych-before .diptych-label { background: #EDE7E2; color: #8A7B6C; }
.diptych-after .diptych-label { background: rgba(28,122,140,0.12); color: var(--teal-600); }
.diptych-col ul { display: flex; flex-direction: column; gap: 16px; }
.diptych-col li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.5;
}
.diptych-before li { color: var(--slate-600); }
.diptych-after li { color: var(--navy-800); font-weight: 500; }
.diptych-before li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid #B9AC9E;
}
.diptych-after li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--teal-500);
}

@media (max-width: 760px) {
  .diptych { grid-template-columns: 1fr; gap: 36px; }
  .diptych-divider { width: 100%; height: 1px; }
}

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
}
.feature-icon {
  width: 30px; height: 30px;
  color: var(--teal-600);
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.92rem;
  color: var(--slate-600);
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
}
.step {
  position: relative;
  padding-top: 28px;
  padding-right: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-600);
  margin-bottom: 16px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}
.step::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal-500);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--slate-600); font-size: 0.94rem; max-width: 300px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding-right: 0; }
}

/* ============================================================
   Para quem é
   ============================================================ */
.para-quem-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.role-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.role-list li {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-800);
}
@media (max-width: 760px) {
  .para-quem-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Planos
   ============================================================ */
.plan-panel {
  background: var(--navy-950);
  color: #fff;
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.plan-panel .eyebrow { color: var(--mint-300); }
.plan-panel h2 { color: #fff; font-size: 1.9rem; margin-bottom: 16px; }
.plan-panel .section-lead { color: rgba(255,255,255,0.72); max-width: none; margin-top: 0; }
.plan-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-points li {
  padding-left: 22px;
  position: relative;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.85);
}
.plan-points li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--teal-400);
}
.plan-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.plan-actions .btn-text { color: var(--mint-300); text-decoration-color: rgba(143,227,214,0.4); }

@media (max-width: 760px) {
  .plan-panel { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: 48px;
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-950);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--teal-600);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 8px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-item p {
  margin-top: 14px;
  color: var(--slate-600);
  max-width: 640px;
}

/* ============================================================
   CTA final
   ============================================================ */
.cta-final {
  background: radial-gradient(120% 140% at 20% 0%, var(--navy-700) 0%, var(--navy-950) 60%);
  color: #fff;
  padding: var(--section-pad-y) 0;
}
.cta-final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 640px;
  margin-bottom: 18px;
}
.cta-lead {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal { padding-top: 72px; }
.legal-wrap { max-width: 720px; }
.legal-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 32px;
}
.legal-intro {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal p { color: var(--slate-700); margin-bottom: 4px; }
.legal-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--slate-700);
}
.legal-list li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--teal-500);
}
.legal a { color: var(--teal-600); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.legal a.btn { text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid var(--navy-700);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 64px 0 40px;
}
.footer-brand {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px 10px;
  align-content: start;
}
.footer-brand .brand-mark { border-radius: 7px; }
.footer-brand .brand-name { color: #fff; align-self: center; }
.footer-brand p {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.88rem;
  max-width: 260px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding: 22px 0;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
