:root {
  /* ---- fluid scale: 1rem tracks viewport HEIGHT (1920x1080 reference)
     so the whole page always fits one screen with no vertical scroll --- */
  --ink: #54565B;
  --ink-soft: #2a2b2f;
  --green: #a6dc6e;
  --green-deep: #7ab83e;
  --green-pale: #bbec89;
  --muted: #54565b;
  --muted-soft: #8a8c90;
  --page-bg: #e6e6e6;
  --row-1: #f7f7f7;
  --row-2: #ededed;
  --white: #ffffff;
  --amber: #f2a63c;
  --warning-text: #9a9a9a;

  --pad-x: 4.43rem;
  --radius-pill: 999px;
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;

  --shadow-card: 0 1.2rem 2.5rem rgba(17, 18, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  /* Kiosk scale: at 1920x1080, 1.64vh leaves enough room for the full
     topbar + hero + comparison without hiding or clipping any content.
     Keeping the scale height-driven also preserves the fit on 16:9 TVs. */
  font-size: clamp(9px, 1.64vh, 21px);
}

body {
  margin: 0;
  font-family: "Urbanist", "Segoe UI", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

.stage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 4.43rem;
  padding-inline: var(--pad-x);
  background: var(--white);
  position: relative;
  z-index: 5;
  box-shadow: 0 0.35rem 0.9rem rgba(15, 16, 18, 0.14);
  gap: 1.6rem;
}

.topbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar__logo {
  height: 2.62rem;
  width: auto;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pill-badge svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.topbar__model {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.topbar__warning {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--warning-text);
  font-size: 0.94rem;
  line-height: 1.35;
  max-width: 60rem;
  text-align: left;
}

.topbar__warning svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--amber);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 25.6rem;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- texto do hero (sobreposto à imagem, animável) ---------------------- */

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: var(--pad-x);
  padding-top: 2.3rem;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(166, 220, 110, 0.14);
  border: 1px solid rgba(166, 220, 110, 0.55);
  color: var(--green);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero__eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.22;
}

.hero__line {
  position: relative;
  display: block;
  width: fit-content;
  overflow: hidden;
  padding: 0 0.06em;
  margin-left: -0.06em;
}

.hero__text {
  display: block;
  color: var(--white);
}

.hero__text--accent {
  color: var(--green);
}

.hero__block {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(0%);
  animation: hero-block-sweep 10s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.hero__block--accent {
  background: var(--white);
  animation-delay: 0.12s;
}

@keyframes hero-block-sweep {
  0%, 2% {
    transform: translateX(0%);
  }
  9% {
    transform: translateX(102%);
  }
  100% {
    transform: translateX(102%);
  }
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  animation: hero-badge-emphasis 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: 0.55s;
  transform-origin: left center;
}

.hero__badge-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
}

.hero__badge-model {
  font-size: 2.75rem;
  font-weight: 800;
  font-style: italic;
  color: var(--green);
  line-height: 1;
}

.hero__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-style: normal;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

.hero__badge-pill svg {
  width: 0.85rem;
  height: 0.85rem;
}

@keyframes hero-badge-emphasis {
  0%, 4% {
    opacity: 0.5;
    transform: scale(0.96) translateY(0.3rem);
  }
  22% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__block {
    animation: none;
    transform: translateX(102%);
  }

  .hero__badge {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Comparativo
   ========================================================================== */

.comparativo {
  flex: 1 1 auto;
  padding: 1.15rem var(--pad-x) 1.95rem;
  background: var(--page-bg);
}

.comparativo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26.6rem;
  gap: 2rem;
  align-items: stretch;
}

.comp-heading {
  margin: 0 0 2.05rem;
  font-size: 2.05rem;
  font-weight: 800;
  color: var(--ink);
}

/* ---- table -------------------------------------------------------------- */

.comp-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.comp-row {
  display: grid;
  grid-template-columns: 1.62fr 1fr 1fr 1fr 1.32fr;
}

.comp-table__head {
  background: #1C1D20;
  color: var(--white);
}

.comp-table__head .cell {
  padding: 1.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comp-table__head .cell:first-child {
  justify-content: center;
}

.comp-table__head .cell svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--green);
  flex-shrink: 0;
}

.head-icon-only svg {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--green);
  object-fit: contain;
}

.head-icon-only img {
  height: 4.15rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.head-label {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}

.head-label .l1 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.head-label .l2 {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9c9da1;
}

.comp-table__head .cell--total {
  background: var(--green-pale);
}

.comp-table__head .cell--total .head-label .l1,
.comp-table__head .cell--total .head-label .l2 {
  color: var(--ink);
}

.comp-table__head .cell--total svg {
  color: var(--ink);
}

.comp-table__body .comp-row {
  background: var(--row-1);
}

.comp-table__body .comp-row + .comp-row {
  background: var(--row-2);
}

.comp-table__body .cell {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
}

.cell--product {
  gap: 1.15rem;
}

.product-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}

.product-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.product-icon--elec {
  background: var(--green);
}

.product-icon--elec svg {
  color: var(--white);
}

.product-icon--diesel {
  background: var(--muted);
}

.product-icon--diesel svg {
  color: var(--white);
}

.product-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.32;
}

.product-copy .p1 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-copy .p2 {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.comp-row--elec .product-copy .p1,
.comp-row--elec .product-copy .p2 {
  color: var(--green-deep);
}

.comp-row--diesel .product-copy .p1 {
  color: var(--ink);
}

.comp-row--diesel .product-copy .p2 {
  color: var(--muted-soft);
}

.cell--value {
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
}

.value-caption {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-soft);
}

.value-caption--below {
  order: 1;
}

.cell--value .value-amount {
  order: 0;
}

.value-amount {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.value-amount .cur {
  font-size: 0.5em;
  font-weight: 700;
  margin-right: 0.05em;
}

.comp-row--elec .value-amount {
  color: var(--green-deep);
}

.comp-row--diesel .value-amount {
  color: var(--ink);
}

.cell--total {
  justify-content: center;
}

.comp-row--elec .cell--total {
  background: var(--green);
}

.comp-row--elec .cell--total .value-amount {
  color: var(--white);
}

.comp-row--diesel .cell--total {
  background: var(--muted);
}

.comp-row--diesel .cell--total .value-amount {
  color: var(--white);
}

/* ---- right column: cta + stats card ------------------------------------ */

.comp-right {
  display: flex;
  flex-direction: column;
}

.btn-cta {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--green);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.28rem;
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow-card);
  transition: filter 0.15s ease, transform 0.15s ease;
  animation: btn-pulse 2.6s ease-in-out infinite;
}

.btn-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-0.05rem);
}

@keyframes btn-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-card), 0 0 0 0 rgba(166, 220, 110, 0.6);
  }
  50% {
    transform: scale(1.018);
    box-shadow: var(--shadow-card), 0 0 1.8rem 0.3rem rgba(166, 220, 110, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta {
    animation: none;
  }
}

.stats-card {
  position: relative;
  background: var(--muted);
  border-radius: var(--radius-lg);
  padding: 1.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
  flex: 1;
  min-height: 0;
  animation: card-pulse 2.6s ease-in-out infinite;
}

@keyframes card-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-card), 0 0 0 0 rgba(166, 220, 110, 0.5);
  }
  50% {
    transform: scale(1.012);
    box-shadow: var(--shadow-card), 0 0 2.6rem 0.4rem rgba(166, 220, 110, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-card {
    animation: none;
  }
}

.stats-track {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 2.15rem;
  height: 2.15rem;
  color: var(--green);
}

.stat-icon--img {
  border: 0;
  padding: 0;
  object-fit: contain;
}

.stat-copy .num {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stat-copy .num.is-counting {
  animation: num-enter 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes num-enter {
  0% {
    opacity: 0;
    transform: translateY(-1.1rem);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-copy .num.is-counting {
    animation: none;
  }
}

.stat-copy .label {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 0.35rem;
}

.stat-copy .sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(166, 220, 110, 0.85);
  margin-top: 0.3rem;
}

.stat-row--eco .stat-copy .label {
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.18;
  margin-top: 0;
}

.stat-row--eco .stat-copy .sub {
  color: #c7c9cc;
  margin-top: 0.45rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 861px) {
  html {
    font-size: clamp(9px, 1.5vh, 18px);
  }

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

  .comp-right {
    max-width: 34rem;
  }
}

/* Below this width we intentionally allow the page to scroll — the
   comparativo grid stacks and no longer fits a single small screen. */
@media (max-width: 860px) {
  html, body {
    height: auto;
  }

  html {
    font-size: 15px;
  }

  body {
    overflow: visible;
  }

  .stage {
    height: auto;
    overflow: visible;
  }

  :root {
    --pad-x: 1.6rem;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.8rem;
    padding-block: 1rem;
  }

  .topbar__warning {
    order: 3;
    margin-left: 0;
    max-width: 100%;
  }

  .hero {
    height: 17.5rem;
  }

  .hero__banner {
    height: 100%;
  }

  .hero__content {
    padding-top: 1rem;
  }

  .hero__eyebrow {
    font-size: 0.56rem;
    padding: 0.32rem 0.7rem;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
  }

  .hero__eyebrow-dot {
    width: 0.32rem;
    height: 0.32rem;
  }

  .hero__title {
    font-size: 1.32rem;
    margin-bottom: 0.5rem;
  }

  .hero__badge-brand {
    font-size: 0.82rem;
  }

  .hero__badge-model {
    font-size: 1.55rem;
  }

  .hero__badge-pill {
    font-size: 0.6rem;
    padding: 0.3rem 0.55rem;
  }

  .hero__badge-pill svg {
    width: 0.65rem;
    height: 0.65rem;
  }

  .comparativo {
    flex: none;
    overflow: visible;
  }

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

  .comp-row {
    grid-template-columns: 1fr;
    row-gap: 0.9rem;
    padding: 1.4rem 1.2rem;
  }

  .comp-table__head .cell:first-child {
    display: none;
  }

  .comp-table__head .cell,
  .comp-table__body .cell {
    padding: 0;
  }

  .cell--value {
    align-items: flex-start;
  }

  .comp-right {
    max-width: none;
  }
}
