/* ==========================================================================
   Jus Live Medical — Landing page institucional (LP.02)
   CSS sem dependências externas. Fontes do sistema (nenhuma requisição de fonte).
   ========================================================================== */

:root {
  --navy-950: #040c1c;
  --navy-900: #071428;
  --navy-850: #0a1b36;
  --navy-800: #0c2142;
  --teal: #1fc9ab;
  --teal-ink: #0a7566;      /* teal para texto sobre fundo claro (contraste AA) */
  --cyan: #2fd3e8;
  --white: #ffffff;
  --ink: #e8f1f8;
  --ink-muted: #a9bccf;
  --paper: #f4f7fa;
  --paper-line: #dde5ee;
  --text-dark: #0b1a30;
  --text-dark-muted: #4a5d74;

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Roboto, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Acessibilidade ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Cabeçalho ----------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(47, 211, 232, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-strong { font-weight: 650; }
.brand-light { font-weight: 350; color: var(--teal); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .85rem;
  border: 1px solid rgba(31, 201, 171, .35);
  border-radius: 999px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(31, 201, 171, .6);
  animation: dot-pulse 2.4s var(--ease) infinite;
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-dark { color: var(--teal-ink); }

.hero h1 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.028em;
  color: var(--white);
  text-wrap: balance;
}
.h1-accent { color: var(--cyan); }

.lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-top: 2.25rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.cs-line {
  width: 40px;
  height: 2px;
  background: var(--teal);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.hero-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 520;
}

/* Animações discretas do elemento gráfico */
.ecg-trace {
  stroke-dasharray: 160 840;
  stroke-dashoffset: 1000;
  animation: ecg-run 5.5s linear infinite;
}
.node { animation: node-breathe 4.8s ease-in-out infinite; }
.n2, .n9, .n13 { animation-delay: -.8s; }
.n3, .n8, .n15 { animation-delay: -1.6s; }
.n4, .n10 { animation-delay: -2.4s; }
.n5, .n11, .n14 { animation-delay: -3.2s; }
.n6, .n12 { animation-delay: -4s; }
.core-ring {
  transform-origin: 280px 260px;
  animation: ring 4.8s var(--ease) infinite;
}
.orbit-dashed {
  transform-origin: 280px 260px;
  animation: spin 120s linear infinite;
}

@keyframes ecg-run { to { stroke-dashoffset: 0; } }
@keyframes node-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ring {
  0% { transform: scale(.85); opacity: .7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 201, 171, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(31, 201, 171, 0); }
}

/* Pilares ------------------------------------------------------------------- */
.pillars {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--paper);
  color: var(--text-dark);
}
.section-head { max-width: 44rem; }
.pillars h2 {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--navy-900);
}
.section-note {
  margin-top: 1rem;
  color: var(--text-dark-muted);
  font-size: 1rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.85rem;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.5rem;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--teal);
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: #c9d6e3;
  box-shadow: 0 18px 40px -24px rgba(7, 20, 40, .35);
}
.pillar-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .8rem;
  color: #5f7186;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  color: var(--navy-800);
}
.pillar h3 {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy-900);
}
.pillar p {
  margin-top: .65rem;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
}

/* Posicionamento ------------------------------------------------------------ */
.statement {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--navy-850);
  text-align: center;
}
.statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.statement-line { width: 200px; height: auto; opacity: .9; }
.statement blockquote { margin-top: 2rem; max-width: 52rem; }
.statement blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -.018em;
  color: var(--white);
  text-wrap: balance;
}
.principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
  margin-top: 2.75rem;
}
.principles li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.principles li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* Rodapé -------------------------------------------------------------------- */
.site-footer {
  padding-block: 2.75rem;
  background: var(--navy-950);
  border-top: 1px solid rgba(47, 211, 232, .1);
  color: var(--ink-muted);
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  line-height: 1.5;
}
.footer-brand strong { color: var(--white); font-weight: 650; }
.disclaimer {
  max-width: 40rem;
  justify-self: end;
  line-height: 1.6;
}

.back-link { color: var(--cyan); text-underline-offset: 3px; }

/* Responsividade ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .disclaimer { justify-self: start; }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: minmax(0, 1fr); }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; }
  .status-pill { padding: .35rem .65rem; font-size: .66rem; letter-spacing: .1em; }
  .principles { flex-direction: column; align-items: center; }
  .coming-soon { gap: .65rem; letter-spacing: .14em; font-size: .72rem; }
  .cs-line { width: 28px; }
}

@media (max-width: 360px) {
  .status-pill { display: none; }
}

/* Movimento reduzido -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .ecg-trace { stroke-dasharray: none; stroke-dashoffset: 0; }
  .node { opacity: 1; }
  .core-ring { opacity: .45; transform: none; }
}

/* Impressão ----------------------------------------------------------------- */
@media print {
  .hero-visual, .status-dot, .skip-link { display: none; }
  body, .hero, .statement, .site-footer { background: #fff; color: #000; }
}
