/* dispatch.css — net-new components for the owner-operator dispatch landing page.
   Inherits all design tokens, fonts, buttons, cards, header, and form styles from styles.css.
   Do not redefine colors or fonts here. */

/* ---- Offer band + badge ---- */
.offer-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 25, 49, 0.98), rgba(31, 40, 77, 0.96));
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.offer-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(250, 167, 44, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.offer-band > * { position: relative; z-index: 1; }
.offer-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.5rem; }
.offer-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-brand);
  box-shadow: var(--shadow-accent);
  font-family: 'Figtree', Arial, sans-serif;
  line-height: 1.05;
}
.offer-badge-num { font-weight: 800; font-size: 2.6rem; }
.offer-badge-label {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Hero media ---- */
.media-placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- Virginia outline watermark (dispatch page only — edit positioning here) ----
   This overrides the shared .hero-bg-map rule in styles.css. dispatch.css loads
   only on dispatch.html and after styles.css, so changes here do not affect the
   homepage watermark. */
.hero-bg-map {
  left: 50%;                          /* horizontal anchor */
  top: 51%;                           /* vertical anchor */
  transform: translate(-50%, -68%);   /* nudge from the anchor (x, y) */
  width: 95%;                         /* size */
  max-width: 650px;                   /* size cap */
  opacity: 0.18;                      /* 0 = invisible, 1 = solid */
}

/* ---- Trust bar ---- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 1.05rem; height: 1.05rem; color: var(--color-success); flex: none; }

/* ---- Problem / Solution ---- */
.problem-solution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.ps-col {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.ps-col--solution { border-color: rgba(250, 167, 44, 0.35); }
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.ps-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--color-muted); }
.ps-list li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; }
.ps-col--problem .ps-list li svg { color: var(--color-muted); }
.ps-col--solution .ps-list li svg { color: var(--color-accent-hover); }
.ps-footer { text-align: center; margin-top: 2rem; }
.ps-footer p { font-weight: 700; margin-bottom: 1.25rem; }

/* ---- Benefits ---- */
.benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Pricing ---- */
.pricing-lead {
  color: var(--color-brand);
  font-weight: 600;
}
/* Blue accent bar under the pricing heading (stays amber in every other section) */
#pricing .section-heading h2::after {
  background: var(--color-brand);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

/* Featured card: an amber ring with light that rotates continuously around it.
   Uses a rotating conic-gradient layer (transform-driven, so it actually
   repaints) clipped to the card, with an inner cover leaving a 2px ring. */
.pricing-card--featured {
  border: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-accent);
}
.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -100%;
  z-index: -2;
  background: conic-gradient(
    var(--color-accent),
    #fffaf0,
    var(--color-accent),
    #ffe6b0,
    var(--color-accent),
    #fffaf0,
    var(--color-accent)
  );
  animation: pricing-spin 5s linear infinite;
}
.pricing-card--featured::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--radius-md) - 2px);
  background: var(--color-surface);
}
@keyframes pricing-spin {
  to { transform: rotate(1turn); }
}
/* Fallback: solid amber ring where conic gradients are unsupported */
@supports not (background: conic-gradient(red, blue)) {
  .pricing-card--featured {
    border: 2px solid var(--color-accent);
    overflow: visible;
  }
  .pricing-card--featured::before,
  .pricing-card--featured::after { display: none; }
}
/* Reduced motion: keep the ring, stop the rotation */
@media (prefers-reduced-motion: reduce) {
  .pricing-card--featured::before {
    background: var(--color-accent);
    animation: none;
  }
}
.pricing-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: 0 0 999px 999px;
  background: var(--color-accent);
  color: var(--color-brand);
  font-family: 'Figtree', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-pct {
  font-family: 'Figtree', Arial, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--color-brand);
  margin: 0.5rem 0 0.25rem;
}
.pricing-of { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  display: grid;
  gap: 0.6rem;
}
.pricing-card ul li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; }
.pricing-card ul li svg { width: 1.1rem; height: 1.1rem; color: var(--color-accent-hover); flex: none; margin-top: 0.15rem; }
.pricing-card .button { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 1.5rem; font-weight: 700; color: var(--color-muted); }

/* ---- Equipment chips ---- */
.equipment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.equipment-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(20, 25, 49, 0.08);
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.equipment-chips li img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex: none;
}

/* ---- FAQ (native details/summary) ---- */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: 'Figtree', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  color: var(--color-accent-hover);
  transition: transform var(--transition-base);
}
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item summary:focus-visible { outline: 3px solid rgba(250, 167, 44, 0.45); outline-offset: -3px; }
.faq-answer { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--color-muted); }

/* ---- Final CTA + form hint ---- */
.final-cta { display: block; text-align: center; }
.final-cta .offer-band-copy { max-width: 44rem; margin: 0 auto; }
.field-hint { margin: -0.5rem 0 1rem; color: var(--color-muted); font-size: 0.85rem; }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  justify-content: center;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.sticky-cta .button { width: 100%; box-shadow: var(--shadow-lg); }
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  .sticky-cta { display: flex; }
}

/* ---- Responsive Layouts ---- */
@media (max-width: 900px) {
  .offer-band { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .problem-solution { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .offer-badge { width: 8rem; height: 8rem; }
  .pricing-pct { font-size: 2.5rem; }
}
