:root {
  --ink: #17201b;
  --muted: #5b665f;
  --paper: #f4f1ea;
  --panel: #ffffff;
  --line: #d8ddd6;
  --road: #2d3431;
  --green: #2f7d58;
  --amber: #d7892b;
  --rust: #a84f37;
  --sky: #dce8ed;
  --shadow: 0 18px 55px rgba(23, 32, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid rgba(47, 53, 50, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  color: var(--road);
  font-size: 0.94rem;
  font-weight: 700;
}

.dispatch-hero {
  position: relative;
  min-height: calc(100svh - 69px);
  overflow: clip;
  background: var(--road);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 27, 0.9), rgba(23, 32, 27, 0.58) 48%, rgba(23, 32, 27, 0.24)),
    url("assets/hero-roadiesokc.png") center / cover;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(560px, 760px);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100svh - 69px);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 78px) 0;
}

.hero-copy {
  max-width: 570px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 620px;
  font-size: clamp(3.35rem, 5.4vw, 5.45rem);
  line-height: 0.96;
  text-wrap: balance;
}

.lede {
  max-width: 560px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.55;
}

.hero-support {
  max-width: 620px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-cta {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 900;
}

.hero-text-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.intake-panel {
  justify-self: end;
  width: min(100%, 760px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intake-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2vw, 24px);
  scroll-margin-top: 92px;
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.panel-header strong {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.click-rail {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  color: var(--road);
  background: #eceee9;
  border-radius: 8px;
}

.click-rail span {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 0 6px;
  background: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.tripod-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(280px, 1.35fr) minmax(190px, 0.95fr);
  gap: 18px;
}

.tripod-leg {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 4px 18px 4px 0;
  border-right: 1px solid var(--line);
}

.tripod-leg:last-child {
  padding-right: 0;
  border-right: 0;
}

.tripod-leg h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.tripod-leg .service-needed-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

.leg-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--rust);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 88, 0.16);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: #eceee9;
  border-radius: 8px;
}

.segment {
  min-height: 40px;
  color: var(--road);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.segment.is-active {
  color: #fff;
  background: var(--green);
}

.photo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-slot {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  color: var(--muted);
  background: var(--sky);
  border: 1px dashed #9aa8a2;
  border-radius: 8px;
  cursor: pointer;
}

.primary-photo {
  background: #dceee5;
  border-color: rgba(47, 125, 88, 0.58);
}

.photo-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.slot-inner {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.slot-inner strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.slot-inner:has(.slot-preview) {
  padding: 0;
}

.slot-preview {
  grid-area: 1 / 1;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.photo-meta {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: stretch;
  margin: 8px;
  padding: 6px 8px;
  color: #fff;
  background: rgba(23, 32, 27, 0.78);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.photo-slot.is-processing {
  background: #eef7f1;
  border-style: solid;
}

.contact-grid,
.vehicle-grid {
  display: grid;
  gap: 10px;
}

.vehicle-drawer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-drawer summary {
  padding: 13px 14px;
  color: var(--road);
  background: #f5f7f4;
  cursor: pointer;
  font-weight: 800;
}

.vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.actions {
  display: flex;
  gap: 10px;
}

.primary,
.secondary {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
}

.primary {
  flex: 1;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  font-weight: 800;
}

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

.quote-reveal {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-reveal h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.quote-reveal p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quote-reveal[data-status="decoded"] {
  border-color: rgba(215, 137, 43, 0.52);
}

.quote-reveal[data-status="priced"] {
  background: #eef7f1;
  border-color: rgba(47, 125, 88, 0.52);
}

.quote-reveal[data-status="booked"] {
  background: #eaf6ef;
  border-color: rgba(47, 125, 88, 0.68);
}

.price-line {
  padding: 12px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
}

.book-button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: var(--road);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.magic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.magic-grid span {
  min-width: 0;
  padding: 10px 11px;
  overflow-wrap: anywhere;
  color: var(--road);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.content-section {
  width: min(1220px, calc(100% - 32px));
  margin: 58px auto;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-service {
  border-color: rgba(47, 125, 88, 0.36);
  box-shadow: 0 16px 34px rgba(47, 125, 88, 0.12);
}

.service-price {
  width: max-content;
  padding: 7px 10px;
  color: #fff;
  background: var(--road);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 900;
}

.featured-service .service-price {
  background: var(--green);
}

.service-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.how-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  min-height: 64px;
  padding: 18px 18px 18px 66px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.step-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--rust);
  border-radius: 999px;
  counter-increment: step;
  content: counter(step);
  font-size: 0.9rem;
  font-weight: 900;
}

.pack-section {
  width: min(1220px, calc(100% - 32px));
  margin: 56px auto;
}

.pack-header {
  margin-bottom: 18px;
}

.pack-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.spec-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.spec-card {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wide-card {
  grid-column: span 2;
}

.spec-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.summary-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.summary-grid div {
  padding: 0 14px 0 0;
  border-right: 1px solid var(--line);
}

.summary-grid div:last-child {
  border-right: 0;
}

.route-pill,
.yard-card {
  padding: 14px;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  padding: 12px 13px;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-grid:has(.route-note) {
  grid-template-columns: 220px minmax(0, 1fr);
}

.payment-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.payment-card {
  width: min(680px, 100%);
  padding: clamp(22px, 5vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 0.95;
}

.payment-card p {
  color: var(--muted);
  line-height: 1.55;
}

.route-pill span,
.yard-card span,
.yard-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-pill strong,
.yard-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
}

.route-note,
.yard-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

pre {
  min-height: 220px;
  max-height: 420px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  color: #edf6f0;
  background: #1e2924;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px clamp(16px, 4vw, 48px);
  color: #fff;
  background: var(--road);
}

.site-footer p {
  margin-bottom: 0;
  font-weight: 800;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .hero-image {
    background:
      linear-gradient(180deg, rgba(23, 32, 27, 0.88), rgba(23, 32, 27, 0.52)),
      url("assets/hero-roadiesokc.png") center / cover;
  }

  .hero-shell,
  .tripod-grid,
  .spec-layout,
  .service-grid,
  .how-section {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    align-items: start;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 4.6rem);
  }

  .wide-card {
    grid-column: span 1;
  }

  .summary-grid,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tripod-leg {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tripod-leg:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.82rem;
  }

  .dispatch-hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    width: min(100% - 24px, 1220px);
    padding: 30px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.9rem);
  }

  .panel-header,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-stack,
  .vehicle-grid,
  .summary-grid,
  .tool-list,
  .click-rail,
  .magic-grid,
  .route-grid,
  .route-grid:has(.route-note) {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .summary-grid div {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-grid div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
