/* ───────────────────────────────────────────────────────────────
   Vittória Consórcios — Guia do Consórcio (páginas de conteúdo)
   Mesmos tokens de design da LP (lp-v1/index.html).
   ─────────────────────────────────────────────────────────────── */

/* Fontes self-hosted (subset latin, variáveis) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/pjs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/jbm.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-900: oklch(16% 0.055 258);
  --navy-800: oklch(21% 0.05 258);
  --navy-700: oklch(27% 0.045 258);

  --gold: oklch(76% 0.14 72);
  --gold-dark: oklch(52% 0.11 60); /* variante sobre fundo claro: AA ≥4.5 (kicker, links, hovers) */
  --gold-soft: oklch(88% 0.08 76);

  --paper: oklch(99% 0.004 80);
  --cream: oklch(97% 0.008 80);
  --cream-2: oklch(94% 0.01 78);
  --hair: oklch(88% 0.008 258);
  --ink: oklch(18% 0.02 258);
  --ink-soft: oklch(38% 0.015 258);
  --ink-muted: oklch(53% 0.02 258); /* AA ≥4.5 sobre cream (breadcrumb, metadados, textos suaves) */

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 10px;
  --r-lg: 18px;
  --ease: 220ms cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; margin: 0 auto; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

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

/* ─── Logo ─── */
.vlogo { --l1: var(--navy-900); --l2: transparent; height: 30px; width: auto; }
.vlogo.on-navy { --l1: var(--paper); }

/* ─── Header ─── */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.site-hdr .vlogo { height: 40px; }
.hdr-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hdr-nav a { font-size: 14.5px; font-weight: 700; color: var(--ink-soft); transition: color var(--ease); }
.hdr-nav a:hover, .hdr-nav a[aria-current="true"] { color: var(--gold-dark); }
@media (max-width: 560px) {
  .hdr-inner { height: auto; flex-direction: column; gap: 8px; padding: 12px 0; }
  .site-hdr { position: static; }
}

/* ─── Breadcrumb ─── */
.crumbs { background: var(--cream); border-bottom: 1px solid var(--hair); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-muted); list-style: none; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--gold-dark); }
.crumbs [aria-current="page"] { color: var(--ink-muted); }

/* ─── Cabeçalho do artigo ─── */
.art-hero { background: var(--cream); padding: 46px 0 38px; border-bottom: 1px solid var(--hair); }
.kicker {
  display: inline-flex; align-items: center; font-size: 12px; font-family: var(--mono);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.art-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.art-meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-muted); letter-spacing: .02em; }

/* ─── Ilustração de topo ─── */
.art-illo { margin: 30px auto 6px; }
.art-illo img { width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--cream); }

/* ─── Resposta rápida (AEO) ─── */
.quick {
  margin: 34px auto 6px; padding: 22px 24px;
  background: var(--cream); border: 1px solid var(--hair); border-left: 4px solid var(--gold);
  border-radius: var(--r);
}
.quick .quick-label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px;
}
.quick p { font-size: 17.5px; font-weight: 500; color: var(--ink); }
.quick p + p { margin-top: 10px; }

/* ─── Sumário ─── */
.toc { margin: 26px auto 0; padding: 18px 22px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); }
.toc strong { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.toc a { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.toc a:hover { color: var(--gold-dark); }

/* ─── Corpo do artigo ─── */
.art-body { padding: 12px 0 64px; }
.art-body section { margin-top: 42px; }
.art-body h2 { font-size: clamp(23px, 2.8vw, 29px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.art-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 22px 0 8px; }
.art-body p { margin: 0 0 14px; color: var(--ink-soft); }
.art-body p strong, .art-body li strong { color: var(--ink); }
.art-body a:not(.btn):not(.more-card) { color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-decoration-color: oklch(76% 0.14 72 / .4); text-underline-offset: 3px; }
.art-body a:not(.btn):not(.more-card):hover { text-decoration-color: var(--gold-dark); }
.art-body ul, .art-body ol { margin: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.art-body ul li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.art-body ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.art-body ol { counter-reset: item; }
.art-body ol li { position: relative; padding-left: 34px; color: var(--ink-soft); counter-increment: item; }
.art-body ol li::before {
  content: counter(item); position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px; border-radius: 50%; background: var(--navy-900); color: var(--paper);
  font-family: var(--mono); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Tabela comparativa */
.tbl-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--hair); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.cmp th, table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.cmp thead th { background: var(--navy-900); color: var(--paper); font-size: 13.5px; letter-spacing: .02em; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody th { font-weight: 700; color: var(--ink); background: var(--cream); white-space: nowrap; }
table.cmp td { color: var(--ink-soft); }

/* Aviso / nota */
.note {
  margin: 18px 0; padding: 16px 18px; border: 1px solid var(--gold-soft); background: oklch(97% 0.02 80);
  border-radius: var(--r); font-size: 15px; color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.faq-item { border: 1px solid var(--hair); border-radius: var(--r); padding: 20px 22px; background: var(--paper); }
.faq-item h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 8px; }
.faq-item p { margin: 0 0 8px; font-size: 16px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ─── Referências ─── */
.refs { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--hair); }
.refs h2 { font-size: 15px !important; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.refs ul { gap: 6px; }
.refs li { font-size: 14.5px; }

/* ─── Continue no guia ─── */
.more { background: var(--cream); border-top: 1px solid var(--hair); padding: 56px 0 64px; }
.more h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .more-grid { grid-template-columns: 1fr; } }
.more-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px;
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-lg);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.more-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px oklch(20% 0.03 258 / .09); border-color: var(--gold-soft); }
.mc-chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; line-height: 1;
}
.mc-head { display: flex; align-items: center; gap: 14px; }
.mc-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  background: var(--navy-900); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.mc-ico svg { width: 24px; height: 24px; }
.more-card h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.22; color: var(--ink); }
.more-card p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }
.mc-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1.5px solid var(--hair); border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--navy-900); line-height: 1;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.mc-cta svg { width: 15px; height: 15px; transition: transform var(--ease); }
.more-card:hover .mc-cta { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.more-card:hover .mc-cta svg { transform: translateX(3px); }

/* ─── Hub (índice do guia) ─── */
.hub-grid-title { margin-bottom: 4px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
@media (max-width: 820px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-grid .more-card h3 { font-size: 18.5px; }

/* ─── Glossário ─── */
.gloss dl { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.gloss dt { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.gloss dd { margin: 4px 0 0; color: var(--ink-soft); padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.gloss dd:last-child { border-bottom: none; }

/* ─── CTA ─── */
.cta { background: var(--navy-900); color: var(--paper); padding: 60px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta .kicker { color: var(--gold); margin-bottom: 0; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.cta p { color: oklch(84% 0.015 258); max-width: 640px; }
.cta .btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 14px 26px; border-radius: var(--r); background: var(--gold); color: var(--navy-900);
  font-weight: 800; font-size: 15.5px; transition: background var(--ease), transform var(--ease);
}
.cta .btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.cta .cta-alt { font-size: 14.5px; color: oklch(75% 0.015 258); }
.cta .cta-alt a { color: var(--gold); font-weight: 700; }

/* ─── Disclaimer ─── */
.legal-note { background: var(--paper); padding: 26px 0 34px; }
.legal-note p { font-size: 13px; color: var(--ink-muted); line-height: 1.6; max-width: 780px; }

/* ─── Footer ─── */
.site-foot { background: oklch(12% 0.04 258); color: oklch(72% 0.015 258); padding: 34px 0; }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.site-foot .vlogo { height: 34px; opacity: .95; }
.foot-nav { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.foot-nav a { color: oklch(72% 0.015 258); transition: color var(--ease); }
.foot-nav a:hover { color: var(--gold); }
.foot-legal { display: flex; flex-direction: column; gap: 5px; text-align: center; }
.foot-company, .foot-copy { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: oklch(60% 0.015 258); }

/* ─── Banner de cookies (LGPD) ─── */
.cookie-banner {
  position: fixed; z-index: 200; left: 50%; bottom: 20px;
  transform: translateX(-50%) translateY(160%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 32px);
  background: oklch(94% 0.012 78); color: oklch(42% 0.015 60);
  border: 1px solid oklch(88% 0.014 76); border-radius: 999px;
  padding: 8px 20px 10px; box-shadow: 0 8px 24px oklch(35% 0.04 60 / .12);
  font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}
.cookie-banner[data-state="visible"] { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner__text { margin: 0; font-weight: 500; }
.cookie-banner__link { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__link:hover { color: oklch(46% 0.11 58); }
.cookie-banner__actions { display: inline-flex; align-items: center; gap: 12px; }
.cookie-banner__sep { color: oklch(80% 0.012 76); }
.cookie-banner__btn { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: oklch(50% 0.015 60); padding: 4px 8px; border-radius: 8px; transition: color var(--ease); }
.cookie-banner__btn:hover { color: oklch(40% 0.03 62); }
.cookie-banner__btn--accept { color: oklch(40% 0.03 62); }
@media (max-width: 480px) { .cookie-banner { border-radius: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .more-card:hover, .cta .btn:hover { transform: none; }
}
