/* ===================================================================
   LA Autos — Formulário de qualificação de leads
   Paleta: preto (fundo) · dourado (destaque) · branco (texto)
   =================================================================== */

:root {
  --black:       #0a0a0a;
  --black-soft:  #141414;
  --black-card:  #1a1a1a;
  --gold:        #c9a24b;
  --gold-light:  #e7c878;
  --gold-deep:   #a9842f;
  --white:       #ffffff;
  --gray:        #b3b3b3;
  --gray-dim:    #7a7a7a;
  --line:        rgba(201, 162, 75, 0.22);
  --wa:          #25d366;
  --radius:      18px;
  --shadow:      0 18px 50px rgba(0, 0, 0, 0.55);
  --gold-grad:   linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  --font-head:   'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 75, 0.10), transparent 55%),
    var(--black);
  color: var(--white);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(255, 255, 255, 0.06);
  z-index: 50;
}
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: var(--gold-grad);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.6);
}

/* ---------- App shell / screens ---------- */
.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 48px;
  position: relative;
}

.screen { display: none; animation: fade-in 0.45s ease both; }
.screen.is-active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Brand header ---------- */
.brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 14px;
}
.brand__logo { height: 46px; width: auto; object-fit: contain; }
.brand__city {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600;
}

/* ===================================================================
   CAROUSEL
   =================================================================== */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--black-soft);
}
.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel__slide { min-width: 100%; }
.carousel__slide img {
  display: block; width: 100%; height: 280px; object-fit: cover;
}
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--gold-light);
  font-size: 1rem; cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.carousel__nav:hover { background: rgba(201, 162, 75, 0.2); }
.carousel__nav:active { transform: translateY(-50%) scale(0.92); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }
.carousel__dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; gap: 7px; justify-content: center;
}
.carousel__dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); transition: all 0.3s;
}
.carousel__dots button.is-active { background: var(--gold-light); width: 22px; border-radius: 4px; }
.carousel__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(6px);
  color: var(--gold-light); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}

/* ===================================================================
   COVER INFO
   =================================================================== */
.cover__info { padding-top: 22px; }
.cover__eyebrow {
  color: var(--gold-light); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.cover__title {
  font-family: var(--font-head); font-size: 1.8rem; line-height: 1.15;
  font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; color: var(--white);
}
.cover__price {
  display: flex; flex-direction: column; gap: 2px;
  margin: 20px 0; padding: 16px 20px;
  background: var(--black-card); border: 1px solid var(--line);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.cover__price::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,162,75,0.12), transparent 60%);
  pointer-events: none;
}
.cover__price-label { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.cover__price-value {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Specs grid */
.specs {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 24px;
}
.specs li {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--black-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px;
}
.specs span { font-size: 0.7rem; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.specs strong { font-size: 0.98rem; color: var(--white); font-weight: 600; }

/* Features */
.features { margin-bottom: 18px; }
.features__title {
  font-size: 0.8rem; font-weight: 600; color: var(--gold-light);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.features__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.features__grid span {
  font-size: 0.8rem; color: var(--gray); padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(201, 162, 75, 0.04);
}
.cover__note {
  font-size: 0.82rem; color: var(--gray-dim); text-align: center;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===================================================================
   QUESTIONS
   =================================================================== */
.screen[data-step="troca"],
.screen[data-step="pagamento"],
.screen[data-step="nome"],
.screen[data-step="final"] {
  min-height: 100dvh;
  display: none;
  align-items: center;
}
.screen[data-step="troca"].is-active,
.screen[data-step="pagamento"].is-active,
.screen[data-step="nome"].is-active,
.screen[data-step="final"].is-active {
  display: flex;
}

.q { width: 100%; padding: 90px 0 40px; }
.q__count {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.q__title {
  font-family: var(--font-head); font-size: 1.7rem; line-height: 1.2;
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px;
}
.q__hint { color: var(--gray); font-size: 0.95rem; margin-bottom: 28px; }

/* Choice cards */
.choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--black-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  color: var(--white); font-size: 1.05rem; font-weight: 500;
  font-family: var(--font-body);
  transition: transform 0.18s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.choice:hover { transform: translateY(-2px); border-color: var(--gold); }
.choice:active { transform: scale(0.98); }
.choice.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,162,75,0.16), rgba(201,162,75,0.04));
  box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(201,162,75,0.15);
}
.choice__icon {
  font-size: 1.4rem; width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(201, 162, 75, 0.1); border: 1px solid var(--line);
}
.choice__label { flex: 1; }

/* Reveal panels */
.reveal { margin-top: 22px; animation: fade-in 0.4s ease both; }

/* Fields */
.field { display: block; margin-bottom: 20px; }
.field__label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 10px;
}
.field__input {
  width: 100%; background: var(--black-card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; color: var(--white); font-size: 1.05rem;
  font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: var(--gray-dim); }
.field__input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.field__money { position: relative; display: flex; align-items: center; }
.field__prefix {
  position: absolute; left: 18px; font-size: 1.05rem; font-weight: 600;
  color: var(--gold-light); pointer-events: none;
}
.field__money .field__input { padding-left: 48px; }
.field__help { display: block; font-size: 0.78rem; color: var(--gray-dim); margin-top: 8px; }

/* ===================================================================
   BUTTONS / CTA
   =================================================================== */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--black) 55%, transparent);
  z-index: 40;
}
.cta-bar > .btn { max-width: 520px; margin: 0 auto; }
.cta-bar--static {
  position: static; padding: 8px 0 0; background: none;
  display: flex; flex-direction: column; gap: 24px;
}

/* Na capa o CTA fica logo abaixo dos destaques (sem sobrepor o conteúdo) */
.screen--cover .cta-bar {
  position: static;
  padding: 22px 0 0;
  background: none;
}

.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; cursor: pointer; border: none; border-radius: 16px;
  padding: 17px 22px; font-family: var(--font-body); font-size: 1.08rem;
  font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.18s, box-shadow 0.2s, filter 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn__sub { font-size: 0.74rem; font-weight: 500; opacity: 0.75; margin-top: 2px; letter-spacing: 0.02em; }

.btn--primary {
  background: var(--gold-grad); color: #1a1407;
  box-shadow: 0 12px 30px rgba(201, 162, 75, 0.3);
}
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 14px 38px rgba(201, 162, 75, 0.42); }

.btn--whatsapp {
  flex-direction: row; gap: 10px;
  background: var(--wa); color: #03210f;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.32);
}
.btn--whatsapp:hover { filter: brightness(1.05); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45); }

.btn--ghost {
  background: transparent; color: var(--gray);
  border: 1px solid rgba(255,255,255,0.12); font-weight: 500;
  font-size: 0.92rem; padding: 13px; margin-top: 42px;
}
.btn--ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

/* Reveal buttons should not be fixed */
.reveal .btn { position: static; }

/* ---------- Pulsing CTAs ---------- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 12px 30px rgba(201, 162, 75, 0.30); transform: scale(1); }
  50%      { box-shadow: 0 16px 44px rgba(201, 162, 75, 0.60); transform: scale(1.025); }
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.32); transform: scale(1); }
  50%      { box-shadow: 0 16px 46px rgba(37, 211, 102, 0.62); transform: scale(1.025); }
}
.btn--pulse    { animation: pulse-gold 1.8s ease-in-out infinite; }
.btn--pulse-wa { animation: pulse-wa 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .btn--pulse, .btn--pulse-wa { animation: none; }
}

/* ---------- Scroll cue (capa) ---------- */
.scroll-cue {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  z-index: 45; pointer-events: none; transition: opacity 0.35s ease;
  animation: cue-bounce 1.6s ease-in-out infinite;
}
.scroll-cue__text {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-light);
}
.scroll-cue__chev { font-size: 1.5rem; line-height: 1; color: var(--gold-light); }
.scroll-cue.is-hidden { opacity: 0; }
@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- Back button ---------- */
.back-btn {
  position: fixed; top: 14px; left: 16px; z-index: 60;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black-card); border: 1px solid var(--line);
  color: var(--gold-light); font-size: 1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.back-btn:hover { background: rgba(201, 162, 75, 0.18); }
.back-btn:active { transform: scale(0.9); }

/* ===================================================================
   FINAL / SUMMARY
   =================================================================== */
.screen--final .q { text-align: center; }
.final__check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.8rem; font-weight: 700; color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.4);
  animation: pop 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
#finalNome { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.summary {
  text-align: left; background: var(--black-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 26px 0 8px;
}
.summary__car { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.summary__car img { width: 84px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.summary__car-info { display: flex; flex-direction: column; gap: 2px; }
.summary__car-info strong { font-size: 0.98rem; }
.summary__car-info span { font-size: 0.8rem; color: var(--gray); }
.summary__price {
  font-weight: 700 !important; color: var(--gold-light) !important; font-size: 0.95rem !important;
}
.summary__list { list-style: none; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.summary__list li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.summary__list li span { color: var(--gray); }
.summary__list li strong { color: var(--white); font-weight: 600; text-align: right; }

/* ---------- Shake (validation) ---------- */
.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.field__input.is-error { border-color: #e06363; box-shadow: 0 0 0 3px rgba(224, 99, 99, 0.18); }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .carousel__slide img { height: 340px; }
  .cover__title { font-size: 2.3rem; }
}
