/* IA Uno, página de apresentação.
   A noite no posto (cena, capítulos, como funciona, contato) e o dia do painel (painel, redes, o que não faz, preço).
   Cores com função: petróleo é o que a IA vê, âmbar é o LED do totem e a atenção, vermelho é só alarme. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --night-0: #070e15;
  --night-1: #0c1621;
  --night-2: #122130;
  --night-line: rgba(214, 226, 238, 0.12);
  --on-night: #e6edf3;
  --on-night-2: #c5d2de;
  --on-night-soft: #8ea0b2;
  --vision: #1fb5b7;
  --vision-bright: #46d3d5;
  --led: #ffb547;
  --alarm: #ff5468;
  --ok: #3dd68c;

  --day-0: #eef2f5;
  --day-1: #ffffff;
  --ink: #0b1b2b;
  --ink-soft: #50606f;
  --day-line: #dce3e9;
  --petroleo: #0f8b8d;
  --alarm-day: #c21f33;
  --warn-day: #8a5a00;
  --mercosul: #1f4fbf;

  --display: "Archivo", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --topbar: 68px;
  --screen: 100vh;
}

@supports (height: 100svh) {
  :root {
    --screen: 100svh;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--topbar);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night-1);
  color: var(--on-night);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--vision-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--on-night);
  color: var(--ink);
  border-radius: 8px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── tipografia de letreiro ─────────────────────────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--display);
  font-stretch: 64%;
  font-weight: 820;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(54px, 6.9vw, 124px);
  font-stretch: 62%;
  font-weight: 850;
  line-height: 0.86;
}

h1.display span {
  display: block;
}

.display-2 {
  font-size: clamp(42px, 5.2vw, 84px);
  font-stretch: 66%;
}

/* ─── barra do topo ─────────────────────────────────────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-solid {
  background: rgba(8, 15, 22, 0.8);
  border-bottom-color: var(--night-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.topbar[data-tone="day"].is-solid {
  background: rgba(246, 248, 250, 0.84);
  border-bottom-color: rgba(11, 27, 43, 0.08);
  color: var(--ink);
}

.topbar[data-tone="day"] .topnav a,
.topbar[data-tone="day"] .link-quiet {
  color: var(--ink-soft);
}

.topbar[data-tone="day"] .topnav a:hover,
.topbar[data-tone="day"] .link-quiet:hover {
  color: var(--ink);
}

.topbar[data-tone="day"] .brand-mark {
  stroke: var(--petroleo);
}

.topbar[data-tone="day"] .brand-mark circle {
  fill: var(--petroleo);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--vision);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark circle {
  fill: var(--vision);
  stroke: none;
}

.topnav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
}

.topnav a,
.link-quiet {
  color: var(--on-night-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.topnav a:hover,
.link-quiet:hover {
  color: var(--on-night);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ─── botões e links ─────────────────────────────────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--vision);
  color: #032222;
  font: 650 16.5px/1 var(--text);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 34px -16px rgba(31, 181, 183, 0.75);
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.button:hover {
  background: var(--vision-bright);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
}

.button-large {
  height: 62px;
  padding: 0 32px;
  font-size: 18px;
}

.link-arrowless {
  color: var(--on-night);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(230, 237, 243, 0.4);
  text-underline-offset: 7px;
  transition: text-decoration-color 0.2s;
}

.link-arrowless:hover {
  text-decoration-color: var(--vision);
}

/* ─── a pista: a cena presa ao fundo ─────────────────────────────────────────────────────────────────────────── */

.pista {
  position: relative;
  background: var(--night-0);
}

.stage {
  position: sticky;
  top: 0;
  height: var(--screen);
  overflow: hidden;
  z-index: 0;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 55%;
  transform: perspective(1600px) rotateX(22deg) scale(1.04);
}

.stage-shade,
.stage-shade::before,
.stage-shade::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-shade::before,
.stage-shade::after {
  content: "";
  transition: opacity 1s ease;
}

.stage-shade {
  background:
    linear-gradient(180deg, rgba(7, 14, 21, 0.7) 0%, rgba(7, 14, 21, 0) 16%),
    radial-gradient(140% 120% at 50% 50%, rgba(7, 14, 21, 0) 55%, rgba(7, 14, 21, 0.6) 100%);
}

.stage-shade::before {
  background:
    linear-gradient(90deg, rgba(7, 14, 21, 0.9) 0%, rgba(7, 14, 21, 0.62) 30%, rgba(7, 14, 21, 0) 52%),
    radial-gradient(90% 80% at 0% 100%, rgba(7, 14, 21, 0.85) 0%, rgba(7, 14, 21, 0) 60%);
}

.stage-shade::after {
  opacity: 0;
  background: linear-gradient(90deg, rgba(7, 14, 21, 0.97) 0%, rgba(7, 14, 21, 0.92) 33%, rgba(7, 14, 21, 0.35) 44%, rgba(7, 14, 21, 0) 54%);
}

.stage[data-mode="side"] .stage-shade::before {
  opacity: 0;
}

.stage[data-mode="side"] .stage-shade::after {
  opacity: 1;
}

.stage-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero,
.chapters {
  position: relative;
  z-index: 1;
}

.hero {
  margin-top: calc(var(--screen) * -1);
  min-height: var(--screen);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--topbar) + 24px) var(--gutter) clamp(36px, 8vh, 84px);
}

.hero-copy {
  max-width: 50rem;
}

.hero-lede {
  max-width: 36rem;
  margin: 30px 0 34px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--on-night-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

/* ─── o registro de eventos da cena ─── */

.feed {
  position: absolute;
  top: calc(var(--topbar) + 22px);
  right: var(--gutter);
  width: 330px;
  padding: 14px 14px 6px;
  border-radius: 16px;
  background: rgba(6, 12, 18, 0.74);
  border: 1px solid var(--night-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
}

.feed-title {
  font-weight: 650;
  font-size: 15px;
}

.feed-sub {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--on-night-soft);
  max-width: 15rem;
}

.feed-clock {
  width: 86px;
  flex: none;
  padding: 6px 7px;
  border-radius: 6px;
  background: #05080b;
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.12);
}

.feed-list {
  min-height: 196px;
}

.feed-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 2px 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(214, 226, 238, 0.07);
  animation: feed-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-time {
  grid-row: span 2;
  padding-top: 2px;
  font-family: var(--display);
  font-stretch: 85%;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--on-night-soft);
}

.feed-what {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.3;
}

.feed-what::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--level, var(--vision));
  box-shadow: 0 0 10px var(--level, var(--vision));
  flex: none;
}

.feed-detail {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--on-night-soft);
}

@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ─── letreiro de LED ─── */

.led {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 2.5px rgba(255, 181, 71, 0.55));
}

.led circle {
  fill: #2b2116;
  transition: fill 0.12s;
}

.led circle.on {
  fill: var(--led);
}

/* ─── capítulos ─── */

.chapter {
  min-height: var(--screen);
  display: flex;
  align-items: center;
  padding: calc(var(--topbar) + 32px) var(--gutter) 48px;
}

.chapter-card {
  width: min(100%, 34rem);
}

.chapter-card > p:not(.module) {
  margin-top: 26px;
  color: var(--on-night-2);
}

.module {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--vision);
}

.soon {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--led);
  background: rgba(255, 181, 71, 0.12);
  white-space: nowrap;
}

.readout {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}

.readout-led {
  width: min(100%, 27rem);
  padding: 10px 12px;
  border-radius: 8px;
  background: #05080b;
  box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.1);
}

.readout-pair {
  display: grid;
  gap: 10px;
}

.readout-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--on-night-soft);
}

.readout-caption.is-alert {
  color: var(--alarm);
}

.readout-plate {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.plate {
  position: relative;
  width: 232px;
  height: 76px;
  display: grid;
  grid-template-rows: 19px 1fr;
  background: #f4f6f8;
  border: 2.5px solid #0b1b2b;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.4s;
}

.plate.is-listed {
  box-shadow:
    0 0 0 4px rgba(255, 181, 71, 0.55),
    0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

.plate-band {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mercosul);
  color: #fff;
  font: 700 10px/1 var(--text);
  letter-spacing: 0.32em;
}

.plate-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-stretch: 74%;
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #0b1b2b;
}

.plate-text.is-new {
  animation: plate-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ─── como funciona ─────────────────────────────────────────────────────────────────────────────────────────── */

.how {
  position: relative;
  z-index: 2;
  padding: clamp(100px, 15vh, 170px) 0;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(31, 181, 183, 0.08), rgba(31, 181, 183, 0) 70%),
    var(--night-1);
  border-top: 1px solid var(--night-line);
}

.how h2 {
  max-width: 13ch;
}

.how-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.flow svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow text {
  font-family: var(--text);
}

.flow-posto {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(214, 226, 238, 0.2);
  stroke-dasharray: 5 6;
}

.flow-caption {
  font-size: 12.5px;
  fill: var(--on-night-soft);
}

.flow-out {
  fill: var(--vision);
  font-weight: 600;
}

.flow-label {
  font-size: 15px;
  font-weight: 650;
  fill: var(--on-night);
}

.flow-cams rect {
  fill: #132232;
  stroke: rgba(214, 226, 238, 0.45);
}

.flow-cams circle {
  fill: var(--vision);
}

.flow-video,
.flow-event,
.flow-store {
  fill: none;
  stroke-linecap: round;
}

.flow-video {
  stroke: rgba(31, 181, 183, 0.55);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  animation: flow-dash 0.9s linear infinite;
}

.flow-store {
  stroke: rgba(214, 226, 238, 0.3);
  stroke-width: 2;
}

.flow-event {
  stroke: var(--led);
  stroke-width: 2.5;
  stroke-dasharray: 4 22;
  animation: flow-dash 1.6s linear infinite;
}

.flow-box {
  fill: #122130;
  stroke: rgba(31, 181, 183, 0.7);
  stroke-width: 1.5;
}

.flow-leds circle {
  fill: var(--led);
  animation: led-blink 2.4s steps(1) infinite;
}

.flow-leds circle:nth-child(2) { animation-delay: -0.4s; }
.flow-leds circle:nth-child(3) { animation-delay: -1.1s; }
.flow-leds circle:nth-child(4) { animation-delay: -1.7s; }
.flow-leds circle:nth-child(5) { animation-delay: -0.8s; }
.flow-leds circle:nth-child(6) { animation-delay: -2s; }

.flow-disk ellipse,
.flow-disk path {
  fill: #132232;
  stroke: rgba(214, 226, 238, 0.45);
}

.flow-node {
  fill: #0f1c29;
  stroke: rgba(214, 226, 238, 0.22);
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes led-blink {
  50% {
    fill: #3a2a12;
  }
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
  counter-reset: none;
}

.how-steps > li {
  padding-top: 26px;
  border-top: 1px solid var(--night-line);
}

.how-n {
  display: block;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 92px;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(31, 181, 183, 0.85);
}

.how-steps h3 {
  margin-top: 26px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.how-steps p {
  margin-top: 12px;
  color: var(--on-night-2);
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.channels li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  font-size: 14.5px;
  color: var(--on-night);
}

.how-note {
  margin-top: 64px;
  max-width: 46rem;
  padding: 20px 24px;
  border-left: 2px solid var(--led);
  background: rgba(255, 181, 71, 0.05);
  color: var(--on-night-2);
}

.how-note strong {
  color: var(--on-night);
  font-weight: 650;
}

/* ─── o dia: painel, redes, o que não faz, preço ─────────────────────────────────────────────────────────────── */

.day,
.nots,
.price {
  position: relative;
  z-index: 2;
  color: var(--ink);
  padding: clamp(100px, 15vh, 170px) 0;
}

.day {
  background: var(--day-0);
}

.day-alt,
.price {
  background: var(--day-1);
}

.nots {
  background: var(--day-0);
}

.day-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 48px;
}

.day-head p,
.price p {
  color: var(--ink-soft);
  max-width: 34rem;
}

.devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 36px;
  margin-top: 72px;
}

.window {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 450px;
  background: var(--day-1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(11, 27, 43, 0.05),
    0 40px 90px -40px rgba(11, 27, 43, 0.45);
}

.window-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  background: var(--ink);
  color: #c7d3de;
  font-size: 14px;
}

.window-logo {
  margin: 0 0 20px 8px;
  color: #fff;
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 800;
  font-size: 19px;
}

.window-nav {
  padding: 8px 10px;
  border-radius: 8px;
}

.window-nav.is-on {
  background: rgba(31, 181, 183, 0.16);
  color: #7fe3e4;
  font-weight: 600;
}

.window-main {
  padding: 22px 24px 24px;
  min-width: 0;
}

.window-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.window-title {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.window-sub {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill-alarm {
  background: #fdecee;
  color: var(--alarm-day);
}

.pill-ok {
  background: #e2f3f2;
  color: #0b6f71;
}

.pill-warn {
  background: #fff4db;
  color: var(--warn-day);
}

.pill-muted {
  background: var(--day-0);
  color: var(--ink-soft);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 16px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--day-line);
  border-radius: 12px;
}

.kpi-n {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-l {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.window-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.minipista svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
  border: 1px solid var(--day-line);
  border-radius: 12px;
}

.chart-title {
  font-size: 13px;
  font-weight: 650;
}

.chart-plot {
  position: relative;
  flex: 1;
  min-height: 104px;
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  border-bottom: 1px solid #c9d3dc;
}

.bar {
  position: relative;
  flex: 1 1 0;
  max-width: 24px;
  border-radius: 4px 4px 0 0;
  background: #0a9497;
  transition: background-color 0.15s;
}

.bar-hit {
  position: absolute;
  inset: -40px -1px 0;
}

.bar:hover,
.bar:focus-visible {
  background: #076e70;
}

.bar-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 2;
}

.bar:hover .bar-tip,
.bar:focus-visible .bar-tip {
  opacity: 1;
}

.bar-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.bar:hover .bar-label {
  opacity: 0;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.phone {
  padding: 11px;
  border-radius: 40px;
  background: #0b1520;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -40px rgba(11, 27, 43, 0.6);
}

.phone-screen {
  min-height: 540px;
  padding: 28px 14px 18px;
  border-radius: 30px;
  background: #0d1b2a;
  color: var(--on-night);
}

.phone-title {
  margin: 0 4px 6px;
  font-weight: 800;
  font-size: 22px;
}

.alert {
  margin-top: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: #132538;
  border-left: 3px solid var(--led);
}

.alert-alarm {
  border-left-color: var(--alarm);
  background: linear-gradient(90deg, rgba(255, 84, 104, 0.14), rgba(255, 84, 104, 0) 70%), #132538;
}

.alert-ok {
  border-left-color: var(--ok);
}

.alert-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--alarm);
}

.alert-tag-warn {
  color: var(--led);
}

.alert-tag-ok {
  color: var(--ok);
}

.alert-text {
  margin-top: 4px;
  font-weight: 650;
  font-size: 15.5px;
  line-height: 1.3;
}

.alert-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--on-night-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 64px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.facts li {
  padding-top: 18px;
  border-top: 1px solid #cbd5de;
}

.facts strong {
  color: var(--ink);
  font-weight: 650;
}

/* ─── redes ─── */

.network {
  margin-top: 64px;
  border-top: 1px solid var(--ink);
}

.network-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--day-line);
}

.network-row > :nth-child(3),
.network-row > :nth-child(4) {
  text-align: right;
}

.network-head {
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.network-name {
  display: flex;
  flex-direction: column;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.25;
}

.network-name[data-rank] {
  display: grid;
  grid-template-columns: 2.6em 1fr;
  column-gap: 4px;
}

.network-name[data-rank]::before {
  content: attr(data-rank);
  grid-row: span 2;
  align-self: center;
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 700;
  font-size: 22px;
  color: var(--petroleo);
}

.network-name small {
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.network-row .pill {
  justify-self: start;
}

.network-n {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 750;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

/* ─── o que não faz ─── */

.nots h2 {
  max-width: 14ch;
}

.nots-list {
  margin-top: 64px;
}

.nots-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 48px;
  padding: 30px 0;
  border-top: 1px solid #c4cfd9;
}

.nots-claim {
  text-wrap: balance;
  font-family: var(--display);
  font-stretch: 64%;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.nots-list p:not(.nots-claim) {
  color: var(--ink-soft);
  font-size: 17.5px;
}

/* ─── preço ─── */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: start;
}

.price p {
  margin-top: 26px;
}

.modules {
  border-top: 1px solid var(--ink);
}

.modules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--day-line);
  font-weight: 600;
  font-size: 18px;
}

.price .soon {
  color: var(--warn-day);
  background: #fff4db;
}

/* ─── contato e totem ─── */

.finale {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(110px, 16vh, 180px) 0;
  background:
    radial-gradient(50% 70% at 78% 100%, rgba(255, 181, 71, 0.12), rgba(255, 181, 71, 0) 70%),
    radial-gradient(70% 60% at 10% 0%, rgba(31, 181, 183, 0.07), rgba(31, 181, 183, 0) 70%),
    var(--night-0);
}

.finale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 72px;
}

.finale-kicker span {
  display: block;
}

.finale-kicker {
  margin-bottom: 26px;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--led);
  max-width: 26rem;
}

.finale-copy > p:not(.finale-kicker) {
  margin: 26px 0 38px;
  max-width: 32rem;
  color: var(--on-night-2);
}

.totem {
  justify-self: center;
  width: min(340px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.totem-crown {
  width: 100%;
  padding: 22px 20px 18px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #0f9c9f, #0a7c7e);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
}

.totem-crown span {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 850;
  font-size: 44px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.totem-board {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 14px 16px;
  background: #05080b;
  border: 7px solid #17222d;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 40px 120px -20px rgba(255, 181, 71, 0.22);
}

.totem-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.totem-row:last-child {
  border-bottom: 0;
}

.totem-label {
  font-weight: 650;
  font-size: 15px;
  color: #d0dae3;
}

.totem-foot {
  width: 54px;
  height: 150px;
  background: linear-gradient(90deg, #0d151d, #1f2e3d 50%, #0d151d);
}

/* ─── rodapé ─── */

.footer {
  position: relative;
  z-index: 2;
  padding: 44px 0 52px;
  background: var(--night-0);
  border-top: 1px solid var(--night-line);
  color: var(--on-night-soft);
  font-size: 15px;
}

.footer-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 36px;
}

.footer-grid .brand {
  color: var(--on-night);
  font-size: 20px;
}

.footer-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--on-night);
}

/* ─── telas menores ──────────────────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .topnav {
    display: none;
  }

  .feed {
    width: 330px;
  }
}

@media (max-width: 899px) {
  :root {
    --topbar: 60px;
  }

  body {
    font-size: 17px;
  }

  .topbar-actions .link-quiet {
    display: none;
  }

  .feed {
    display: none;
  }

  .hero {
    padding-bottom: 32px;
  }

  .hero-copy {
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    padding-top: 40vh;
    background: linear-gradient(180deg, rgba(7, 14, 21, 0) 0%, rgba(7, 14, 21, 0.92) 30%);
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  h1.display {
    font-size: clamp(46px, 13vw, 84px);
  }

  .stage-shade::before {
    background: linear-gradient(180deg, rgba(7, 14, 21, 0) 55%, rgba(7, 14, 21, 0.9) 75%);
  }

  .stage-shade::after {
    background: linear-gradient(180deg, rgba(7, 14, 21, 0) 46%, rgba(7, 14, 21, 0.94) 62%);
  }

  .chapter {
    align-items: flex-end;
    padding-bottom: 28px;
  }

  .chapter-card {
    width: 100%;
  }

  .display-2 {
    font-size: clamp(38px, 10vw, 60px);
  }

  .readout {
    margin-top: 22px;
    padding-top: 18px;
  }

  .plate {
    width: 190px;
    height: 62px;
    grid-template-rows: 16px 1fr;
  }

  .plate-text {
    font-size: 38px;
  }

  .how-head {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .how-steps,
  .facts {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .day-head,
  .price-grid,
  .finale-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .devices {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .window {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .window-side {
    display: none;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .window-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(300px, 100%);
  }

  .network-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.7fr);
  }

  .network-row > :nth-child(4) {
    display: none;
  }

  .nots-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .finale-grid {
    gap: 64px;
  }
}

@media (max-width: 520px) {
  .topbar .button-small {
    padding: 0 12px;
    font-size: 14px;
  }

  .network-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .network-row > :nth-child(3) {
    display: none;
  }

  .network-head > :nth-child(2) {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
