/* KoteAuto — folha de estilo das páginas de conteúdo
   Paleta de dados validada para modo claro (contraste >= 3:1 sobre a superfície). */

:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-tint: #e8f1fc;
  --border: #dbe4ee;
  --border-strong: #c3d2e2;

  --text-strong: #17324d;
  --text: #2c4560;
  --text-muted: #5b7189;

  --accent: #2a78d6;
  --accent-deep: #184f95;
  --accent-soft: #86b6ef;
  --accent-wash: #f0f6fd;

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --ordinal-1: #86b6ef;
  --ordinal-2: #5598e7;
  --ordinal-3: #2a78d6;
  --ordinal-4: #184f95;
  --neutral-mark: #c3ccd7;

  --radius: 16px;
  --shadow: 0 18px 40px -32px rgba(16, 35, 58, 0.45);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent-deep); }

/* ---------- Cabeçalho e abas ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  width: min(var(--maxw), calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.site-header-inner > nav {
  min-width: 0;
  margin-left: auto;
}

.brand { flex: 0 0 auto; }

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13.6px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.tabs a:hover { background: var(--surface-tint); color: var(--accent-deep); }

.tabs a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--maxw), calc(100vw - 32px));
  margin: 0 auto;
}

main.wrap { padding: 34px 0 20px; }

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-head { max-width: 78ch; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(30px, 4.4vw, 45px);
  line-height: 1.13;
  letter-spacing: -0.022em;
  color: var(--text-strong);
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(18px, 2.1vw, 20.5px);
  line-height: 1.58;
  color: var(--text);
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(23px, 2.7vw, 29px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 46px 0 14px;
  scroll-margin-top: 84px;
}

h3 {
  font-size: 19.5px;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 30px 0 10px;
}

p { margin: 0 0 16px; max-width: 78ch; }

ul, ol { max-width: 78ch; padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

strong { color: var(--text-strong); }

section > *:first-child { margin-top: 0; }

/* ---------- Blocos ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.answer-box {
  background: var(--accent-wash);
  border: 1px solid #cfe1f7;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 26px 0;
}

.answer-box p:last-child { margin-bottom: 0; }

.answer-box .answer-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0 34px;
}

.tldr h2 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.tldr ul { margin-bottom: 0; }

.status-note {
  font-size: 14.5px;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 22px 0;
  max-width: 78ch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.tile h3 { margin: 0 0 8px; font-size: 17.5px; }
.tile p { margin: 0; font-size: 15.5px; color: var(--text-muted); }

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.stat-value {
  display: block;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
  margin-bottom: 6px;
}

.stat-label { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.stat-base { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------- Tabelas ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 6px;
  font-size: 14px;
  color: var(--text-muted);
}

th, td {
  padding: 11px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-soft);
}

tbody tr:last-child td { border-bottom: none; }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Figuras e gráficos ---------- */

figure {
  margin: 26px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 26px);
}

figure > svg { display: block; width: 100%; height: auto; }

figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.chart-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 4px;
}

.chart-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.figure-scroll { overflow-x: auto; }

details.data-table {
  margin-top: 14px;
  font-size: 15px;
}

details.data-table summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  padding: 6px 0;
}

details.data-table table { margin-top: 8px; }

/* ---------- Citações ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-soft);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

blockquote p { margin: 0 0 8px; }
blockquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 14px 0;
}

.faq-item h3 { margin: 0 0 10px; font-size: 19px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Passos ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; margin: 24px 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
  border-left: 2px solid var(--border);
  margin-left: 15px;
}

.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { display: block; color: var(--text-strong); margin-bottom: 2px; }

/* ---------- CTA e rodapé ---------- */

.cta {
  background: linear-gradient(140deg, #1d5da8, #17324d);
  color: #eaf2fb;
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 38px);
  margin: 46px 0 10px;
}

.cta h2 { color: #fff; margin: 0 0 12px; }
.cta p { color: #d3e2f2; }

.cta-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid transparent;
}

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 54px;
  padding: 30px 0 46px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.site-footer .wrap { display: grid; gap: 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-strong); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }

.updated { font-size: 13.5px; color: var(--text-muted); margin: 30px 0 0; }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .site-header-inner { padding: 10px 0; }
  .site-header-inner { gap: 12px; }
  .steps li { padding-left: 42px; }
}
