/* Atendas na unidade · estilo compartilhado (apresentação, treinamento e PDF)
   Conceito: ficha de operação em papel quente, laranja VMK como único acento forte,
   a régua do funil como elemento que se repete nas duas páginas. */
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url("fonts/ubuntu-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url("fonts/ubuntu-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-700.woff2") format("woff2"); }

:root {
  --paper: #FAFAF7; --paper-2: #F2EFE8; --card: #FFFFFF; --rule: #E0DCD2;
  --mute: #7D7668; --body: #4F4A42; --ink: #1C1A17;
  --accent: #FF6700; --accent-deep: #C4471A; --accent-tint: #FBEBDF; --on-accent: #1C1A17;
  --ok: #00704C; --ok-tint: #E3F1EA; --warn: #8A6D1F; --warn-tint: #F5EBD4; --plan: #5B6470; --plan-tint: #E9ECEF;
  --display: "Ubuntu", "Aptos Display", "Segoe UI", system-ui, sans-serif;
  --text: "Aptos", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --r: 10px; --r-sm: 6px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.25rem; --t-xl: 1.625rem; --t-2xl: 2.125rem; --t-3xl: clamp(2.25rem, 5.4vw, 3.5rem);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #181613; --paper-2: #211E1A; --card: #26231E; --rule: #3A352E;
    --mute: #A39B8B; --body: #D2CBBD; --ink: #F5F2EB;
    --accent: #FF7A26; --accent-deep: #FF9A57; --accent-tint: #3B2416; --on-accent: #1C1A17;
    --ok: #4FC497; --ok-tint: #13302A; --warn: #DDBE63; --warn-tint: #383020; --plan: #A9B3BF; --plan-tint: #2A2F35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #181613; --paper-2: #211E1A; --card: #26231E; --rule: #3A352E;
  --mute: #A39B8B; --body: #D2CBBD; --ink: #F5F2EB;
  --accent: #FF7A26; --accent-deep: #FF9A57; --accent-tint: #3B2416; --on-accent: #1C1A17;
  --ok: #4FC497; --ok-tint: #13302A; --warn: #DDBE63; --warn-tint: #383020; --plan: #A9B3BF; --plan-tint: #2A2F35;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { background: var(--paper); color: var(--body); font-family: var(--text); font-size: var(--t-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); font-weight: 500; }
h4 { font-size: var(--t-md); font-weight: 500; }
p { margin: 0; }
p + p { margin-top: var(--s3); }
a { color: var(--accent-deep); text-underline-offset: 3px; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--text); font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.lede { font-size: var(--t-lg); color: var(--body); max-width: 62ch; }
.muted { color: var(--mute); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.2em; margin-block: var(--s3) 0; }
.prose li + li { margin-top: var(--s1); }

/* Cabeçalho */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.topo .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 60px; }
.marca { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex-shrink: 0; }
.marca svg { width: 64px; height: auto; display: block; }
.marca .sep { width: 1px; height: 26px; background: var(--rule); }
.marca .produto { font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: .01em; }
.nav { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--body); font-size: var(--t-sm); font-weight: 600; padding: 8px 10px; border-radius: var(--r-sm); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.ativo { color: var(--ink); background: var(--accent-tint); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; padding: 10px 18px; border-radius: var(--r-sm); font-family: var(--text); font-weight: 700; font-size: var(--t-md); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-pri { background: var(--accent); color: var(--on-accent); }
.btn-pri:hover { background: var(--accent-deep); color: #fff; }
.btn-sec { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sec:hover { background: var(--ink); color: var(--paper); }
.acoes { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Solicitação de acesso antecipado */
.form-acesso { display: grid; gap: var(--s5); max-width: 640px; }
.form-acesso .campo input[type] { font: inherit; width: 100%; max-width: none; min-height: 46px; padding: var(--s3) var(--s4); border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }
.form-acesso .campo input:focus { border-color: var(--accent); outline: 3px solid var(--accent-tint); outline-offset: 1px; }
.form-acesso .btn:disabled { opacity: .6; cursor: not-allowed; }

/* Seções */
.faixa { padding-block: var(--s8); }
.faixa.alt { background: var(--paper-2); }
.sec-cab { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 760px; }
.grade { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grade > * { min-width: 0; }
.cartao { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s5); }

/* Etiquetas de status */
.tag { width: fit-content; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-regra { color: var(--accent-deep); background: var(--accent-tint); }
.tag-pratica { color: var(--ok); background: var(--ok-tint); }
.tag-andamento { color: var(--plan); background: var(--plan-tint); }
.tag-disponivel { color: var(--ok); background: var(--ok-tint); }
.st { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.st-contrato { color: var(--ok); background: var(--ok-tint); }
.st-leitura { color: var(--warn); background: var(--warn-tint); }
.st-decisao { color: var(--plan); background: var(--plan-tint); }
.fonte { font-size: var(--t-xs); color: var(--mute); }

/* Espaço de configuração (nada aqui finge funcionar) */
.config { border: 2px dashed var(--accent); border-radius: var(--r); padding: var(--s5); background: var(--accent-tint); color: var(--ink); }
.config .rotulo { font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: var(--s2); }
.config code { font-size: .875em; background: var(--card); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--rule); }

/* Régua do funil */
.regua { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.etapa { position: relative; padding: var(--s4) var(--s4) var(--s4) var(--s4); background: var(--card); border: 1px solid var(--rule); border-left-width: 0; display: grid; align-content: start; gap: var(--s2); min-width: 0; }
.etapa:first-child { border-left-width: 1px; border-radius: var(--r) 0 0 var(--r); }
.etapa:last-child { border-radius: 0 var(--r) var(--r) 0; }
.etapa .pos { font-size: var(--t-xs); font-weight: 700; color: var(--mute); letter-spacing: .08em; }
.etapa h3, .etapa h4 { font-size: 1.0625rem; }
.etapa .marco { font-size: .75rem; font-weight: 700; color: var(--accent-deep); letter-spacing: .06em; }
.etapa .desc { font-size: var(--t-sm); }
.etapa.fim { background: var(--ok-tint); }
.etapa.fim h3, .etapa.fim h4 { color: var(--ok); }
.etapa::after { content: ""; position: absolute; top: 50%; right: -9px; width: 16px; height: 16px; background: inherit; border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.etapa:last-child::after { display: none; }
.saida { margin-top: var(--s3); display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1px dashed var(--rule); border-radius: var(--r); background: var(--card); }
.saida .x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .regua { grid-template-columns: 1fr; }
  .etapa, .etapa:first-child, .etapa:last-child { border-left-width: 1px; border-top-width: 0; border-radius: 0; }
  .etapa:first-child { border-top-width: 1px; border-radius: var(--r) var(--r) 0 0; }
  .etapa:last-child { border-radius: 0 0 var(--r) var(--r); }
  .etapa::after { top: auto; bottom: -9px; right: auto; left: 28px; transform: rotate(135deg); }
}

/* Tabelas */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Listas de verificação */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.check li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; }
.check li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border: 2px solid var(--mute); border-radius: 4px; }
.passos { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: var(--s3); }
.passos > li { counter-increment: p; display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: start; }
.passos > li::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.passos > li > div { min-width: 0; }

/* Perguntas */
details.faq { border-bottom: 1px solid var(--rule); }
details.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 0; display: flex; justify-content: space-between; gap: var(--s4); font-weight: 600; color: var(--ink); font-size: var(--t-md); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--accent-deep); flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq .resp { padding-bottom: var(--s4); max-width: 70ch; }

.rodape { border-top: 1px solid var(--rule); padding-block: var(--s6); font-size: var(--t-sm); color: var(--mute); }
.rodape .wrap { display: grid; gap: var(--s3); }

/* Notas */
.nota { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding: var(--s4); border-radius: var(--r); background: var(--paper-2); font-size: var(--t-sm); }
.nota .ic { font-weight: 700; color: var(--accent-deep); }
