/* Tokens: mesmos valores de frontend/src/theme/index.js do app; âmbar e noite vêm do mascote */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-pt-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e3a5f;
  --night: #10233d;
  --amber: #f5a524;
  --cream: #fff4e0;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --primary-soft: #eef2f7;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;

  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --on-navy: #ffffff;
  --on-navy-2: #c7d3e3;

  --success: #067647;
  --success-soft: #ecfdf3;
  --chart-fuel: #2f5f9e;
  --chart-expense: #d0703a;
  --chart-service: #2a9d78;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.12);

  --gutter: 20px;
  --section-space: clamp(64px, 9vw, 112px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--text); text-wrap: balance; }

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
}

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--night);
  font-weight: 600;
  border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Linhas de velocidade do mascote, usadas como marcador */
.speed {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 20px;
  flex: none;
}
.speed i {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}
.speed i:nth-child(1) { width: 80%; margin-left: 15%; }
.speed i:nth-child(2) { width: 85%; }
.speed i:nth-child(3) { width: 65%; margin-left: 30%; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}
.eyebrow .speed { color: var(--amber); }
.eyebrow--amber { color: var(--amber); }

.section-head { max-width: 680px; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 16px; }

/* Botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button--amber { background: var(--amber); color: var(--night); }
.button--amber:hover { background: #ffb53d; }
.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--on-navy);
}
.button--ghost:hover { border-color: var(--on-navy); }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--navy);
}
.brand__name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand--small .brand__mark { width: 30px; height: 30px; }
.brand--small .brand__name { font-size: 1.0625rem; }

.site-nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
}
.site-nav a {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--navy); }

.site-header__status {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Abertura */
.hero {
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy-2);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(56px, 7vw, 88px);
}
.hero__kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 600;
}
.hero__slogan {
  display: block;
  max-width: 13ch;
  color: var(--on-navy);
  font-size: clamp(2.625rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 0.875rem;
  font-weight: 500;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(0px, 3vw, 32px);
}
.hero__mascot {
  position: absolute;
  z-index: 2;
  /* Encosta o focinho na borda do celular (300px de largura) */
  right: calc(clamp(0px, 3vw, 32px) + 294px);
  bottom: 56px;
  width: clamp(130px, 15vw, 210px);
  height: auto;
  animation: dash-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes dash-in {
  from { opacity: 0; transform: translateX(-70px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Celular: tela do app feita em HTML/CSS */
.phone { width: min(300px, 100%); }
.phone__screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 8px solid var(--night);
  border-radius: 34px;
  background: var(--bg);
  box-shadow: 0 28px 50px rgba(16, 35, 61, 0.5);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.35;
}
.phone figcaption {
  margin-top: 14px;
  color: var(--on-navy-2);
  font-size: 0.8125rem;
  text-align: center;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 14px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.app-bar__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--navy);
}
.app-bar__vehicle {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.app-bar__vehicle small {
  margin-left: 4px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}
.app-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.app-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.app-section {
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.app-stat {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.app-stat > span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}
.app-stat strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.app-stat strong small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.app-stat--lead strong { font-size: 21px; }
.app-bar-chart {
  display: flex;
  gap: 2px;
  height: 7px;
  margin-top: 8px;
}
.seg { display: block; height: 100%; border-radius: 2px; }
.seg--fuel { background: var(--chart-fuel); }
.seg--expense { background: var(--chart-expense); }
.seg--service { background: var(--chart-service); }
.app-legend {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 10px;
}
.app-legend li { display: flex; align-items: center; gap: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot--fuel { background: var(--chart-fuel); }
.dot--expense { background: var(--chart-expense); }
.dot--service { background: var(--chart-service); }
.app-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.app-reminder small {
  display: block;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 400;
}
.app-reminder__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--navy);
}
.app-reminder__icon .icon { width: 15px; height: 15px; }
.app-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 6px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 500;
  text-align: center;
}
.app-nav .is-active { color: var(--navy); font-weight: 700; }
.app-nav b {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

/* Três números */
.numbers { background: var(--surface); }
.numbers__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 2px solid var(--navy);
}
.numbers__list li {
  padding: 24px 32px 0 0;
}
.numbers__list li + li {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.numbers__label {
  display: block;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 600;
}
.numbers__value {
  display: block;
  margin-block: 8px 12px;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.numbers__value small {
  color: var(--text-3);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* QR code */
.qr__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.qr__copy h2 + p { margin-top: 16px; }
.checks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--text);
  font-size: 1rem;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg) scale(0.8);
}
.qr__visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.qr__arrow {
  display: grid;
  place-items: center;
  color: var(--amber);
}
.qr__arrow .speed { width: 32px; gap: 5px; }
.qr__arrow .speed i { height: 4px; }

.receipt {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  transform: rotate(-1.5deg);
}
.receipt__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.receipt__line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-block: 3px;
  font-variant-numeric: tabular-nums;
}
.receipt__line--total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text);
  font-weight: 700;
}
.receipt__qr {
  position: relative;
  width: 112px;
  margin: 16px auto 0;
  padding: 8px;
  border: 2px solid var(--amber);
  border-radius: var(--radius-md);
}
.qr-code {
  display: block;
  aspect-ratio: 1;
  background: url("../assets/qr-decorativo.svg") center / contain no-repeat;
}
.scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 48%;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.form-card {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.form-card__title {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 650;
}
.field { min-width: 0; }
.field span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 500;
}
.field b {
  display: block;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.form-card__status {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Etanol ou gasolina */
.fuel {
  background: var(--night);
  color: var(--on-navy-2);
}
.fuel h2 { color: var(--on-navy); }
.fuel h2 em { color: var(--amber); font-style: normal; }
.fuel__copy h2 + p { margin-top: 16px; }
.fuel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.verdict {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text-2);
}
.verdict__example {
  margin-bottom: 12px;
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 600;
}
.verdict__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.verdict__fuel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
}
.verdict__fuel--best {
  border: 2px solid var(--amber);
  background: var(--cream);
}
.verdict__fuel > span {
  color: var(--text);
  font-weight: 600;
}
.verdict__fuel strong {
  display: block;
  margin-block: 2px 8px;
  color: var(--text);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.verdict__fuel strong small {
  color: var(--text-3);
  font-size: 0.6em;
  font-weight: 500;
}
.verdict__fuel b { color: var(--text); font-weight: 600; }
.verdict__result {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.verdict__result strong { color: var(--text); }

/* Recursos */
.features { background: var(--bg); }
.features__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 56px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--amber);
}
.features__list p {
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Preço e dados */
.promise {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(48px, 7vw, 80px);
}
.promise__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, 6vw, 80px);
}
.promise h2 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.promise p { margin-top: 12px; }

/* Resumo */
.facts {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}
.facts tr { border-top: 1px solid var(--border-strong); }
.facts tr:last-child { border-bottom: 1px solid var(--border-strong); }
.facts th, .facts td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; }
.facts th { width: 28%; color: var(--text); font-weight: 600; }

/* Perguntas */
.summary + .faq { padding-top: 0; }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 40px clamp(40px, 6vw, 80px);
}
.faq__list { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 36px 20px 0; }

/* Lançamento */
.launch {
  background: var(--navy);
  color: var(--on-navy-2);
}
.launch__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px);
}
.launch img { flex: none; width: clamp(110px, 16vw, 170px); height: auto; }
.launch h2 { color: var(--on-navy); }
.launch__tag {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 0.9375rem;
  font-weight: 600;
}
.launch h2 + p { margin-top: 10px; }

/* Rodapé */
.site-footer {
  background: var(--night);
  color: var(--on-navy-2);
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
}
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand__mark { background: var(--navy); }
.site-footer a:last-child { margin-left: auto; color: var(--on-navy-2); }

/* Responsivo */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-header__status { margin-left: auto; }

  .hero__grid,
  .qr__grid,
  .fuel__grid,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__visual {
    justify-content: center;
    padding-right: 0;
  }
  .hero__mascot { right: calc(50% + 144px); }

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

@media (max-width: 640px) {
  .numbers__list { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .numbers__list li { padding: 20px 0; }
  .numbers__list li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .qr__visual { grid-template-columns: minmax(0, 1fr); }
  .qr__arrow { transform: rotate(90deg); padding-block: 8px; }

  .features__list { gap: 32px 20px; margin-top: 40px; }
  .promise__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__visual { padding-bottom: 8px; }
  .hero__mascot { width: 92px; left: -10px; right: auto; bottom: 150px; }
  .phone { width: min(270px, 84%); margin-left: auto; }
}

@media (max-width: 400px) {
  .features__list { grid-template-columns: minmax(0, 1fr); }
  .verdict__prices { grid-template-columns: minmax(0, 1fr); }
  .launch__inner { flex-direction: column; align-items: flex-start; }
  .site-footer a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mascot { animation: none; }
}
