/* =========================================================
   LP Consultor Honda 0km · Mato Grosso
   Mobile-first · sem dependências externas
   ========================================================= */

:root {
  --red: #cc0000;          /* vermelho Honda */
  --red-dark: #a30000;
  --red-soft: #fdf1f1;
  --graphite: #23262b;
  --graphite-2: #3a3e45;
  --text: #16181b;
  --muted: #555b64;
  --line: #e3e5e8;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --green: #128c3e;        /* WhatsApp alto contraste (branco sobre verde ≈ 4.8:1) */
  --green-dark: #0d6e30;
  --warn-bg: #fff7e6;
  --warn-line: #e8a317;
  --warn-text: #5c3d00;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 18, 20, .06), 0 6px 20px rgba(16, 18, 20, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--graphite); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6.5vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

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

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 32px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 .75em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--outline { background: #fff; color: var(--graphite); border-color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: #fff; }

.btn--whatsapp { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(18, 140, 62, .28); }
.btn--whatsapp:hover { background: var(--green-dark); }
.btn__icon { width: 24px; height: 24px; flex: none; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 6px; height: 32px; border-radius: 3px; background: var(--red); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; color: var(--graphite); }
.brand__text small { font-size: .75rem; color: var(--muted); }
.topbar__link {
  font-weight: 700;
  font-size: .95rem;
  color: var(--red);
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid var(--red);
  border-radius: 999px;
}
.topbar__link:hover { background: var(--red); color: #fff; }

/* ---------- Placeholders de foto ---------- */
.placeholder {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(35, 38, 43, .035) 14px 28px),
    var(--bg-alt);
  border: 2px dashed #c9cdd2;
  border-radius: var(--radius);
}
.placeholder--hero { aspect-ratio: 4 / 3; }
.placeholder--moto { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; border-width: 0 0 2px; }
.placeholder--delivery { aspect-ratio: 4 / 3; }

/* ---------- Fotos reais ---------- */
.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 953 / 1000;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(16, 18, 20, .18);
  background: var(--bg-alt);
}
.hero__photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(35, 38, 43, .82);
  border-radius: 999px;
}
.card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.deliveries__title { margin: 0 0 14px; }
.deliveries img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* ---------- Hero ---------- */
.hero { padding: 28px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero__grid { display: grid; gap: 28px; }
.hero__sub { font-size: 1.05rem; color: var(--graphite-2); max-width: 36em; }
.hero .btn--primary { width: 100%; }
.hero__points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .9rem;
  color: var(--muted);
}
.hero__points li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 6px; }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--sim { background: var(--graphite); }
.section__head { margin-bottom: 28px; }
.section--sim .section__head h2 { color: #fff; }
.section--sim .section__head .muted { color: #c9ccd1; }
.section--sim .eyebrow { color: #ff6b6b; }

/* ---------- Simulador ---------- */
.sim {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.step {
  border: 0;
  margin: 0;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--graphite);
}
.step__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--graphite);
  color: #fff;
  font-size: .9rem;
}
.step.is-done .step__num { background: var(--red); }
.step__hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options--stack { grid-template-columns: 1fr; }
.opt--wide { grid-column: 1 / -1; }

.opt {
  position: relative;
  min-height: 56px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.25;
  color: var(--graphite);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: #b9bec5; }
.opt[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}
.opt[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--red);
}

.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: .9rem; font-weight: 600; color: var(--graphite-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* evita zoom no iOS */
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus { outline: none; border-color: var(--red); }
.field input.is-filled { border-color: var(--red); background: var(--red-soft); }

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--warn-bg);
  border: 2px solid var(--warn-line);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  color: var(--warn-text);
  font-size: .95rem;
}
.notice > strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; }

.summary {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px;
}
.summary__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.summary__head h3 { margin: 0; font-size: 1rem; }
.badge {
  flex: none;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--graphite);
  color: #fff;
}
.badge.is-complete { background: var(--green); }
.summary__list { margin: 0 0 18px; display: grid; gap: 8px; }
.summary__list > div { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; font-weight: 700; text-align: right; color: var(--graphite); }
.summary__note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Vitrine ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card__body .muted { flex: 1; font-size: .95rem; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.steps__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps__item h3 { margin-bottom: .25em; }
.steps__item p { margin: 0; font-size: .95rem; }
.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}
.deliveries { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

/* ---------- Rodapé ---------- */
.footer { background: var(--graphite); color: #c9ccd1; padding: 36px 0 28px; font-size: .88rem; }
.footer__disclaimer { max-width: 60em; }
.footer__disclaimer strong { color: #fff; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Telas maiores
   ========================================================= */
@media (min-width: 600px) {
  .hero .btn--primary { width: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .deliveries { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .sim { padding: 32px; }
  .options--stack { grid-template-columns: 1fr 1fr; }
  .options--stack .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps__item { flex-direction: column; }
}
