/* ============================================================
   Loyal Delivery Movers — marketing site
   Design tokens follow the light/dark dual-scope pattern:
   media query covers OS setting, [data-theme] covers the toggle.
   ============================================================ */

:root {
  color-scheme: light;

  /* brand */
  --brand: #0b6e4f;
  --brand-ink: #ffffff;
  --brand-soft: #e6f3ec;

  /* categorical slots (tiers + charts) — validated palette, fixed order */
  --series-1: #2a78d6; /* blue    */
  --series-2: #eb6834; /* orange  */
  --series-3: #1baf7a; /* aqua    */
  --series-4: #eda100; /* yellow  */

  /* chart chrome & ink */
  --surface-1: #fcfcfb;
  --page-plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --gridline: #e1e0d9;
  --border: rgba(11, 11, 11, 0.10);
  --border-strong: rgba(11, 11, 11, 0.16);
  --shadow: 0 1px 2px rgba(11,11,11,.04), 0 8px 24px -12px rgba(11,11,11,.12);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --brand: #22b573;
    --brand-ink: #08150f;
    --brand-soft: rgba(34,181,115,0.14);

    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;

    --surface-1: #1a1a19;
    --page-plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --gridline: #2c2c2a;
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.16);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #22b573;
  --brand-ink: #08150f;
  --brand-soft: rgba(34,181,115,0.14);

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;

  --surface-1: #1a1a19;
  --page-plane: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --gridline: #2c2c2a;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.16);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.55);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-plane);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-1) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--brand); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

/* flex-wrap + min-height above so a growing nav list wraps to a second row
   on medium widths instead of overflowing the header */
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--text-secondary); font-size: .93rem; font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text-primary); }

/* ---------- "Admin" nav dropdown (Orders / Couriers / Call Center) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; font: inherit; color: var(--text-secondary); font-size: .93rem; font-weight: 500;
}
.nav-dropdown-toggle:hover { color: var(--text-primary); }
.nav-dropdown.is-active .nav-dropdown-toggle { color: var(--text-primary); font-weight: 700; }
.nav-caret { width: 14px; height: 14px; transition: transform .15s ease; flex: none; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 170px; z-index: 10;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown-menu a {
  padding: 8px 10px; border-radius: 8px; display: block; font-size: .9rem;
  text-decoration: none; color: var(--text-secondary);
}
.nav-dropdown-menu a:hover { background: var(--page-plane); color: var(--text-primary); }
.nav-dropdown-menu a.is-active { color: var(--text-primary); font-weight: 700; background: var(--brand-soft); }

.nav-cta {
  background: var(--brand); color: var(--brand-ink) !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.06); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-toggle {
  border: 1px solid var(--border); background: transparent; color: var(--text-primary);
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .theme-toggle .icon-sun { display: none; }
  :root:where(:not([data-theme="light"])) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { background: var(--surface-1); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; color: var(--brand); opacity: .12; }
.hero-bg svg { width: 100%; height: 100%; }
.route-dots circle { opacity: .9; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyeline {
  color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800;
}
.hero-sub {
  margin-top: 20px; font-size: 1.1rem; line-height: 1.6; color: var(--text-secondary); max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: .84rem; color: var(--text-muted); }
.hero-note a { color: var(--brand); font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }
.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats dt { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.hero-stats dd { margin: 4px 0 0; font-size: .86rem; color: var(--text-secondary); max-width: 160px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker {
  color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.kicker-invert { color: var(--brand-soft-text, #bfe9d4); }
.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; max-width: 760px;
}
.section-lede {
  margin-top: 14px; color: var(--text-secondary); font-size: 1.05rem; max-width: 620px; line-height: 1.6;
}

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px; box-shadow: var(--shadow);
}
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: .93rem; line-height: 1.6; }
.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-top: 1px dashed var(--gridline); padding-top: 10px; }
.mini-list li:first-child { border-top: none; padding-top: 0; }
.mini-list span { color: var(--text-secondary); }
.mini-list strong { color: var(--text-primary); font-weight: 700; }

/* ---------- 4-tier cards ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tier-card {
  background: var(--page-plane); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 24px; position: relative; overflow: hidden;
}
.tier-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tier-color);
}
.tier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tier-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tier-color) 16%, transparent); color: var(--tier-color);
}
.tier-icon svg { width: 20px; height: 20px; }
.tier-eyebrow { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.tier-card h3 { font-size: 1.25rem; font-weight: 800; }
.tier-transport { color: var(--tier-color); font-weight: 600; font-size: .82rem; margin-top: 4px; }
.tier-desc { margin-top: 12px; font-size: .87rem; line-height: 1.55; color: var(--text-secondary); min-height: 82px; }
.tier-meta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gridline); display: flex; flex-direction: column; gap: 8px; }
.tier-meta li { display: flex; justify-content: space-between; font-size: .8rem; gap: 8px; }
.tier-meta span { color: var(--text-muted); }
.tier-meta strong { text-align: right; font-weight: 700; }
.tier-price { margin-top: 16px; font-size: 1.1rem; font-weight: 800; }
.tier-price span { display: block; font-size: .74rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 48px; }
.how-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 22px; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.steps strong { font-size: .96rem; font-weight: 700; }
.steps p { margin-top: 4px; color: var(--text-secondary); font-size: .88rem; line-height: 1.55; }

.callout {
  margin-top: 52px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 22px;
}
.callout svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.callout p { color: var(--text-primary); font-size: .92rem; line-height: 1.6; }

/* ---------- calculator ---------- */
.calc {
  margin-top: 44px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden;
}
.calc-controls { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.tier-select { border: none; padding: 0; margin: 0; }
.tier-select legend { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; padding: 0; }
.tier-pill { display: inline-flex; margin: 0 8px 8px 0; }
.tier-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tier-pill span {
  display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text-secondary); transition: all .15s ease;
}
.tier-pill input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tier-pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.distance-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.distance-label label { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.distance-label output { font-weight: 800; font-size: 1.1rem; color: var(--brand); }
#distanceRange { width: 100%; accent-color: var(--brand); height: 6px; }

.calc-result {
  background: var(--page-plane); padding: 32px; display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.calc-result-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.calc-total { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
#calcTotal { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-currency { color: var(--text-secondary); font-weight: 600; }
.calc-breakdown { margin-top: 8px; color: var(--text-secondary); font-size: .86rem; }
.calc-savings { margin-top: 14px; font-size: .84rem; font-weight: 700; color: var(--brand); min-height: 1.2em; }

.table-scroll { margin-top: 36px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .88rem; }
.pricing-table caption { text-align: left; padding: 14px 18px; color: var(--text-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-1); }
.pricing-table th, .pricing-table td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--gridline); }
.pricing-table thead th { color: var(--text-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; background: var(--surface-1); }
.pricing-table tbody th { font-weight: 700; }
.pricing-table tbody tr:hover { background: var(--surface-1); }

/* ---------- security flow ---------- */
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.flow li { display: flex; gap: 14px; position: relative; }
.flow-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow strong { font-size: .95rem; font-weight: 700; }
.flow p { margin-top: 4px; font-size: .86rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- stat grid & charts ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.stat-grid-5 { grid-template-columns: repeat(5, 1fr); margin-top: 22px; }
.stat-tile {
  background: var(--page-plane); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px;
}
.stat-tile strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-tile span { display: block; margin-top: 6px; font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.chart-card {
  background: var(--page-plane); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 24px;
}
.chart-card figcaption h3 { font-size: 1rem; font-weight: 700; }
.chart-card figcaption p { margin-top: 4px; font-size: .82rem; color: var(--text-muted); }

.bar-chart { margin-top: 22px; display: flex; align-items: flex-end; gap: 16px; height: 190px; }
.bar-row { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 60%; min-width: 22px; height: calc(var(--v) * 1%); border-radius: 6px 6px 4px 4px;
  position: relative; transition: height .5s ease;
}
.bar-blue { background: linear-gradient(180deg, var(--series-1), color-mix(in srgb, var(--series-1) 78%, black)); }
.bar-orange { background: linear-gradient(180deg, var(--series-2), color-mix(in srgb, var(--series-2) 78%, black)); }
.bar-value {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 700; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.bar-label { margin-top: 10px; font-size: .76rem; color: var(--text-muted); font-weight: 600; }

.metric-strip {
  margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--border); padding-top: 28px;
}
.metric-strip strong { font-size: 1.3rem; font-weight: 800; }
.metric-strip span { display: block; margin-top: 4px; font-size: .82rem; color: var(--text-secondary); }

/* ---------- roadmap ---------- */
.roadmap { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: phase; }
.roadmap li { position: relative; padding: 24px 20px 0; border-top: 3px solid var(--brand); }
.roadmap-phase span { font-size: .76rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.roadmap-phase h3 { margin-top: 6px; font-size: 1.05rem; font-weight: 700; }
.roadmap p { margin-top: 10px; font-size: .86rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- three-col reuse ---------- */
.three-col { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA / contact ---------- */
.cta-section { background: var(--text-primary); color: var(--surface-1); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .cta-section { background: #06231a; }
}
:root[data-theme="dark"] .cta-section { background: #06231a; }
.cta-section .kicker-invert { color: #9fe6c3; }
.cta-section h1, .cta-section h2 { color: #fff; }
.cta-section p { color: #cfd6d2; }
.cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-copy h1, .cta-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-top: 8px; }
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.contact-list svg { width: 19px; height: 19px; color: #9fe6c3; flex: none; }
.contact-list a { text-decoration: none; color: #fff; }
.contact-list a:hover { text-decoration: underline; }

.cta-form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.cta-form .form-row label { color: #cfd6d2; }
.cta-form .form-row input, .cta-form .form-row select, .cta-form .form-row textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff;
}
.form-note { font-size: .74rem; color: #93a09b; text-align: center; }

/* generic form-row — theme-aware, used by the CTA form and by the
   booking/admin forms on order.html / admin.html */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.form-row .optional { font-weight: 400; color: var(--text-muted); }
.am-label { color: var(--text-muted); font-weight: 400; }
.form-row input, .form-row select, .form-row textarea {
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; color: var(--text-primary); font: inherit; font-size: .92rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-row textarea { resize: vertical; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-name { font-weight: 700; font-size: .95rem; }
.footer-tag { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: .84rem; color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-legal { width: 100%; margin-top: 8px; font-size: .74rem; color: var(--text-muted); }

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.main-nav a.is-active { color: var(--text-primary); font-weight: 700; }

/* ---------- sub-page hero ---------- */
.page-hero { padding-top: 56px; padding-bottom: 40px; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }

/* ---------- form card (booking + courier registration) ---------- */
.form-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 26px;
}
.form-section { display: flex; flex-direction: column; gap: 14px; }
.form-section-title { font-size: .95rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error {
  background: color-mix(in srgb, #d03b3b 12%, transparent); border: 1px solid color-mix(in srgb, #d03b3b 30%, transparent);
  color: #d03b3b; font-size: .85rem; font-weight: 600; padding: 10px 14px; border-radius: 10px;
}
.tier-options { display: flex; flex-wrap: wrap; }

.booking-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.calc-result-standalone {
  border-radius: var(--radius-l); border: 1px solid var(--border); box-shadow: var(--shadow);
  position: sticky; top: 90px;
}

/* ---------- confirmation card ---------- */
.confirmation-card {
  max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 40px 32px;
}
.confirmation-badge {
  display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.confirmation-card h2 { margin-top: 16px; font-size: 1.5rem; font-weight: 800; }
.tracking-code { font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--brand); }
a.tracking-code { text-decoration: none; }
a.tracking-code:hover { text-decoration: underline; }
.otp-display {
  margin-top: 22px; display: inline-flex; flex-direction: column; gap: 4px; align-items: center;
  background: var(--page-plane); border: 1px dashed var(--border-strong); border-radius: var(--radius-m); padding: 16px 28px;
}
.otp-display span { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.otp-display strong { font-size: 2rem; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.otp-display strong.otp-fallback-text { font-size: 1rem; font-weight: 700; letter-spacing: normal; font-variant-numeric: normal; }
.confirmation-meta {
  margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; text-align: left;
}
.confirmation-meta dt { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.confirmation-meta dd { margin: 2px 0 0; font-size: .92rem; font-weight: 600; }
.confirmation-card .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- assign-a-courier block (call center confirmation step) ---------- */
.assign-courier { margin-top: 28px; text-align: left; }
.assign-courier h3 { font-size: 1rem; font-weight: 800; }
.assign-courier .form-note { margin-top: 6px; }
.assign-courier input[type="search"] {
  margin-top: 14px; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--page-plane); color: var(--text-primary); font: inherit; font-size: .9rem;
}
.assign-courier .match-results { margin-top: 14px; }
.assign-courier .form-error { margin-top: 12px; }
.assign-done {
  margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-m); background: var(--brand-soft);
  color: var(--brand); text-align: left; font-weight: 600; font-size: .92rem;
}

/* ---------- call page ---------- */
.call-card {
  max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 40px 32px;
}
.call-card-kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.call-number {
  display: block; margin-top: 10px; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: .01em;
  color: var(--brand); text-decoration: none; font-variant-numeric: tabular-nums;
}
.call-number:hover { text-decoration: underline; }
.call-card-note { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.call-steps {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gridline); text-align: left;
  display: flex; flex-direction: column; gap: 12px; counter-reset: call-step; list-style: none; padding-left: 0;
}
.call-steps li { display: flex; gap: 12px; font-size: .92rem; color: var(--text-secondary); line-height: 1.5; }
.call-steps li::before {
  counter-increment: call-step; content: counter(call-step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 800; display: flex;
  align-items: center; justify-content: center;
}

/* ---------- tracking page ---------- */
.track-form { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; }
.track-form input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: .95rem;
}
.track-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#trackError { margin-top: 14px; max-width: 460px; }

.track-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow); padding: 32px;
}
.track-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track-card .confirmation-meta { grid-template-columns: repeat(3, 1fr); margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--gridline); }

.status-badge {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  white-space: nowrap;
}
.status-pending  { background: var(--gridline); color: var(--text-secondary); }
.status-matched  { background: var(--brand-soft); color: var(--brand); }
.status-picked_up { background: color-mix(in srgb, #fab219 20%, transparent); color: #9a6b00; }
.status-delivered { background: color-mix(in srgb, #0ca30c 16%, transparent); color: #0ca30c; }
.status-cancelled { background: color-mix(in srgb, #d03b3b 14%, transparent); color: #d03b3b; }
.status-active { background: color-mix(in srgb, #0ca30c 16%, transparent); color: #0ca30c; }
.status-inactive { background: color-mix(in srgb, #d03b3b 14%, transparent); color: #d03b3b; }
.status-suspended { background: color-mix(in srgb, #fab219 20%, transparent); color: #9a6b00; }
:root[data-theme="dark"] .status-picked_up, :root[data-theme="dark"] .status-suspended { color: #fab219; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .status-picked_up,
  :root:where(:not([data-theme="light"])) .status-suspended { color: #fab219; }
}

.amount-positive { color: #0ca30c; font-weight: 700; }
.amount-negative { color: #d03b3b; font-weight: 700; }

.status-timeline {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 28px; position: relative;
}
.status-timeline::before {
  content: ""; position: absolute; top: 7px; left: 7px; right: 7px; height: 2px; background: var(--gridline); z-index: 0;
}
.status-timeline li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.timeline-dot { width: 16px; height: 16px; border-radius: 999px; background: var(--surface-1); border: 2px solid var(--border-strong); }
.status-timeline li span:last-child { font-size: .76rem; color: var(--text-muted); font-weight: 600; text-align: center; }
.status-timeline li.is-done .timeline-dot { background: var(--brand); border-color: var(--brand); }
.status-timeline li.is-done span:last-child { color: var(--text-primary); }
.status-timeline li.is-current .timeline-dot { box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- admin page ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h2 { font-size: 1.15rem; font-weight: 800; }
.admin-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.admin-table th, .admin-table td { white-space: nowrap; }
.admin-table td.wrap-cell { white-space: normal; }
.empty-state { text-align: center; color: var(--text-muted); padding: 26px !important; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions select {
  padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: .8rem;
}
.link-btn {
  background: none; border: none; color: var(--text-muted); font: inherit; font-size: .78rem; cursor: pointer; text-decoration: underline;
  padding: 0;
}
.link-btn:hover { color: #d03b3b; }

.admin-couriers-wrap { margin-top: 40px; }

/* ---------- OTP dialog ---------- */
.otp-dialog {
  border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; max-width: 360px; width: calc(100% - 40px);
  background: var(--surface-1); color: var(--text-primary); box-shadow: var(--shadow);
}
.otp-dialog::backdrop { background: rgba(0,0,0,0.5); }
.otp-dialog h3 { font-size: 1.1rem; font-weight: 800; }
.otp-dialog p { margin-top: 8px; font-size: .88rem; color: var(--text-secondary); }
.otp-dialog input {
  margin-top: 16px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--page-plane); color: var(--text-primary); font-size: 1.4rem; letter-spacing: .4em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.otp-dialog input[type="file"] {
  font-size: .85rem; letter-spacing: normal; text-align: left; padding: 10px 12px; color: var(--text-secondary);
}
.otp-dialog .form-error { margin-top: 12px; }
.otp-dialog .hero-actions { margin-top: 18px; justify-content: flex-end; }

.admin-table td a { color: var(--brand); font-weight: 700; text-decoration: none; }
.admin-table td a:hover { text-decoration: underline; }

/* ---------- login / members dashboard ---------- */
.login-card { max-width: 420px; margin: 0 auto; }

.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.sort-control select {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: .86rem;
}

/* ---------- testimonials ---------- */
.testimonials-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.testimonial-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.testimonial-card {
  background: var(--page-plane); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px;
}
.testimonial-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.testimonial-head strong { font-size: .96rem; font-weight: 700; }
.stars { display: block; margin-top: 6px; color: #eda100; letter-spacing: .1em; font-size: .95rem; }
.testimonial-card p { margin-top: 10px; font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
.testimonial-card time { display: block; margin-top: 10px; font-size: .74rem; color: var(--text-muted); }

/* ---------- search / pagination (orders + couriers admin lists) ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.search-bar input[type="search"] {
  flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--text-primary); font: inherit; font-size: .88rem;
}
.search-bar select {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-1);
  color: var(--text-primary); font: inherit; font-size: .86rem;
}
.search-bar input[type="search"]:focus, .search-bar select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.pagination span { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- match-a-courier dialog ---------- */
.match-dialog { max-width: 420px; }
.match-dialog input[type="search"] {
  margin-top: 16px; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--page-plane); color: var(--text-primary); font: inherit; font-size: .9rem;
}
.match-results { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.match-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1);
  cursor: pointer; font: inherit;
}
.match-result:hover, .match-result:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.match-result:disabled { cursor: not-allowed; opacity: .6; }
.match-result:disabled:hover { border-color: var(--border); background: var(--surface-1); }
.match-result strong { font-size: .9rem; font-weight: 700; }
.match-result span { font-size: .78rem; color: var(--text-muted); }
.match-more { font-size: .76rem; color: var(--text-muted); text-align: center; margin-top: 2px; }

/* ---------- registration dialog (courier form) ----------
   Deliberately its own class rather than .otp-dialog — that class's
   `input` rule is tuned for a single big centered OTP code, which would
   wrongly restyle every text/email/password field in a multi-field form. */
.form-dialog {
  border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; max-width: 480px; width: calc(100% - 40px);
  background: var(--surface-1); color: var(--text-primary); box-shadow: var(--shadow);
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.form-dialog::backdrop { background: rgba(0,0,0,0.5); }
.form-dialog h3 { font-size: 1.1rem; font-weight: 800; }
.form-dialog .form-row { margin-top: 14px; }
.form-dialog .form-note { margin-top: 10px; font-size: .82rem; color: var(--text-secondary); }
.form-dialog .tier-select { margin-top: 18px; }
.form-dialog .form-error { margin-top: 14px; }
.form-dialog .hero-actions { margin-top: 18px; justify-content: flex-end; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .card-grid, .three-col { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stat-grid, .stat-grid-4, .stat-grid-5 { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .roadmap li { border-top-width: 3px; }
  .calc { grid-template-columns: 1fr; }
  .calc-result { border-left: none; border-top: 1px solid var(--border); }
  .cta-wrap { grid-template-columns: 1fr; gap: 36px; }

  .booking-wrap, .admin-couriers-wrap, .testimonials-wrap { grid-template-columns: 1fr; }
  .calc-result-standalone { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .confirmation-meta { grid-template-columns: 1fr 1fr; }
  .track-card .confirmation-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--surface-1); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease;
  }
  .main-nav a { padding: 10px 0; width: 100%; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 6px; text-align: center; }

  /* Dropdown becomes an inline accordion in the stacked mobile menu instead
     of a floating panel — a position:absolute popover makes no sense inside
     a full-width vertical list. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 10px 0; }
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none; background: none; padding: 0 0 0 14px;
    opacity: 1; transform: none; pointer-events: auto; max-height: 0; overflow: hidden; transition: max-height .18s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 200px; padding: 4px 0 6px 14px; }
  .nav-dropdown-menu a { width: 100%; padding: 8px 0; }

  .card-grid, .three-col, .tier-grid, .flow, .stat-grid, .metric-strip, .roadmap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .hero-stats { gap: 24px; }
  .section { padding: 60px 0; }
}
