/* Vistto · site. Tokens do kit de marca (docs/design/entregas/marca/README.md do ERP, seção 5). Celular primeiro. */
:root {
  --av-red: #E30613; --av-red-hover: #C4050F; --av-red-soft: #FFF0F1; --av-red-text: #C10510;
  --av-black: #15191F; --av-slate: #3E4A56;
  --bg: #F5F6F8; --surface: #FFFFFF; --border-color: #DFE3E8; --border-strong: #8A94A3; --selected: #EAEEF4;
  --text: #111827; --text-muted: #5F6B7A;
  --success: #16A34A; --success-text: #157539; --success-soft: #EBF8EF;
  --info: #2563EB; --info-text: #1D4ED8; --info-soft: #EEF3FF;
  --warning: #F59E0B; --warning-text: #A64B0B; --warning-soft: #FFF6E5;
  --danger: #DC2626; --danger-text: #B42318; --danger-soft: #FEF1F0;
  --radius: 10px;
  --largura: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--info-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }
.pular { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.pular:focus { top: 8px; }

.miolo { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 16px; }
.rotulo { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* Botão: a ação única da página */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  background: var(--av-red); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 150ms;
}
.botao:hover { background: var(--av-red-hover); }
.botao svg { width: 20px; height: 20px; flex: none; }
.botao.pequeno { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* Topo */
.topo { background: var(--surface); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 5; }
.topo .miolo { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topo img { height: 28px; width: auto; }

/* Hero */
.hero { padding: 48px 0 56px; background: var(--surface); border-bottom: 1px solid var(--border-color); }
.hero .marca-hero { width: min(300px, 70vw); height: auto; margin: 0 0 32px; }
.hero h1 { font-size: clamp(34px, 8vw, 56px); font-weight: 700; max-width: 16ch; }
.hero .sub { margin-top: 16px; font-size: 18px; color: var(--text-muted); max-width: 52ch; }
.hero .acoes { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero .prova { margin-top: 28px; font-size: 14px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.hero .prova img { width: 14px; height: auto; }

/* Seções */
section { padding: 64px 0; }
.titulo-secao { font-size: clamp(26px, 5vw, 36px); font-weight: 700; max-width: 22ch; }
.intro-secao { margin-top: 12px; color: var(--text-muted); max-width: 60ch; font-size: 17px; }

/* Promessas */
.promessa { display: grid; gap: 28px; align-items: center; padding: 40px 0; border-top: 1px solid var(--border-color); }
.promessa:first-of-type { border-top: 0; }
.promessa .rotulo { color: var(--av-red-text); }
.promessa h3 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 700; margin-top: 8px; }
.promessa .texto > p { margin-top: 12px; color: var(--text-muted); }
.lista { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lista li { padding-left: 18px; position: relative; }
.lista li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--av-slate); }
.lista b { font-weight: 600; }
kbd {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 3px 6px; border-radius: 5px;
  border: 1px solid var(--border-strong); background: var(--surface); white-space: nowrap;
}

/* Passos */
.passos { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: passo; }
.passos li { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; counter-increment: passo; }
.passos li::before {
  content: counter(passo); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--av-black); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.passos h3 { font-size: 19px; }
.passos p { margin-top: 8px; color: var(--text-muted); }

/* Rede */
.rede { background: var(--surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.rede .grade { display: grid; gap: 32px; align-items: center; margin-top: 32px; }

/* Tudo que vem junto */
.recursos { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.recursos li { background: var(--surface); padding: 18px 20px; }
.recursos b { display: block; font-weight: 600; }
.recursos span { color: var(--text-muted); font-size: 15px; }
.selo { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; margin-left: 6px; }
.selo.breve { background: var(--warning-soft); color: var(--warning-text); }

/* Perguntas */
.perguntas { margin-top: 32px; border-top: 1px solid var(--border-color); }
.perguntas details { border-bottom: 1px solid var(--border-color); }
.perguntas summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
  transition: transform 150ms;
}
.perguntas details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.perguntas details p { padding: 0 0 20px; color: var(--text-muted); max-width: 70ch; }

/* Chamada final */
.chamada { background: var(--av-black); color: #fff; }
.chamada .miolo { display: grid; gap: 24px; }
.chamada img { width: 160px; height: auto; }
.chamada h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; max-width: 20ch; }
.chamada p { color: #C9CFD8; max-width: 52ch; }
.chamada .tel { font-size: 14px; color: #C9CFD8; }
.chamada :focus-visible { outline-color: #8FB1FF; }

.rodape { padding: 24px 0 32px; font-size: 14px; color: var(--text-muted); }
.rodape .miolo { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Telas ilustrativas (decorativas: aria-hidden; a figura tem a descrição) ---------- */
.tela {
  margin: 0; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgba(21, 25, 31, 0.18); overflow: hidden; font-size: 13px; line-height: 1.4;
  display: grid; grid-template-columns: 1fr;
}
.tela .menu { display: none; }
.tela .corpo { padding: 16px; min-width: 0; }
.tela .cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tela .cab b { font-size: 15px; }
.tela .cab small { color: var(--text-muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; padding: 2px; gap: 2px; font-size: 12px; }
.seg span { padding: 3px 9px; border-radius: 6px; color: var(--text-muted); }
.seg .on { background: var(--av-black); color: #fff; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.campo { display: grid; gap: 3px; }
.campo.largo { grid-column: 1 / -1; }
.campo i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.campo span { border: 1px solid var(--border-color); border-radius: 7px; padding: 6px 9px; background: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.rodape-tela { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.rodape-tela .total { font-size: 24px; font-weight: 700; color: var(--av-red); font-variant-numeric: tabular-nums; }
.btn-tela { background: var(--av-red); color: #fff; border-radius: 7px; padding: 6px 12px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.btn-tela kbd { border: 0; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 10px; margin-left: 4px; padding: 2px 4px; }
.btn-sec { border: 1px solid var(--border-color); border-radius: 7px; padding: 4px 10px; font-weight: 600; font-size: 12px; white-space: nowrap; background: var(--surface); }
.aviso-ok { margin-top: 10px; background: var(--success-soft); color: var(--success-text); border-radius: 7px; padding: 7px 10px; font-weight: 500; }
.aviso-ok .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.kpi i { display: block; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.kpi b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.t-danger { color: var(--danger-text); } .t-success { color: var(--success-text); } .t-warning { color: var(--warning-text); } .t-muted { color: var(--text-muted); }

.linhas { margin-top: 12px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.linha { display: grid; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border-color); }
.linha:first-child { border-top: 0; }
.linha.cabeca { background: var(--bg); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.linha .dir { text-align: right; font-variant-numeric: tabular-nums; }
.linha small { display: block; color: var(--text-muted); font-size: 11px; }
.pilula { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.pilula.venc { background: var(--danger-soft); color: var(--danger-text); }
.pilula.link { background: var(--info-soft); color: var(--info-text); }
.pilula.balcao { background: var(--selected); color: var(--av-slate); }
.pilula.campo { background: var(--warning-soft); color: var(--warning-text); }
.pilula.ok { background: var(--success-soft); color: var(--success-text); }

.receber .linha { grid-template-columns: 1fr auto auto; }
.receber .linha .titulos { display: none; }
.agenda .linha { grid-template-columns: 44px 1fr auto; }
.agenda .hora { font-variant-numeric: tabular-nums; font-weight: 600; }
.agenda .livre { color: var(--text-muted); }
.rede-tela .linha { grid-template-columns: 1fr auto auto; }
.rede-tela .meta-col { display: none; }
.barra { height: 6px; border-radius: 3px; background: var(--selected); overflow: hidden; margin-top: 4px; }
.barra s { display: block; height: 100%; background: var(--av-slate); }

/* Celular do portal */
.par { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.celular {
  width: 240px; justify-self: center; background: var(--av-black); border-radius: 30px; padding: 10px;
  box-shadow: 0 16px 36px -14px rgba(21, 25, 31, 0.4); font-size: 12px; line-height: 1.35;
}
.celular .visor { background: var(--bg); border-radius: 22px; overflow: hidden; }
.celular .barra-portal { background: var(--surface); padding: 14px 12px 10px; border-bottom: 1px solid var(--border-color); }
.celular .barra-portal b { display: block; font-size: 13px; }
.celular .barra-portal small { color: var(--text-muted); font-size: 10px; }
.celular .abas { display: flex; gap: 2px; padding: 8px 8px 0; font-size: 10px; font-weight: 600; color: var(--text-muted); }
.celular .abas span { padding: 4px 6px; border-radius: 6px; }
.celular .abas .on { background: var(--av-black); color: #fff; }
.celular .conteudo { padding: 8px; display: grid; gap: 6px; }
.celular .kpi { background: var(--surface); }
.celular .os { background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 7px 8px; display: flex; justify-content: space-between; gap: 6px; }
.celular .os b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.celular .os small { display: block; color: var(--text-muted); font-size: 10px; }
.celular .assina { text-align: center; color: var(--text-muted); font-size: 9px; padding: 4px 0 10px; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .tela { grid-template-columns: 52px 1fr; }
  .tela .menu { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: var(--av-black); }
  .tela .menu img { width: 22px; height: auto; margin-bottom: 10px; }
  .tela .menu span { width: 22px; height: 6px; border-radius: 3px; background: #3A424D; }
  .tela .menu .on { background: var(--av-red); }
  .tela .corpo { padding: 20px; }
  .campos { grid-template-columns: repeat(3, 1fr); }
  .receber .linha { grid-template-columns: 1fr 64px auto auto; }
  .receber .linha .titulos { display: block; }
  .rede-tela .linha { grid-template-columns: 1fr 70px 120px 110px; }
  .rede-tela .meta-col { display: block; }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .recursos { grid-template-columns: 1fr 1fr; }
  .par { grid-template-columns: 1fr 240px; align-items: end; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  section { padding: 88px 0; }
  .promessa { grid-template-columns: 5fr 7fr; gap: 56px; padding: 56px 0; }
  .promessa.inverte .texto { order: 2; }
  .rede .grade { grid-template-columns: 5fr 7fr; gap: 56px; }
  .recursos { grid-template-columns: repeat(3, 1fr); }
  .chamada .miolo { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao, .perguntas summary::after { transition: none; }
}

/* Ajustes de composição */
.hero .prova { display: block; }
.hero-grade { display: grid; }
@media (min-width: 960px) {
  .hero-grade { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
  .hero .marca-hero { order: 2; width: 100%; max-width: 400px; justify-self: center; margin: 0; }
  .promessa.larga { grid-template-columns: 1fr; gap: 36px; }
  .promessa.larga .texto { display: grid; grid-template-columns: 5fr 7fr; gap: 0 56px; align-items: start; }
  .promessa.larga .texto .lista { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .par { grid-template-columns: 1fr 240px; gap: 32px; }
}
/* Item de grade não estica a coluna pelo conteúdo sem quebra das telas ilustrativas (320 px) */
.promessa > *, .rede .grade > *, .par > *, .hero-grade > * { min-width: 0; }
.kpi b { white-space: normal; }
@media (min-width: 640px) { .kpi b { white-space: nowrap; } }
.celular .abas { justify-content: space-between; font-size: 9.5px; }
.celular .abas span { white-space: nowrap; padding: 4px 5px; }
