/* AnestMove · LP protótipo. Conceito "o monitor" (guia provisório da marca).
   Mobile first. Um acento (turquesa); laranja só como sinal de atenção. Raio único de 14px. */

:root {
  --navy: #164770;
  --deep: #0B2A44;
  --ink: #0E2236;
  --teal: #61C8C4;
  --teal-dark: #217A76;   /* turquesa para texto em fundo claro (contraste AA) */
  --orange: #E9962C;
  --light: #F5F8FA;
  --teal-soft: #D0ECED;
  --white: #FFFFFF;
  --muted-dark: #9FB8CC;  /* texto secundário no escuro */
  --muted-light: #4D6378; /* texto secundário no claro */
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(22, 71, 112, 0.14);
  --radius: 14px;
  --wrap: 1180px;
  --gutter: 20px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* entradas */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* espaço reservado: dado ainda não confirmado pelo cliente */
.placeholder {
  outline: 2px dashed var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- faixa de protótipo ---------- */
.proto {
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px var(--gutter);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
}
.btn:hover { background: #7FD6D2; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ---------- cabeçalho ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 42, 68, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { width: 150px; height: auto; }
.nav { display: none; }

/* ---------- herói ---------- */
.hero {
  position: relative;
  background: radial-gradient(80% 70% at 85% 0%, #1D5684 0%, var(--deep) 60%, #081E33 100%);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0 0;
}
/* grade do monitor só aqui e no checklist */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(97, 200, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 200, 196, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero > * { position: relative; }
.hero-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.live {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.hero-title { font-size: clamp(40px, 9.5vw, 84px); font-weight: 800; margin-top: 20px; max-width: 14ch; }
.hero-title em, .sec-title em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 19px; color: #CFDDE8; margin-top: 20px; max-width: 34em; }
.hero-cta { margin-top: 30px; }
.hero-ecg { width: 100%; height: 110px; margin-top: 44px; }
.ecg path { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg .glow { stroke-width: 9; opacity: 0.16; }
.hero-facts {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 44px;
}
.hero-facts p { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.hero-facts b { display: block; font-size: 17px; }
.hero-facts span { color: var(--muted-dark); font-size: 15px; }

/* ---------- títulos de seção ---------- */
section { padding: 72px 0; }
.sec-title { font-size: clamp(30px, 6vw, 48px); font-weight: 800; color: var(--navy); }
.sec-title em { color: var(--teal-dark); }
.sec-lead { font-size: 18px; color: var(--muted-light); margin-top: 12px; max-width: 40em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- dor: frase grande + lista ---------- */
.pain { background: var(--white); }
.pain-title { font-size: clamp(32px, 6.5vw, 56px); font-weight: 800; color: var(--navy); max-width: 16ch; }
.pain-list { list-style: none; margin-top: 36px; display: grid; gap: 26px; }
.pain-list li { padding-left: 22px; border-left: 3px solid var(--teal); color: var(--muted-light); font-size: 17px; }
.pain-list strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }

/* ---------- como funciona: linha do tempo ---------- */
.steps { background: var(--light); }
.flow { list-style: none; margin-top: 40px; display: grid; gap: 0; counter-reset: step; position: relative; }
.flow li { position: relative; padding: 0 0 34px 44px; counter-increment: step; }
.flow li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--teal-soft);
}
.flow li:last-child::before { display: none; }
.flow-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
}
.flow h3 { font-size: 21px; color: var(--navy); }
.flow h3::before { content: counter(step) ". "; color: var(--teal-dark); }
.flow p { color: var(--muted-light); margin-top: 6px; }

/* ---------- para quem: lista definição ---------- */
.who { background: var(--white); }
.who-list { margin-top: 32px; border-top: 1px solid var(--line-light); }
.who-list div { padding: 22px 0; border-bottom: 1px solid var(--line-light); display: grid; gap: 4px; }
.who-list dt { font-size: 24px; font-weight: 800; color: var(--navy); }
.who-list dd { color: var(--muted-light); }

/* ---------- segurança ---------- */
.safety { background: var(--teal-soft); }
.safety-in { display: grid; gap: 40px; }
.kit { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.kit li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; font-size: 17px; }
.kit svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note { margin-top: 22px; font-size: 14px; color: var(--muted-light); display: inline-block; }
.no {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  align-self: start;
}
.no p { font-size: 25px; font-weight: 800; line-height: 1.25; }
.no footer { margin-top: 16px; color: #CFDDE8; font-size: 16px; }

/* ---------- CFM 2.471: checklist ---------- */
.cfm { background: var(--deep); color: var(--white); }
.cfm-in { display: grid; gap: 40px; }
.cfm .sec-title { color: var(--white); }
.cfm .sec-title em { color: var(--teal); }
.cfm .eyebrow { color: var(--teal); }
.cfm-text > p { color: #CFDDE8; margin-top: 16px; }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.dates div { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 12px; min-width: 0; }
.dates dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.dates dd { font-family: var(--mono); font-weight: 600; font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dates .soon { border-color: rgba(233, 150, 44, 0.6); }
.dates .soon dd { color: var(--orange); }
.cfm .src { font-size: 13.5px; color: var(--muted-dark); margin-top: 18px; }

.monitor {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(97, 200, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 200, 196, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid rgba(97, 200, 196, 0.25);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.mon-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.mon-bar span { display: inline-flex; align-items: center; gap: 8px; }
.monitor fieldset { border: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.item:hover { background: rgba(255, 255, 255, 0.04); }
.item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--muted-dark);
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.item input:checked + .box { background: var(--teal); border-color: var(--teal); }
.item input:checked + .box::after { opacity: 1; }
.item input:focus-visible + .box { outline: 3px solid var(--teal); outline-offset: 3px; }
.item .txt { min-width: 0; overflow-wrap: anywhere; }
.item input:checked ~ .txt { color: var(--muted-dark); }

.mon-out {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}
.readout .lbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); }
.readout .val { font-family: var(--mono); font-weight: 600; font-size: 40px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.readout small { font-size: 20px; color: var(--muted-dark); margin-left: 2px; }
.monitor.is-ok .readout .val { color: var(--teal); }
.state { font-size: 15px; color: #CFDDE8; }

/* ---------- equipe ---------- */
.team { background: var(--light); }
.doctors { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.doctors li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.doctors .ini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.doctors div { min-width: 0; }
.doctors b { display: block; color: var(--navy); font-size: 18px; overflow-wrap: anywhere; }
.doctors span { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted-light); overflow-wrap: anywhere; }
.doctors em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--teal-dark); }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.qa { margin-top: 28px; border-top: 1px solid var(--line-light); }
.qa details { border-bottom: 1px solid var(--line-light); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--teal-dark); }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--teal-dark);
}
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 0 22px; color: var(--muted-light); max-width: 46em; }

/* ---------- CTA final ---------- */
.final {
  background: radial-gradient(80% 90% at 50% 0%, #1D5684 0%, var(--deep) 70%);
  color: var(--white);
  text-align: center;
  padding-bottom: 0;
  overflow: hidden;
}
.final-in { display: grid; justify-items: center; gap: 24px; }
.final-logo { width: 84px; height: auto; }
.final-title { font-size: clamp(30px, 6vw, 52px); font-weight: 800; max-width: 24ch; }
.final-title span { display: inline-block; }
.final-sub { font-size: 15px; color: var(--muted-dark); }
.final-ecg { width: 100%; height: 80px; margin-top: 48px; }

/* ---------- rodapé ---------- */
.site-foot { background: #081E33; color: #CFDDE8; padding: 44px 0 56px; font-size: 15px; }
.foot-in { display: grid; gap: 28px; }
.foot-in > img { width: 120px; height: auto; }
.foot-info { display: grid; gap: 6px; }
.foot-info .placeholder { justify-self: start; }
.foot-links { display: grid; gap: 10px; }
.foot-links a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--white); }

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 88px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .pain-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .pain-list { margin-top: 10px; }
  .who-list div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
  .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dates dd { font-size: 16px; }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: start; gap: 48px; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  section { padding: 104px 0; }
  .nav { display: flex; gap: 28px; }
  .nav a { text-decoration: none; color: #CFDDE8; font-weight: 700; font-size: 15px; }
  .nav a:hover { color: var(--white); }
  .brand img { width: 170px; }
  .hero-ecg { height: 150px; }

  /* linha do tempo na horizontal */
  .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
  .flow li { padding: 44px 0 0; }
  .flow li::before { left: 22px; right: -28px; top: 9px; bottom: auto; width: auto; height: 2px; }
  .flow-dot { top: 0; }

  .who-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .who-list { margin-top: 6px; }
  .safety-in { grid-template-columns: 1.2fr 0.8fr; gap: 72px; }
  .cfm-in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .monitor { padding: 24px; }
  .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
  .qa { margin-top: 0; }
}


/* ---------- avatares do herói ---------- */
.crew { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--muted-dark); }
.crew-faces { display: flex; flex: none; }
.crew-faces img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--deep);
  filter: grayscale(0.35) saturate(0.85);
}
.crew-faces img + img { margin-left: -12px; }
.f4 { object-position: 30% 50%; }

/* ---------- retratos da equipe ---------- */
.team-head { display: grid; gap: 28px; }
.faces { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.faces li {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--teal-soft);
}
/* leve tratamento azul para casar com a paleta */
.faces li { position: relative; }
.faces img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
/* película azul por cima (sem mix-blend-mode: em elemento animado o celular escondia a foto) */
.faces li::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(22, 71, 112, 0.38); pointer-events: none; }
.doctors .placeholder, .site-foot span.placeholder { outline-offset: 1px; }
.doctors i { font-style: normal; }

/* ---------- linha das etapas: trilho + preenchimento ---------- */
.flow li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  transform-origin: top;
}
.flow li:last-child::after { display: none; }
.flow-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- trilho de ECG que acompanha a página (desktop largo) ---------- */
.rail { display: none; }

@media (min-width: 720px) {
  .faces li { width: 96px; height: 96px; }
}
@media (min-width: 1024px) {
  .team-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .faces li { width: 120px; height: 120px; }
  .faces { flex-wrap: nowrap; }
  .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { left: 22px; right: -28px; top: 9px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
}

/* =========================================================
   Movimento. Só existe com JS ativo e sem prefers-reduced-motion:
   sem isso, a página fica inteira visível e estática.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* ECG do herói: o traço do monitor se desenha uma vez */
  .js .draw-now path,
  .js .draw-on-view path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .draw-now path { animation: ecg-draw 1.6s linear 0.2s forwards; }
  .js .draw-on-view.is-in path { animation: ecg-draw 1.4s linear forwards; }

  /* surgimento escalonado */
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero-facts .reveal { transition-delay: calc(1.1s + var(--i, 0) * 90ms); }

  /* checklist "liga" como um monitor: itens entram em sequência */
  .js .monitor .boot { opacity: 0; transform: translateX(-8px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); transition-delay: calc(0.25s + var(--i, 0) * 45ms); }
  .js .monitor.is-in .boot { opacity: 1; transform: none; }

  /* fotos da equipe: retornam à cor no hover (só mouse) */
  @media (hover: hover) and (pointer: fine) {
    .faces img { transition: filter 0.25s ease; }
    .faces li:hover img { filter: grayscale(0) contrast(1); }
    .faces li::after { transition: opacity 0.25s ease; }
    .faces li:hover::after { opacity: 0; }
  }

  /* reações do checklist */
  .box::after { transform: rotate(45deg) translate(-1px, -1px) scale(0.6); transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out); }
  .item input:checked + .box::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
  .item { transition: background-color 0.2s ease; }
  .item:has(input:checked) { background: rgba(97, 200, 196, 0.07); }
  .monitor { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
  .monitor.is-ok { border-color: rgba(97, 200, 196, 0.7); box-shadow: 0 0 0 1px rgba(97, 200, 196, 0.25), 0 0 40px rgba(97, 200, 196, 0.12); }
  .readout .val { transition: color 0.25s ease; }

  /* etapas: a linha percorre e os pontos acendem conforme a rolagem */
  @supports (animation-timeline: view()) {
    .flow { view-timeline-name: --flow; view-timeline-axis: block; }
    .flow li::after { animation: fill-y linear both; animation-timeline: --flow; }
    .flow-dot::after { animation: dot-on linear both; animation-timeline: --flow; }
    .flow li:nth-child(1)::after { animation-range: cover 22% cover 34%; }
    .flow li:nth-child(2)::after { animation-range: cover 34% cover 46%; }
    .flow li:nth-child(3)::after { animation-range: cover 46% cover 58%; }
    .flow li:nth-child(1) .flow-dot::after { animation-range: cover 18% cover 22%; }
    .flow li:nth-child(2) .flow-dot::after { animation-range: cover 32% cover 35%; }
    .flow li:nth-child(3) .flow-dot::after { animation-range: cover 44% cover 47%; }
    .flow li:nth-child(4) .flow-dot::after { animation-range: cover 56% cover 59%; }
    @media (min-width: 1024px) {
      .flow li::after { animation-name: fill-x; }
    }
  }

  /* trilho de ECG fixo que se desenha com a rolagem da página */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 1360px) {
      .rail {
        display: block;
        position: fixed;
        z-index: 40;
        left: 28px;
        top: 50%;
        width: 40px;
        height: min(52vh, 420px);
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.4s var(--ease-out);
        pointer-events: none;
        overflow: visible;
      }
      .rail.is-on { opacity: 1; }
      .rail path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
      .rail .base { stroke: rgba(97, 200, 196, 0.22); }
      .rail .fill { stroke: var(--teal); stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg-draw linear both; animation-timeline: scroll(root); }
    }
  }
}

@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dot-on { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- monitor do herói (só em tela larga, preenche a coluna da direita) ---------- */
.hero-monitor { display: none; }
@media (min-width: 1024px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: center; }
  .hero-in > :not(.hero-monitor) { grid-column: 1; }
  .hero-monitor {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 4;
    background: rgba(14, 34, 54, 0.82);
    border: 1px solid rgba(97, 200, 196, 0.22);
    border-radius: 20px;
    padding: 22px 22px 18px;
    box-shadow: 0 30px 80px rgba(3, 14, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  .mon-bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
  .mon-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--teal); }
  .mon-trace { position: relative; height: 96px; margin: 16px -4px 14px; overflow: hidden; }
  .mon-ecg { width: 100%; height: 100%; display: block; }
  .mon-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 34px; background: linear-gradient(90deg, rgba(14, 34, 54, 0), rgb(14, 34, 54) 70%); }
  .mon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mon-p { background: rgba(11, 42, 68, 0.9); border: 1px solid var(--line-dark); border-radius: 12px; padding: 12px 14px; }
  .mon-l { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-dark); }
  .mon-l i { font-style: normal; opacity: 0.7; margin-left: 4px; }
  .mon-v { display: block; font-family: var(--mono); font-weight: 600; font-size: 34px; line-height: 1.1; margin-top: 6px; color: var(--teal); }
  .sp .mon-v { color: #8FD8F0; }
  .mon-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; color: #CFDDE8; }
  .mon-ok { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); background: rgba(97, 200, 196, 0.14); padding: 4px 10px; border-radius: 6px; }
  .mon-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(159, 184, 204, 0.6); margin-top: 10px; text-align: right; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  /* a varredura percorre a tela como num monitor real; o ponto "ao vivo" pulsa */
  .mon-sweep { animation: mon-sweep 3s linear infinite; }
  .mon-live::before { animation: mon-pulse 1s ease-in-out infinite; }
}
@keyframes mon-sweep { from { transform: translateX(-34px); } to { transform: translateX(410px); } }
@keyframes mon-pulse { 50% { opacity: 0.35; } }
