/* HubTool — site institucional. CSS puro, sem framework.
   Valores vindos do Design System HubTool (tokens.json). Tema claro. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* cor */
  --bg: #FBFAFB; --surface: #FFFFFF; --sunken: #F7F6F8;
  --text: #17141A; --text-muted: #66606B;
  --border: #E3E0E6; --border-field: #857E8A;
  --marca: #5A2160; --on-marca: #FFFFFF; --marca-soft: #F1E6F2; --lilas: #D4A5DA;
  --inverse: #200A23; --on-inverse: #F7F6F8; --inverse-muted: #CDA6D1; --inverse-line: #46184B;
  --ok: #1C7A4B; --focus: #5A2160;
  /* tipo */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* espaço, raio, sombra */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --sombra-1: 0 1px 2px rgba(23, 20, 26, .06), 0 4px 12px rgba(23, 20, 26, .08);
  --sombra-2: 0 16px 40px rgba(23, 20, 26, .14), 0 2px 6px rgba(23, 20, 26, .06);
  --max: 1120px;
  --gutter: var(--s4);
}
@media (min-width: 768px) { :root { --gutter: var(--s8); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--marca); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--surface); padding: var(--s2) var(--s3); border-radius: var(--r-md); box-shadow: var(--sombra-1); }
.skip:focus { top: var(--s4); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s16) 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { max-width: 640px; margin-bottom: var(--s12); }
.section-head p { margin-top: var(--s4); color: var(--text-muted); font-size: 17px; line-height: 28px; }

/* ---------- tipo ---------- */
.rotulo { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--marca); }
.display { font-size: 36px; line-height: 40px; letter-spacing: -.03em; }
@media (min-width: 768px) { .display { font-size: 48px; line-height: 52px; } }
@media (min-width: 1100px) { .display { font-size: 56px; line-height: 60px; } }
.titulo-1 { font-size: 28px; line-height: 36px; letter-spacing: -.02em; }
@media (min-width: 768px) { .titulo-1 { font-size: 36px; line-height: 44px; } }
.titulo-3 { font-size: 18px; line-height: 26px; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 28px; color: var(--text-muted); }
@media (min-width: 768px) { .lead { font-size: 19px; line-height: 30px; } }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 22px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 48px; padding: 0 var(--s6); border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s, border-color .12s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--marca); color: var(--on-marca); }
.btn-primary:hover { background: #46184B; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-field); }
.btn-secondary:hover { background: var(--sunken); }
.btn-light { background: var(--lilas); color: var(--inverse); }
.btn-light:hover { background: #E2CCE4; }
.btn-sm { height: 40px; padding: 0 var(--s4); font-size: 15px; }
.btn:focus-visible { outline-offset: 3px; }

/* ---------- ícones ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 251, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: var(--s2) var(--s3); border-radius: var(--r-md); color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--sunken); }
@media (min-width: 900px) { .nav { display: block; } }
.header-cta .label-long { display: none; }
@media (min-width: 520px) { .header-cta .label-long { display: inline; } .header-cta .label-short { display: none; } }

/* ---------- hero ---------- */
.hero { padding: var(--s12) 0 var(--s16); overflow: hidden; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: var(--s12); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s16); } }
.hero-copy .rotulo { margin-bottom: var(--s4); display: block; }
.hero-copy .lead { margin-top: var(--s6); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
@media (max-width: 519px) { .hero-actions .btn { width: 100%; } }
.hero-note { margin-top: var(--s4); font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* a moldura: quatro cantos em volta do quadro */
.moldura { position: relative; padding: var(--s6); }
.moldura::before, .moldura::after, .moldura > .canto-b::before, .moldura > .canto-b::after { content: ""; position: absolute; width: 36px; height: 36px; border: 0 solid var(--marca); pointer-events: none; }
.moldura::before { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 6px; }
.moldura::after { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 6px; }
.moldura > .canto-b::before { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 6px; }
.moldura > .canto-b::after { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 6px; }
@media (min-width: 768px) { .moldura { padding: var(--s8); } .moldura::before, .moldura::after, .moldura > .canto-b::before, .moldura > .canto-b::after { width: 48px; height: 48px; } }

/* mock do portal (decorativo, feito em HTML) */
.mock { --t: #C8102E; --t-text: #C8102E; --t-soft: #FAE7EA; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sombra-2); overflow: hidden; font-size: 13px; line-height: 20px; }
.mock-bar { display: flex; align-items: center; gap: var(--s2); padding: 10px var(--s4); background: var(--sunken); border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-url { flex: 1; margin-left: var(--s2); height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 var(--s3); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.mock-url b { color: var(--text); font-weight: 500; }
.mock-url .ic { width: 13px; height: 13px; }
.mock-body { padding: var(--s6); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s6); }
.tl { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.tl-mono { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--t); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.mock-user { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-muted); }
.mock-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-md); background: var(--t-soft); color: var(--t-text); font-weight: 600; font-size: 11px; }
.mock-hello { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; margin-bottom: var(--s4); }
.mock-cards { display: grid; gap: var(--s3); }
.mock-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); }
.mock-card .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--t-soft); color: var(--t-text); flex: none; }
.mock-card .ico .ic { width: 20px; height: 20px; }
.mock-card b { display: block; font-size: 15px; font-weight: 600; }
.mock-card span { color: var(--text-muted); }
.mock-card .seta { margin-left: auto; color: var(--text-muted); }
.mock-card.lock { background: var(--sunken); border-style: dashed; border-color: var(--border-field); }
.mock-card.lock .ico { background: var(--surface); color: var(--text-muted); }
.mock-foot { display: flex; justify-content: center; padding: var(--s3) 0 var(--s4); color: var(--text-muted); }
.mock-foot img { height: 13px; width: auto; }
.hero-caption { margin-top: var(--s3); text-align: center; font-size: 13px; line-height: 20px; color: var(--text-muted); }

/* ---------- benefícios ---------- */
.grid-4 { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { padding: var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.feature .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--marca-soft); color: var(--marca); margin-bottom: var(--s4); }
.feature h3 { margin-bottom: var(--s2); }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 24px; }

/* ---------- como funciona ---------- */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; gap: var(--s8); list-style: none; margin: 0; padding: 0; counter-reset: passo; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.step { counter-increment: passo; position: relative; padding-top: var(--s6); border-top: 2px solid var(--border); }
.step::before { content: "0" counter(passo); position: absolute; top: -2px; left: 0; padding-top: var(--s3); border-top: 2px solid var(--marca); width: 48px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--marca); }
.step h3 { margin: var(--s6) 0 var(--s2); }
.step p { color: var(--text-muted); font-size: 15px; line-height: 24px; }
.addr { display: inline-block; margin-top: var(--s3); padding: 2px var(--s2); border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.addr b { color: var(--marca); font-weight: 500; }

/* ---------- sistemas ---------- */
.systems { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .systems { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.system { display: flex; flex-direction: column; padding: var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.system .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--sunken); color: var(--text); margin-bottom: var(--s4); }
.system h3 { margin-bottom: var(--s2); }
.system p { color: var(--text-muted); font-size: 15px; line-height: 24px; }
.system ul { margin: var(--s4) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 22px; }
.system li { display: flex; gap: var(--s2); }
.system li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.system.custom { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.system.custom .ico { background: var(--inverse-line); color: var(--lilas); }
.system.custom p { color: var(--inverse-muted); }
.system.custom a { margin-top: auto; padding-top: var(--s6); color: var(--lilas); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.system.custom a .ic { width: 18px; height: 18px; }

/* ---------- white-label ---------- */
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s12); align-items: center; }
.wl-grid > * { min-width: 0; }
@media (min-width: 960px) { .wl-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s12); } }
.wl-list { margin: var(--s6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s4); }
.wl-list li { display: flex; gap: var(--s3); }
.wl-list .ic { color: var(--marca); margin-top: 1px; }
.wl-list b { display: block; font-weight: 600; }
.wl-list span { color: var(--text-muted); font-size: 15px; line-height: 24px; }
.logins { display: grid; gap: var(--s3); grid-auto-flow: column; grid-auto-columns: 76%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.logins .login { scroll-snap-align: start; }
@media (min-width: 640px) { .logins { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } .logins .login:nth-child(2) { transform: translateY(-16px); } }
.login { --t: #C8102E; --t-text: #C8102E; --on-t: #fff; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6) var(--s4) var(--s4); display: grid; gap: var(--s3); font-size: 13px; line-height: 20px; }
.login .tl { font-size: 14px; }
.login .tl-mono { background: var(--t); color: var(--on-t); width: 28px; height: 28px; font-size: 12px; }
.login .addr-mini { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: -4px; }
.login .f { height: 34px; border: 1px solid var(--border-field); border-radius: var(--r-md); padding: 0 10px; display: flex; align-items: center; color: var(--text-muted); }
.login .go { height: 36px; border-radius: var(--r-md); background: var(--t); color: var(--on-t); display: grid; place-items: center; font-weight: 500; }
.login .forgot { color: var(--t-text); text-decoration: underline; text-underline-offset: 3px; }
.login .pb { display: flex; justify-content: center; padding-top: var(--s2); }
.login .pb img { height: 11px; width: auto; opacity: .9; }
.login.t2 { --t: #0F8567; --t-text: #107C60; }
.login.t3 { --t: #E3A008; --t-text: #91680F; --on-t: #17141A; }
.logins-caption { margin-top: var(--s3); font-size: 13px; line-height: 20px; color: var(--text-muted); text-align: center; }

/* ---------- confiança ---------- */
.trust { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust-item { display: flex; gap: var(--s4); padding: var(--s6) 0; border-top: 1px solid var(--border); }
.trust-item .ic { color: var(--marca); margin-top: 2px; }
.trust-item h3 { margin-bottom: var(--s1); }
.trust-item p { color: var(--text-muted); font-size: 15px; line-height: 24px; }

/* ---------- perguntas ---------- */
.faq { max-width: 760px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s6) 0; cursor: pointer; font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-muted); transition: transform .16s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover .ic { color: var(--marca); }
.faq .answer { padding: 0 0 var(--s6); color: var(--text-muted); max-width: 640px; }
.faq .answer p + p { margin-top: var(--s3); }

/* ---------- chamada final ---------- */
.cta { background: var(--inverse); color: var(--on-inverse); position: relative; overflow: hidden; }
.cta-inner { display: grid; gap: var(--s8); align-items: center; padding-top: var(--s16); padding-bottom: var(--s16); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 96px; padding-bottom: 96px; } }
.cta h2 { color: var(--on-inverse); }
.cta p { margin-top: var(--s4); color: var(--inverse-muted); font-size: 17px; line-height: 28px; max-width: 560px; }
.cta .moldura::before, .cta .moldura::after, .cta .moldura > .canto-b::before, .cta .moldura > .canto-b::after { border-color: var(--lilas); }
.cta :focus-visible { outline-color: var(--lilas); }
.cta-actions { display: grid; gap: var(--s3); justify-items: start; }
.cta-actions .small { color: var(--inverse-muted); }

/* ---------- rodapé ---------- */
.site-footer { background: var(--bg); padding: var(--s12) 0 var(--s8); font-size: 15px; line-height: 24px; }
.footer-grid { display: grid; gap: var(--s8); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 28px; width: auto; margin-bottom: var(--s3); }
.footer-brand p { color: var(--text-muted); max-width: 320px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--marca); text-decoration: underline; }
.footer-legal { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--text-muted); font-size: 13px; line-height: 20px; }

/* ---------- aviso de cookies ---------- */
.cookie { position: fixed; z-index: 60; left: var(--s4); right: var(--s4); bottom: var(--s4); max-width: 560px; margin-left: auto; display: grid; gap: var(--s4); padding: var(--s4) var(--s6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sombra-2); font-size: 15px; line-height: 24px; }
@media (min-width: 640px) { .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; left: auto; right: var(--s6); bottom: var(--s6); } }
.cookie[hidden] { display: none; }
.cookie p { color: var(--text); }

/* ---------- páginas de texto (privacidade) ---------- */
.doc { padding: var(--s12) 0 var(--s16); }
.doc-body { max-width: 720px; }
.doc-body h1 { margin: var(--s3) 0 var(--s4); }
.doc-body h2 { font-size: 22px; line-height: 30px; letter-spacing: -.015em; margin: var(--s12) 0 var(--s3); }
.doc-body p, .doc-body li { color: var(--text); }
.doc-body p + p { margin-top: var(--s4); }
.doc-body ul { padding-left: 22px; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.doc-meta { color: var(--text-muted); font-size: 15px; }
.preencher { background: #FDF3E1; color: #6B3E00; border-radius: var(--r-sm); padding: 0 4px; font-family: var(--font-mono); font-size: .88em; }
.aviso-juridico { margin-top: var(--s8); padding: var(--s4) var(--s6); border-radius: var(--r-md); background: var(--sunken); border: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; padding: var(--s16) 0; text-align: center; }
.notfound .moldura { display: inline-grid; place-items: center; padding: var(--s8) var(--s12); margin-bottom: var(--s8); }
.notfound .code { font-family: var(--font-mono); font-size: 56px; line-height: 1; font-weight: 500; color: var(--marca); letter-spacing: -.02em; }
.notfound p { margin: var(--s4) auto 0; max-width: 460px; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s8); }
