/* ==========================================================================
   Unity Drive demo — landing page
   The hero is a live dispatch board on a night map; everything after it is
   quiet and left-aligned.
   ========================================================================== */
.container { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.site-header .brand img { height: 44px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--navy); background: var(--navy-50); }
.header-cta { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--asphalt); color: #c2d0e1; position: relative; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5vw, 66px); font-weight: 900; letter-spacing: -.025em; line-height: 1.02; margin-bottom: 22px; }
.lead { font-size: 18px; line-height: 1.55; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: transparent; }
.btn-hero-outline:hover { background: rgba(255, 255, 255, .1); }
.hero-lane { position: absolute; left: 0; right: 0; bottom: 28px; opacity: .9; }

.hero-board { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: #0a2038; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1fr) 270px; height: 470px; z-index: 1; }
.board-map { position: relative; min-width: 0; }
.board-map .map-box { height: 100%; }
.board-list { background: var(--navy); padding: 16px; display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.board-head { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 10px; }
.board-head strong { font-family: var(--font-display); font-size: 16px; }
.board-head span:last-child { margin-left: auto; font-size: 12.5px; color: #9fb3c9; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
#board { list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; }
#board li { padding: 10px 0 10px 12px; border-top: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--c); margin-bottom: 0; }
#board li strong { display: block; color: #fff; font-family: var(--font-display); font-size: 14.5px; }
#board li span { display: block; font-size: 12.5px; color: #a9bbd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#board li em { font-style: normal; color: #ffb27d; font-weight: 600; }
.board-note { font-size: 12px; color: #8ea3bb; margin: 10px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin: 0 0 40px; }
.section-head h2, .coverage-copy h2, .nemt-lead h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.02em; }
.section-head p { color: var(--slate); font-size: 17px; margin: 0; }

/* Services board */
.svc-board { border-top: 2px solid var(--navy); }
.svc-row { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 150px; gap: 20px; align-items: center; padding: 22px 8px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.svc-row::before { content: ""; position: absolute; left: -20px; top: 22px; bottom: 22px; width: 5px; background: var(--c); border-radius: 3px; }
.svc-row:hover { background: #fff; }
.svc-ic { width: 52px; height: 52px; border-radius: 10px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; }
.svc-name strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.svc-name small { font-size: 15px; color: var(--slate); }
.svc-cap { font-size: 14px; font-weight: 600; color: var(--slate); display: flex; gap: 8px; align-items: center; }
.svc-from { text-align: right; font-size: 13px; color: var(--muted); }
.svc-from b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }

/* Route steps */
.route-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.route-steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 4px; background: var(--lane); }
.route-steps li { position: relative; }
.stop { position: relative; display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 20px; align-items: center; justify-content: center; border: 5px solid #fff; margin: 0 0 16px -5px; }
.route-steps h3 { font-size: 22px; margin-bottom: 6px; }
.route-steps p { color: var(--slate); margin: 0; max-width: 32ch; }

/* Coverage */
.coverage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.coverage-copy > p { color: var(--slate); font-size: 17px; }
.county-list { margin: 28px 0 0; border-top: 2px solid var(--navy); }
.county-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.county-list dt { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.county-list dt i { width: 12px; height: 12px; border-radius: 3px; }
.county-list dd { margin: 2px 0 0 22px; color: var(--slate); font-size: 14.5px; }
.coverage-map { height: 460px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.hq-marker { background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; border: 2px solid #fff; }
.county-label { background: #fff; border: 0; border-radius: 5px; font-family: var(--font-display); font-weight: 800; color: var(--navy); box-shadow: var(--shadow); }
.county-label::before { display: none; }

/* NEMT band */
.nemt-band { background: var(--green); color: #d9efe2; }
.nemt-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.nemt-lead h2 { color: #fff; }
.nemt-lead p { font-size: 17px; max-width: 44ch; }
.nemt-points { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, .8); }
.nemt-points li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.nemt-points li > .ic { color: #fff; margin-top: 2px; }
.nemt-points h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.nemt-points p { margin: 0; max-width: 56ch; }

/* Why */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--navy); }
.why-list li { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-list .ic { color: var(--orange); width: 22px; height: 22px; margin-top: 2px; }
.why-list strong { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--navy); }
.why-list p { margin: 2px 0 0; color: var(--slate); font-size: 14.5px; }

/* Portals */
.portal-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; }
.portal { padding: 28px 24px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border-right: 1px solid var(--line-strong); border-top: 6px solid var(--c); background: var(--offwhite); transition: background .15s; }
.portal:last-child { border-right: 0; }
.portal:hover { background: #fff; }
.portal-ic { color: var(--c); margin-bottom: 18px; }
.portal-ic .ic { width: 34px; height: 34px; }
.portal h3 { font-size: 22px; }
.portal p { color: var(--slate); font-size: 14.5px; flex: 1; }
.portal-go { font-family: var(--font-display); font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: #a9bbd0; font-size: 14px; }
.site-footer .lane { opacity: .9; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 52px; }
.footer-brand .brand-chip { display: inline-flex; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: #a9bbd0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 20px 0 60px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner, .coverage, .nemt-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .portal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal:nth-child(2) { border-right: 0; }
  .portal:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { padding: 48px 0 72px; }
  .svc-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .svc-cap { grid-column: 2 / 3; }
  .svc-from { grid-row: 1; grid-column: 3; }
  .route-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .route-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .coverage-map { height: 360px; }
}
@media (max-width: 640px) {
  .header-cta .btn-primary { padding: 8px 12px; font-size: 13.5px; }
  .site-header .brand img { height: 36px; }
  .hero-board { grid-template-columns: minmax(0, 1fr); height: auto; }
  .board-map { height: 260px; }
  .board-list { border-left: 0; }
  .svc-row::before { left: -12px; }
  .svc-name strong { font-size: 20px; }
  .svc-from b { font-size: 20px; }
  .route-steps, .why-list, .portal-list { grid-template-columns: minmax(0, 1fr); }
  .portal { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .section { padding: 60px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Fleet subscription plans: three columns on one rule, not floating cards */
.plan-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.plan { position: relative; padding: 28px 28px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.is-pick { background: var(--offwhite); box-shadow: inset 0 4px 0 var(--orange); }
.plan-pick { position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-size: 12px; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 8px 2px; border-radius: 3px; }
.plan h3 { font-size: 24px; font-weight: 900; color: var(--navy); margin: 0; }
.plan-for { color: var(--slate); font-size: 14.5px; margin: 4px 0 18px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.plan-price b { font-family: var(--font-display); font-size: 44px; font-weight: 900; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-limits { display: flex; gap: 10px; margin-bottom: 18px; }
.plan-limits span { font-size: 13.5px; color: var(--slate); border: 1px solid var(--line-strong); border-radius: 3px; padding: 4px 9px 3px; background: #fff; }
.plan-limits strong { font-family: var(--font-display); color: var(--navy); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.plan li .ic { flex: none; width: 17px; height: 17px; color: var(--green); margin-top: 2px; }
.plan-foot { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }
.plan-foot .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 900px) {
  .plan-board { grid-template-columns: minmax(0, 1fr); }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 4px; }
  .plan.is-pick { padding: 24px 16px; }
  .plan-for { min-height: 0; }
}
.plan-tabs { margin: 0 0 18px; }
