:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #d8dee7;
  --paper: #ffffff;
  --panel: #f4f6f8;
  --charcoal: #1f2933;
  --steel: #334155;
  --steel-dark: #1e293b;
  --accent: #b88746;
  --accent-dark: #8a622e;
  --success: #166534;
  --warning: #92400e;
  --danger: #991b1b;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef1f5;
}

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

button,
select,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 222, 231, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: #475569;
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.header-action {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #101820;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0.78) 44%, rgba(16, 24, 32, 0.36) 100%),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=80") center right / cover;
}

.hero-content {
  position: relative;
  width: min(780px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  color: #fff;
  padding: 84px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 0.99;
}

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: #d7dde6;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.secondary-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
}

.primary-button {
  background: var(--accent);
  color: #111827;
}

.primary-button:hover {
  background: #c7995c;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.secondary-dark-button {
  border-color: #cbd5e1;
  background: #fff;
  color: var(--steel-dark);
}

.secondary-dark-button:hover {
  border-color: var(--steel);
}

.primary-button:disabled,
.secondary-dark-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
  margin: 48px 0 0;
}

.trust-strip div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip dt {
  font-size: 1.45rem;
  font-weight: 900;
}

.trust-strip dd {
  margin: 5px 0 0;
  color: #cbd5e1;
}

.workspace,
.console-grid,
.tracking-layout,
.roadmap-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px clamp(16px, 5vw, 72px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.console-grid,
.customer-grid,
.tracking-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 0;
}

.customer-grid {
  grid-template-columns: minmax(0, 1fr);
}

.tracking-page {
  min-height: calc(100vh - 190px);
}

.tracking-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px clamp(16px, 5vw, 72px) 36px;
}

.tracking-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #17202b;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.tracking-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.quote-card {
  position: sticky;
  top: 92px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.panel-heading h2,
.roadmap-section h2 {
  margin: 0;
  color: #17202b;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 900;
  font-size: 0.8rem;
}

.status-pill.neutral {
  background: #e2e8f0;
  color: #334155;
}

.status-pill.active {
  background: #dcfce7;
  color: var(--success);
}

.status-pill.warning {
  background: #fef3c7;
  color: var(--warning);
}

.status-pill.complete {
  background: #dbeafe;
  color: #1d4ed8;
}

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

.form-help {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

label span,
.option-row legend {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 900;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(184, 135, 70, 0.35);
  outline-offset: 2px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 22px 0 0;
  border: 0;
}

.option-row legend {
  width: 100%;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.check-option span {
  margin: 0;
  font-weight: 800;
}

.check-option input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--accent-dark);
}

.notes-field {
  display: block;
  margin-top: 22px;
}

.action-row {
  justify-content: flex-end;
  margin-top: 24px;
}

.quote-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-topline span,
.quote-details dt,
.job-metrics dt,
.ops-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.quote-topline strong {
  font-size: 2.25rem;
}

.route-visual {
  padding: 22px 0;
}

.route-node {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-node span {
  width: 16px;
  height: 16px;
  border: 4px solid var(--charcoal);
  border-radius: 50%;
  background: #fff;
}

.route-node.destination span {
  border-color: var(--accent-dark);
}

.route-node p {
  margin: 0;
  font-weight: 900;
}

.route-line {
  height: 64px;
  padding-left: 7px;
}

.route-line i {
  display: block;
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(to bottom, #94a3b8, #94a3b8 7px, transparent 7px, transparent 14px);
}

.quote-details,
.job-metrics,
.ops-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quote-details div,
.job-metrics div,
.ops-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #eef2f7;
}

.quote-details dd,
.job-metrics dd,
.ops-summary dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.fine-print {
  margin: 18px 0 0;
  color: #7c8796;
  font-size: 0.86rem;
  line-height: 1.5;
}

.driver-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 20px;
}

.driver-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--steel);
  color: #fff;
  font-weight: 900;
}

.driver-card h3,
.driver-card p {
  margin: 0;
}

.driver-card p {
  margin-top: 4px;
  color: var(--muted);
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.payment-options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-options legend {
  margin-bottom: 8px;
  color: #334155;
  font-weight: 900;
  font-size: 0.92rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.payment-option input {
  width: 18px;
  min-height: auto;
  height: 18px;
  accent-color: var(--accent-dark);
}

.payment-option span,
.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option span {
  margin: 0;
}

.payment-option small {
  margin-top: 4px;
  color: var(--muted);
}

.payment-submit {
  width: 100%;
  margin-top: 20px;
}

.driver-workspace {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 72px) 72px;
}

.driver-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.switch-row input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--accent-dark);
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.driver-location-field {
  display: block;
  margin-top: 18px;
}

.driver-save-button {
  width: 100%;
  margin-top: 18px;
}

.compact-select {
  width: auto;
  min-width: 148px;
}

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

.metric-tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metric-tile span,
.metric-tile strong {
  display: block;
}

.metric-tile span {
  color: var(--muted);
  font-weight: 800;
}

.metric-tile strong {
  margin-top: 12px;
  color: #17202b;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.driver-job-list {
  display: grid;
  gap: 18px;
}

.driver-job-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.driver-job-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.driver-job-topline h3 {
  margin: 0;
  color: #17202b;
  font-size: 1.35rem;
}

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

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

.timeline li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.timeline li::before {
  counter-increment: timeline;
  content: counter(timeline);
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #cbd5e1;
  color: #334155;
  transform: translateY(-50%);
  font-size: 0.75rem;
}

.timeline li.done {
  color: var(--success);
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.timeline li.done::before {
  content: "";
  background: #22c55e;
  color: #fff;
}

.timeline li.current {
  color: var(--warning);
  background: #fffbeb;
  border-color: #fde68a;
}

.timeline li.current::before {
  background: #f59e0b;
  color: #fff;
}

.roadmap-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  padding-top: 0;
}

.roadmap-section p {
  color: var(--muted);
  line-height: 1.7;
}

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

.roadmap-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.roadmap-list span {
  color: var(--accent-dark);
  font-weight: 900;
}

.roadmap-list h3 {
  margin: 28px 0 10px;
}

.roadmap-list p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: #111827;
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #cbd5e1;
}

.site-footer a {
  min-width: max-content;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .workspace,
  .console-grid,
  .customer-grid,
  .tracking-layout,
  .driver-dashboard,
  .roadmap-section {
    grid-template-columns: 1fr;
  }

  .quote-card {
    position: static;
  }

  .roadmap-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .trust-strip,
  .field-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .workspace,
  .console-grid,
  .customer-grid,
  .tracking-layout,
  .roadmap-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel-heading,
  .quote-topline,
  .quote-details div,
  .job-metrics div,
  .ops-summary div {
    align-items: flex-start;
  }

  .panel-heading {
    flex-direction: column;
  }

  .action-row {
    justify-content: stretch;
  }

  .action-row button,
  .hero-actions a {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
