/* =================================================================
   Quatro SUV — comparação familiar
   Estilo editorial / microsite. Mobile-first.
   ================================================================= */

:root {
  --bg: #fafaf8;
  --bg-alt: #f3f3ef;
  --ink: #16181d;
  --ink-soft: #51555e;
  --ink-faint: #8a8e96;
  --line: #e4e4e0;
  --line-strong: #d4d4cd;
  --accent: #1f4d3a;
  --accent-soft: #e9f0ea;
  --accent-ink: #143527;
  --warn: #9a5b32;
  --warn-soft: #f3e7dd;
  --white: #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04),
    0 14px 36px -22px rgba(22, 24, 29, 0.28);
  --shadow-hover: 0 1px 2px rgba(22, 24, 29, 0.05),
    0 26px 48px -24px rgba(22, 24, 29, 0.4);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  font-weight: 700;
}

strong {
  font-weight: 600;
}

.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;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  z-index: 200;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* layout helpers ------------------------------------------------- */
.section-title {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  margin-bottom: 0.5em;
}
.section-lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* =============================================================== NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.nav__brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 1.02rem;
}
.nav__mark {
  color: var(--accent);
  font-size: 1.1rem;
}
.nav__links {
  display: flex;
  gap: clamp(6px, 1.5vw, 22px);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 0 4px;
}
.nav__links::-webkit-scrollbar {
  display: none;
}
.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================== HERO */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) clamp(16px, 4vw, 40px) clamp(60px, 9vw, 100px);
  background: #14110d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgba(10, 11, 13, 0.85) 0%,
      rgba(10, 11, 13, 0.52) 52%,
      rgba(10, 11, 13, 0.42) 100%
    ),
    linear-gradient(
      to right,
      rgba(10, 11, 13, 0.5) 0%,
      rgba(10, 11, 13, 0) 68%
    );
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 600;
  color: #9bd6b6;
  margin: 0 0 1.1rem;
}
.hero__title {
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}
.hero__sub {
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 62ch;
  margin: 1.5rem 0 0;
  line-height: 1.6;
}
.hero__sub strong {
  color: #fff;
}
.hero__cars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.4rem;
}
.hero__cars span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 7px 14px;
  border-radius: 999px;
}

/* =========================================================== HOW TO */
.howto {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.howto__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) clamp(16px, 4vw, 40px);
}
.howto__inner p {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.howto__inner p strong,
.howto__inner p em {
  color: var(--ink);
}
.priorities {
  list-style: none;
  counter-reset: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 640px;
}
.priorities li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 500;
}
.priorities__n {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ======================================================= SPOTLIGHTS */
.spotlight {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.spotlight__media {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.spotlight__fig {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.spotlight__fig:first-child {
  grid-column: 1 / -1;
}
.spotlight__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s var(--ease);
}
.spotlight__fig:hover img {
  transform: scale(1.03);
}
.spotlight__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
.spotlight__title {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
}
.spotlight__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 1.6rem;
  max-width: 52ch;
}
.spotlight__price {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1rem 0 0;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spotlight__price strong {
  color: var(--ink);
}
.spotlight__note {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 1.2rem 0 0;
}

/* faixa de dados-chave */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__value {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__key {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  font-weight: 500;
}
.stat--accent {
  background: var(--accent-soft);
}
.stat--accent .stat__value {
  color: var(--accent-ink);
}
.stat--accent .stat__key {
  color: var(--accent);
}
/* em 2 colunas, o 5.º dado (preço) ocupa a linha toda, sem célula órfã */
.stat-strip .stat:last-child {
  grid-column: 1 / -1;
}

/* prós / contras */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 1.8rem;
}
.pc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
}
.pc__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.pc--pro .pc__title {
  color: var(--accent);
}
.pc--con .pc__title {
  color: var(--warn);
}
.pc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.pc__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pc__list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 700;
}
.pc--pro .pc__list li::before {
  content: "+";
  color: var(--accent);
}
.pc--con .pc__list li::before {
  content: "–";
  color: var(--warn);
}

/* =================================================== TABELA COMPARA */
.compare-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.compare-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(16px, 4vw, 40px);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
  font-variant-numeric: tabular-nums lining-nums;
}
.compare th,
.compare td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.93rem;
}
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: #fff;
  z-index: 3;
  border-bottom: none;
  vertical-align: bottom;
}
.compare thead .th-name {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
}
.compare thead .th-sub {
  display: block;
  font-weight: 400;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}
.rowhead {
  position: sticky;
  left: 0;
  background: var(--white);
  z-index: 2;
  font-weight: 600;
  color: var(--ink);
  border-right: 1px solid var(--line);
  min-width: 150px;
}
.compare thead .rowhead {
  background: var(--ink);
  z-index: 4;
}
.compare tbody tr:nth-child(even) td,
.compare tbody tr:nth-child(even) .rowhead {
  background: #fafaf7;
}
.compare tbody tr:hover td,
.compare tbody tr:hover .rowhead {
  background: var(--accent-soft);
}
.compare td.is-best {
  font-weight: 700;
  color: var(--accent-ink);
}
.compare td.is-yes {
  color: var(--accent);
  font-weight: 600;
}
.compare td.is-key {
  background: var(--accent-soft) !important;
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--accent);
}
.footnote {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 16px;
  max-width: 70ch;
}

/* ============================================ CALLOUT BATERIA VAZIA */
.callout {
  background: var(--accent);
  color: #eef3ef;
}
.callout__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 9vw, 104px) clamp(16px, 4vw, 40px);
}
.callout__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: #b8d4c4;
  margin: 0 0 0.8rem;
}
.callout .section-title {
  color: #fff;
}
.callout .section-lead {
  color: #d4e2da;
  max-width: 66ch;
}
.callout .section-lead em,
.callout .section-lead strong {
  color: #fff;
}

.callout__bars {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  margin: 1rem 0 2.6rem;
}
.bars__hint {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: #c6d8cd;
  letter-spacing: 0.02em;
}
.bars__hint strong {
  color: #fff;
}
.bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 18px;
}
.bar:last-child {
  margin-bottom: 0;
}
.bar__label {
  display: flex;
  flex-direction: column;
}
.bar__car {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.bar__sub {
  font-size: 0.78rem;
  color: #aec7ba;
}
.bar__track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 34px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  background: #7fae97;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  min-width: 54px;
  transition: width 1.1s var(--ease);
}
.bar__fill--best {
  background: #f4f1e3;
}
.bar__fill--best .bar__value {
  color: var(--accent-ink);
}
.bar__fill--worst {
  background: #c98b5f;
}
.bar__value {
  font-weight: 700;
  font-size: 0.9rem;
  color: #14271d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.callout__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.mini {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.mini h3 {
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 8px;
}
.mini p {
  margin: 0;
  font-size: 0.92rem;
  color: #d2e0d8;
  line-height: 1.55;
}
.mini p strong {
  color: #fff;
}
.mini--key {
  background: #f4f1e3;
  border-color: #f4f1e3;
}
.mini--key h3 {
  color: var(--accent-ink);
}
.mini--key p {
  color: #2c3f34;
}
.mini--key p strong {
  color: var(--accent-ink);
}

/* ========================================================= VEREDITO */
.verdict__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 9vw, 104px) clamp(16px, 4vw, 40px);
}
.verdict__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.vcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}
.vcard__rank {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.vcard h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.vcard__pick {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.vcard__pick strong {
  color: var(--accent);
}
.vcard p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}
.verdict__summary {
  margin-top: 26px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #e9eae8;
}
.verdict__summary h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.verdict__summary p {
  margin: 0;
  color: #c9cbcf;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 74ch;
}
.verdict__summary strong {
  color: #fff;
}

/* =========================================================== FOOTER */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) clamp(16px, 4vw, 40px);
}
.footer__disclaimer {
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 80ch;
  margin: 0 0 12px;
}
.footer__meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 6px;
}
.footer__credit {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ========================================================== REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================================================== BREAKPOINTS */
@media (min-width: 560px) {
  .pc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .callout__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .spotlight__media {
    grid-template-columns: 1fr 1fr;
  }
  .priorities {
    grid-template-columns: 1fr 1fr;
  }
  .verdict__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .spotlight {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 60px;
  }
  .spotlight--alt .spotlight__media {
    order: 2;
  }
  .spotlight__media {
    position: sticky;
    top: 80px;
  }
  .stat-strip {
    grid-template-columns: repeat(5, 1fr);
  }
  .stat-strip .stat:last-child {
    grid-column: auto;
  }
}

/* ============================================ REDUCED MOTION / PRINT */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .spotlight__fig:hover img {
    transform: none;
  }
}
