/* Apresentação estática do ExtriSim, baseada no visual de Inicio.tsx. */
:root {
  --bg: #0a0a0a;
  --surface: #0f151c;
  --raised: #151d26;
  --hover: #1b2530;
  --ink: #e9eef3;
  --muted: #8b98a6;
  --line: #222d39;
  --line-strong: #33414f;
  --accent: #f4701f;
  --accent-hover: #ff8236;
  --accent-ink: #ffffff;
  --accent-soft: rgb(244 112 31 / 0.14);
  --ok: #3ecf8e;
  --warn: #f0b429;
  --crit: #ff5d5d;
  --info: #6cb4ee;
  --radius: 10px;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  padding-block: 10px;
}

h1, .marca-nome {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: none;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
h3 { margin: 0; font-size: 14px; font-weight: 600; }

.btn {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover:not(:disabled) { background: var(--hover); border-color: color-mix(in srgb, var(--ink) 30%, var(--line-strong)); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.marca-nome a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.marca-nome a:hover { color: var(--accent-hover); }
.marca-logo { width: 92px; height: 92px; flex: none; }


.num { font-family: var(--f-mono); }
.home {
  --bg: #0a0a0a;
  --surface: #141414;
  --raised: #1a1a1a;
  --hover: #202020;
  --ink: #ededed;
  --muted: #9b9b9b;
  /* Contraste WCAG AA: --faint tem 5,4:1 no fundo e 5:1 nas superfícies. O texto sobre o laranja é um marrom
     quase preto, mais suave que o preto puro, com 5,6:1 (6,6:1 no hover). */
  --faint: #858585;
  --accent-ink: #2b1d14;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --ease: 150ms ease-out;
  --gutter: 16px;
  gap: 0;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: 0 max(24px, env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  overflow-x: clip;
}
@media (min-width: 640px) { .home { --gutter: 24px; } }
.home .num { font-variant-numeric: tabular-nums; }
.home h2, .home h3 { letter-spacing: -0.02em; }
.home p, .home h2, .home h3, .home dd { overflow-wrap: break-word; hyphens: auto; }
.home .hero-titulo, .home .cabecalho-secao h2, .home .chamada h2 { hyphens: manual; }

/* Botões: 44 px de alvo no celular, transições curtas e um leve afundar ao tocar. */
.home .btn, .home .btn-texto {
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.home .btn { min-height: 44px; }
.btn-texto { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; font-size: 13px; text-decoration: none; border-radius: 7px; }
.home .btn .pictograma { transition: transform var(--ease); }
.home .btn:not(.primary) { background: transparent; border-color: var(--line-strong); }
@media (hover: hover) {
  .home .btn:hover .pictograma { transform: translateX(2px); }
  .home .btn:not(.primary):hover:not(:disabled) { background: var(--hover); border-color: rgb(255 255 255 / 0.24); }
}
@media (min-width: 900px) and (pointer: fine) {
  .home .btn { min-height: 0; }
}

.pictograma { flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pictograma .fill { fill: currentColor; stroke: none; }
.pictograma .muted { stroke: var(--faint, currentColor); }
.pictograma .accent { stroke: var(--accent); }

/* Topo: no celular, logo menor e só o botão principal; a navegação entra a partir de 900 px. */
.home-topo {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 0 10px;
  border-bottom: 1px solid var(--line);
}
.home-topo .marca { min-width: 0; }
.home-topo .marca-nome { font-size: 24px; letter-spacing: -0.01em; }
.home-topo .marca-nome a { gap: 8px; }
.home-topo .marca-logo { width: 48px; height: 48px; }
.home-topo > .btn { flex: none; }
.home-nav { display: none; }
.home-nav .btn-texto { color: var(--muted); font-size: 15px; font-weight: 500; }
@media (hover: hover) { .home-nav .btn-texto:hover { color: var(--ink); background: transparent; } }
@media (min-width: 640px) {
  .home-topo { padding-block: 14px; }
  .home-topo .marca-nome { font-size: 30px; }
  .home-topo .marca-nome a { gap: 12px; }
  .home-topo .marca-logo { width: 68px; height: 68px; }
}
@media (min-width: 900px) {
  .home-topo { justify-content: flex-start; }
  .home-topo .marca-nome { font-size: 34px; }
  .home-topo .marca-logo { width: 86px; height: 86px; }
  .home-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
}

.home-conteudo { width: 100%; max-width: 1160px; margin-inline: auto; display: grid; gap: 64px; padding-block: 32px 48px; min-width: 0; }
.home-conteudo > * { min-width: 0; }
@media (min-width: 640px) { .home-conteudo { gap: 88px; padding-block: 56px 64px; } }
@media (min-width: 900px) { .home-conteudo { gap: 120px; padding-block: 80px 64px; } }

.sobretitulo {
  margin: 0;
  font: 500 11px var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Topo da página: título, apoio e ações empilhados; lado a lado a partir de 900 px, alinhados pela base. */
.hero { display: grid; gap: 20px; }
.hero-texto { display: grid; gap: 14px; }
.hero-titulo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: manual;
}
.hero-titulo em { font-style: normal; color: var(--accent); }
/* O sobretítulo fica dentro do h1 para o título principal levar as palavras-chave. */
.hero-titulo .sobretitulo { display: block; margin-bottom: 14px; }
.hero-lado { display: grid; gap: 20px; }
.hero-lead { margin: 0; max-width: 46ch; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.hero-acoes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.home .btn.grande { font-size: 15px; padding: 12px 18px; height: auto; border-radius: 8px; min-height: 48px; }
@media (min-width: 640px) {
  .hero-acoes { display: flex; flex-wrap: wrap; align-items: center; }
  .hero-texto { gap: 20px; }
  .hero-lead { font-size: 16px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; }
  .hero-lado { gap: 22px; padding-bottom: 6px; }
  .home .btn.grande { min-height: 0; padding-block: 11px; }
}

/* Seções */
.home-secao { display: grid; gap: 28px; min-width: 0; }
.home-secao.dividida { gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.cabecalho-secao { display: grid; gap: 10px; max-width: 64ch; }
.cabecalho-secao h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1;
  text-wrap: balance;
  hyphens: manual;
}
.texto-secao { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.texto-secao strong { color: var(--ink); font-weight: 600; }
@media (min-width: 640px) { .home-secao { gap: 36px; } .texto-secao { font-size: 15.5px; } }
@media (min-width: 900px) {
  .home-secao.dividida { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; padding-top: 32px; }
  .cabecalho-secao { gap: 12px; }
  .cabecalho-secao h2 { line-height: 0.98; }
}

/* Fases: no celular, uma régua vertical com número e nome na mesma linha; grade de 3 colunas a partir de 640 px. */
.fases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.fases li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: background-color var(--ease);
}
.fases .num { font: 500 12px var(--f-mono); color: var(--faint); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .fases { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .fases li { grid-template-columns: 1fr; align-content: space-between; align-items: start; gap: 18px; min-height: 112px; padding: 16px 18px; border-right: 1px solid var(--line); }
}
@media (hover: hover) and (min-width: 640px) { .fases li:hover { background: var(--surface); } }

/* Grade bento: uma coluna no celular; 12 colunas assimétricas a partir de 900 px (2 colunas entre 640 e 900). */
.bento { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.celula {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
  transition: border-color var(--ease);
}
@media (hover: hover) { .celula:hover { border-color: var(--line-strong); } }
.celula > .pictograma { color: var(--muted); }
.celula-texto { display: grid; gap: 8px; min-width: 0; }
.celula h3 { font-size: 16px; font-weight: 600; }
.celula p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.celula.grande { align-content: space-between; }
.celula.grande h3 { font: 700 26px/1 var(--f-display); letter-spacing: -0.02em; }
/* Na célula grande o pictograma cresce junto, com o traço na mesma espessura dos pequenos. */
.celula.grande > .pictograma { width: 88px; height: auto; aspect-ratio: 1; }
.celula.grande > .pictograma * { vector-effect: non-scaling-stroke; stroke-width: 1.75; }
.celula.grande.estrutura { padding: 0; overflow: hidden; }
.celula.grande.estrutura .celula-texto { padding: 0 18px 18px; max-width: 60ch; }
.desenho-estrutura { display: block; width: 100%; height: auto; padding: 20px 14px 4px; }
.desenho-estrutura .chao { stroke: var(--line-strong); stroke-width: 1; }
.desenho-estrutura .ligacao { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.desenho-estrutura .ligacao.cortada { stroke: var(--accent); stroke-width: 2.5; }
.desenho-estrutura .corte { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.desenho-estrutura .no { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.desenho-estrutura .roda { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.celula.faixa { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.celula.numeros { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; background: transparent; }
.bento.editor .celula.grande p { font-size: 14.5px; max-width: 48ch; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .celula { padding: 22px; gap: 18px; }
  .celula p { font-size: 13.5px; }
  .celula.grande, .celula.largo, .celula.numeros, .celula.faixa { grid-column: 1 / -1; }
  .celula.grande h3 { font-size: 28px; }
  .celula.grande > .pictograma { width: 112px; }
  .celula.grande.estrutura .celula-texto { padding: 0 24px 24px; }
  .desenho-estrutura { padding: 28px 24px 8px; }
  .celula.numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .celula.faixa { align-items: center; gap: 18px; }
  .celula.faixa .celula-texto { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: baseline; gap: 8px 24px; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento > .celula { grid-column: span 4; }
  #fisica .celula.grande { grid-column: span 7; grid-row: span 3; }
  #fisica .bento > .celula:not(.grande):not(.numeros) { grid-column: span 5; }
  .bento > .celula.numeros, .bento > .celula.faixa { grid-column: span 12; }
  .bento.editor .celula.grande { grid-column: span 12; }
  .bento.editor .celula:not(.grande):not(.faixa) { grid-column: span 6; }
  .celula.grande > .pictograma { width: clamp(112px, 11vw, 136px); }
}
@media (min-width: 1100px) {
  .bento.editor .celula.grande { grid-column: span 6; grid-row: span 2; }
  .bento.editor .celula:not(.grande):not(.faixa) { grid-column: span 3; }
}

.numero { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.numero:last-child { border-bottom: 0; }
.celula.numeros { border: 1px solid var(--line); }
.numero b { font: 700 40px/0.9 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.numero span { color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 32ch; }
@media (min-width: 640px) {
  .numero { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 22px; border-bottom: 0; border-right: 1px solid var(--line); }
  .numero:last-child { border-right: 0; }
  .numero b { font-size: 56px; }
}

/* Fisiologia: texto, lista e monitor empilhados; lado a lado a partir de 900 px. */
.fisiologia { gap: 32px; }
.fisiologia-texto { display: grid; gap: 24px; min-width: 0; }
.recursos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.recurso { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.recurso > .pictograma { color: var(--muted); }
.recurso b { font-size: 15px; letter-spacing: -0.01em; }
.recurso p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (min-width: 640px) {
  .recursos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recurso { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px 18px 0; }
  .recurso:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .recurso b { font-size: 14.5px; }
  .recurso p { font-size: 13.5px; }
}
@media (min-width: 900px) {
  .fisiologia { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
  .fisiologia-texto { gap: 32px; }
}

.monitor-demo { margin: 0; display: grid; gap: 12px; min-width: 0; }
/* Réplica do monitor do simulador (src/app/simulacao/VictimMonitors.tsx): tela preta, curvas à esquerda,
   números com limites de alarme à direita, cores por canal e alarme por prioridade. */
.monitor-app {
  --mon-ecg: #2ef56b;
  --mon-pleth: #f7e24a;
  --mon-resp: #3fc8ff;
  --mon-co2: #eef1f3;
  --mon-line: #1a2328;
  padding: 6px 7px 7px;
  border: 1px solid #2a3238;
  border-radius: 8px;
  background: #000;
  color: #e9edf0;
  font-family: var(--f-mono);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.45);
}
.monitor-cabecalho { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font: 500 12px var(--f-body); }
.monitor-cabecalho > strong { white-space: nowrap; font-weight: 600; }
.alarm-banner { flex: 1; min-width: 0; min-height: 18px; padding: 1px 6px; border-radius: 3px; font: 600 11px var(--f-body); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm-banner.medium { background: #ffd400; color: #111; animation: alarme 1.6s steps(1, end) infinite; }
.monitor-botao { display: none; padding: 2px 6px; border: 1px solid #2a3238; border-radius: 5px; color: #9aa5ae; font: 500 10.5px var(--f-body); white-space: nowrap; }
@keyframes alarme { 50% { opacity: 0.35; } }
.monitor-screen { display: grid; grid-template-columns: minmax(0, 1fr) 104px; border: 1px solid var(--mon-line); }
.waves { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--mon-line); }
.trace { position: relative; height: 46px; border-bottom: 1px solid var(--mon-line); }
.trace:last-child { border-bottom: 0; }
.trace.ecg { height: 70px; }
.trace svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trace path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: varrer 5s linear infinite; }
.trace.resp path, .trace.co2 path { animation-duration: 10s; }
/* A amplitude da pletismografia cai com o choque (variável --amp, alterada pelo script). */
.trace.pleth .trace-amp { transform: scaleY(var(--amp, 0.45)); transform-origin: 0 80%; transition: transform 1.2s ease; }
@keyframes varrer { to { stroke-dashoffset: 0; } }
.trace-label { position: absolute; top: 1px; left: 3px; font-size: 9.5px; white-space: pre; }
.trace-scale { position: absolute; top: 1px; right: 3px; font-size: 8.5px; opacity: 0.65; }
.monitor-app .ecg { color: var(--mon-ecg); }
.monitor-app .pleth { color: var(--mon-pleth); }
.monitor-app .resp { color: var(--mon-resp); }
.monitor-app .co2, .monitor-app .bp { color: var(--mon-co2); }
.tiles { display: grid; grid-template-rows: 1.35fr 1fr 1fr 1fr 1fr; }
.tile { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 0; padding: 12px 6px 2px 20px; border-bottom: 1px solid var(--mon-line); transition: background-color 0.4s; }
.tile:last-child { border-bottom: 0; }
.tile-label { position: absolute; top: 1px; left: 4px; font: 600 10px var(--f-body); }
.tile-unit { position: absolute; top: 2px; right: 5px; font-size: 8.5px; opacity: 0.8; }
.tile-limits { position: absolute; left: 4px; bottom: 3px; display: flex; flex-direction: column; font-size: 8px; line-height: 1.1; opacity: 0.75; }
.tile-value { font-size: 22px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile.ecg .tile-value { font-size: 30px; }
.tile.bp .tile-value { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; }
.tile.bp small { font-size: 10px; opacity: 0.85; }
.tile.alarm-medium { background: #ffd400; color: #111; animation: alarme 1.6s steps(1, end) infinite; }
@media (min-width: 480px) {
  .monitor-botao { display: inline-block; }
  .monitor-screen { grid-template-columns: minmax(0, 1fr) 132px; }
  .tile-value { font-size: 26px; }
  .tile.ecg .tile-value { font-size: 36px; }
  .tile.bp .tile-value { font-size: 19px; }
  .trace { height: 52px; }
  .trace.ecg { height: 82px; }
}

/* O caso clínico que o monitor mostra: nome do quadro, momento e o que está acontecendo. */
.monitor-caso { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.caso-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.caso-topo b { font: 700 22px/1 var(--f-display); letter-spacing: -0.01em; color: var(--crit); }
.caso-tempo { color: var(--muted); font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.caso-etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.caso-etapas li { height: 3px; border-radius: 2px; background: var(--line-strong); transition: background-color 0.4s; }
.caso-etapas li.ativa { background: var(--crit); }
.monitor-caso p { margin: 0; min-height: 4.8em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.monitor-caso small { color: var(--faint); font: 500 11px var(--f-mono); }

/* Usos: lista numerada em linhas, não cartões. */
.usos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.usos li { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.usos .num { font: 500 12px var(--f-mono); color: var(--faint); padding-top: 4px; }
.usos li > .pictograma { color: var(--muted); width: 28px; height: 28px; }
.usos h3 { font-size: 16px; }
.usos p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 60ch; }
@media (min-width: 640px) {
  .usos li { grid-template-columns: 40px 32px minmax(0, 1fr); gap: 18px; padding: 20px 0; }
  .usos li > .pictograma { width: 32px; height: 32px; }
}

/* Evolução: recursos planejados, em uma coluna no celular e duas no tablet. */
.evolucao-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.evolucao-lista li { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.evolucao-lista .num { color: var(--accent); font-size: 12px; }
.evolucao-lista h3 { font-size: 16px; line-height: 1.35; }
.evolucao-lista p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (min-width: 640px) {
  .evolucao-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evolucao-lista li { padding: 24px 24px 24px 0; }
  .evolucao-lista li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
}

/* Autor: foto, relato e marcos empilhados; foto fixa ao lado do relato a partir de 900 px. */
.autor { gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.autor-foto { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); width: 100%; max-width: 360px; }
.autor-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.autor-texto { display: grid; gap: 24px; min-width: 0; }
.autor-cargo { margin: 0; color: var(--muted); font-size: 15px; }
.autor-relato { display: grid; gap: 14px; max-width: 64ch; }
.autor-relato p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.7; }
.autor-relato p { color: var(--muted); }
.autor-marcos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.autor-marcos > div { display: grid; gap: 8px; align-content: start; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.autor-marcos dt { font: 700 28px/0.9 var(--f-display); letter-spacing: -0.02em; }
.autor-marcos dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (min-width: 640px) {
  .autor-foto { max-width: 420px; }
  .autor-relato p { font-size: 15.5px; }
  .autor-marcos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .autor-marcos > div { padding: 16px; }
  .autor-marcos dt { font-size: 32px; }
}
@media (min-width: 900px) {
  .autor { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; padding-top: 32px; }
  .autor-foto { position: sticky; top: 24px; max-width: none; }
  .autor-texto { gap: 28px; }
}

/* Chamada final: texto e ações empilhados; lado a lado a partir de 900 px. */
.chamada { display: grid; gap: 20px; padding: 24px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.chamada h2 { font: 700 clamp(30px, 8.5vw, 56px)/0.98 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; hyphens: manual; }
.chamada p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
@media (min-width: 640px) { .chamada { padding: 40px; } .chamada p { font-size: 15.5px; } }
@media (min-width: 900px) { .chamada { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; padding: 48px; } }

.home .rodape { max-width: 1160px; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; line-height: 1.6; }

/* Destaque dentro do cabeçalho de seção: frase forte com explicação. */
.destaque { margin: 6px 0 0; padding: 14px 16px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent-soft); color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.destaque strong { display: block; margin-bottom: 6px; color: var(--ink); font: 700 22px/1.1 var(--f-display); letter-spacing: -0.01em; }
.apresentacao-texto strong { color: var(--ink); font-weight: 600; }

/* Ponte entre física e fisiologia: uma frase grande entre duas linhas. */
.ponte { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ponte h2 { max-width: 20ch; font: 700 clamp(32px, 8.5vw, 64px)/0.98 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; hyphens: manual; }
.ponte h2 em { font-style: normal; color: var(--accent); }
.ponte p:last-child { margin: 0; max-width: 60ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 640px) { .ponte { padding: 48px 0; } .ponte p:last-child { font-size: 15.5px; } }

.rodape-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.rodape-link:hover { color: var(--ink); }

/* Aviso de cookies de análise: uma linha discreta no canto da tela, só quando o Clarity está configurado. */
.consentimento { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 440px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(20 20 20 / 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); }
.home .consentimento p { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; text-align: left; hyphens: manual; }
.consentimento-acoes { display: flex; gap: 2px; margin-left: auto; }
.consentimento-botao { min-height: 32px; padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 12.5px var(--f-body); cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.consentimento-botao:hover { background: var(--hover); color: var(--ink); }
.consentimento-botao.aceitar { color: var(--accent); }
.consentimento-botao.aceitar:hover { background: var(--accent-soft); color: var(--accent-hover); }
@media (min-width: 640px) { .consentimento { left: 16px; right: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); } }

.rodape a { color: var(--muted); }
.rodape a:hover { color: var(--ink); }

/* Texto só para leitores de tela e buscadores, fora da área visível. */
.visualmente-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Apresentação pública: links de navegação e área reservada ao print. */
[hidden] { display: none !important; }
.home-topo { flex-wrap: wrap; }
.aviso-apresentacao { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.exemplo { margin: -24px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cenario-imagem { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--surface); }
.cenario-imagem picture, .autor-foto picture { display: contents; }
.cenario-imagem img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Contador de fotos sobre a imagem: mostra que o carrossel tem mais capturas. */
.contador-fotos { position: absolute; z-index: 1; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 999px; background: rgb(10 10 10 / 0.72); color: #ededed; font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contador-fotos svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
@media (min-width: 640px) { .contador-fotos { top: 14px; right: 14px; font-size: 12.5px; } }
.exemplo-ficha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 16px; border-top: 1px solid var(--line); }
.exemplo-titulo { display: grid; gap: 6px; }
.exemplo-titulo h3 { font: 600 18px/1.25 var(--f-body); }
.exemplo-titulo p:last-child { margin: 0; max-width: 62ch; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.carrossel-slide { margin: 0; }
.carrossel-slide + .carrossel-slide { border-top: 1px solid var(--line); }
.carrossel-ativo .carrossel-slides { display: grid; }
.carrossel-ativo .carrossel-slide { grid-area: 1 / 1; min-width: 0; border-top: 0; }
/* Reserva a altura da maior legenda para a página não saltar entre os slides. */
.carrossel-ativo .carrossel-slide[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.carrossel .exemplo-ficha { min-height: 230px; align-items: start; }
.carrossel .exemplo-titulo p:last-child { max-width: 96ch; }
.carrossel-controles { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 8px 12px; border-top: 1px solid var(--line); }
.carrossel-navegacao, .carrossel-indicadores { display: flex; align-items: center; }
.carrossel-navegacao { gap: 4px; }
.carrossel button { min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: 500 12px var(--f-body); touch-action: manipulation; }
.carrossel button:hover { color: var(--ink); background: var(--hover); }
.carrossel-seta { display: grid; place-items: center; width: 44px; padding: 0; }
.carrossel-seta svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.carrossel-indicador { display: grid; place-items: center; width: 36px; padding: 0; }
.carrossel-indicador::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.carrossel-indicador[aria-current='true']::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.carrossel-reproducao { padding: 8px 12px; }
@media (min-width: 640px) {
  .carrossel .exemplo-ficha { min-height: 170px; }
  .carrossel-controles { padding-inline: 16px; }
}
@media (min-width: 900px) { .carrossel .exemplo-ficha { min-height: 150px; } }
.apresentacao-texto { display: grid; gap: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.apresentacao-texto p { margin: 0; max-width: 64ch; }
.rodape { width: 100%; margin-inline: auto; }
.pular-conteudo { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 12px 18px; transform: translateY(-160%); border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.pular-conteudo:focus { transform: translateY(0); }
section[id], main[id] { scroll-margin-top: 24px; }
@media (min-width: 640px) { .exemplo-ficha { padding: 20px 24px; } }
@media (min-width: 900px) { .exemplo { margin-top: -56px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace path { animation: none; stroke-dashoffset: 0; }
  .alarm-banner, .tile.alarm-medium { animation: none; }
}

/* Texto justificado em parágrafos, legendas e rodapé, com hifenização para evitar buracos entre palavras. */
.home p, .home dd, .numero span, .rodape { text-align: justify; hyphens: auto; }
