:root {
  --navy: #0a2a4a;
  --blue: #2e6bff;
  --blue-hover: #1f58e8;
  --mist: #eef5fc;
  --white: #ffffff;
  --muted: #4a6076;
  --line: #d7e3f0;
  --max: 1100px;
  --nav-h: 64px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 183, 212, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 183, 212, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 10%, #000 20%, transparent 75%);
}
img { max-width: 100%; display: block; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(238, 245, 252, 0.94);
  backdrop-filter: blur(12px);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { margin-right: auto; }
.brand img { width: 128px; height: auto; }
.nav-links {
  display: flex;
  gap: 20px;
  margin-right: 8px;
}
.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--blue); }

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none; /* the homepage's Schedule Demo buttons are links to /book-a-call/ */
  cursor: pointer;
}
.cta:hover { background: var(--blue-hover); }
.cta-lg {
  min-height: 54px;
  min-width: 240px;
  padding: 14px 32px;
  font-size: 16px;
  margin-top: 20px;
}

/* ---- HOMEPAGE HERO ---------------------------------------------------------------------------
   Words on the left, the Tremor-and-Escalade photo on the right; stacked and centred on narrow
   screens. The pitch video lives on /book-a-call since 2026-09-23. */
.hero {
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  margin: 0;
  max-width: 13em;
}
.hero-copy .lead { margin: 16px 0 0; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-actions .cta-lg { margin-top: 0; }
.hero-more {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-more:hover { color: var(--blue); }
.hero-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(10, 42, 74, 0.22);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h1 {
  margin: 0 auto;
  max-width: 18em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lead {
  margin: 12px auto 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 17px;
  /* Explicit, and equal to IBM Plex Sans's own "normal" (~1.29): with "normal" the fallback font
     set shorter lines, so the web font arriving pushed the video down ~6px under a thumb. */
  line-height: 1.3;
}
.proof {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- PITCH VIDEO (drivenauto.ai/book-a-call) -------------------------------------------------
   vsl.js drives this; every overlay is keyed off data-state on the figure:
   starting (spinner) -> preview (muted autoplay, "Press to unmute" box) -> playing / paused
   (controls + the fast progress bar) -> ended (Schedule Demo). poster = autoplay refused.
   The figure stays exactly 16:9 and shrinks its width rather than its height on short screens. */
.vsl {
  position: relative;
  margin: 20px auto 0;
  width: min(100%, calc(min(64vh, 680px) * 16 / 9));
  width: min(100%, calc(min(64svh, 680px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(10, 42, 74, 0.22);
  container-type: inline-size;
  isolation: isolate;
  color: #fff;
  touch-action: manipulation; /* no double-tap zoom on the player */
  -webkit-tap-highlight-color: transparent;
}
/* iOS 14 and older have no aspect-ratio; phones are full width there, so padding holds 16:9. */
@supports not (aspect-ratio: 16 / 9) {
  .vsl { height: 0; padding-top: 56.25%; }
}
.vsl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* iOS draws its own play button over a video it will not autoplay, even without the controls
   attribute: a second, off-centre button next to ours. Hide every native piece; the player has
   its own controls. (Native full screen on iPhone keeps the system player's controls.) */
.vsl-video::-webkit-media-controls,
.vsl-video::-webkit-media-controls-panel,
.vsl-video::-webkit-media-controls-start-playback-button,
.vsl-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}
.vsl button:not(.cta) { font: inherit; }
.vsl button:focus-visible { outline: 3px solid #fff; outline-offset: -3px; } /* inside: the figure clips */
.vsl.is-calm[data-state="playing"] { cursor: none; }

/* The Vidalytics "box": the one loud thing on the video until it is pressed. The whole picture
   is the button, so a tap anywhere on the video counts. */
.vsl-unmute {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  cursor: pointer;
}
.vsl[data-state="preview"] .vsl-unmute { display: grid; }
.vsl-unmute-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.85em 1.6em 0.95em;
  border-radius: 14px;
  background: var(--blue);
  font-size: clamp(12px, 1.6vw, 20px);
  font-size: clamp(12px, 2.2cqi, 22px);
  line-height: 1.15;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: vsl-pulse 1.8s ease-out infinite;
}
.vsl-unmute:hover .vsl-unmute-box { background: var(--blue-hover); }
.vsl-unmute-top { font-size: 0.9em; font-weight: 600; opacity: 0.92; }
.vsl-unmute-icon { width: 2.8em; height: 2.8em; fill: currentColor; }
.vsl-unmute-cta { font-size: 1.3em; font-weight: 700; letter-spacing: -0.01em; }
@keyframes vsl-pulse {
  0% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(46, 107, 255, 0.6); }
  70% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 0.9em rgba(46, 107, 255, 0); }
  100% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(46, 107, 255, 0); }
}

.vsl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 84px;
  height: 84px;
  width: clamp(60px, 12cqi, 96px);
  height: clamp(60px, 12cqi, 96px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.vsl-play:hover { background: var(--blue-hover); }
.vsl-play svg { width: 46%; height: 46%; margin-left: 6%; fill: currentColor; }
.vsl[data-state="poster"] .vsl-play,
.vsl[data-state="paused"] .vsl-play { display: grid; }

.vsl-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vsl-spin 0.8s linear infinite;
}
.vsl[data-state="starting"] .vsl-spinner,
.vsl.is-waiting[data-state="playing"] .vsl-spinner { display: block; }
@keyframes vsl-spin { to { transform: rotate(360deg); } }

.vsl-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: rgba(10, 42, 74, 0.8);
  text-align: center;
}
.vsl[data-state="ended"] .vsl-end { display: flex; }
.vsl-end-title {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 30px);
  font-size: clamp(18px, 3.4cqi, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.vsl-end .cta-lg { width: auto; margin-top: 8px; }
.vsl-replay {
  margin-top: 6px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.9;
}
.vsl-replay:hover { opacity: 1; }

/* No seek bar, no clock: a progress line that cannot be dragged. vsl.js scales the fill along
   sqrt(1 - (1 - p)^2), so it races through the opening and crawls near the end. */
.vsl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  transition: height 0.2s;
}
.vsl[data-state="playing"] .vsl-progress,
.vsl[data-state="paused"] .vsl-progress { display: block; }
.vsl:not(.is-calm) .vsl-progress { height: 7px; }
.vsl-progress-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.vsl-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 28px 8px 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  transition: opacity 0.25s;
}
.vsl[data-state="playing"] .vsl-bar,
.vsl[data-state="paused"] .vsl-bar { display: flex; }
.vsl.is-calm[data-state="playing"] .vsl-bar { opacity: 0; pointer-events: none; }
.vsl-bar-space { flex: 1; }
.vsl-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.vsl-btn:hover { background: rgba(255, 255, 255, 0.16); }
.vsl-btn svg { width: 26px; height: 26px; fill: currentColor; }
.vsl-btn[hidden] { display: none; }
.vsl[data-state="playing"] .vsl-toggle .i-play,
.vsl:not([data-state="playing"]) .vsl-toggle .i-pause,
.vsl.is-muted .vsl-mute .i-sound,
.vsl:not(.is-muted) .vsl-mute .i-muted,
.vsl.is-fullscreen .vsl-fs .i-enter,
.vsl:not(.is-fullscreen) .vsl-fs .i-exit { display: none; }

.vsl:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.vsl:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

.vsl-noscript {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .vsl-unmute-box { animation: none; }
}

.foot {
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

.band {
  padding: 72px 0 64px;
  text-align: center;
}
.band-alt { background: rgba(255, 255, 255, 0.62); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.band h2, .final h2 {
  margin: 0 auto;
  max-width: 18em;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.band .lead { margin-top: 10px; }
.band .cta-lg { margin-top: 28px; }

/* What you get: four plain facts, each one already said somewhere on the page or in the terms. */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  text-align: left;
}
.facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 18px 18px 20px;
}
.facts h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}
.facts p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  text-align: left;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.steps img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}
.steps h3 {
  margin: 14px 16px 6px;
  font-size: 16px;
}
.steps h3::before {
  counter-increment: step;
  content: "0" counter(step) " · ";
  color: var(--blue);
}
.steps p {
  margin: 0 16px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 36px;
  text-align: left;
  align-items: start;
}
.faq-intro { text-align: left; }
.faq-intro .lead { margin: 10px 0 18px; max-width: none; }
.faq-list { display: grid; gap: 8px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.final { padding-bottom: 80px; }
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  text-align: left;
}
.final-media {
  width: 100%;
  height: auto; /* the height="832" attribute would otherwise beat aspect-ratio */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 42, 74, 0.18);
}
.final-copy h2 { margin: 0; max-width: 14em; }
/* No one-word last lines on the selling headings ("…homework / done"). */
.hero-copy h1, .band h2, .facts h3, .steps h3, .final-copy h2 { text-wrap: balance; }
.final-copy .lead { margin: 12px 0 0; }

.sk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 42, 74, 0.55);
}
body.is-booking .nav { visibility: hidden; }
.sk-modal[hidden] { display: none; }
.sk-card {
  position: relative;
  width: min(960px, 100%);
  height: min(720px, 92svh);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 42, 74, 0.28);
}
.sk-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.sk-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .hero { padding: 28px 0 56px; text-align: center; }
  .hero-grid, .final-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy h1, .final-copy h2 { margin-left: auto; margin-right: auto; }
  .hero-copy .lead, .final-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .final-copy { text-align: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding-top: 20px; }
  h1 { font-size: 28px; }
  .cta-lg { width: 100%; }
  .vsl { width: 100%; }
  .sk-card { height: 100svh; border-radius: 0; width: 100%; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro { text-align: center; }
  .faq-intro .cta { width: 100%; }
}

/* ---- SIGN-IN DOORS -------------------------------------------------------------------------
   Two audiences on one page. The hero sells to a dealer who has never heard of us and must keep
   Schedule Demo as the only loud thing on screen; these are for the dealer who already pays us and
   just wants their board. So: a quiet text link in the nav, and a named row in the footer where
   people look for an account door once the marketing has failed to be what they came for.
   /login and /admin are nginx redirects on this domain -- short enough to say on a phone call. */
.nav-signin {
  position: relative;
  padding-left: 20px;
}
.nav-signin::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--line);
}

.foot-access {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.foot-access-label { color: var(--muted); }
.foot-access a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.foot-access a:hover { color: var(--blue); text-decoration: underline; }
.foot-access-sep { color: var(--line); }

@media (max-width: 640px) {
  /* The nav is tight on a phone and "Sign in" is the least urgent thing in it for a first-time
     visitor. It stays reachable in the footer, which is where a returning customer scrolls. */
  .nav-signin { display: none; }
}

.legal {
  padding: 36px 0 80px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: clamp(28px, 4vw, 40px);
}
.legal .kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal .intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.legal h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.legal h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.65;
}
.legal p { margin: 0 0 14px; }
.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal li { margin: 0 0 8px; }
.legal a { color: var(--blue); }
.legal .company {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 6px;
  margin: 28px 0 8px;
}
.legal .company h2 { margin-top: 0; }
.legal address {
  font-style: normal;
  margin: 0 0 14px;
  line-height: 1.65;
}
.legal .legal-links {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
/* The text-message program (Privacy Policy section 13 and the SMS Terms): a panel like the
   company box with a blue edge, found at a glance, and the STOP / HELP reply words in bold. */
.legal .sms {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 18px 20px 6px;
  margin: 36px 0 8px;
}
.legal .sms h2 { margin-top: 0; }
.legal .sms-status {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 13px;
  font-weight: 700;
}
.legal .sms-keys {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--mist);
}
.legal .sms-key {
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  letter-spacing: 0.04em;
}
.legal .sms-pointer {
  margin: 20px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
}
/* "Last updated" under the intro of the two pages with the SMS disclosures: the publication date,
   which the future SMS opt-in records as the disclosure version. */
.legal .legal-updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.foot a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
