/* VitalMeta · site institucional. Tokens do VitalMeta Design System (tema claro). */
:root {
  --bg-app: #f8f6f2;
  --bg-surface: #ffffff;
  --bg-tint: #d7fcd4;
  --brand: #b6cca1;
  --fg-on-brand: #30011e;
  --fg-accent: #30011e;
  --violeta: #30011e;
  --tea: #d7fcd4;
  --celadon: #b6cca1;
  --fg-1: #0e1b22;
  --fg-forte: #2a3d47;
  --fg-2: #5c6e78;
  --stroke-1: rgba(14, 27, 34, 0.08);
  --stroke-2: rgba(14, 27, 34, 0.12);
  --border-control: #c9d0d5;
  --atraso-bg: #f5e1b0;
  --atraso-borda: #b07a1e;
  --atraso-fg: #6b4a10;
  --critico-fg: #c84439;
  --critico-bg: #f4c9c5;
  --sombra-md: 0 4px 12px rgba(20, 50, 70, 0.06), 0 1px 2px rgba(20, 50, 70, 0.04);
  --sombra-lg: 0 8px 28px rgba(20, 50, 70, 0.1), 0 2px 6px rgba(20, 50, 70, 0.05);
  --raio-md: 16px;
  --raio-lg: 22px;
  --raio-xl: 28px;
  --fonte: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-display: Geist, Inter, system-ui, sans-serif;
  --largura: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg-app); color: var(--fg-1); font-family: var(--fonte); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--fg-accent); font-weight: 600; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fg-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--fonte-display); letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.recuo { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--violeta); color: #fff; padding: 10px 16px; border-radius: 999px; }
.pular:focus { left: 16px; }
.sobretitulo { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.secundario { color: var(--fg-2); }
.forte { color: var(--fg-forte); }

/* Botões */
.botao { min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--brand); color: var(--fg-on-brand); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: opacity 180ms; }
.botao:hover { opacity: 0.92; }
.botao.contorno { background: var(--bg-surface); border: 1.5px solid var(--fg-accent); color: var(--fg-accent); font-weight: 600; }
.botao.escuro { background: var(--violeta); color: #fff; }
.botao.claro { background: var(--brand); color: var(--violeta); }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 242, 0.86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--stroke-1); }
.topo .recuo { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--violeta); }
.marca .selo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.marca span:last-child { font-family: var(--fonte-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a { min-height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--fg-1); font-weight: 500; font-size: 16px; text-decoration: none; }
.menu a:hover { background: var(--bg-surface); }
.menu a.botao { padding: 0 18px; font-weight: 700; margin-left: 6px; min-height: 44px; }

/* Abertura */
.abertura { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.abertura .recuo { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.abertura .texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.abertura .texto p.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--fg-forte); max-width: 560px; }
.selo-teste { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--stroke-2); font-size: 14px; font-weight: 600; color: var(--fg-forte); }
.selo-teste::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4a8f6e; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.abertura .visual { flex: 1 1 340px; display: flex; justify-content: center; }

/* Celular desenhado (sem foto) */
.celular { width: 300px; max-width: 100%; background: var(--violeta); border-radius: 44px; padding: 10px; box-shadow: var(--sombra-lg); }
.tela { background: var(--bg-app); border-radius: 36px; padding: 22px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tela .linha-topo { display: flex; align-items: center; justify-content: space-between; }
.tela .abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--stroke-1); font-size: 12px; text-align: center; }
.tela .abas span { padding: 7px 0; border-radius: 999px; color: var(--fg-2); font-weight: 500; }
.tela .abas span.ativa { background: var(--brand); color: var(--violeta); font-weight: 700; }
.tela .data { font-size: 12px; color: var(--fg-2); }
.tela .dia { font-family: var(--fonte-display); font-size: 19px; font-weight: 700; }
.momentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.momento { border-radius: 14px; padding: 9px 8px; font-size: 11px; line-height: 1.3; background: #fff; box-shadow: inset 0 0 0 1px var(--stroke-1); }
.momento strong { display: block; font-size: 12px; }
.momento.feito { background: var(--brand); color: var(--violeta); box-shadow: none; }
.momento.agora { box-shadow: inset 0 0 0 2px var(--violeta); }
.cartao-dose { background: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sombra-md); }
.cartao-dose .hora { display: flex; justify-content: space-between; align-items: center; }
.cartao-dose .hora strong { font-family: var(--fonte-display); font-size: 28px; font-variant-numeric: tabular-nums; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--bg-tint); color: var(--violeta); font-weight: 600; }
.cartao-dose .nome { font-size: 16px; font-weight: 700; }
.cartao-dose .orient { font-size: 11px; background: var(--bg-app); border-radius: 10px; padding: 7px 9px; color: var(--fg-forte); }
.cartao-dose .botoes { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.cartao-dose .botoes span { min-height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.cartao-dose .tomei { background: var(--brand); color: var(--violeta); }
.cartao-dose .adiar { background: #fff; box-shadow: inset 0 0 0 1.5px var(--violeta); color: var(--violeta); font-weight: 600 !important; }

/* Seções */
.secao { padding: clamp(56px, 8vw, 104px) 0; }
.secao.branca { background: var(--bg-surface); }
.secao .cabeca { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.secao .cabeca p { font-size: 19px; color: var(--fg-forte); }
.grade-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cartao { background: var(--bg-surface); border-radius: var(--raio-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sombra-md); }
.secao.branca .cartao { background: var(--bg-app); box-shadow: none; }
.cartao p { color: var(--fg-forte); }
.icone { width: 52px; height: 52px; border-radius: 15px; background: var(--bg-tint); color: var(--violeta); display: flex; align-items: center; justify-content: center; }
.icone.cheio { background: var(--brand); }
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: passo; }
.passos li { position: relative; background: var(--bg-surface); border-radius: var(--raio-lg); padding: 26px 26px 26px 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra-md); }
.passos .numero { width: 40px; height: 40px; border-radius: 50%; background: var(--violeta); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--fonte-display); }
.passos p { color: var(--fg-forte); }

/* Blocos com lista e visual ao lado */
.dupla { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.dupla > * { flex: 1 1 400px; min-width: 0; }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: var(--fg-forte); }
.lista-check svg { flex-shrink: 0; margin-top: 3px; }

/* Aviso do cuidador desenhado */
.aviso-dose { background: #fff; border-radius: var(--raio-lg); padding: 20px; box-shadow: inset 0 0 0 2px var(--critico-fg), var(--sombra-lg); display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.aviso-dose .linha { display: flex; gap: 12px; align-items: flex-start; }
.aviso-dose .sino { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--critico-fg); color: var(--critico-fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aviso-dose .botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aviso-dose .botoes span { min-height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

/* Médico: faixa violeta */
.faixa-medico { background: var(--violeta); color: #fff; }
.faixa-medico h2 { color: #fff; }
.faixa-medico .sobretitulo { color: var(--tea); }
.faixa-medico .cabeca p, .faixa-medico .lista-check li { color: var(--tea); }
.semana-demo { background: #fff; border-radius: var(--raio-lg); padding: 22px; color: var(--fg-1); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-lg); }
.semana-demo .linha-p { display: flex; align-items: center; gap: 12px; }
.ini { width: 44px; height: 44px; border-radius: 50%; background: var(--tea); box-shadow: inset 0 0 0 1.5px var(--celadon); color: var(--violeta); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quadros { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.quadros span { height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.q-ok { background: var(--brand); color: var(--violeta); }
.q-atraso { background: var(--atraso-bg); box-shadow: inset 0 0 0 1.5px var(--atraso-borda); color: var(--atraso-fg); }
.q-nao { background: #fff; box-shadow: inset 0 0 0 2px var(--critico-fg); color: var(--critico-fg); }
.q-reg { background: #fff; box-shadow: inset 0 0 0 2px var(--atraso-borda); color: var(--atraso-fg); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--fg-forte); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.estados { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.estados div { background: rgba(255, 255, 255, 0.06); border-radius: var(--raio-md); padding: 18px; box-shadow: inset 0 0 0 1px rgba(215, 252, 212, 0.25); }
.estados strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.estados p { color: var(--tea); font-size: 16px; }

/* Perguntas */
.perguntas { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.perguntas details { background: var(--bg-surface); border-radius: var(--raio-md); padding: 0 22px; box-shadow: var(--sombra-md); }
.perguntas summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--fg-2); flex-shrink: 0; }
.perguntas details[open] summary::after { content: '−'; }
.perguntas details p { padding: 0 0 20px; color: var(--fg-forte); }

/* Convite final */
.convite { background: var(--bg-tint); border-radius: var(--raio-xl); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.convite > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }

/* Rodapé */
.rodape { background: var(--violeta); color: var(--tea); padding: 48px 0 32px; font-size: 15px; }
.rodape .recuo { display: flex; flex-direction: column; gap: 28px; }
.rodape .colunas { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.rodape .marca { color: var(--celadon); }
.rodape a { color: #fff; font-weight: 500; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rodape h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.rodape .final { border-top: 1px solid rgba(215, 252, 212, 0.2); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

/* Páginas de termos */
.documento { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 32px) 72px; display: flex; flex-direction: column; gap: 24px; }
.documento h1 { font-size: clamp(32px, 4vw, 44px); }
.documento h2 { font-size: 22px; font-family: var(--fonte); letter-spacing: 0; }
.documento section { display: flex; flex-direction: column; gap: 10px; }
.documento p { color: var(--fg-forte); }
.documento .indice { display: flex; flex-wrap: wrap; gap: 8px; }
.documento .indice a { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--stroke-2); display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; }
.documento .indice a[aria-current='page'] { background: var(--brand); box-shadow: none; }

@media (max-width: 720px) {
  .topo .recuo { flex-wrap: nowrap; }
  .menu a:not(.botao) { display: none; }
}

/* Aparelho moderno (desenho em HTML, sem marca de fabricante) */
.aparelho { position: relative; width: 320px; max-width: 100%; padding: 10px 0 40px; }
.moldura { position: relative; border-radius: 52px; padding: 9px; background: linear-gradient(145deg, #4a3a44 0%, #1d1219 45%, #3a2b34 100%); box-shadow: 0 30px 60px rgba(48, 1, 30, 0.22), 0 8px 18px rgba(20, 50, 70, 0.12), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.botao-lateral { position: absolute; width: 3px; border-radius: 2px; background: #2a1d25; }
.botao-lateral.b1 { left: -3px; top: 120px; height: 34px; }
.botao-lateral.b2 { left: -3px; top: 168px; height: 58px; }
.botao-lateral.b3 { right: -3px; top: 150px; height: 76px; }
.visor { position: relative; border-radius: 44px; overflow: hidden; background: var(--bg-app); aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status .camera { width: 11px; height: 11px; border-radius: 50%; background: #120a0f; box-shadow: inset 0 0 0 2px #2a1d25; }
.status-icones { display: inline-flex; gap: 5px; align-items: center; }
.sinal { width: 15px; height: 10px; background: linear-gradient(90deg, var(--fg-1) 0 3px, transparent 3px 4px, var(--fg-1) 4px 7px, transparent 7px 8px, var(--fg-1) 8px 11px, transparent 11px 12px, var(--fg-1) 12px); clip-path: polygon(0 100%, 100% 0, 100% 100%); display: inline-block; }
.bateria { width: 22px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--fg-1); position: relative; display: inline-block; }
.bateria::after { content: ''; position: absolute; left: 2.5px; top: 2.5px; bottom: 2.5px; width: 13px; border-radius: 1.5px; background: var(--fg-1); }
.app { position: relative; flex: 1; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.app .linha-topo { display: flex; align-items: center; justify-content: space-between; }
.app .abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--stroke-1); font-size: 11.5px; text-align: center; }
.app .abas span { padding: 7px 0; border-radius: 999px; color: var(--fg-2); font-weight: 500; }
.app .abas span.ativa { background: var(--brand); color: var(--violeta); font-weight: 700; }
.app .data { font-size: 11px; color: var(--fg-2); }
.app .dia { font-family: var(--fonte-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.app .momento { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.app .momento svg { margin-bottom: 2px; }
.app .momento.feito svg { color: var(--violeta); }
.progresso { height: 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--stroke-1); overflow: hidden; }
.progresso span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.progresso-texto { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--fg-2); margin-top: -4px; }
.app .cartao-dose { box-shadow: inset 0 0 0 2px var(--violeta), var(--sombra-md); padding: 12px; gap: 7px; }
.app .cartao-dose .hora strong { font-size: 26px; }
.app .orient { display: flex; gap: 6px; align-items: flex-start; }
.app .orient svg { flex-shrink: 0; margin-top: 1px; color: var(--violeta); }
.app .botoes span { gap: 4px; }
.feita { display: flex; gap: 9px; align-items: center; background: #fff; border-radius: 14px; padding: 9px 10px; box-shadow: inset 0 0 0 1px var(--stroke-1); font-size: 11.5px; line-height: 1.3; }
.feita div { display: flex; flex-direction: column; }
.feita span:not(.marcador-ok) { color: var(--fg-2); font-size: 10.5px; }
.marcador-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--violeta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flutuante { position: absolute; right: 14px; bottom: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; height: 40px; border-radius: 14px; background: var(--brand); color: var(--violeta); font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(48, 1, 30, 0.18); }
.indicador { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 96px; height: 4px; border-radius: 4px; background: var(--fg-1); opacity: 0.85; }
.notificacao { position: absolute; left: -28px; right: -28px; top: 58px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(20, 50, 70, 0.18), inset 0 0 0 1px var(--stroke-1); font-size: 12.5px; line-height: 1.35; }
.notificacao > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.noti-icone { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.noti-topo { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--fg-2); }
.noti-topo b { color: var(--fg-2); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
@media (max-width: 720px) {
  .notificacao { left: 14px; right: 14px; top: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .notificacao { animation: chega 700ms cubic-bezier(0.32, 0.72, 0, 1) 400ms both; }
  @keyframes chega { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}
