/* GoldieIQ · site público. Estático, sem JavaScript obrigatório. Fontes servidas pelo próprio site. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --gold: #e2a038;       /* Goldie */
  --gold-deep: #96591a;  /* Pelagem (texto dourado sobre claro, contraste AA) */
  --fur: #a8661a;        /* Pelagem (orelha do símbolo) */
  --navy: #13213a;       /* Coleira */
  --navy-2: #1c2d4a;
  --sand: #fbebcd;       /* Areia */
  --paper: #fffdf8;      /* Papel */
  --ink: #1b2536;
  --ink-soft: #4a5468;
  --ink-mute: #8f9bb3;
  --on-navy: #c9d2e3;
  --bubble: #eef1f6;
  --line: #e4ded2;
  --good: #1f6b45;
  --good-tint: #e2f3e9;
  --display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1248px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.dark .eyebrow { color: var(--gold); }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.section-head p { font-size: 19px; color: var(--ink-soft); max-width: 640px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #eab24f; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 253, 248, .32); font-weight: 600; }
.btn-ghost:hover { border-color: rgba(255, 253, 248, .6); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

/* Logotipo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.logo-tag { font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1; color: var(--navy); background: var(--gold); padding: 5px 8px; border-radius: 8px; }

/* Cabeçalho + herói (fundo Coleira) */
.dark { background: var(--navy); color: var(--on-navy); }
.dark h1, .dark h2, .dark .logo-word { color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .login { text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 8px; }
.nav-actions .login:hover { color: #fff; }
.nav-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 16px; }
@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 460px) { .nav-actions .btn { display: none; } .logo-word { font-size: 26px; } }

.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; padding-block: clamp(32px, 5vw, 64px) clamp(72px, 9vw, 110px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 20px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .fine { font-size: 15px; color: var(--ink-mute); }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Conversa de exemplo */
.chat { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .38); margin: 0; }
.chat-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.chip { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); background: var(--sand); padding: 4px 10px; border-radius: 999px; }
.q { align-self: flex-end; max-width: 82%; background: var(--bubble); color: var(--navy); font-size: 17px; line-height: 1.45; padding: 14px 18px; border-radius: 20px 20px 6px 20px; }
.a { display: flex; gap: 14px; align-items: flex-start; }
.a > svg { flex-shrink: 0; width: 40px; height: 40px; }
.a-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 12px; }
.big strong { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 44px); letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.delta { font-size: 14px; font-weight: 700; color: var(--good); background: var(--good-tint); padding: 4px 10px; border-radius: 999px; }
.bars { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.bar { display: grid; grid-template-columns: 56px 1fr 84px; align-items: center; gap: 10px; }
.bar .track { height: 12px; border-radius: 6px; background: var(--bubble); }
.bar .fill { height: 12px; border-radius: 6px; background: #c9d2e3; }
.bar.now { color: var(--navy); font-weight: 600; }
.bar.now .fill { background: var(--gold); }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.trail { background: var(--navy); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.trail b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.trail pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--on-navy); white-space: pre; overflow-x: auto; }
.rule { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--gold); }
.steps h3 { font-size: 26px; font-weight: 700; }
.steps p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Governança */
.sand { background: var(--sand); }
.gov { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 72px); align-items: start; }
.gov .section-head { margin-bottom: 0; position: sticky; top: 32px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card svg { width: 28px; height: 28px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; }
.card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 960px) { .gov { grid-template-columns: minmax(0, 1fr); } .gov .section-head { position: static; } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Fontes conectadas */
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.sources li { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.sources strong { font-family: var(--display); font-size: 20px; color: var(--navy); }
.sources span { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sources { grid-template-columns: minmax(0, 1fr); } }

/* Para quem */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.people > div { display: flex; flex-direction: column; gap: 12px; }
.people h3 { font-size: 24px; font-weight: 700; }
.people q { quotes: none; display: block; background: var(--bubble); color: var(--navy); font-size: 16px; line-height: 1.45; padding: 14px 16px; border-radius: 18px 18px 18px 6px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* Perguntas frequentes */
.faq { display: flex; flex-direction: column; max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 72ch; }

/* Chamada final */
.cta { background: var(--gold); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: clamp(72px, 9vw, 104px); }
.cta-copy { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.cta h2 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.cta p { font-size: 19px; color: #3a2a10; }
.cta-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-ctas .btn-line { color: var(--navy); border: 1.5px solid var(--navy); font-weight: 700; }
.cta > .wrap > svg { width: 220px; height: 220px; flex-shrink: 0; }
@media (max-width: 860px) { .cta > .wrap > svg { display: none; } }

/* Rodapé */
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 48px; font-size: 15px; }
.footer .logo-word { font-size: 26px; }
.footer .logo-tag { font-size: 12px; }
.footer small { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-mute); }
.footer ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 64px; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
