/* Monetara — estilos do site institucional.
   Tokens espelham o design system Monetara (tokens.json). */

@font-face { font-family: "Sora"; src: url("../fonts/Sora-VF.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans-VF.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-VF.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --navy-950: #07101F; --navy-900: #0B1A30; --navy-850: #0E1B30; --navy-800: #13284A; --navy-line: #1E3152;
  --emerald-400: #19D3A2; --emerald-500: #14B88C; --emerald-700: #0A7C60; --emerald-tint: #E7F8F2;
  --mist-50: #F4F7FA; --mist-200: #DCE3EC; --slate-500: #4A5B73; --slate-300: #93A3BA;
  --line-strong: #7D8DA5; --line-strong-dark: #5B7196; --ink-inverse: #EAF0F7; --white: #FFFFFF;
  --warning: #B45309; --warning-dark: #F59E0B; --danger: #DC2626;

  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 96px);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --shadow-dark: 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.40);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--navy-900); font-family: var(--font-text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--emerald-700); }
a:hover { color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--emerald-700); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--emerald-400); }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 10; padding: 10px 16px; border-radius: var(--radius-md); background: var(--emerald-400); color: var(--navy-950); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--muted { background: var(--mist-50); border-top: 1px solid var(--mist-200); border-bottom: 1px solid var(--mist-200); }
.section--rule { border-bottom: 1px solid var(--mist-200); }
.on-dark { background-color: var(--navy-950); background-image: radial-gradient(var(--navy-line) 1.5px, transparent 1.6px); background-size: 24px 24px; color: var(--ink-inverse); }
.on-dark--alt { background-color: var(--navy-900); }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { min-width: 0; }
.grid-auto { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 250px)), 1fr)); }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-700); }
.on-dark .eyebrow { color: var(--emerald-400); }
.h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
.h1--sm { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 28px; }
.h3--lg { font-size: 26px; line-height: 34px; }
.lead { font-size: 18px; line-height: 28px; color: var(--slate-500); max-width: 600px; }
.on-dark .lead { color: var(--slate-300); }
.muted { color: var(--slate-500); }
.on-dark .muted { color: var(--slate-300); }
.small { font-size: 14px; line-height: 20px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease-out, border-color .15s ease-out; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--emerald-400); color: var(--navy-950); }
.btn--primary:hover { background: var(--emerald-500); color: var(--navy-950); }
.btn--secondary { border-color: var(--line-strong); color: var(--navy-900); }
.btn--secondary:hover { background: var(--mist-50); color: var(--navy-900); }
.on-dark .btn--secondary, .site-header .btn--secondary { border-color: var(--line-strong-dark); color: var(--ink-inverse); }
.on-dark .btn--secondary:hover, .site-header .btn--secondary:hover { background: var(--navy-800); color: var(--ink-inverse); }
.btn--dark { background: var(--navy-950); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* Header */
.site-header { background: var(--navy-950); color: var(--ink-inverse); border-bottom: 1px solid var(--navy-line); }
.site-nav { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; }
.site-nav__brand { display: flex; align-items: center; height: 72px; flex: none; }
.site-nav__brand img { height: 26px; width: auto; }
.site-nav__links { flex: 1 1 420px; min-width: 0; max-width: 100%; height: 48px; display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav__links::-webkit-scrollbar { display: none; }
.site-nav__links a { color: var(--ink-inverse); text-decoration: none; padding: 4px 0; }
.site-nav__links a:hover { color: var(--emerald-400); }
.site-nav__links a[aria-current="page"] { color: var(--emerald-400); }
.site-nav__actions { margin-left: auto; min-height: 56px; display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch { display: flex; gap: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { padding: 6px 6px; color: var(--slate-300); text-decoration: none; border-radius: var(--radius-sm); }
.lang-switch a:hover { color: var(--ink-inverse); background: var(--navy-800); }
.lang-switch [aria-current="true"] { color: var(--ink-inverse); }
@media (max-width: 560px) { .site-nav__actions .btn--secondary { display: none; } }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero .split { align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 24px; }
.hero__copy--wide { flex-basis: 560px; max-width: 760px; }
.hero__aside { flex: 1 1 420px; max-width: 560px; }

/* Dashboard mock */
.dash { background: var(--navy-850); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); padding: 24px; color: var(--ink-inverse); box-shadow: var(--shadow-dark); display: flex; flex-direction: column; gap: 20px; }
.dash__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash__title { font-family: var(--font-display); font-weight: 600; }
.dash__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); border: 1px solid var(--line-strong-dark); border-radius: 999px; padding: 3px 10px; }
.dash__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.dash__kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-md); background: var(--navy-950); }
.dash__kpi span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); }
.dash__kpi span:last-child { font-family: var(--font-display); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.dash__kpi .is-accent { color: var(--emerald-400); }
.dash__chart svg { width: 100%; height: 140px; }
.dash__legend { display: flex; gap: 16px; font-size: 12px; color: var(--slate-300); }
.dash__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash__legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--emerald-400); }
.dash__legend i.is-dashed { height: 0; background: none; border-top: 2px dashed var(--line-strong-dark); }
.dash__rows { font-size: 13px; }
.dash__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--navy-line); align-items: center; }
.dash__row .mono { color: var(--slate-300); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag svg { width: 11px; height: 11px; }
.tag--ok { color: var(--emerald-400); }
.tag--wait { color: var(--warning-dark); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--mist-200); background: var(--white); }
.card--muted { background: var(--mist-50); }
.card--dark { background: var(--navy-950); border-color: transparent; color: var(--ink-inverse); }
.card--dark .muted { color: var(--slate-300); }
.card--lg { padding: clamp(24px, 3vw, 40px); gap: 20px; }
.card__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--navy-950); display: flex; align-items: center; justify-content: center; color: var(--emerald-400); }
.card__icon svg { width: 22px; height: 22px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--slate-500); }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--emerald-700); }
.card--dark .check-list li { color: var(--slate-300); }
.card--dark .check-list svg { color: var(--emerald-400); }
.card .btn { margin-top: auto; align-self: flex-start; height: 44px; padding: 0 20px; font-size: 15px; }

/* Ruled steps (top rule) */
.ruled { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--navy-900); }
.ruled--accent { border-top-color: var(--emerald-400); }
.ruled__num { font-family: var(--font-mono); font-size: 14px; color: var(--emerald-700); }

/* Numbered list rows */
.rows { display: flex; flex-direction: column; }
.rows li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--mist-200); }
.rows li:last-child { border-bottom: 1px solid var(--mist-200); }
.rows__num { flex: none; width: 28px; font-family: var(--font-mono); font-size: 14px; color: var(--emerald-700); }
.rows__num--wide { width: 64px; color: var(--slate-500); }
.rows__body { display: flex; flex-direction: column; gap: 4px; }
.rows__body strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.rows__body span { color: var(--slate-500); }

/* Channels */
.channel { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--mist-200); border-radius: var(--radius-lg); }
.channel svg { flex: none; width: 24px; height: 24px; color: var(--navy-900); }
.channel strong { font-weight: 600; }

/* Models strip */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--mist-200); border: 1px solid var(--mist-200); border-radius: var(--radius-lg); overflow: hidden; }
.models > div { background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.models b { font-family: var(--font-mono); font-weight: 500; font-size: 18px; }
.model-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.model-tiles > div { padding: 20px; border-radius: var(--radius-lg); background: var(--navy-850); border: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.model-tiles > div span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); }
.model-tiles > .is-accent { background: var(--emerald-400); border-color: transparent; color: var(--navy-950); }
.model-tiles > .is-accent span:first-child { color: var(--navy-950); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
.stat b.is-accent { color: var(--emerald-700); }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.logos img { max-height: 40px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .8; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--mist-200); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--mist-200); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--emerald-700); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--slate-500); }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* People */
.person { display: flex; flex-direction: column; gap: 16px; }
.person img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-lg); background: var(--mist-50); }

/* Form */
.form { display: flex; flex-direction: column; gap: 24px; }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.form legend { padding: 0; margin-bottom: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border: 2px solid var(--emerald-700); background: var(--emerald-tint); padding: 0 15px; }
.choice input { accent-color: var(--emerald-700); width: 18px; height: 18px; margin: 0; flex: none; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-weight: 400; font-size: 16px; color: var(--navy-900); background: var(--white); width: 100%; }
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--emerald-700); outline-offset: 0; border-color: var(--emerald-700); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--slate-500); }
.consent input { accent-color: var(--emerald-700); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-md); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--emerald-tint); color: var(--emerald-700); border: 1px solid var(--emerald-700); }
.form-status--error { background: #FDECEC; color: #B91C1C; border: 1px solid #B91C1C; }
.contact-card { padding: 24px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; background: var(--mist-50); border: 1px solid var(--mist-200); }
.contact-card a.big { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy-900); text-decoration: none; overflow-wrap: anywhere; }
.contact-card--dark { background: var(--navy-950); border-color: transparent; color: var(--ink-inverse); }
.contact-card--dark a { color: var(--ink-inverse); font-weight: 600; font-size: 14px; }

/* Prose (legal pages) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 30px; margin-top: 24px; }
.prose p, .prose li { color: var(--slate-500); }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); font-size: 14px; line-height: 20px; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col img { height: 28px; width: auto; align-self: flex-start; }
.site-footer__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-inverse); }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--ink-inverse); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 13px; }
.site-footer__legal nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }

@media (max-width: 560px) {
  .site-nav__links { gap: 20px; }
  .site-nav__links a:last-child { display: none; } /* "Contato" já está no botão "Fale conosco" */
}
