:root {
  color-scheme: light;
  --brand: #2440B3;
  --brand-2: #4F6BD6;
  --navy: #0E1A4F;
  --ink: #0B1440;
  --soft: rgba(36, 64, 179, .09);
  --soft-2: #DCE3F6;
  --fg: #1C2233;
  --muted: #6B7393;
  --line: rgba(14, 26, 79, .08);
  --ok: #12805C;
  --ok-bg: rgba(18, 128, 92, .10);
  --bad: #C2321F;
  --bad-bg: rgba(194, 50, 31, .10);
  --card: rgba(255, 255, 255, .72);
  --card-border: rgba(255, 255, 255, .92);
  --shadow: 0 1px 2px rgba(14, 26, 79, .04), 0 12px 32px -10px rgba(36, 64, 179, .18);
  --shadow-hover: 0 2px 4px rgba(14, 26, 79, .05), 0 22px 48px -14px rgba(36, 64, 179, .28);
  --hero: radial-gradient(60% 90% at 88% 0%, rgba(111, 134, 232, .55), transparent 60%),
          radial-gradient(50% 80% at 100% 100%, rgba(124, 92, 230, .38), transparent 65%),
          radial-gradient(40% 70% at 0% 100%, rgba(36, 64, 179, .55), transparent 70%),
          linear-gradient(135deg, #0B1440 0%, #14246E 45%, #2440B3 100%);
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 48px;
  --gap: clamp(28px, 4vw, 44px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font: 400 14.5px/1.5 var(--font);
  letter-spacing: -0.006em;
  background: #EEF1F9;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* Fundo animado (degradês azul e lilás da identidade) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #F4F6FC 0%, #E9EDF8 100%); }
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(60px); opacity: .55; animation: flutua 26s var(--ease) infinite alternate; }
.bg i:nth-child(1) { left: -20vmax; top: -18vmax; background: radial-gradient(circle, rgba(36, 64, 179, .35), transparent 65%); }
.bg i:nth-child(2) { right: -22vmax; top: 10vmax; background: radial-gradient(circle, rgba(124, 92, 230, .28), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.bg i:nth-child(3) { left: 10vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(140, 120, 240, .26), transparent 65%); animation-duration: 38s; animation-delay: -14s; }
@keyframes flutua { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

.ar {
  max-width: 88rem;
  margin-inline: auto;
  padding: 36px clamp(12px, 2.4vw, 32px) 40px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Navegação flutuante */
.nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  align-self: center;
  max-width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(11, 20, 64, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px -10px rgba(11, 20, 64, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow-x: auto;
  scrollbar-width: none;
  animation: entra .9s var(--ease) both;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .4s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a.on { color: var(--navy); }
.nav svg { width: 15px; height: 15px; }
.nav-ind {
  position: absolute;
  left: 0;
  top: 5px;
  height: 38px;
  width: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, .25);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
  opacity: 0;
}

/* Hero */
.hero {
  position: relative;
  margin-top: calc(-1 * (var(--nav-h) + var(--gap) + 22px));
  padding: 22px clamp(20px, 3vw, 40px) 156px;
  border-radius: 30px;
  color: #fff;
  background: var(--hero);
  background-size: 140% 140%;
  animation: hero-mov 18s ease-in-out infinite alternate, entra 1s var(--ease) both;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(11, 20, 64, .6);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: radial-gradient(80% 90% at 70% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 90% at 70% 10%, #000, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 50%;
  aspect-ratio: 1;
  right: -10%;
  top: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 180, 255, .35), transparent 60%);
  animation: brilho 12s ease-in-out infinite alternate;
}
@keyframes hero-mov { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes brilho { from { transform: translate(0, 0); } to { transform: translate(-30%, 20%); } }

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.logo { height: 78px; width: auto; color: #fff; flex: 0 0 auto; filter: drop-shadow(0 4px 18px rgba(160, 180, 255, .35)); }
.logo-nome { font-family: "AR Display", "Bodoni Moda", Didot, serif; font-size: 30px; letter-spacing: 1.5px; fill: currentColor; }
.logo-sub { font-family: "AR Sans", var(--font); font-size: 10px; font-weight: 500; letter-spacing: 5px; fill: currentColor; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-status { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.hero-main { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-top: 40px; }
.hero-txt { flex: 1 1 24rem; min-width: 0; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.hero h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.08; }
.hero h1 .h1-2 { display: block; margin-top: 10px; font-size: .42em; line-height: 1.3; letter-spacing: -0.03em; color: transparent; background: linear-gradient(90deg, #fff, #AFC0FF 55%, #C9B8FF); -webkit-background-clip: text; background-clip: text; }
.hero-lead { margin: 14px 0 0; max-width: 44rem; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.hero-lead b { color: #fff; font-weight: 600; }
.ytd { flex: 0 1 20rem; min-width: min(100%, 17rem); padding: 16px 20px 15px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(5, 10, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.ytd-lbl { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ytd-val { margin: 8px 0 8px; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.ytd-dl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.ytd-dl b { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.ytd-dl b svg { width: 12px; height: 12px; }
.ytd-dl b.up { color: #7BF0C0; background: rgba(123, 240, 192, .14); }
.ytd-dl b.down { color: #FFB4A8; background: rgba(255, 180, 168, .14); }
.chip-mes { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero-mes { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-size: 14px; font-weight: 500; white-space: nowrap; backdrop-filter: blur(8px); }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .9); }
.chip-warn { background: rgba(255, 214, 120, .18); border: 1px solid rgba(255, 214, 120, .45); color: #FFE3A3; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #5EE6A8; box-shadow: 0 0 0 0 rgba(94, 230, 168, .6); animation: pulso 2.2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(94, 230, 168, .55); } 70% { box-shadow: 0 0 0 8px rgba(94, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 230, 168, 0); } }

.erro { padding: 16px; border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad); }

/* Secções */
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-overlap { margin-top: calc(-1 * var(--gap) - 108px); position: relative; z-index: 2; }
.sec-overlap .sec-h { padding-inline: clamp(20px, 3vw, 40px); justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.sec-overlap .sec-h h2 { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.sec-overlap .sec-h p { color: rgba(255, 255, 255, .7); }
.sec-h { display: flex; align-items: flex-start; gap: 14px; }
.sec-h h2 { margin: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; color: var(--navy); line-height: 1.15; }
.sec-h p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.sec-h .num { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 1px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(14, 26, 79, .6); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 16px; }
@media (min-width: 980px) { .grid-tbl { grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 1fr); } }

/* Cartões */
.card, .kpi {
  position: relative;
  min-width: 0;
  background: var(--card);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card { padding: 22px 24px; }
.card::before, .kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 107, 214, .10), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.card:hover::before, .kpi:hover::before { opacity: 1; }
.card.done:hover, .kpi.done:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); }
.card-h p { margin: 4px 0 18px; font-size: 13px; color: var(--muted); }
.card-h p b { color: var(--bad); font-weight: 600; }

.card-dark { background: var(--hero); color: #fff; border-color: rgba(255, 255, 255, .12); }
.card-dark .card-h h3 { color: #fff; }
.card-dark .card-h p { color: rgba(255, 255, 255, .72); }
.card-dark::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .10), transparent 45%); }

/* Revelação ao fazer scroll */
.rv { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s), box-shadow .4s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv.done { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 14px; }
.kpi { padding: 18px 20px 0; overflow: hidden; display: flex; flex-direction: column; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--soft); color: var(--brand); flex: 0 0 auto; }
.ico svg { width: 18px; height: 18px; }
.kpi .lbl { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.kpi .val { margin: 16px 0 6px; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.15rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--navy); white-space: nowrap; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.delta b { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.delta b svg { width: 12px; height: 12px; }
.delta b.up { color: var(--ok); background: var(--ok-bg); }
.delta b.down { color: var(--bad); background: var(--bad-bg); }
.spark { display: block; width: calc(100% + 40px); height: 58px; margin: 10px -20px 0; overflow: visible; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--d, 0s) + .25s); }
.spark-area { opacity: 0; transition: opacity 1.4s var(--ease) calc(var(--d, 0s) + .6s); }
.spark-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease) calc(var(--d, 0s) + 1.4s); }
.in .spark-line { stroke-dashoffset: 0; }
.in .spark-area { opacity: 1; }
.in .spark-dot { transform: scale(1); }
.spark-halo { animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(1); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }

.kpi-accent { background: var(--hero); border-color: rgba(255, 255, 255, .14); color: #fff; }
.kpi-accent .lbl, .kpi-accent .val { color: #fff; }
.kpi-accent .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.kpi-accent .delta { color: rgba(255, 255, 255, .72); }
.kpi-accent .delta b.up { color: #7BF0C0; background: rgba(123, 240, 192, .14); }
.kpi-accent .delta b.down { color: #FFB4A8; background: rgba(255, 180, 168, .14); }
.kpi-accent .spark-line { stroke: #fff; }
.kpi-accent::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 45%); }

/* Mini gráficos de barras */
.chart { min-height: 10rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.1s var(--ease) calc(var(--i) * 70ms + .1s), opacity .3s; }
.in .chart .bar { transform: scaleY(1); }
.chart .bar:hover { opacity: .8; }
.chart .bub { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease) .8s, transform .6s var(--ease) .8s; }
.in .chart .bub { opacity: 1; transform: none; }
.tick { fill: var(--muted); font-size: 11.5px; }
.bub-t { fill: #fff; font-size: 11px; font-weight: 600; }

/* Funil */
.funil { display: flex; flex-direction: column; gap: 12px; }
.f-row { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr auto; gap: 6px 12px; align-items: center; font-size: 13px; }
.f-row .tr { height: 26px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.f-row .fl { height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--navy), var(--brand) 60%, var(--brand-2)); box-shadow: 0 6px 14px -6px rgba(36, 64, 179, .6); transition: width 1.3s var(--ease) calc(var(--i) * 110ms + .15s); }
.f-row .fl.crit { background: linear-gradient(90deg, #8F1F12, var(--bad) 70%, #E0614F); box-shadow: 0 6px 14px -6px rgba(194, 50, 31, .6); }
.in .f-row .fl { width: var(--w); }
.f-row .v { min-width: 3rem; text-align: right; font-weight: 600; color: var(--navy); }
.f-row .c { grid-column: 2 / 4; margin-top: -2px; font-size: 12px; color: var(--muted); }
.f-row .c b { font-weight: 600; color: var(--brand); }
.f-row .c.crit b { color: var(--bad); }

/* Medidores segmentados */
.meters { display: flex; flex-direction: column; gap: 6px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background .3s var(--ease); }
.m-row:hover { background: rgba(255, 255, 255, .7); }
.m-row .n { font-size: 13.5px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.segs { display: flex; gap: 3px; }
.segs i { width: 5px; height: 18px; border-radius: 2px; background: var(--soft-2); transition: background .4s var(--ease) calc(var(--j) * 28ms + .2s), transform .4s var(--ease) calc(var(--j) * 28ms + .2s); }
.in .segs i.f { background: var(--brand); }
.in .segs i.f:nth-child(odd) { transform: scaleY(1); }
.m-row .v { min-width: 4.4rem; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--navy); }

/* Tabelas */
.tbl { overflow-x: auto; margin-inline: -8px; padding-inline: 8px; }
.tbl table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { text-align: right; padding: 0 10px 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { text-align: right; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--fg); transition: background .25s; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: #FAFBFE; }
.tbl td:first-child { font-weight: 600; color: var(--navy); }
.tbl tbody tr:hover td { background: #F0F3FC; }
.tbl tbody tr:hover td:first-child { background: #F0F3FC; }
.tbl td.zero { color: #A6ACC4; }
.in .tbl tbody tr { animation: linha .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .2s); }
@keyframes linha { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pill { display: inline-block; min-width: 3.6rem; text-align: center; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 600; }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.zero { background: rgba(14, 26, 79, .05); color: #A6ACC4; }

/* Gráficos circulares */
.donut { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.donut-sp { margin-top: 22px; }
.donut .ring { position: relative; flex: 0 0 auto; width: min(100%, 11.5rem); }
.donut svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.donut .seg { fill: none; stroke-width: 20; stroke-linecap: round; stroke-dasharray: 0 1000; transition: stroke-dasharray 1.4s var(--ease) calc(var(--i) * 140ms + .2s), stroke-width .35s var(--ease), opacity .35s; cursor: pointer; }
.in .donut .seg { stroke-dasharray: var(--len) 1000; }
.donut .seg:hover { stroke-width: 25; }
.donut svg:hover .seg:not(:hover) { opacity: .45; }
.donut .track { fill: none; stroke: var(--soft); stroke-width: 20; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut .center small { font-size: 11.5px; color: var(--muted); }
.donut .center b { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: var(--navy); }
.leg { list-style: none; margin: 0; padding: 0; flex: 1 1 13rem; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.leg li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; transition: background .25s; }
.leg li:hover { background: rgba(255, 255, 255, .75); }
.leg i { width: 10px; height: 10px; border-radius: 50%; }
.leg span:nth-child(3) { font-weight: 600; color: var(--navy); }
.leg span:last-child { min-width: 3.4rem; text-align: right; color: var(--muted); }

/* Carteira */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .3s var(--ease); }
.stat:hover { background: rgba(255, 255, 255, .13); }
.stat .lbl { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.stat .val { margin-top: 8px; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.progress { margin-top: 18px; }
.progress .p-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.progress .p-h b { color: #fff; font-weight: 600; }
.progress .tr { margin-top: 8px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progress .fl { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #8FA3F5, #fff); box-shadow: 0 0 16px rgba(255, 255, 255, .5); transition: width 1.6s var(--ease) .4s; }
.in .progress .fl { width: var(--w); }

/* Tooltip */
.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(11, 20, 64, .55);
  opacity: 0;
  transform: translateY(4px) scale(.97);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.tip.on { opacity: 1; transform: none; }
.tip .k { opacity: .7; font-size: 11.5px; }
.tip b { font-weight: 600; }

.rodape { text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .hero-top { height: auto; margin-top: calc(var(--nav-h) + 16px); align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 196px; }
  .sec-overlap { margin-top: calc(-1 * var(--gap) - 168px); }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .hero-status { justify-content: flex-start; }
  .ytd { flex-basis: 100%; }
  .logo { height: 62px; }
  .nav a { padding: 0 12px; }
  .f-row { grid-template-columns: minmax(5.5rem, 7rem) 1fr auto; }
  .m-row { grid-template-columns: 1fr auto; }
  .m-row .segs { grid-column: 1 / 3; grid-row: 2; }
  .segs i { flex: 1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}
