:root {
  --bg: #07090d;
  --bg-soft: #0d1219;
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.1);
  --text: #f6f8fb;
  --text-soft: rgba(246,248,251,0.72);
  --muted: rgba(246,248,251,0.5);
  --accent: #7eff8a;
  --accent-2: #6fd8ff;
  --danger: #ff6d6d;
  --shadow: 0 30px 80px rgba(0,0,0,0.45);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1200px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(111, 216, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(126, 255, 138, 0.06), transparent 30%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.noise,
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.noise {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.15;
}
.ambient-one {
  background: radial-gradient(circle at 10% 20%, rgba(111, 216, 255, 0.12), transparent 18%);
}
.ambient-two {
  background: radial-gradient(circle at 80% 75%, rgba(126, 255, 138, 0.1), transparent 22%);
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 110px 0 0;
}
.centered { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}
.section-head h2,
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.section-head p,
.hero-subtitle,
.step-copy p,
.flow-card p,
.benefit p,
.featured-card p,
.sticky-note p,
.estimate-card p,
.field span,
.quote-form small,
.quick-flow p {
  color: var(--text-soft);
}
.hero h1 span { color: var(--accent); }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: var(--container);
  margin: 18px auto 0;
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(126,255,138,0.7);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
}
.desktop-nav a:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  color: #081109;
  background: linear-gradient(135deg, var(--accent), #c9ffd1);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  box-shadow: 0 14px 30px rgba(126,255,138,0.16);
}
.button:hover { transform: translateY(-2px); }
.button--ghost {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}
.button--sm { padding: 12px 18px; font-size: 0.94rem; }
.button--submit { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
  padding-top: 60px;
}
.hero-copy {
  display: grid;
  gap: 22px;
}
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-stats div,
.flow-card,
.featured-card,
.benefit,
.summary-panel,
.builder-main,
.flow-card,
.featured-card,
.builder-step,
.sticky-note,
.estimate-card,
.field input,
.field textarea,
.quote-form,
.builder-shell,
.delivery-card {
  border-radius: var(--radius);
}
.hero-stats div {
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-stats strong { display: block; font-size: 1rem; margin-bottom: 5px; }
.hero-stats span { color: var(--muted); font-size: 0.92rem; }
.hero-visual { position: relative; }
.hero-frame {
  overflow: hidden;
  border-radius: 34px;
  position: relative;
  aspect-ratio: 16 / 12;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,9,13,0.66));
}
.hero-badges {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}
.chip--live {
  background: rgba(126,255,138,0.16);
  color: #d7ffdc;
}
.tilt-card { transform-style: preserve-3d; transition: transform 220ms ease; }

.quick-flow .flow-grid,
.benefit-grid,
.featured-services {
  display: grid;
  gap: 18px;
}
.flow-grid { grid-template-columns: repeat(4, 1fr); }
.flow-card,
.benefit {
  padding: 24px;
}
.flow-index {
  display: inline-flex;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}
.flow-card h3,
.benefit h3,
.featured-card h3,
.summary-panel h3,
.step-copy h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.05;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 24px;
  align-items: start;
}
.builder-main {
  padding: 22px;
}
.builder-topbar {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.topbar-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}
.progress-wrap { width: 100%; }
.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 320ms ease;
}

.slides {
  position: relative;
  min-height: 720px;
}
.builder-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(50px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}
.builder-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.step-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.step-copy h3 { font-size: clamp(1.7rem, 2vw, 2.6rem); }
.step-copy p { max-width: 52ch; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vehicle-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quote-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  cursor: pointer;
}
.quote-card:hover { transform: translateY(-4px); }
.quote-card.selected {
  border-color: rgba(126,255,138,0.8);
  box-shadow: 0 18px 40px rgba(126,255,138,0.12), inset 0 0 0 1px rgba(126,255,138,0.28);
}
.quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.7));
}
.quote-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.quote-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-card__top strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.quote-card__top small {
  color: rgba(255,255,255,0.84);
  font-size: 0.8rem;
  display: block;
  margin-top: 8px;
}
.quote-card__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.quote-card__price {
  font-size: 0.95rem;
  color: #dbffe0;
  font-weight: 700;
}
.quote-card__tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.addon-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 220ms ease, border-color 220ms ease;
  cursor: pointer;
}
.addon-card:hover { transform: translateY(-2px); }
.addon-card.active { border-color: rgba(126,255,138,0.8); }
.addon-card__text h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.addon-card__text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.addon-pill {
  min-width: 86px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}
.addon-card.active .addon-pill {
  background: rgba(126,255,138,0.15);
  color: #dbffe0;
}

.quote-form {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field span { font-weight: 700; color: var(--text); }
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(126,255,138,0.9);
  box-shadow: 0 0 0 4px rgba(126,255,138,0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.42); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.form-actions .button--ghost { flex: 1; }
.form-actions .button--submit { flex: 1.4; }
.form-error {
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
}
.builder-nav {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-panel {
  position: sticky;
  top: 112px;
  padding: 20px;
  display: grid;
  gap: 18px;
}
.summary-top h3 { margin: 10px 0 0; font-size: 1.5rem; }
.summary-visual {
  position: relative;
  border-radius: 24px;
  min-height: 210px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.summary-visual span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}
.summary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.summary-block { display: grid; gap: 14px; }
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.summary-row span:first-child { color: var(--text-soft); }
.summary-row strong { text-align: right; }
.summary-row--column {
  align-items: start;
  flex-direction: column;
}
.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(126,255,138,0.14);
  color: #d9ffdf;
  font-size: 0.82rem;
  font-weight: 700;
}
.tag--muted {
  background: rgba(255,255,255,0.08);
  color: var(--text-soft);
}
.estimate-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(126,255,138,0.08), rgba(111,216,255,0.04));
  border: 1px solid rgba(126,255,138,0.14);
}
.estimate-label {
  display: block;
  color: var(--text-soft);
  margin-bottom: 8px;
}
#summaryEstimate {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}
.sticky-note {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.sticky-note strong { display: block; margin-bottom: 8px; }

.featured-services { grid-template-columns: repeat(3, 1fr); }
.featured-card { overflow: hidden; }
.featured-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.featured-card__body { padding: 22px; }
.benefit-grid { grid-template-columns: repeat(4, 1fr); }

.floating-sms {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
}
.floating-sms__icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #bcffc5);
  color: #0a120b;
  font-weight: 900;
}
.floating-sms strong { display: block; }
.floating-sms small { color: var(--text-soft); }

.delivery-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,9,13,0.82);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}
.delivery-overlay.active { opacity: 1; visibility: visible; }
.delivery-card {
  width: min(640px, calc(100vw - 32px));
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.delivery-copy { position: relative; z-index: 2; }
.delivery-copy h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.96;
}
.delivery-copy p { color: var(--text-soft); }
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.delivery-car {
  position: absolute;
  left: -180px;
  bottom: 78px;
  width: 140px;
  color: var(--accent);
  filter: drop-shadow(0 6px 18px rgba(126,255,138,0.4));
}
.delivery-overlay.active .delivery-car {
  animation: driveAcross 1.9s cubic-bezier(.65,.05,.36,1) forwards;
}
@keyframes driveAcross {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 400px)); }
}
.delivery-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.delivery-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  animation: blink 1.1s infinite ease-in-out;
}
.delivery-dots span:nth-child(2) { animation-delay: 0.15s; }
.delivery-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); background: var(--accent); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .builder-shell,
  .benefit-grid,
  .flow-grid,
  .featured-services {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .summary-panel { position: static; }
  .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 26px;
    top: 10px;
    padding: 12px 14px;
  }
  .desktop-nav,
  .header-cta { display: none; }
  .section { padding-top: 86px; }
  .hero { padding-top: 26px; gap: 26px; }
  .hero-stats,
  .field-grid,
  .addon-grid,
  .card-grid,
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .builder-main,
  .summary-panel,
  .quote-form { padding: 16px; }
  .slides { min-height: 1240px; }
  .builder-nav,
  .form-actions { flex-direction: column; }
  .floating-sms {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

/* --- Client revision: no hero/header, builder first, 2 sections only --- */
body { padding-top: 0; }
.first-section { padding-top: 18px; }
.compact-section { padding-top: 72px; padding-bottom: 90px; }
.builder > .section-head,
.hero,
.quick-flow,
.benefits,
.site-header { display: none !important; }

.builder-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}
.builder-main { min-height: auto; }
.slides {
  min-height: 510px;
  transition: min-height 260ms ease;
}
.builder-step { min-height: auto; }

.vehicle-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Center the last two service cards on desktop when the last row has only two items */
.service-grid .quote-card:nth-child(5) {
  grid-column: 2;
}
.service-grid .quote-card:nth-child(6) {
  grid-column: 3;
}
.quote-card {
  min-height: 188px;
  border-radius: 22px;
}
.vehicle-grid .quote-card { min-height: 188px; }
.service-grid .quote-card { min-height: 220px; }
.quote-card__body { padding: 14px; }
.quote-card__top strong {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}
.quote-card__top small,
.quote-card__price,
.quote-card__tag {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.quote-card__top small { font-size: 0.72rem; line-height: 1.1; }
.quote-card__price { font-size: 0.82rem; }
.quote-card__tag { font-size: 0.64rem; padding: 7px 9px; }
.truck-flip img,
.truck-flip-img { transform: scaleX(-1); }

.builder-nav { margin-top: 18px; }
.form-actions { align-items: stretch; }
.summary-panel { top: 18px; }
.summary-visual { min-height: 200px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); }

@media (max-width: 1180px) {
  .builder-shell { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}

@media (max-width: 900px) {
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid .quote-card:nth-child(5),
  .service-grid .quote-card:nth-child(6) { grid-column: auto; }
  .slides { min-height: 760px; }
  .quote-card { min-height: 210px; }
}

@media (max-width: 560px) {
  .first-section { padding-top: 10px; }
  .builder-shell { gap: 16px; }
  .builder-main,
  .summary-panel { padding: 16px; border-radius: 22px; }
  .vehicle-grid,
  .service-grid,
  .addon-grid,
  .field-grid { grid-template-columns: 1fr; }
  .service-grid .quote-card:nth-child(5),
  .service-grid .quote-card:nth-child(6) { grid-column: auto; }
  .quote-card { min-height: 220px; }
  .slides { min-height: 1260px; }
  .step-copy h3 { font-size: clamp(1.95rem, 10vw, 2.8rem); }
  .featured-services { grid-template-columns: 1fr; }
}

/* --- Height fix: let each step control the app height when navigating back --- */
.slides {
  min-height: 0 !important;
  height: auto;
  overflow: visible;
  transition: height 260ms ease;
}
.builder-step.active {
  position: relative;
}
.builder-step:not(.active) {
  position: absolute;
}
