/* =====================================================================
   Trilhar Saúde · Landing "A trilha do cuidado"
   Plataforma de gestão em comunicação — conecta unidades de saúde
   e pacientes por um único aplicativo.
   Estático: HTML + CSS + JS. GSAP (ScrollTrigger, SplitText) + Lenis via CDN.
   Organização: tokens → base → tipografia → nav → seções → mockups → footer.
   Regra de motion: o repouso visível mora no HTML/CSS; o JS só anima
   "de" estados iniciais para o repouso (nunca esconde conteúdo).
   ===================================================================== */

/* ===== Tokens ===== */
:root {
  /* Teal — saúde + tecnologia (primária) */
  --teal-50:  #E9F7F5;
  --teal-100: #C9EEE9;
  --teal-300: #6FD3C7;
  --teal-500: #13B5A6;
  --teal-600: #0E9587;
  --teal-700: #0A7168;
  --teal-800: #084F49;

  /* Petróleo / navy — confiança, base escura e texto */
  --ink-900: #062730;
  --ink-800: #0A3843;
  --ink-700: #114C5A;
  --ink-500: #4C6A72;
  --ink-300: #93AAB0;

  /* Coral / âmbar — o lado humano, reservado a CTAs e destaques */
  --coral-400: #FF8A73;
  --coral-500: #FB6A4E;
  --coral-600: #E24E33;
  --coral-700: #B23A22; /* coral escuro p/ TEXTO pequeno sobre fundos claros (≥ 4,5:1) */

  /* Neutros */
  --paper:  #F4F8F8;
  --mist:   #E7F0F0;
  --cloud:  #FFFFFF;
  --wa-green: #25D366;

  /* Tema do documento (tweenado pelo JS: nav e cursor leem daqui) */
  --bg: var(--paper);
  --fg: var(--ink-900);
  --line: #D3E2E2;
  --muted: var(--ink-500);

  /* Tipografia */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 6.1vw, 5.75rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.9rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.9rem);
  --fs-stat: clamp(3.5rem, 10vw, 9rem);
  --fs-lead: clamp(1.1rem, 1.35vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.75rem;

  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(5rem, 11vw, 10rem);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 12px 30px rgba(6, 39, 48, .08);
  --shadow-md: 0 28px 70px rgba(6, 39, 48, .14);
  --shadow-lg: 0 40px 100px rgba(6, 39, 48, .22);
  --nav-h: 4.5rem;
}

/* Tema por seção (cada seção pinta o próprio fundo: funciona sem JS) */
[data-theme="light"] { --sec-bg: var(--paper);  --sec-fg: var(--ink-900); --sec-line: #D3E2E2;       --sec-muted: var(--ink-500); --sec-accent: var(--teal-700);  --sec-surface: var(--cloud); --sec-btn-bg: var(--ink-900);  --sec-btn-fg: var(--paper); }
[data-theme="mint"]  { --sec-bg: var(--teal-50); --sec-fg: var(--ink-900); --sec-line: #BEE4DE;       --sec-muted: var(--ink-500); --sec-accent: var(--teal-700);  --sec-surface: var(--cloud); --sec-btn-bg: var(--ink-900);  --sec-btn-fg: var(--paper); }
[data-theme="deep"]  { --sec-bg: var(--ink-900); --sec-fg: var(--paper);   --sec-line: rgba(255,255,255,.14); --sec-muted: var(--ink-300); --sec-accent: var(--teal-300); --sec-surface: var(--ink-800); --sec-btn-bg: var(--teal-500); --sec-btn-fg: var(--ink-900); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-count], .rating-score, .metric-num { font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 4px rgba(19, 181, 166, .25); }
::selection { background: var(--teal-500); color: var(--cloud); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; background: var(--sec-bg); color: var(--sec-fg); padding-block: var(--space); transition: background-color .6s ease, color .6s ease; }

/* Link "pular para o conteúdo" */
.skip {
  position: fixed; top: 1rem; left: 1rem; z-index: 300;
  background: var(--ink-900); color: var(--paper);
  padding: .75rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
}
.skip:not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; }
#main:focus { outline: none; }

/* ===== Tipografia utilitária ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
  color: var(--sec-accent, var(--teal-700));
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); color: var(--sec-muted, var(--muted)); line-height: 1.6; max-width: 42ch; }
.text-accent { color: var(--sec-accent, var(--teal-700)); }

.section-head { max-width: 46rem; }
.section-head .h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.25rem; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  background: var(--sec-btn-bg, var(--ink-900)); color: var(--sec-btn-fg, var(--paper));
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--coral-500); color: var(--cloud); border-color: var(--coral-500); }
.btn-primary:hover { background: var(--coral-600); border-color: var(--coral-600); }
.btn-ghost { background: transparent; color: var(--sec-fg, var(--fg)); border-color: var(--sec-line, var(--line)); }
.btn-ghost:hover { border-color: var(--sec-accent, var(--teal-600)); color: var(--sec-accent, var(--teal-700)); box-shadow: none; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ===== Grain / textura ===== */
.grain { position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* =====================================================================
   Navegação
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--fg); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand em { font-style: normal; font-weight: 400; color: var(--teal-600); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s ease; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--teal-500); transition: width .25s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-menu-btn { display: none; align-items: center; gap: .5rem; }
.nav-menu-icon { position: relative; width: 22px; height: 12px; }
.nav-menu-icon i { position: absolute; left: 0; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-menu-icon i:nth-child(1) { top: 0; }
.nav-menu-icon i:nth-child(2) { bottom: 0; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] .nav-menu-icon i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Menu mobile */
.menu { position: fixed; inset: 0; z-index: 190; background: var(--ink-900); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: var(--gutter); }
.menu-links { display: flex; flex-direction: column; gap: .4rem; }
.menu-links a { font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 3.2rem); font-weight: 600; color: var(--paper); display: flex; align-items: baseline; gap: .9rem; }

/* Menu aberto: a marca e o botão no cabeçalho ficam claros sobre o painel escuro */
html.menu-open .brand { color: var(--paper); }
html.menu-open .brand em { color: var(--teal-300); }
html.menu-open .nav-menu-btn { color: var(--paper); }
html.menu-open .nav-menu-icon i { background: var(--paper); }
.menu-num { font-size: .9rem; font-family: var(--font-body); color: var(--teal-300); font-weight: 600; }
.menu-cta { margin-top: 2rem; }
.menu-label { color: var(--teal-300); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.5rem; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: var(--space); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { overflow-wrap: normal; word-break: keep-all; }
.hero-kicker { color: var(--teal-600); }
.hero h1 { font-size: var(--fs-display); margin-top: 1.25rem; }
.hero h1 .accent { color: var(--teal-600); }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--cloud); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-sm); }
.hero-badge .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal-500); }
.hero-lead { margin-top: 1.5rem; font-size: var(--fs-lead); color: var(--muted); max-width: 40ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; color: var(--muted); font-size: .9rem; }
.hero-trust b { color: var(--fg); font-family: var(--font-display); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow { position: absolute; inset: -10% -20% -20% -10%; z-index: 0; background: radial-gradient(50% 50% at 50% 40%, rgba(19,181,166,.28), transparent 70%); filter: blur(10px); }

/* =====================================================================
   Mockup de celular (reutilizável)
   ===================================================================== */
.phone { position: relative; z-index: 1; width: min(320px, 78vw); aspect-ratio: 320 / 660; background: var(--ink-900);
  border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 42%; height: 26px; background: var(--ink-900); border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; height: 100%; width: 100%; border-radius: 32px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.scr-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; font-size: .68rem; font-weight: 600; color: var(--ink-700); }
.scr-bar .dots { display: flex; gap: 3px; }
.scr-bar .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.scr-head { padding: .3rem 1.1rem 1rem; }
.scr-head .brand-mini { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--ink-900); }
.scr-head .brand-mini svg { width: 1.2rem; height: 1.2rem; }
.scr-body { flex: 1; padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.scr-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); }
.scr-sub { font-size: .78rem; color: var(--ink-500); }

/* Cartões de agendamento na tela */
.appt { background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; padding: .8rem .9rem; display: flex; gap: .7rem; align-items: center; box-shadow: var(--shadow-sm); }
.appt-time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3rem; padding: .35rem .4rem; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); font-family: var(--font-display); font-weight: 700; line-height: 1; }
.appt-time span { font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.appt-info { flex: 1; }
.appt-info b { display: block; font-size: .82rem; color: var(--ink-900); }
.appt-info small { font-size: .72rem; color: var(--ink-500); }
.appt-tag { font-size: .62rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.tag-ok { background: rgba(19,181,166,.15); color: var(--teal-700); }
.tag-soon { background: rgba(251,106,78,.15); color: var(--coral-700); }

/* Chat na tela */
.chat { display: flex; flex-direction: column; gap: .55rem; }
.bubble { max-width: 82%; padding: .55rem .75rem; border-radius: 16px; font-size: .78rem; line-height: 1.4; }
.bubble.them { align-self: flex-start; background: var(--mist); color: var(--ink-800); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--teal-600); color: #fff; border-bottom-right-radius: 4px; }
.ai-seal { display: inline-flex; align-items: center; gap: .3rem; font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-50); padding: .18rem .45rem; border-radius: 999px; margin-bottom: .3rem; }
.chat-human { align-self: center; font-size: .68rem; font-weight: 600; color: var(--ink-500); background: var(--cloud); border: 1px dashed var(--line); padding: .35rem .7rem; border-radius: 999px; }

/* Avaliação na tela */
.rate-stars { display: flex; gap: .3rem; justify-content: center; font-size: 1.6rem; color: var(--coral-500); }
.rate-face { text-align: center; }
.rate-chip { display: inline-flex; margin: .3rem auto 0; padding: .3rem .7rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: .72rem; font-weight: 600; }

/* Campanha na tela */
.campaign { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--cloud); box-shadow: var(--shadow-sm); }
.campaign-cover { height: 78px; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); display: flex; align-items: flex-end; padding: .6rem .8rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.campaign-body { padding: .7rem .8rem; }
.campaign-body p { font-size: .74rem; color: var(--ink-500); }
.campaign-body .btn-mini { margin-top: .55rem; display: inline-flex; padding: .4rem .8rem; border-radius: 999px; background: var(--coral-500); color: #fff; font-size: .72rem; font-weight: 700; }

/* =====================================================================
   Cards genéricos
   ===================================================================== */
.card { background: var(--sec-surface, var(--cloud)); border: 1px solid var(--sec-line, var(--line)); border-radius: var(--r-md); padding: clamp(1.5rem, 2.5vw, 2rem); height: 100%; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: 1.1rem; }
.card .icon svg { width: 1.5rem; height: 1.5rem; }
[data-theme="deep"] .card .icon { background: rgba(19,181,166,.16); color: var(--teal-300); }
.card h3 { font-size: 1.2rem; }
.card p { margin-top: .6rem; color: var(--sec-muted, var(--muted)); font-size: .98rem; }
.card-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--sec-accent, var(--teal-600)); }

/* Grids reutilizáveis */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Layout seção com visual ao lado */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-visual { display: flex; justify-content: center; position: relative; }
.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-item .fi-num { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--sec-surface, var(--cloud)); border: 1px solid var(--sec-line, var(--line)); font-family: var(--font-display); font-weight: 700; color: var(--sec-accent, var(--teal-600)); }
.feature-item h3 { font-size: 1.12rem; }
.feature-item p { margin-top: .35rem; color: var(--sec-muted, var(--muted)); font-size: .96rem; }

/* =====================================================================
   Avaliação (bloco de destaque)
   ===================================================================== */
.rating-hero { display: flex; flex-direction: column; align-items: flex-start; }
.rating-score { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-stat); line-height: .9; color: var(--sec-accent, var(--teal-500)); }
.rating-score small { font-size: .3em; color: var(--sec-muted, var(--muted)); font-weight: 600; }
.rating-stars { display: flex; gap: .25rem; margin: .75rem 0; color: var(--coral-500); font-size: 1.4rem; }
.rating-caption { color: var(--sec-muted, var(--muted)); max-width: 34ch; }

/* =====================================================================
   Prontuário único (unidades convergindo)
   ===================================================================== */
.units-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.unit { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--sec-surface, var(--cloud)); border: 1px solid var(--sec-line, var(--line)); font-weight: 600; transition: transform .3s ease, border-color .3s ease; }
.unit:hover { transform: translateY(-3px); border-color: var(--teal-500); }
.unit .u-icon { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
[data-theme="deep"] .unit .u-icon { background: rgba(19,181,166,.16); color: var(--teal-300); }
.units-core { margin: 1.5rem auto 0; max-width: 30rem; text-align: center; padding: 1.6rem; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--teal-600), var(--ink-800)); color: #fff; box-shadow: var(--shadow-md); }
.units-core .eyebrow { color: var(--teal-300); justify-content: center; }
.units-core h3 { font-size: 1.5rem; margin-top: .5rem; }
.units-core p { margin-top: .5rem; color: rgba(255,255,255,.82); font-size: .95rem; }

/* =====================================================================
   White label
   ===================================================================== */
.brandable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.brandable .card { text-align: center; }
.brandable .card .icon { margin-inline: auto; }

/* =====================================================================
   Integrações (fluxo início → meio → fim)
   ===================================================================== */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.25rem; align-items: stretch; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.flow-step { background: var(--sec-surface, var(--cloud)); border: 1px solid var(--sec-line, var(--line)); border-radius: var(--r-md); padding: 1.6rem; text-align: center; }
.flow-step.is-core { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; border-color: transparent; }
.flow-step .fl-tag { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sec-accent, var(--teal-600)); }
.flow-step.is-core .fl-tag { color: var(--teal-100); }
.flow-step h3 { font-size: 1.15rem; margin: .6rem 0 .5rem; }
.flow-step p { font-size: .88rem; color: var(--sec-muted, var(--muted)); }
.flow-step.is-core p { color: rgba(255,255,255,.85); }
.flow-arrow { display: grid; place-items: center; color: var(--sec-accent, var(--teal-600)); }
.flow-arrow svg { width: 1.8rem; height: 1.8rem; }
.flow-note { margin-top: 1.5rem; text-align: center; font-size: .92rem; color: var(--sec-muted, var(--muted)); }

/* =====================================================================
   CTA final
   ===================================================================== */
.cta { text-align: center; }
.cta h2 { font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta .lead { margin: 1.25rem auto 0; max-width: 46ch; text-align: center; }
.cta-actions { margin-top: 2.25rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta-note { margin-top: 1.25rem; font-size: .88rem; color: var(--sec-muted, var(--muted)); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--ink-900); color: var(--paper); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { color: var(--paper); }
.footer-about { margin-top: 1rem; color: var(--ink-300); max-width: 34ch; font-size: .95rem; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); font-weight: 600; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: var(--ink-300); font-size: .95rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-300); font-size: .85rem; }
.footer-bottom a { color: var(--ink-300); }
.footer-bottom a:hover { color: var(--paper); }

/* =====================================================================
   Fio condutor — trilha lateral fixa que percorre o site (só desktop)
   ===================================================================== */
.trail-rail { position: fixed; left: clamp(14px, 2vw, 34px); top: 50%; transform: translateY(-50%);
  z-index: 150; display: none; height: min(60vh, 540px); }
@media (min-width: 1280px) { .trail-rail { display: block; } }
html.menu-open .trail-rail { display: none; }
.trail-rail-track { position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--fg) 16%, transparent); }
.trail-rail-fill { position: absolute; top: 0; left: 4px; width: 2px; height: 0; border-radius: 2px;
  background: var(--teal-500); box-shadow: 0 0 10px rgba(19, 181, 166, .6); }
.trail-nodes { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.trail-node { display: flex; align-items: center; gap: .6rem; }
.trail-node .tn-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--fg) 32%, transparent); transition: transform .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.trail-node .tn-label { font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.trail-node:hover .tn-label, .trail-node.is-current .tn-label { opacity: 1; transform: none; }
.trail-node.is-passed .tn-dot { background: var(--teal-500); border-color: var(--teal-500); }
.trail-node.is-current .tn-dot { background: var(--teal-500); border-color: var(--teal-500);
  box-shadow: 0 0 0 5px rgba(19, 181, 166, .2), 0 0 14px rgba(19, 181, 166, .7); transform: scale(1.3); }

/* =====================================================================
   Hero — ribbon "jornada do paciente"
   ===================================================================== */
.hero-journey { position: relative; margin-top: clamp(2.75rem, 6vw, 4.5rem); padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: .4rem; }
.hj-track { position: absolute; top: calc(1.4rem + 6px); left: 6%; right: 6%; height: 2px; border-radius: 2px; background: var(--line); }
.hj-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal-500); border-radius: 2px; box-shadow: 0 0 8px rgba(19, 181, 166, .5); }
.hj-node { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.hj-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cloud); border: 2px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.hj-node.is-on .hj-dot { background: var(--teal-500); border-color: var(--teal-500); transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(19, 181, 166, .14); }
.hj-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hj-node.is-on .hj-label { color: var(--fg); }
@media (max-width: 560px) { .hj-label { font-size: .68rem; } .hj-track { left: 8%; right: 8%; } }

/* =====================================================================
   Seção "A Trilha do Paciente" — linha do tempo desenhada no scroll
   ===================================================================== */
.journey { overflow: hidden; }
.journey-track { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.journey-line { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 3px;
  border-radius: 3px; background: color-mix(in srgb, var(--sec-fg) 16%, transparent); }
.journey-progress { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 3px; height: 0;
  border-radius: 3px; background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); box-shadow: 0 0 16px rgba(19, 181, 166, .65); }
.journey-progress::after { content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 15px; height: 15px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 20px 5px rgba(19, 181, 166, .75); }
.journey-stops { position: relative; display: flex; flex-direction: column; gap: clamp(2.25rem, 4vw, 3.5rem); }
.journey-stop { position: relative; width: 50%; }
.journey-stop:nth-child(odd) { align-self: flex-start; padding-right: clamp(1.75rem, 4vw, 3.25rem); }
.journey-stop:nth-child(even) { align-self: flex-end; padding-left: clamp(1.75rem, 4vw, 3.25rem); }
.stop-dot { position: absolute; top: 1.4rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; z-index: 2;
  background: var(--sec-surface); border: 2px solid color-mix(in srgb, var(--sec-fg) 30%, transparent);
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s ease; }
.journey-stop:nth-child(odd) .stop-dot { right: -.63rem; }
.journey-stop:nth-child(even) .stop-dot { left: -.63rem; }
.journey-stop.is-active .stop-dot { background: var(--teal-300); border-color: var(--teal-300);
  box-shadow: 0 0 0 6px rgba(19, 181, 166, .18), 0 0 22px rgba(19, 181, 166, .6); transform: scale(1.15); }
.stop-card { background: var(--sec-surface); border: 1px solid var(--sec-line); border-radius: var(--r-md);
  padding: 1.25rem 1.35rem; transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease; }
.journey-stop.is-active .stop-card { border-color: rgba(19, 181, 166, .45); box-shadow: 0 22px 55px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.stop-index { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--teal-300); }
.stop-card h3 { font-size: 1.18rem; margin-top: .25rem; }
.stop-patient { margin-top: .6rem; font-size: .95rem; color: var(--sec-fg); }
.stop-patient b { color: var(--teal-300); font-weight: 600; }
.stop-mgmt { margin-top: .75rem; padding-top: .7rem; border-top: 1px dashed var(--sec-line); font-size: .9rem; color: var(--sec-muted); }
.stop-mgmt .mgmt-chip { display: inline-block; margin-right: .4rem; font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-900); background: var(--teal-300); padding: .18rem .5rem; border-radius: 999px; vertical-align: middle; }
.journey-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.journey-note p { color: var(--sec-muted); max-width: 44ch; margin-inline: auto; }

@media (max-width: 760px) {
  .journey-line, .journey-progress { left: 11px; transform: none; }
  .journey-progress::after { left: 50%; }
  .journey-stop { width: 100%; align-self: stretch; padding-left: 2.4rem; padding-right: 0; }
  .journey-stop:nth-child(odd), .journey-stop:nth-child(even) { align-self: stretch; padding-right: 0; padding-left: 2.4rem; }
  .journey-stop .stop-dot { left: 5px; right: auto; }
  .journey-stop:nth-child(odd) .stop-dot { right: auto; left: 5px; }
}

/* Estados iniciais dos novos elementos animados (só com JS) */
.js [data-stop] .stop-card { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { .js [data-stop] .stop-card { opacity: 1; transform: none; } }

/* =====================================================================
   Reveal (estados iniciais só quando há JS; sem JS, tudo visível)
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { margin-top: 1rem; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .cards-3, .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .brandable { grid-template-columns: repeat(2, 1fr); }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-2, .brandable, .units-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}
@media (min-width: 961px) { .menu { display: none; } }

/* =====================================================================
   Página de conteúdo (privacidade)
   ===================================================================== */
.doc-hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 2.5rem; background: var(--mist); }
.doc { max-width: 52rem; margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem); }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
.doc h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.doc p, .doc li { color: var(--ink-700); margin-top: .9rem; line-height: 1.7; }
.doc ul { list-style: disc; padding-left: 1.4rem; margin-top: .5rem; }
.doc ul li { margin-top: .5rem; }
.doc a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.doc .placeholder { background: rgba(251,106,78,.12); color: var(--coral-700); padding: .05rem .4rem; border-radius: 6px; font-weight: 600; }
.doc-meta { color: var(--ink-500); font-size: .9rem; margin-top: .5rem; }
