/* 83go — site institucional. Mesmos tokens do design system dos apps. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url('../fonts/Poppins_400Regular.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url('../fonts/Poppins_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url('../fonts/Poppins_700Bold.ttf') format('truetype'); }

:root {
  --bg: #EEF3FB;
  --surface: #FFFFFF;
  --surface-muted: #F8FBFF;
  --ink: #0F172A;
  --text-2: #475569;
  --muted: #5F6F86;
  --border: #E6EDF8;
  --brand: #1D63F0;
  --brand-strong: #11346B;
  --accent: #3F8F1C;
  --on-brand: #FFFFFF;
  --hero-bg: #0B1220;
  --hero-ink: #E8EEF8;
  --warn-bg: #FFF4E0;
  --warn: #B45309;
  --radius: 16px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --surface: #121B2E;
    --surface-muted: #18233A;
    --ink: #E8EEF8;
    --text-2: #B7C3D7;
    --muted: #94A3B8;
    --border: #243150;
    --brand: #6E9BFF;
    --brand-strong: #A8C2FF;
    --accent: #86D35A;
    --on-brand: #06122B;
    --hero-bg: #060B16;
    --warn-bg: #3A2C0E;
    --warn: #FCD06B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Cabeçalho */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 640px) { .nav { gap: 12px; } .nav a.hide-sm { display: none; } }

/* Destaque */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: #B7C3D7; max-width: 52ch; margin: 0 0 28px; }
.hero .accent { color: #86D35A; }
.badge { display: inline-block; background: rgba(110,155,255,.15); color: #A8C2FF; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: #1D63F0; color: #fff; }
.btn-primary:hover { background: #1650c4; }
.btn-ghost { border-color: #34446A; color: #E8EEF8; }
.btn-ghost:hover { border-color: #6E9BFF; }
.btn-light { border-color: var(--border); color: var(--ink); background: var(--surface); }

/* Seções */
section { padding: 64px 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-2); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(29,99,240,.1); color: var(--brand); }
.icon svg { width: 22px; height: 22px; }
.step-n { font-weight: 700; color: var(--accent); font-size: .9rem; letter-spacing: .04em; }

.split { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0 0 24px; }
.check li { padding-left: 30px; position: relative; margin: 10px 0; color: var(--text-2); }
.check li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

.apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.app { display: flex; gap: 16px; align-items: center; }
.app img { width: 72px; height: 72px; border-radius: 18px; }
.app strong { display: block; }
.soon { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 10px; margin-top: 4px; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 16px; color: var(--text-2); }

/* Páginas de texto (legais, suporte) */
.doc { padding: 40px 0 72px; }
.doc article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 4px; }
.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.doc .meta { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.draft { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 24px; }

/* Rodapé */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer small { color: var(--muted); display: block; margin-top: 8px; }

/* Destaque com a tela real do app (só em telas largas) */
.hero-split { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.phone { width: 280px; border-radius: 36px; border: 8px solid #1C2842; box-shadow: 0 30px 60px rgba(0,0,0,.45); background: #fff; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } .phone { display: none; } }

/* Utilitários (sem estilos inline por causa da CSP) */
section.alt { background: var(--surface); }
.mt { margin-top: 24px; }
