/* Interconexão: componentes visuais na linguagem do site.
   Complementa softphone.css (sp-*). Cores vêm dos tokens de flux-ds.css,
   então tudo segue o tema escuro (padrão) e o claro (data-theme="light"). */

.ic-mt {
  margin-top: 1rem;
}

/* Celular: 16 px de respiro lateral em todas as seções da página */
@media (max-width: 640px) {
  .ic-page > section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.ic-note {
  color: hsl(var(--ink-muted));
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
  text-align: right;
}

.ic-link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: hsl(var(--primary) / 0.35);
  text-underline-offset: 3px;
}

.ic-link:hover {
  text-decoration-color: hsl(var(--primary));
}

/* Animações em loop só rodam com o bloco visível (classe ic-run via JS) */
.js [data-ic-anim]:not(.ic-run),
.js [data-ic-anim]:not(.ic-run) *,
.js [data-ic-anim]:not(.ic-run) *::before,
.js [data-ic-anim]:not(.ic-run) *::after {
  animation-play-state: paused !important;
}

/* ---------- Abertura: mapa de pontos com as operadoras acendendo ---------- */
.ic-hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
  width: 100%;
}

@media (min-width: 1000px) {
  .ic-hero {
    gap: 3.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ic-hero-copy {
  min-width: 0;
}

.ic-dot::before {
  background: hsl(var(--primary));
  border-radius: 50%;
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18);
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 0.75rem;
  vertical-align: 2px;
  width: 7px;
}

.ic-h1 {
  color: hsl(var(--ink-strong));
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  margin: 1rem 0 0;
}

.ic-display {
  display: block;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 1;
  padding-bottom: 0.08em;
  width: fit-content;
}

.ic-h1-sub {
  display: block;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 0.6rem;
}

.ic-hero-lead {
  color: hsl(var(--ink-secondary));
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1.5rem 0 0;
  max-width: 36rem;
}

.ic-bigstat {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2.25rem;
}

.ic-bigstat b {
  display: block;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ic-bigstat > div > span {
  color: hsl(var(--ink-muted));
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.ic-dotwrap {
  min-width: 0;
  position: relative;
}

.ic-dotstage {
  aspect-ratio: 633 / 659;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: min(100%, 480px);
}

.ic-dotstage::before {
  background: radial-gradient(circle, hsl(var(--primary) / 0.28), transparent 65%);
  border-radius: 50%;
  content: "";
  filter: blur(30px);
  inset: 8%;
  position: absolute;
}

.ic-dimdots {
  height: 100%;
  inset: 0;
  opacity: 0.5;
  position: absolute;
  width: 100%;
}

/* a onda corre só por dentro dos pontos do mapa */
.ic-wavewrap {
  inset: 0;
  -webkit-mask: url(../images/interconexao/01-abertura-mapa-pontos.webp) center / 100% 100% no-repeat;
  mask: url(../images/interconexao/01-abertura-mapa-pontos.webp) center / 100% 100% no-repeat;
  overflow: hidden;
  position: absolute;
}

.ic-dwave {
  animation: ic-dwave 5.5s cubic-bezier(0.3, 0.1, 0.4, 1) infinite;
  aspect-ratio: 1;
  background: radial-gradient(circle, transparent 0 30%, #34def4 37%, #ffffff 40%, #34def4 43%, transparent 52%);
  border-radius: 50%;
  left: 56.08%;
  position: absolute;
  top: 85.89%;
  transform: translate(-50%, -50%) scale(0.02);
  width: 300%;
  will-change: transform, opacity;
}

.ic-dwave.w2 {
  animation-delay: 2.75s;
}

@keyframes ic-dwave {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.02);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.ic-dotmap {
  height: 100%;
  inset: 0;
  overflow: visible;
  position: absolute;
  width: 100%;
}

.ic-opd {
  fill: #cbd5e1;
}

.ic-opr {
  fill: none;
  opacity: 0;
  stroke: #3ddff5;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
}

.js .ic-opd {
  opacity: 0;
}

.ic-run .ic-opd {
  animation: ic-opin 0.6s forwards;
  animation-delay: var(--o);
}

.ic-run .ic-opr {
  animation: ic-hub 2.4s ease-out infinite;
  animation-delay: var(--o);
}

@keyframes ic-opin {
  to {
    filter: drop-shadow(0 0 6px rgba(61, 223, 245, 0.45));
    opacity: 1;
  }
}

.ic-hqd {
  animation: ic-blink 1.4s ease-in-out infinite;
  fill: #ffd57c;
  filter: drop-shadow(0 0 8px #ffb547);
}

.ic-hqr {
  animation: ic-hub 2s ease-out infinite;
  fill: none;
  stroke: #f5ba3d;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ic-hub {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

@keyframes ic-blink {
  50% {
    opacity: 0.25;
  }
}

.ic-goal {
  align-items: center;
  backdrop-filter: blur(8px);
  background: hsl(var(--surface) / 0.85);
  border: 1px solid hsl(var(--primary) / 0.4);
  border-radius: 18px;
  box-shadow: 0 18px 44px hsl(var(--primary) / 0.18);
  display: flex;
  gap: 0.9rem;
  margin: -1.5rem auto 0;
  max-width: 100%;
  padding: 0.85rem 1.1rem;
  position: relative;
  width: fit-content;
}

.ic-goal b {
  background: linear-gradient(100deg, hsl(var(--primary)), #6fe3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.ic-goal span {
  color: hsl(var(--ink-secondary));
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ic-goal em {
  color: hsl(var(--primary));
  font-style: normal;
}

/* ---------- Expansão nacional: mapa por UF ---------- */
.ic-exp {
  align-items: center;
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .ic-exp {
    gap: 4rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.ic-counter {
  display: flex;
  gap: 2rem;
}

.ic-counter b {
  display: block;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  width: fit-content;
}

.ic-counter span {
  color: hsl(var(--ink-muted));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ic-regions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ic-rg {
  align-items: center;
  background: hsl(var(--surface-soft));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
  border-radius: 14px;
  color: hsl(var(--ink-muted));
  display: grid;
  font-weight: 600;
  gap: 0.4rem 0.75rem;
  grid-template-columns: 14px 1fr auto;
  padding: 0.65rem 1rem;
  transition: all 0.6s;
}

.ic-rg i {
  border: 2px solid hsl(var(--ink-strong) / 0.15);
  border-radius: 50%;
  height: 14px;
  transition: all 0.5s;
  width: 14px;
}

.ic-rg em {
  color: hsl(var(--ink-muted));
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ic-bar {
  background: hsl(var(--ink-strong) / 0.06);
  border-radius: 3px;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
}

.ic-bar s {
  background: linear-gradient(90deg, hsl(var(--primary)), #34dbf4);
  display: block;
  height: 100%;
  transition: width 1.4s ease;
  width: 0;
}

.ic-rg.on {
  border-color: rgba(61, 221, 245, 0.45);
  box-shadow: 0 0 24px rgba(61, 221, 245, 0.08);
  color: hsl(var(--ink-strong));
}

.ic-rg.on i {
  background: #34dbf4;
  border-color: #3dddf5;
  box-shadow: 0 0 12px rgba(61, 221, 245, 0.45);
}

.ic-rg.on em {
  color: #22c3dd;
}

.ic-rg.on .ic-bar s {
  width: 100%;
}

@media (max-width: 899px) {
  .ic-regions {
    display: none;
  }
}

.ic-mapbox {
  aspect-ratio: 633 / 659;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: min(100%, 560px);
}

.ic-bmap {
  height: 100%;
  overflow: visible;
  width: 100%;
}

.ic-ufg-a {
  stop-color: #1e5fd0;
}

.ic-ufg-b {
  stop-color: hsl(var(--primary) / 0.35);
}

.ic-bmap .uf {
  fill: hsl(var(--surface-muted));
  stroke: hsl(var(--primary) / 0.55);
  stroke-width: 0.9;
  transition: fill 0.8s ease, stroke 0.8s;
}

.ic-bmap.lit .uf,
.ic-bmap .uf.lit {
  fill: url(#ic-ufg);
  stroke: #3dc3f5;
}

.ic-bmap .uf.flash {
  animation: ic-ufflash 1.1s ease-out;
}

@keyframes ic-ufflash {
  0% {
    fill: #5e81f4;
  }
  100% {
    fill: url(#ic-ufg);
  }
}

.ic-bmap .net {
  opacity: 1;
  transition: opacity 1.2s 0.6s;
}

.js .ic-mapbox:not(.ic-run) .net {
  opacity: 0;
}

.ic-bmap .mesh {
  fill: none;
  opacity: 0.45;
  stroke: #3dbef5;
  stroke-width: 0.9;
}

.ic-bmap .mv {
  fill: #5e81f4;
  filter: url(#ic-glw);
}

.ic-bmap .nd {
  fill: #8fa6fa;
}

.ic-bmap .hd {
  fill: #cbd5e1;
  filter: url(#ic-glw);
}

.ic-bmap .hr {
  animation: ic-hub 2.2s ease-out infinite;
  fill: none;
  stroke: #3ddff5;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
}

.ic-toast {
  backdrop-filter: blur(6px);
  background: hsl(var(--surface) / 0.88);
  border: 1px solid rgba(61, 221, 245, 0.5);
  border-radius: 99px;
  bottom: 2%;
  color: hsl(var(--ink-strong));
  font-size: 0.7rem;
  font-weight: 600;
  left: 50%;
  letter-spacing: 0.06em;
  max-width: 94%;
  padding: 0.6rem 1rem;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.8s;
  width: max-content;
}

.ic-toast i {
  animation: ic-blink 1s infinite;
  background: #34dbf4;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(61, 221, 245, 0.45);
  display: inline-block;
  height: 8px;
  margin-right: 0.55rem;
  width: 8px;
}

/* ---------- Rota em cascata x rota direta ---------- */
.ic-lanes {
  margin: 2.5rem auto 0;
  max-width: 1070px;
}

.ic-lanes svg {
  display: block;
  height: auto;
  overflow: visible;
  width: 100%;
}

.ic-lanes-v {
  display: none !important;
  margin: 0 auto;
  max-width: 420px;
}

@media (max-width: 699px) {
  .ic-lanes-h {
    display: none !important;
  }
  .ic-lanes-v {
    display: block !important;
  }
}

.ic-lane-t {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.ic-lanes-v .ic-lane-t {
  font-size: 10px;
  letter-spacing: 1.6px;
}

.ic-lane-t.bad {
  fill: #f0516d;
}

.ic-lane-t.good {
  fill: #3dddf5;
}

.ic-lane-line {
  fill: none;
  stroke-width: 2.2;
}

.ic-ln-bad {
  opacity: 0.75;
  stroke: #f53d5d;
  stroke-dasharray: 6 7;
}

.ic-ln-good {
  filter: drop-shadow(0 0 5px rgba(61, 221, 245, 0.6));
  stroke: #3dddf5;
  stroke-width: 2.6;
}

.ic-nd rect {
  fill: hsl(var(--surface-muted));
  stroke: hsl(var(--ink-strong) / 0.14);
}

.ic-nd.on rect {
  stroke: #3dddf5;
}

.ic-nd.flux rect {
  fill: hsl(var(--primary) / 0.16);
  stroke: hsl(var(--primary));
}

.ic-lbl {
  fill: hsl(var(--ink-strong));
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.ic-lbl.big {
  font-size: 18px;
}

.ic-sub {
  fill: hsl(var(--ink-muted));
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.ic-sub.acc {
  fill: hsl(var(--primary));
}

.ic-pk-bad {
  fill: #5e81f4;
}

.ic-pk-good {
  fill: #5e81f4;
  filter: drop-shadow(0 0 6px rgba(94, 129, 244, 0.9));
}

/* ---------- Painel de monitoramento ---------- */
.ic-dashwrap {
  min-width: 0;
}

.ic-board {
  background: hsl(var(--surface-soft) / 0.9);
  border: 1px solid hsl(var(--ink-strong) / 0.09);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
}

.ic-board-head {
  align-items: center;
  border-bottom: 1px solid hsl(var(--ink-strong) / 0.08);
  color: hsl(var(--ink-muted));
  display: flex;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 1rem;
  justify-content: space-between;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  text-transform: uppercase;
}

.ic-live {
  color: hsl(var(--tone-success));
}

.ic-live::before {
  animation: ic-blink 1.4s infinite;
  content: "● ";
}

.ic-dash {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .ic-dash {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ic-kpi,
.ic-chart,
.ic-rt {
  background: hsl(var(--surface-muted));
  border: 1px solid hsl(var(--ink-strong) / 0.08);
}

.ic-kpi {
  border-radius: 14px;
  min-width: 0;
  padding: 0.9rem;
}

.ic-kpi span {
  color: hsl(var(--ink-muted));
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.ic-kpi b {
  color: hsl(var(--ink-strong));
  display: block;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 0.3rem;
}

.ic-kpi small {
  color: hsl(var(--tone-success));
  font-size: 0.68rem;
  font-weight: 600;
}

.ic-chart {
  border-radius: 14px;
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 0.85rem 1rem;
}

.ic-chart > span {
  color: hsl(var(--ink-muted));
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ic-chart svg {
  display: block;
  height: 120px;
  margin-top: 0.4rem;
  width: 100%;
}

.ic-cgr-a {
  stop-color: #25d9f4;
  stop-opacity: 0.45;
}

.ic-cgr-b {
  stop-color: #25d9f4;
  stop-opacity: 0;
}

.ic-cl {
  fill: none;
  filter: drop-shadow(0 0 6px rgba(61, 221, 245, 0.45));
  stroke: #3dddf5;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ic-ca {
  fill: url(#ic-cgr);
  opacity: 0.6;
}

.ic-routes {
  display: grid;
  gap: 0.6rem;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .ic-routes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ic-rt {
  align-items: center;
  border-radius: 11px;
  color: hsl(var(--ink-secondary));
  display: flex;
  font-size: 0.8rem;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
}

.ic-rt em {
  background: hsl(var(--tone-success) / 0.15);
  border-radius: 99px;
  color: hsl(var(--tone-success-fg));
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

/* ---------- Failover ---------- */
.ic-fo {
  min-width: 0;
}

.ic-fo svg {
  display: block;
  height: auto;
  overflow: visible;
  width: 100%;
}

.ic-dot {
  fill: #5e81f4;
}

.ic-foA {
  animation: ic-foA 9s linear infinite;
  stroke: #3dddf5;
}

.ic-foB {
  animation: ic-foB 9s linear infinite;
  stroke: hsl(var(--ink-strong) / 0.3);
}

@keyframes ic-foA {
  0%,
  42% {
    opacity: 1;
    stroke: #3dddf5;
  }
  46%,
  100% {
    opacity: 0.55;
    stroke: #f53d5d;
  }
}

@keyframes ic-foB {
  0%,
  46% {
    opacity: 0.8;
    stroke: hsl(var(--ink-strong) / 0.3);
  }
  52%,
  100% {
    opacity: 1;
    stroke: #4be3b0;
  }
}

.ic-gA,
.ic-fo-status .st1 {
  animation: ic-gA 9s linear infinite;
}

.ic-gB,
.ic-fo-status .st3 {
  animation: ic-gB 9s linear infinite;
  opacity: 0;
}

@keyframes ic-gA {
  0%,
  42% {
    opacity: 1;
  }
  44%,
  100% {
    opacity: 0;
  }
}

@keyframes ic-gB {
  0%,
  50% {
    opacity: 0;
  }
  53%,
  100% {
    opacity: 1;
  }
}

.ic-xmark {
  animation: ic-xm 9s linear infinite;
  opacity: 0;
}

.ic-xmark path {
  stroke: #f53d5d;
}

.ic-xbg {
  fill: hsl(var(--surface));
  stroke: #f53d5d;
}

@keyframes ic-xm {
  0%,
  43% {
    opacity: 0;
  }
  46%,
  100% {
    opacity: 1;
  }
}

.ic-fo-t {
  fill: hsl(var(--ink-muted));
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.ic-fo-status {
  height: 44px;
  margin: 0.6rem auto 0;
  max-width: 460px;
  position: relative;
}

.ic-fo-status div {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.6rem;
  inset: 0;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 0 0.6rem;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
}

.ic-fo-status .st1 {
  background: #0e2a3a;
  border: 1px solid #3ee6ff60;
  color: #8ff3ff;
}

.ic-fo-status .st2 {
  animation: ic-st2 9s linear infinite;
  background: #3a1420;
  border: 1px solid #ff6f8870;
  color: #ff9fb0;
  opacity: 0;
}

.ic-fo-status .st3 {
  background: #0f3a2e;
  border: 1px solid #4be3b070;
  color: #7ff5c9;
}

@keyframes ic-st2 {
  0%,
  43% {
    opacity: 0;
  }
  45%,
  53% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

/* no celular, rótulos maiores para continuarem legíveis */
@media (max-width: 640px) {
  .ic-fo .ic-lbl.big {
    font-size: 30px;
  }
  .ic-fo .ic-sub {
    display: none;
  }
  .ic-fo .ic-fo-t {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .ic-fo .ic-lbl.big {
    transform: translateY(8px);
  }
  .ic-fo-status div {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}

/* ---------- Tecnologia: seis cartões ---------- */
.ic-tech {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .ic-tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .ic-tech {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ic-tech .sp-card > b {
  display: block;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
  width: fit-content;
}

/* Pipeline de quatro etapas (o de softphone.css é de cinco) */
@media (min-width: 900px) {
  .sp-pipe.ic-pipe4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ic-pipe4 .sp-track {
    left: calc(100% / 8);
    right: calc(100% / 8);
  }
}

/* ---------- Comparativo ---------- */
.ic-cmpwrap {
  background: hsl(var(--surface-soft) / 0.9);
  border: 1px solid hsl(var(--ink-strong) / 0.09);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  min-width: 0;
  padding: 0.5rem;
}

.ic-cmp {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  width: 100%;
}

.ic-cmp th,
.ic-cmp td {
  border-bottom: 1px solid hsl(var(--ink-strong) / 0.08);
  padding: 0.9rem 1rem;
  text-align: left;
}

.ic-cmp th {
  color: hsl(var(--ink-muted));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ic-cmp th.us {
  background: hsl(var(--primary));
  border-radius: 12px 12px 0 0;
  color: #fff;
}

.ic-cmp td {
  color: hsl(var(--ink-secondary));
}

.ic-cmp td.us {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--ink-strong));
  font-weight: 500;
}

.ic-cmp tr:last-child td {
  border-bottom: 0;
}

.ic-cmp tr:last-child td.us {
  border-radius: 0 0 12px 12px;
}

.ic-cmp td.them {
  color: hsl(var(--ink-muted));
}

.ic-cmp .yes {
  color: hsl(var(--tone-success));
  font-weight: 800;
  margin-right: 0.5rem;
}

.ic-cmp .no {
  color: #f43f5e;
  font-weight: 800;
  margin-right: 0.5rem;
}

/* no celular, cada critério vira um bloco com as duas respostas */
@media (max-width: 640px) {
  .ic-cmp thead {
    display: none;
  }
  .ic-cmp,
  .ic-cmp tbody,
  .ic-cmp tr,
  .ic-cmp td {
    display: block;
  }
  .ic-cmp tr {
    border-bottom: 1px solid hsl(var(--ink-strong) / 0.08);
    padding: 0.85rem 0.6rem;
  }
  .ic-cmp tr:last-child {
    border-bottom: 0;
  }
  .ic-cmp td {
    border: 0;
    padding: 0.2rem 0;
  }
  .ic-cmp td:first-child {
    color: hsl(var(--ink-strong));
    font-weight: 600;
    margin-bottom: 0.35rem;
  }
  .ic-cmp td.us,
  .ic-cmp tr:last-child td.us {
    background: none;
    border-radius: 0;
  }
  .ic-cmp td[data-l]::before {
    color: hsl(var(--ink-muted));
    content: attr(data-l);
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .ic-cmp td.us[data-l]::before {
    color: hsl(var(--primary));
  }
}

/* ---------- Encerramento: globo ---------- */
.ic-globe {
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  position: relative;
  width: min(60vw, 300px);
}

.ic-globe svg {
  height: 100%;
  overflow: visible;
  position: relative;
  width: 100%;
}

.ic-gball {
  filter: drop-shadow(0 0 30px rgba(57, 141, 245, 0.45));
}

.ic-gsph-c {
  stop-color: #0b1a43;
}

.ic-gring {
  border: 1px solid rgba(61, 195, 245, 0.5);
  border-radius: 50%;
  height: 46%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  width: 140%;
}

.ic-gring::after {
  background: #34d9f4;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(61, 221, 245, 0.45);
  content: "";
  height: 10px;
  left: 30%;
  position: absolute;
  top: -5px;
  width: 10px;
}

#rota-direta {
  overflow: hidden;
}

/* ---------- Tema claro ---------- */
:root[data-theme="light"] .ic-board,
:root[data-theme="light"] .ic-cmpwrap {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .ic-ufg-b {
  stop-color: #ffffff;
}

:root[data-theme="light"] .ic-bmap .uf {
  fill: #e3e9fc;
  stroke: #a9bcf3;
}

:root[data-theme="light"] .ic-bmap.lit .uf,
:root[data-theme="light"] .ic-bmap .uf.lit {
  fill: url(#ic-ufg);
  stroke: #3dc3f5;
}

:root[data-theme="light"] .ic-lane-t.good {
  fill: #0b9fb8;
}

:root[data-theme="light"] .ic-nd rect {
  fill: #ffffff;
}

:root[data-theme="light"] .ic-nd.flux rect {
  fill: #eef2fe;
}

:root[data-theme="light"] .ic-rg.on em {
  color: #0b9fb8;
}

:root[data-theme="light"] .ic-opd {
  fill: #5e81f4;
}

:root[data-theme="light"] .ic-gsph-c {
  stop-color: #ffffff;
}

:root[data-theme="light"] .ic-fo-status .st1 {
  background: #eef2fe;
  border-color: rgba(94, 129, 244, 0.35);
  color: #3b5bdb;
}

:root[data-theme="light"] .ic-fo-status .st2 {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

:root[data-theme="light"] .ic-fo-status .st3 {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

:root[data-theme="light"] .ic-goal,
:root[data-theme="light"] .ic-toast {
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .ic-dimdots {
  opacity: 0.7;
}

/* ---------- Respeitar "reduzir movimento": tudo no estado final ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .ic-opd {
    opacity: 1;
  }
  .js .ic-mapbox:not(.ic-run) .net {
    opacity: 1;
  }
  .ic-dwave {
    display: none;
  }
  .ic-gA,
  .ic-fo-status .st1,
  .ic-fo-status .st2 {
    opacity: 0;
  }
  .ic-gB,
  .ic-xmark,
  .ic-fo-status .st3 {
    opacity: 1;
  }
  .ic-foA {
    opacity: 0.55;
    stroke: #f53d5d;
  }
  .ic-foB {
    stroke: #4be3b0;
  }
}
