/* Inter hospedada no próprio site (variável, pesos 400 a 800): sem pedido a terceiros bloqueando a 1ª pintura. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-var-latin.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: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --bg-3: #eef2f8;
  --ink: #0b0c0f;
  --ink-2: #3a4052;
  --muted: #646c80;
  --line: #e4e8f0;
  --line-2: #d3dae8;
  --brand: #ff5a36;
  --brand-2: #ff7a45;
  --brand-soft: rgba(255, 90, 54, 0.11);
  --navy: #0f1b33;
  --navy-2: #19294a;
  --cyan: #0284c7;
  --ok: #10b981;
  --r: 22px;
  --r-sm: 14px;
  --sh: 0 10px 30px rgba(15, 27, 51, 0.05), 0 2px 8px rgba(15, 27, 51, 0.03);
  --sh-lg: 0 24px 60px rgba(15, 27, 51, 0.10), 0 4px 16px rgba(15, 27, 51, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
  transition: box-shadow .2s ease;
}
.nav.scrolled {
  box-shadow: 0 6px 24px rgba(15, 27, 51, 0.07);
}
.nav-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.brand-name { font-size: 16px; white-space: nowrap; }
.brand-sep { width: 1px; height: 14px; background: var(--line-2); }
.brand-sub { font-size: 13px; font-weight: 600; color: var(--muted); }

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover { color: var(--brand); }

.nav-meta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 90, 54, 0.10), transparent 60%),
    radial-gradient(760px 380px at 10% 0%, rgba(15, 27, 51, 0.05), transparent 60%),
    linear-gradient(180deg, #fafbfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-mark {
  display: block;
  width: auto;
  height: 74px;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Base do estudo: gabaritos coletados e processados, logo abaixo do selo do relatório */
.hero-gabaritos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: -6px 0 24px;
}
.hero-gabaritos .hg-item { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-gabaritos .hg-num {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-gabaritos .hg-destaque { color: var(--brand); }
.hero-gabaritos .hg-lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-gabaritos .hg-sep { font-size: 22px; line-height: 1; color: var(--line-2); }
h1 {
  font-size: clamp(38px, 5.8vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(135deg, var(--brand) 0%, #d9381e 55%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 0 40px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 26px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.stat-num {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.stat-num-sm {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.stat-sep {
  width: 1px;
  height: 54px;
  background: var(--line);
}
.stat-pair {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

/* Sections */
.sec {
  padding: 68px 0;
  scroll-margin-top: 72px;
}
.sec-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
}
.kicker-sm {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
  margin: 0 0 12px;
}
h3 {
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0 0 8px;
}
.sec-sub {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}

/* Area cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.acard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px 22px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.acard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-2);
}
.acard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.acard-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--navy);
  border: 1px solid var(--line);
}
.acard-dia {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.acard-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.acard-med {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.acard-med-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.acard-spark {
  height: 44px;
  margin: 4px 0 14px;
}
.acard-spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.acard-meta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  font-size: 12.5px;
}
.acard-meta div span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.acard-meta div strong {
  font-weight: 600;
  color: var(--ink);
}

/* Panels & Tabs */
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
  margin-top: 24px;
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.panel-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.tabs {
  display: inline-flex;
  background: var(--bg-2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  gap: 2px;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 27, 51, 0.08);
}

/* Interactive Chart */
.chart-wrap {
  width: 100%;
  height: 330px;
  position: relative;
}
#dist-chart {
  width: 100%;
  height: 100%;
  display: block;
}
.legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lg-band {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 90, 54, 0.20);
  border: 1px solid rgba(255, 90, 54, 0.45);
  display: inline-block;
}
.lg-med {
  width: 14px;
  height: 2px;
  background: var(--navy);
  display: inline-block;
}

/* Table */
.table-scroll {
  max-height: 540px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.dtable thead th {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.dtable thead th:first-child,
.dtable tbody td:first-child {
  text-align: left;
  padding-left: 20px;
}
.dtable tbody td {
  text-align: right;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: rgba(15, 27, 51, 0.025); }
.dtable td.med-cell {
  font-weight: 700;
  color: var(--ink);
}
.col-bar { width: 180px; }
.bar-track {
  position: relative;
  height: 7px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 90, 54, 0.30), var(--brand));
  border-radius: 999px;
}

/* Comparisons & Grid2 */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card-lg {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
}
.card-p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lrow-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.lrow-top strong { font-weight: 700; }
.lrow-sub { color: var(--muted); font-size: 12.5px; }
.lbar {
  height: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.lbar-in {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.lbar-in.alt {
  background: linear-gradient(90deg, var(--navy), #354a78);
}

.cores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cor-box {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.cor-area {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.cor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.cor-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh);
}
.step-num {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.step p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
}

.notice {
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.notice-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.notice p { margin: 0; }

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  box-shadow: var(--sh);
}
.faq summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* CTA */
.cta-sec {
  padding: 68px 0;
}
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1c2d52 100%);
  color: #fff;
  border-radius: var(--r);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--sh-lg);
}
.cta-box h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

/* Footer */
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  object-fit: contain;
  flex: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Editorial Figure Cards (.fig) */
.fig {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.fig:hover {
  box-shadow: var(--sh-lg);
  border-color: var(--line-2);
}
.fig-head {
  max-width: 820px;
}
.fig-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.fig-head h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.fig-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.grid2.figs {
  margin-top: 24px;
  align-items: stretch;
}
.grid2.figs .fig {
  margin-top: 0;
}

.zoom {
  appearance: none;
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f7f9;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.zoom:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}
.zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(15, 27, 51, 0.82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 0.88;
  transition: opacity .15s, background .15s;
  pointer-events: none;
}
.zoom:hover .zoom-hint {
  opacity: 1;
  background: var(--brand);
}

/* Interactive 180 CCI Explorer */
.cci-explorer {
  margin-top: 0;
  padding: 28px;
}
.cci-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.cci-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cci-ctrl-lbl {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cci-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.cci-grid-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cci-all-btn {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--navy);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.cci-all-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cci-all-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.cci-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 22px;
}
.qbtn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 10px;
  padding: 7px 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all .14s ease;
  font-variant-numeric: tabular-nums;
}
.qbtn:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}
.qbtn .qdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.qbtn.lvl-easy .qdot { background: #10b981; }
.qbtn.lvl-med .qdot { background: #6366f1; }
.qbtn.lvl-hard .qdot { background: #f59e0b; }
.qbtn.lvl-anul {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}
.qbtn.lvl-anul .qdot { background: #dc2626; }
.qbtn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 27, 51, 0.22);
}
.qbtn.dimmed {
  opacity: 0.28;
}

.cci-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cci-chart-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 12px;
}
.cci-chart-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cci-chart-hdr strong {
  font-size: 14px;
  color: var(--ink);
}
.cci-chart-hdr span {
  font-size: 12px;
  color: var(--muted);
}
.cci-chart-box svg {
  width: 100%;
  height: 270px;
  display: block;
}

.cci-meta-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cci-mcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.cci-mcard span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
}
.cci-mcard strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.cci-mcard small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1280px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cci-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .cci-charts { grid-template-columns: 1fr; }
  .cci-meta-bar { grid-template-columns: repeat(3, 1fr); }
  .grid2, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-meta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--sh);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 48px 0 44px; }
  .hero-stats { padding: 20px; gap: 18px; }
  .stat-sep { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cores-grid { grid-template-columns: 1fr; }
  .cci-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cci-meta-bar { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 48px 0; }
  .panel, .card-lg, .fig, .cci-explorer { padding: 18px; }
  .cta-box { padding: 28px 24px; }
  .col-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .acard { transition: none; }
}


/* ================= Correções de 19/11/2026 ================= */
[hidden] { display: none !important; } /* regras com display:flex escondiam o atributo hidden (seletor de idioma fora de Linguagens) */

/* Aviso de carregamento ou de falha do arquivo de dados */
.dados-aviso {
  max-width: 1120px; margin: 18px auto 0; padding: 14px 18px;
  border: 1px solid var(--line-2); border-left: 4px solid var(--brand); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink); font-size: 15px; font-weight: 500;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.aviso-btn {
  appearance: none; border: 0; border-radius: 10px; background: var(--navy); color: #fff;
  font: 600 14px/1 inherit; font-family: inherit; padding: 12px 18px; min-height: 44px; cursor: pointer;
}
/* Enquanto os dados não chegam (ou se falharem), as seções que dependem deles não aparecem vazias. */
.carregando main > section:not(.hero), .sem-dados main > section:not(.hero) { display: none; }
/* Sem o rodapé na tela durante a espera: quando as seções entram, nada visível muda de lugar. */
.carregando .foot, .sem-dados .foot { display: none; }
/* O topo guarda o espaço das frases e dos destaques que chegam com os dados. */
.hero .lead { min-height: 6.4em; }
.hero-stats { min-height: 118px; }
.hero-gabaritos { min-height: 36px; }
.hero-gabaritos[hidden] { display: flex !important; visibility: hidden; }
.hero-stats[hidden] { display: flex !important; visibility: hidden; }
.aviso-estimativa { min-height: 2.9em; }
.aviso-estimativa[hidden] { display: block !important; visibility: hidden; }
.hero .lead[hidden] { display: block !important; visibility: hidden; }
.aviso-estimativa { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
#foot-meta span + span::before { content: " · "; }

/* Topo: destaques vindos do dados.json */
.hero-stats .stat, .hero-stats .stat-sm { min-width: 0; }

/* Figuras desenhadas no navegador */
.fig-svg { width: 100%; min-width: 0; }
.zoom-btn {
  appearance: none; align-self: flex-start; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--ink-2); font: 600 13px/1 inherit; font-family: inherit; padding: 0 16px; min-height: 44px;
  border-radius: 10px; cursor: zoom-in;
}
.zoom-btn:hover { border-color: var(--brand); color: var(--ink); }

/* Modal de ampliar: a figura abre grande e rola dentro do palco, inclusive no celular */
.modal-aberto, .modal-aberto body { overflow: hidden; }
.lightbox { padding: 64px 12px 12px; place-items: stretch; }
.lb-palco {
  overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 14px;
  padding: 16px; max-width: 1400px; width: 100%; margin: 0 auto; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lb-palco .lb-fig { min-width: 0; width: 100%; }
.lb-palco .lb-img { display: block; max-width: none; width: auto; height: auto; border-radius: 0; box-shadow: none; }
.lb-close { top: 10px; right: 12px; }

/* Foco visível em todos os controles */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Alvos de toque com pelo menos 44 px */
.tab { min-height: 44px; }
.qbtn { min-height: 44px; }
.cci-all-btn { min-height: 44px; }
.faq summary { min-height: 44px; }
.nav-toggle { width: 44px; height: 44px; }

@media (max-width: 680px) {
  .nav-links a { padding: 11px 0; min-height: 44px; display: flex; align-items: center; }
  .nav-links { gap: 0; }
  .dados-aviso { margin: 14px 18px 0; }
  .lb-palco { padding: 10px; }
  .lb-palco .lb-fig { width: 170vw; } /* no celular a figura abre 1,7 vez maior e rola para os lados */
  .hero .lead { min-height: 9.6em; }
  .hero-gabaritos { min-height: 64px; row-gap: 8px; }
  .hero-gabaritos .hg-sep { display: none; }
  .hero-stats { min-height: 250px; }
  .aviso-estimativa { min-height: 5.6em; }
}
.fig-nota { margin: 0; font-size: 12px; color: var(--muted); }
/* Figuras com vários painéis ocupam a largura toda (lado a lado ficavam com 4 gráficos empilhados e um card vazio ao lado). */
.figs-col { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.figs-col .fig { margin-top: 0; }

/* H1 novo (19/11): frase mais longa, corpo menor para caber em 3 linhas no desktop. */
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; max-width: 980px; }

/* ===== Banner de consentimento: cópia de xtri-theme/assets/css/consent.css (ver 3.3.3) ===== */
/* Banner de consentimento (LGPD) — usa os tokens visuais do tema. */
.xtri-consent[hidden] {
	display: none !important;
}

.xtri-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	background: var(--x-white, #fff);
	color: var(--x-body, #4a505a);
	border: 1px solid var(--x-line, #e4e6ea);
	border-radius: var(--x-radius, 18px);
	box-shadow: var(--x-shadow-lg, 0 30px 70px -28px rgba(18, 20, 24, .38));
	padding: 18px 20px;
	font: 14px/1.55 var(--x-f-body, 'Inter', system-ui, sans-serif);
	max-width: 1080px;
	margin: 0 auto;
}

.xtri-consent__inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.xtri-consent__text {
	flex: 1 1 auto;
	min-width: 0;
}

.xtri-consent__text strong {
	display: block;
	color: var(--x-ink, #121418);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.xtri-consent__text p {
	margin: 0;
}

.xtri-consent__text a {
	color: var(--x-cyan-ink, #0a86c8);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xtri-consent__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.xtri-consent__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	min-height: 42px;
	padding: 10px 20px;
	font: 600 14px/1 var(--x-f-body, 'Inter', system-ui, sans-serif);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
	white-space: nowrap;
}

.xtri-consent__btn:hover {
	transform: translateY(-1px);
}

.xtri-consent__btn:focus-visible,
.xtri-consent__prefs:focus-visible {
	outline: 3px solid var(--x-cyan, #1eb8ff);
	outline-offset: 2px;
}

.xtri-consent__btn--primary {
	background: var(--x-orange, #ff5a2e);
	color: #fff;
}

.xtri-consent__btn--primary:hover {
	background: var(--x-orange-ink, #d9441a);
}

.xtri-consent__btn--ghost {
	background: transparent;
	color: var(--x-ink, #121418);
	border-color: var(--x-line, #e4e6ea);
}

.xtri-consent__btn--ghost:hover {
	border-color: var(--x-ink, #121418);
}

.xtri-consent__prefs {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

@media (max-width: 720px) {
	.xtri-consent {
		left: 10px;
		right: 10px;
		bottom: 10px;
		padding: 16px;
	}

	.xtri-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.xtri-consent__actions {
		justify-content: flex-end;
	}

	.xtri-consent__btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xtri-consent__btn,
	.xtri-consent__btn:hover {
		transition: none;
		transform: none;
	}
}

/* O link de preferências entra no rodapé pelo consent.js. */
.xtri-consent__prefs { display: inline-flex; align-items: center; min-height: 44px; }
/* Cores do banner com contraste AA neste site (no tema do xtri.online o laranja e o azul ficam abaixo de 4,5:1 em texto de 14 px). */
.xtri-consent { --x-orange: #c8401f; --x-orange-ink: #b93a15; --x-cyan-ink: #0369a1; }

/* 19/11: ao rolar até os gráficos das CCIs (toque em filtro ou questão no celular), sobra o espaço da barra fixa. */
.cci-stage { scroll-margin-top: 78px; }

/* 19/11: nível pelo % de acerto. Questão sem nível no arquivo: ponto vazio. Frase do critério, quando vier no dados.json. */
.qbtn.lvl-sem .qdot { background: transparent; border: 1px solid #c3cad8; }
.cci-nivel-nota { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* Plataforma XTRI: chamada para o checkout do plano do aluno (21/11/2026) */
.plat-sec { padding: 0 0 68px; }
.plat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 34px; box-shadow: var(--sh);
  display: grid; justify-items: start; gap: 12px;
}
.plat__selo {
  margin: 0; padding: 7px 12px; border-radius: 999px;
  background: #e6f4fb; color: #0369a1;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.plat h2 { margin: 0; }
.plat__txt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.plat__plano {
  margin: 4px 0 8px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--bg-2); font-size: 15px; line-height: 1.55; color: var(--ink);
}
.plat__cta { margin: 0; }
.plat__btn { background: var(--navy); color: #fff; }
.plat__btn:hover { background: var(--navy-2); }
@media (max-width: 640px) {
  .plat-sec { padding-bottom: 48px; }
  .plat { padding: 24px 20px; }
  .plat__cta { width: 100%; }
  .plat__btn { width: 100%; }
}
