:root {
  --ink: #111318;
  --muted: #5d6675;
  --line: #d8dde6;
  --panel: #ffffff;
  --soft: #f5f7fa;
  --blue: #448dd0;
  --blue-dark: #246aa8;
  --green: #1b8a65;
  --gold: #d79b2b;
  --shadow: 0 22px 55px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: clamp(150px, 22vw, 245px);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--blue-dark);
}

.hero {
  display: grid;
  min-height: calc(100svh - 86px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0 44%, rgba(255, 255, 255, 0.72) 56%),
    url("assets/headlight-after.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.25rem);
}

.hero-copy p:not(.eyebrow),
.quote-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.submit-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary,
.submit-button {
  color: #fff;
  background: var(--blue-dark);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.results-section,
.quote-section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.comparison-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
}

.compare-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  clip-path: inset(0 50% 0 0);
}

.compare-after .compare-image {
  width: 100%;
}

.compare-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(17, 19, 24, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-label.before {
  left: 16px;
}

.compare-label.after {
  right: 16px;
  background: rgba(36, 106, 168, 0.88);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.compare-handle::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 19, 24, 0.18);
  content: "";
}

.compare-handle span {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin: auto;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.compare-handle span::before,
.compare-handle span::after {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  content: "";
}

.compare-handle span::before {
  left: 11px;
  transform: translateY(-50%) rotate(-45deg);
}

.compare-handle span::after {
  right: 11px;
  transform: translateY(-50%) rotate(135deg);
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

label {
  display: grid;
  gap: 7px;
  color: #2f3744;
  font-size: 0.92rem;
  font-weight: 900;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c7cfdb;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(68, 141, 208, 0.18);
}

textarea {
  resize: vertical;
}

.full,
.submit-button {
  grid-column: 1 / -1;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-band > div {
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #111318;
  color: #fff;
}

.service-band span,
.service-band a {
  color: rgba(255, 255, 255, 0.78);
}

.submitted-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
  text-align: center;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    url("assets/headlight-after.png") center / cover no-repeat;
}

.submitted-panel {
  display: flex;
  width: min(100%, 760px);
  align-items: center;
  flex-direction: column;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.submitted-panel img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto 24px;
}

.submitted-panel h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.submitted-panel p:not(.eyebrow) {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.submitted-panel .hero-actions {
  justify-content: center;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 760px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 45%, rgba(255, 255, 255, 0.45) 70%),
      url("assets/headlight-after.png") center bottom / cover no-repeat;
  }

  .quote-section,
  .service-band {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .secondary {
    font-size: 0.86rem;
  }

  .compare {
    min-height: 220px;
  }
}
