/* =========================================================
   VSL Caminhoneiro — estilo base
   Cores principais ficam nas variáveis abaixo: troque aqui.
   ========================================================= */
:root {
  --bg: #0f1114;          /* asfalto */
  --bg-2: #15181d;
  --panel: #1c2026;
  --panel-2: #242a32;
  --line: #2e343d;
  --text: #f4f5f7;
  --muted: #a3abb8;
  --yellow: #ffc21a;      /* faixa da estrada */
  --green: #1fb85a;       /* botão Agendar */
  --green-top: #2bd06a;
  --green-dark: #0f7a3a;
  --green-glow: rgba(31, 184, 90, .45);
  --danger: #ff6b5b;
  --radius: 16px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -180px, #262b33 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, svg, video { display: block; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

/* Faixa zebrada de obra */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #111 14px 28px);
}

.topbar { padding: 14px 0; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: center; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  letter-spacing: .08em; text-transform: uppercase;
}
.brand svg { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 6px 14px;
  border: 1px solid rgba(255, 194, 26, .45);
  background: rgba(255, 194, 26, .08);
  color: var(--yellow);
  border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
  animation: blink 1.4s ease-in-out infinite;
}
h1 {
  margin: 0 auto; max-width: 20ch;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 6.6vw, 52px); line-height: 1.04; letter-spacing: .005em;
  text-wrap: balance;
}
h1 mark { background: none; color: var(--yellow); }
.lead {
  margin: 14px auto 0; max-width: 34em;
  color: var(--muted); font-size: clamp(16px, 2.4vw, 19px);
  text-wrap: pretty;
}
.road {
  width: 132px; height: 4px; margin: 20px auto 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 30px);
  opacity: .85;
}

/* ---------- Vídeo ---------- */
.player { max-width: 760px; margin: 0 auto; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px #2a2f37, 0 22px 60px rgba(0, 0, 0, .6);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-frame.is-playing video { cursor: pointer; }

.layer {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; padding: 16px; margin: 0;
  background: rgba(0, 0, 0, .35);
  color: var(--text); cursor: pointer; text-align: center;
}
.layer--unmute { background: rgba(0, 0, 0, .28); }
.unmute-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: min(82%, 330px); padding: 18px 18px 16px;
  background: var(--yellow); color: #111;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  animation: nudge 1.8s ease-in-out infinite;
}
.unmute-card__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(19px, 4.4vw, 26px); line-height: 1.1;
}
.unmute-card__sub { font-weight: 600; font-size: 15px; }

.layer--paused { background: rgba(0, 0, 0, .5); }
.play-circle {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: #111;
}
.play-circle svg { margin-left: 5px; }
.layer__text { font-weight: 700; font-size: 17px; }

.layer--end { background: rgba(10, 12, 14, .88); cursor: default; }
.layer__title {
  margin: 0; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 5vw, 32px); color: var(--yellow);
}
.link-btn {
  background: none; border: 0; color: var(--muted); text-decoration: underline;
  cursor: pointer; padding: 6px;
}

.video-missing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; text-align: center; color: var(--muted);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 194, 26, .05) 0 16px, transparent 16px 32px),
    #121418;
}
.video-missing svg { color: var(--yellow); }
.video-missing strong { color: var(--text); font-size: 18px; }
.video-missing code { color: var(--yellow); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .12); }
.progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .25s linear; }

/* ---------- Botão verde ---------- */
.cta-block { padding: 26px 0 36px; text-align: center; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 520px; min-height: 70px; margin: 0 auto;
  padding: 14px 26px;
  border: 0; border-radius: 14px;
  background: linear-gradient(180deg, var(--green-top), var(--green));
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--green-dark), 0 14px 32px var(--green-glow);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  animation: pulse 2.2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark), 0 8px 20px var(--green-glow); }
.btn-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-cta:disabled { filter: grayscale(.4) brightness(.85); cursor: wait; animation: none; }
.btn-cta--sm { min-height: 56px; font-size: 21px; max-width: 360px; }

.cta-sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.perks {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.perks li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.perks svg { color: var(--yellow); }

/* ---------- Rodapé ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 calc(96px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 13px;
}
.footer p { margin: 4px 0; }
.footer__legal { opacity: .7; font-size: 12px; }

.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }

/* ---------- Páginas legais ---------- */
.brand { text-decoration: none; color: inherit; }
.legal { max-width: 760px; padding-top: 30px; padding-bottom: 40px; }
.legal h1 {
  max-width: none; text-align: left;
  font-size: clamp(30px, 6vw, 44px);
}
.legal__updated { color: var(--muted); font-size: 14px; margin: 8px 0 26px; }
.legal h2 {
  margin: 32px 0 10px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 21px; letter-spacing: .02em; color: var(--yellow);
}
.legal p, .legal li { color: #d6dae1; font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--yellow); }
.legal strong { color: var(--text); }
.legal__back { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer--legal { padding-bottom: 28px; }
.fine a { color: var(--muted); }

/* ---------- Botão fixo (celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(15, 17, 20, 0), rgba(15, 17, 20, .96) 35%);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn-cta { max-width: 520px; }

/* =========================================================
   Modal de agendamento
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, .74); backdrop-filter: blur(3px); }
.modal__sheet {
  position: relative; width: 100%; max-width: 540px; max-height: 94vh; overflow-y: auto;
  background: var(--bg-2);
  border-top: 5px solid var(--yellow);
  border-radius: 22px 22px 0 0;
  padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
  animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 760px) {
  .modal { align-items: center; padding: 20px; }
  .modal__sheet { border-radius: 22px; padding: 20px 26px 28px; }
}
.modal__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.icon-btn {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn.is-hidden { visibility: hidden; }
.steps { flex: 1; display: flex; justify-content: center; gap: 6px; }
.steps span { width: 34px; height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.steps span.on { background: var(--yellow); }
.steps.is-hidden { visibility: hidden; }

.step { animation: fadeIn .22s ease-out; }
.step-title {
  margin: 8px 0 4px; text-align: center;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 6vw, 30px); line-height: 1.08;
  text-wrap: balance;
}
.step-sub { margin: 0 0 18px; text-align: center; color: var(--muted); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts--single { grid-template-columns: 1fr; }
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 18px 10px 16px;
  border: 2px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--text);
  text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover, .opt:focus-visible { border-color: var(--yellow); background: var(--panel-2); outline: none; }
.opt:active { transform: scale(.98); }
.opt__icon { color: var(--yellow); }
.opt__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 5.2vw, 25px); line-height: 1.05;
}
.opt__sub { color: var(--muted); font-size: 14px; font-weight: 500; }
.opt__tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.opt--time .opt__title { font-size: clamp(34px, 9vw, 42px); letter-spacing: .02em; }
.opt--time { min-height: 116px; }

.notice {
  margin: 0 0 14px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 107, 91, .4);
  background: rgba(255, 107, 91, .1); color: #ffb3aa;
  text-align: center; font-weight: 600; font-size: 14px;
}

/* Resumo do horário escolhido */
.summary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 18px; padding: 10px 16px; width: fit-content; max-width: 100%;
  border: 1px solid rgba(255, 194, 26, .45); background: rgba(255, 194, 26, .08);
  border-radius: 12px; color: var(--yellow); font-weight: 700;
}

/* Formulário */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.field input {
  width: 100%; height: 60px; padding: 0 16px;
  border-radius: 12px; border: 2px solid var(--line);
  background: #0c0e11; color: var(--text);
  font: 600 20px/1 var(--font-body);
  transition: border-color .15s;
}
.field input::placeholder { color: #5d6573; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--yellow); }
.field.is-invalid input { border-color: var(--danger); }
.field__hint { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.field.is-invalid .field__hint { color: var(--danger); }

/* Campo-armadilha anti-robô (invisível para pessoas) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { min-height: 1.3em; margin: 0 0 10px; text-align: center; color: var(--danger); font-weight: 600; font-size: 14px; }
.fine { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.fine svg { display: inline; vertical-align: -3px; margin-right: 4px; }

/* Carregando: pneu girando */
.loading { padding: 40px 0 30px; text-align: center; color: var(--muted); }
.tire {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  border: 9px dashed var(--yellow); border-color: var(--yellow) #2e343d;
  animation: spin .9s linear infinite;
}

/* Sucesso */
.success { text-align: center; padding: 8px 0 4px; }
.success__icon {
  width: 84px; height: 84px; margin: 6px auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  box-shadow: 0 0 0 10px rgba(31, 184, 90, .15);
  animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.success__when {
  margin: 6px 0 4px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(22px, 5.6vw, 28px); color: var(--yellow); text-transform: uppercase;
}
.success p { color: var(--muted); margin: 6px 0; }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 360px; min-height: 54px; margin: 14px auto 0;
  border-radius: 14px; border: 2px solid var(--line); background: var(--panel);
  color: var(--text); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--yellow); }
.btn-ghost--wa { border-color: rgba(37, 211, 102, .5); }
.demo-tag {
  display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 8px;
  background: var(--panel); color: var(--muted); font-size: 12px;
}

/* ---------- Animações ---------- */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
