:root {
  /* Layout: branco, uma coluna larga, divisões por linhas finas; nada de faixas coloridas.
     Cor: preto e cinzas frios; um verde discreto só em detalhes de status. */
  color-scheme: light;
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F4F5;
  --ink: #0B0D0E;
  --ink-2: #4A4F55;
  --muted: #8A9097;
  --line: #EAECEE;
  --brand: #0B0D0E;
  --brand-2: #1F8A70;
  --brand-soft: #F3F4F5;
  --brand-deep: #0B0D0E;
  --accent: #E0912F;
  --ok: #1F8A57;
  --ok-soft: #EAF6EF;
  --warn: #A66F00;
  --warn-soft: #FBF2DE;
  --crit: #C8372D;
  --crit-soft: #FCEAE8;
  --row-hover: #FAFAFB;
  --radius: 12px;
  --shadow: none;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- barra da demonstração ---------- */
.demo-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  background: #13201C; color: #E3ECE8; font-size: 13px;
}
.demo-switch { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; margin: 0 auto; }
.demo-switch a { text-decoration: none; padding: 5px 14px; border-radius: 999px; font-weight: 600; }
.demo-switch a.on { background: #E3ECE8; color: #13201C; }
.demo-home { text-decoration: none; font-weight: 700; opacity: .85; }
.demo-home:hover { opacity: 1; }
body.is-site .demo-bar { display: none; }
.demo-reset { background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; color: inherit; font-size: 12px; }

/* ---------- layout do painel ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 46px); }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 46px; height: calc(100vh - 46px);
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none; }
.logo b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-weight: 600;
}
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav .count { margin-left: auto; background: var(--crit); color: var(--surface); font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid var(--line); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand); color: var(--surface); font-weight: 700; font-size: 13px;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); }
.side-foot small { display: block; color: var(--muted); }

.main { padding: 28px 32px 48px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; margin: 2px 0 0; font-weight: 700; }
.head p { margin: 4px 0 0; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface);
  padding: 9px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .sub { color: var(--muted); font-size: 12.5px; margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 16px 18px; }
.kpi .v { font-size: 34px; font-weight: 700; margin: 6px 0 2px; }
.kpi .d { font-size: 12.5px; font-weight: 600; }
.up { color: var(--ok); } .down { color: var(--crit); }

/* lista de prioridade */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 12px; min-width: 200px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.row { cursor: pointer; }
tr.row:hover td { background: var(--row-hover); }
.pname { font-weight: 700; }
.pmeta { color: var(--muted); font-size: 12.5px; }
.reason { color: var(--ink-2); font-size: 13px; max-width: 280px; }

.ring { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ring svg { display: block; }
.delta { font-weight: 700; font-size: 12.5px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; width: 90px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.bar.warn > i { background: var(--warn); } .bar.crit > i { background: var(--crit); }
.pct { font-weight: 700; margin-left: 8px; font-size: 13px; }
.dev { font-size: 12.5px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--ok); vertical-align: middle; }
.dot.off { background: var(--warn); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.crit { background: var(--crit-soft); color: var(--crit); }
.badge.neutral { background: var(--surface-2); color: var(--ink-2); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }

.disclaimer { color: var(--muted); font-size: 12px; margin-top: 22px; max-width: 760px; }

/* ---------- ficha do paciente ---------- */
.back { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.patient-top { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; margin-bottom: 16px; }
.patient-top h1 { font-family: var(--display); font-size: 28px; margin: 0; letter-spacing: -.02em; }
.patient-top .meta { color: var(--ink-2); margin-top: 4px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.score-box { display: flex; align-items: center; gap: 16px; }
.score-box .split { display: grid; gap: 6px; font-size: 13px; }
.score-box .split b { font-family: var(--display); font-size: 16px; }

.alertbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; background: var(--crit-soft); color: var(--ink); border-left: 4px solid var(--crit); }
.alertbox.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.alertbox.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.alertbox b { display: block; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

.metric { padding: 14px 16px; }
.metric .v { font-size: 26px; font-weight: 700; margin-top: 4px; }
.metric .v small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.metric .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.origin { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 5px; padding: 1px 6px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; vertical-align: middle; }

.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }

.comp { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.comp:first-of-type { border-top: 0; }
.comp .n { font-weight: 700; }
.comp .meta { font-size: 12px; color: var(--muted); }
.comp .val { text-align: right; font-weight: 700; }
.comp .bar { width: 100%; grid-column: 1 / -1; height: 7px; }

.exam-table td, .exam-table th { padding: 10px 12px; }
.flag { font-size: 11px; font-weight: 700; color: var(--crit); background: var(--crit-soft); border-radius: 5px; padding: 1px 6px; margin-left: 6px; }
.flag.low { color: var(--warn); background: var(--warn-soft); }

.plan-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.plan-item:first-child { border-top: 0; }
.ptype { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; }
.plan-item .t { font-weight: 700; }
.plan-item .d { color: var(--ink-2); font-size: 13px; }
.plan-item .by { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-left: 8px; }
.icon-btn { background: none; border: 0; color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { color: var(--crit); background: var(--crit-soft); }

.note { padding: 12px 0; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; }
.note small { color: var(--muted); }
textarea, .field input, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 9px 12px;
}
textarea { min-height: 80px; resize: vertical; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- modal e toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,20,17,.55); display: grid; place-items: center; padding: 16px; }
.modal .card { width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 22px; }
.modal h2 { font-family: var(--display); margin: 0 0 4px; font-size: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.code { font-family: var(--mono); font-size: 28px; letter-spacing: .12em; background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; text-align: center; margin: 12px 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: #13201C; color: #E3ECE8; padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow);
}

/* ---------- app do paciente ---------- */
.app-stage { min-height: calc(100vh - 46px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px 24px; }
.app-side { max-width: 340px; justify-self: end; }
.app-side h2 { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; margin: 6px 0 10px; line-height: 1.1; }
.app-side p { color: var(--ink-2); }
.app-side.right { justify-self: start; }
.app-side ul { padding-left: 18px; color: var(--ink-2); }
.app-side li { margin-bottom: 6px; }

.phone {
  width: 380px; height: 780px; border-radius: 46px; background: #0F1513; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(15,21,19,.45);
}
.screen { width: 100%; height: 100%; border-radius: 36px; background: #10201C; color: #EAF2EE; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 12px; font-weight: 700; }
.app-body { flex: 1; overflow-y: auto; padding: 6px 18px 18px; scrollbar-width: none; }
.app-body::-webkit-scrollbar { display: none; }
.app-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.08); padding: 8px 6px 14px; background: #0C1916; }
.app-nav button { background: none; border: 0; color: #8DA39A; font-size: 11px; font-weight: 700; display: grid; justify-items: center; gap: 3px; padding: 6px 0; }
.app-nav button.on { color: #7FD8BF; }
.app-nav svg { width: 20px; height: 20px; }

.hello { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 14px; }
.hello h2 { font-family: var(--display); font-size: 20px; margin: 0; }
.hello small { color: #8DA39A; }
.acard { background: #16302A; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.acard h4 { margin: 0 0 2px; font-size: 14px; }
.acard .m { color: #8DA39A; font-size: 12px; }
.band { display: flex; align-items: center; gap: 10px; }
.band .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(127,216,191,.15); color: #7FD8BF; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.rings small { display: block; font-size: 10.5px; letter-spacing: .08em; color: #8DA39A; font-weight: 700; margin-top: 4px; }
.app-score { display: flex; gap: 14px; align-items: center; }
.app-score .big { font-size: 13px; color: #8DA39A; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); }
.task:first-of-type { border-top: 0; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #3F6157; background: none; display: grid; place-items: center; flex: none; color: #10201C; }
.check.on { background: #7FD8BF; border-color: #7FD8BF; }
.task .t { font-weight: 700; font-size: 14px; }
.task .t.done { text-decoration: line-through; opacity: .55; }
.task .d { font-size: 12px; color: #8DA39A; }
.task .h { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #8DA39A; }
.moods { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.moods button { flex: 1; border: 1px solid #2D4A42; background: none; border-radius: 12px; padding: 8px 0; color: #EAF2EE; font-size: 11px; font-weight: 700; display: grid; gap: 2px; justify-items: center; }
.moods button .f { font-size: 18px; font-family: var(--display); }
.moods button.on { background: #7FD8BF; color: #10201C; border-color: #7FD8BF; }
.abtn { width: 100%; border: 0; border-radius: 14px; padding: 12px; background: #7FD8BF; color: #10201C; font-weight: 800; margin-top: 8px; }
.abtn.ghost { background: transparent; color: #7FD8BF; border: 1px solid #2D4A42; }
.minibars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 10px; }
.minibars div { flex: 1; display: grid; gap: 4px; justify-items: center; font-size: 10px; color: #8DA39A; }
.minibars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #3C7E6D; }
.minibars i.today { background: #7FD8BF; }
.msg { background: #1C3A33; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }
.msg.me { background: #7FD8BF; color: #10201C; border-radius: 14px 14px 4px 14px; margin-left: 40px; }
.app-input { display: flex; gap: 8px; margin-top: 8px; }
.app-input input { flex: 1; border-radius: 12px; border: 1px solid #2D4A42; background: #0C1916; color: #EAF2EE; padding: 10px 12px; }
.app-input button { border: 0; border-radius: 12px; background: #7FD8BF; color: #10201C; font-weight: 800; padding: 0 14px; }
.app-h { font-family: var(--display); font-size: 22px; margin: 8px 0 12px; }
.sec-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8DA39A; font-weight: 700; margin: 16px 0 8px; }
.app-disc { font-size: 10.5px; color: #6F877E; text-align: center; margin-top: 14px; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .app-stage { grid-template-columns: 1fr; justify-items: center; }
  .app-side, .app-side.right { justify-self: center; max-width: 560px; text-align: center; }
  .app-side ul { text-align: left; display: inline-block; }
  .app-side.right { order: 3; }
}
@media (max-width: 1100px) {
  .kpis, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .logo { padding: 0 8px 0 0; flex: none; }
  .logo b { font-size: 18px; white-space: nowrap; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
  .nav svg { display: none; }
  .nav { display: flex; gap: 2px; }
  .side-foot { display: none; }
  .main { padding: 20px 16px 40px; }
  .g2 { grid-template-columns: 1fr; }
  .patient-top { grid-template-columns: 1fr; }
  .head h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .kpis, .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .v { font-size: 28px; }
  .phone { width: 100%; max-width: 380px; height: 720px; border-radius: 36px; padding: 8px; }
  .screen { border-radius: 30px; }
  .app-stage { padding: 16px; }
  .search { min-width: 0; width: 100%; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- atividade recente ---------- */
.feed { list-style: none; margin: 0; padding: 4px 20px 10px; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.feed li:first-child { border-top: 0; }
.feed li b { color: var(--ink); }
.feed time { font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.fdot.ok { background: var(--ok); } .fdot.brand { background: var(--brand-2); } .fdot.crit { background: var(--crit); } .fdot.warn { background: var(--warn); }

/* ---------- consentimento no app ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: #7FD8BF; margin-top: 2px; flex: none; }
.consent b { display: block; font-size: 14px; }
.consent .m { display: block; }

/* ======================================================================
   SITE DE APRESENTAÇÃO
   ====================================================================== */
.site { background: var(--paper); }
.s-wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.s-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s-top-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.s-top .logo { padding: 0; }
.s-links { display: flex; gap: 22px; margin-left: auto; }
.s-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.s-links a:hover { color: var(--ink); }

.s-hero { background: var(--brand-deep); color: #E8F1ED; padding-block: 72px 80px; position: relative; overflow: hidden; }
.s-hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; border: 90px solid rgba(255,255,255,.035); }
.s-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: 40px; top: -60px; border-radius: 50%; border: 70px solid rgba(227,163,59,.06); }
.s-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.s-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #E3A33B; }
.s-eyebrow.dark { color: var(--brand-2); }
.s-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 20px; text-wrap: balance; }
.s-lead { font-size: 18px; line-height: 1.55; color: #BFD3CB; max-width: 34em; margin: 0; }
.s-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.s-btn-light { background: #E8F1ED; color: #0A3B34; border-color: #E8F1ED; padding: 12px 18px; }
.s-btn-light:hover { background: #fff; border-color: #fff; }
.s-btn-ghost { background: transparent; color: #E8F1ED; border-color: rgba(232,241,237,.35); padding: 12px 18px; }
.s-btn-ghost:hover { border-color: #E8F1ED; }
.s-note { font-size: 13px; color: #8FB0A5; margin: 16px 0 0; }

.s-preview { padding: 8px; color: var(--ink); }
.s-prev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.s-prev-head b { font-family: var(--display); font-size: 18px; }
.s-prev-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; border-top: 1px solid var(--line); }
.s-prev-row:hover { background: var(--row-hover); }
.s-prev-row b { display: block; }
.s-prev-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 var(--brand-2); animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(21,122,107,.5); } 70% { box-shadow: 0 0 0 7px rgba(21,122,107,0); } 100% { box-shadow: 0 0 0 0 rgba(21,122,107,0); } }

.s-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.s-devices { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: center; padding-block: 18px; color: var(--ink-2); }
.s-devices span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.s-devices b { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink-2); }

.s-sec { padding-block: 88px; }
.s-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.s-sec h2, .s-cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin: 10px 0 0; max-width: 20em; text-wrap: balance; }
.s-steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.s-steps li { padding: 22px 22px 0 0; }
.s-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.s-n { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--brand-2); line-height: 1; }
.s-steps h3 { font-size: 17px; margin: 14px 0 6px; }
.s-steps p { color: var(--ink-2); margin: 0; }

.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.s-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.s-checks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.s-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 5px var(--brand-soft), inset 0 0 0 9px var(--brand-2); }
.s-checks b { color: var(--ink); }
.s-calc { padding: 24px; }
.s-calc h3 { font-family: var(--display); font-size: 21px; }
.s-calc .sub { margin-bottom: 16px; }
.s-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.s-calc-out div { background: var(--paper); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.s-calc-out span { font-size: 12px; color: var(--muted); font-weight: 700; }
.s-calc-out b { font-size: 22px; }
.s-calc-out .hl { background: var(--brand); color: var(--surface); }
.s-calc-out .hl span { color: inherit; opacity: .8; }

.s-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.s-levels p { color: var(--ink-2); margin: 12px 0 0; }
.s-levels b { color: var(--ink); }
.s-more { margin: 24px 0 0; }
.s-more a { color: var(--brand-2); font-weight: 700; text-decoration: none; }
.s-more a:hover { text-decoration: underline; }
.s-p { color: var(--ink-2); font-size: 16px; max-width: 32em; margin-top: 16px; }
.s-sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.s-sec-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.s-sec-list li:first-child { border-top: 0; padding-top: 4px; }
.s-sec-list b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

.s-faq-wrap { max-width: 860px; }
.s-faq { margin-top: 32px; border-top: 1px solid var(--line); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--brand-2); font-weight: 500; transition: transform .2s; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq p { margin: 0 0 18px; color: var(--ink-2); max-width: 62ch; }

.s-cta { background: var(--brand-deep); color: #E8F1ED; padding-block: 72px; }
.s-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.s-cta p { color: #BFD3CB; max-width: 34em; margin: 12px 0 0; }
.s-cta .s-ctas { margin-top: 0; }
.s-foot { padding-block: 36px 48px; color: var(--muted); }
.s-foot-in { display: grid; gap: 10px; }
.s-foot .logo { padding: 0; }
.s-foot p { margin: 0; max-width: 70ch; }
.s-small { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
  .s-faq summary::after { transition: none; }
}
@media (max-width: 960px) {
  .s-hero-in, .s-two { grid-template-columns: 1fr; gap: 40px; }
  .s-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .s-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .s-levels { grid-template-columns: 1fr; }
  .s-links { display: none; }
  .s-top .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .s-hero { padding-block: 48px 56px; }
  .s-sec { padding-block: 60px; }
  .s-steps { grid-template-columns: 1fr; }
  .s-steps li, .s-steps li + li { padding-left: 0; border-left: 0; }
  .s-calc-out { grid-template-columns: 1fr; }
  .s-top .logo b { font-size: 17px; }
  .s-prev-row { grid-template-columns: auto 1fr; }
  .s-prev-row .badge { grid-column: 2; justify-self: start; }
}

/* ---------- WhatsApp ---------- */
.s-wa-top { margin-left: auto; color: #1E8F4E; border-color: currentColor; }
.s-links + .s-wa-top { margin-left: 0; }
.s-wa { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 20px 24px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,241,237,.16); }
.s-wa b { display: block; font-size: 18px; margin-bottom: 4px; }
.s-wa span { color: #BFD3CB; }
.s-wa strong { color: #E8F1ED; font-size: 17px; white-space: nowrap; }
.s-wa-btn { background: #25D366; border-color: #25D366; color: #0B2A1A; padding: 12px 18px; font-weight: 800; }
.s-wa-btn:hover { background: #3BE07A; border-color: #3BE07A; }
@media (max-width: 960px) { .s-wa-top { margin-left: auto; } .s-top .btn.primary { margin-left: 0; } }
@media (max-width: 520px) { .s-wa-top { display: none; } .s-top .btn.primary { margin-left: auto; } .s-wa-btn { width: 100%; justify-content: center; } }


/* ======================================================================
   VISUAL MÍNIMO (branco)
   ====================================================================== */
body { background: var(--paper); letter-spacing: -.005em; }
.num { letter-spacing: -.03em; }
.card { box-shadow: none; }
.btn { border-radius: 999px; border-color: var(--line); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2A2E33; border-color: #2A2E33; }
.nav a.on { background: var(--surface-2); color: var(--ink); }
.side { background: var(--paper); }
.head h1, .patient-top h1 { letter-spacing: -.035em; font-weight: 600; }
.kpi .v { font-weight: 600; }
.metric .v { font-weight: 600; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs button.on { border-bottom-color: var(--ink); }
.alertbox { border-left-width: 3px; }
.ptype { background: var(--surface-2); color: var(--ink); }

/* barra da demonstração */
.demo-bar { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.demo-switch { background: var(--surface-2); }
.demo-switch a { color: var(--ink-2); }
.demo-switch a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.demo-reset { border-color: var(--line); color: var(--ink-2); }
.toast { background: var(--ink); color: #fff; }

/* site */
.s-top { background: rgba(255,255,255,.88); }
.s-hero { background: var(--paper); color: var(--ink); padding-block: 96px 72px; overflow: visible; }
.s-hero::before, .s-hero::after { display: none; }
.s-hero h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.s-eyebrow, .s-eyebrow.dark { color: var(--muted); font-weight: 600; letter-spacing: .12em; }
.s-lead { color: var(--ink-2); }
.s-note { color: var(--muted); }
.s-btn-light { background: var(--ink); border-color: var(--ink); color: #fff; }
.s-btn-light:hover { background: #2A2E33; border-color: #2A2E33; }
.s-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.s-btn-ghost:hover { border-color: var(--ink); }
.s-preview { border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -24px rgba(0,0,0,.18); }
.s-prev-head b { font-weight: 600; }
.s-band { background: var(--paper); border-block: 1px solid var(--line); }
.s-devices b { font-weight: 500; color: var(--muted); }
.s-sec { padding-block: 104px; }
.s-sec.alt { background: var(--paper); border-block: 0; border-top: 1px solid var(--line); }
.s-sec h2, .s-cta h2 { font-weight: 600; letter-spacing: -.04em; }
.s-steps { border-top: 1px solid var(--ink); }
.s-n { font-weight: 500; font-size: 15px; color: var(--muted); font-family: var(--mono); }
.s-checks li::before { background: none; box-shadow: none; width: 14px; height: 2px; top: 10px; background: var(--ink); border-radius: 0; }
.s-calc { border-radius: 16px; }
.s-calc h3 { font-weight: 600; letter-spacing: -.02em; }
.s-calc-out div { background: var(--surface-2); }
.s-calc-out .hl { background: var(--ink); color: #fff; }
.s-faq summary::after { color: var(--ink); }
.s-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.s-cta { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); padding-block: 96px; }
.s-cta p { color: var(--ink-2); }
.s-wa { background: var(--surface-2); border-color: transparent; }
.s-wa span { color: var(--ink-2); }
.s-wa strong { color: var(--ink); }
.s-wa-btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.s-wa-btn:hover { background: #2A2E33; border-color: #2A2E33; }
.s-wa-top { color: var(--ink); border-color: var(--line); }
.s-foot { border-top: 1px solid var(--line); }
.live { background: var(--ok); }
.credito { font-size: 12px; color: var(--muted); margin: 0; }
.credito a { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* app do paciente em branco */
.phone { background: #0B0D0E; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.screen { background: #FFFFFF; color: var(--ink); }
.app-nav { background: #FFFFFF; border-top-color: var(--line); }
.app-nav button { color: var(--muted); }
.app-nav button.on { color: var(--ink); }
.hello small, .acard .m, .rings small, .task .d, .task .h, .app-score .big, .sec-t, .minibars div, .app-disc { color: var(--muted); }
.acard { background: var(--surface-2); }
.band .pill { background: var(--ok-soft); color: var(--ok); }
.check { border-color: #C9CDD2; color: #fff; }
.check.on { background: var(--ink); border-color: var(--ink); }
.moods button { border-color: var(--line); background: #fff; color: var(--ink); }
.moods button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.abtn { background: var(--ink); color: #fff; }
.abtn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.minibars i { background: #D5D9DD; }
.minibars i.today { background: var(--ink); }
.msg { background: var(--surface-2); }
.msg.me { background: var(--ink); color: #fff; }
.app-input input { background: #fff; border-color: var(--line); color: var(--ink); }
.app-input button { background: var(--ink); color: #fff; }
.task { border-top-color: var(--line); }
.consent input { accent-color: #0B0D0E; }
.app-side h2 { font-weight: 600; letter-spacing: -.035em; }
