:root {
  --navy: #011638;
  --deep-navy: #07192b;
  --teal: #009daf;
  --cyan: #15d2dc;
  --aqua: #84d3e0;
  --lime: #c4ce0e;
  --peach: #fcbf88;
  --orange: #f4a168;
  --white: #f9f9f9;
  --ink: #0d1b34;
  --muted: #5b6678;
  --line: rgba(1, 22, 56, 0.12);
  --shadow: 0 24px 60px rgba(1, 22, 56, 0.12);
  --shadow-soft: 0 10px 24px rgba(1, 22, 56, 0.08);
  --radius: 24px;
  --radius-lg: 32px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(21, 210, 220, 0.08), transparent 30%),
    radial-gradient(circle at left center, rgba(196, 206, 14, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 9999;
}
.skip-link:focus { left: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(249, 249, 249, 0.85);
  border-bottom: 1px solid rgba(1, 22, 56, 0.08);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  box-shadow: var(--shadow-soft);
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 160ms ease;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--ink);
  background: rgba(1, 22, 56, 0.05);
  outline: none;
}
.nav a.active {
  color: var(--navy);
  background: rgba(0, 157, 175, 0.1);
}
.nav .cta {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: var(--shadow-soft);
}
.nav .cta:hover, .nav .cta:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  padding: 42px 0 26px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(1, 22, 56, 0.12);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(21, 210, 220, 0.08);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
  color: var(--navy);
}
.hero p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(1, 22, 56, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); outline: none; }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: var(--shadow-soft);
}
.btn.secondary {
  color: var(--navy);
  background: #fff;
  border-color: rgba(1, 22, 56, 0.16);
}
.btn.ghost {
  color: var(--navy);
  background: rgba(1, 22, 56, 0.04);
}

.hero-card {
  position: relative;
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(7, 25, 43, 0.03), rgba(7, 25, 43, 0.01)),
    #fff;
  border: 1px solid rgba(1, 22, 56, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(196, 206, 14, 0.14), transparent 15%),
    radial-gradient(circle at 82% 18%, rgba(0, 157, 175, 0.16), transparent 22%),
    radial-gradient(circle at 65% 80%, rgba(21, 210, 220, 0.12), transparent 20%);
  pointer-events: none;
}
.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hero-media .logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(1, 22, 56, 0.05);
  border: 1px solid rgba(1, 22, 56, 0.08);
}
.hero-media .logo-badge img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}
.hero-media .logo-badge span {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.mascot-frame {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(1,22,56,0.03), rgba(21,210,220,0.05));
  border: 1px solid rgba(1, 22, 56, 0.08);
}
.mascot-frame img {
  width: 100%;
  height: auto;
}
.hero-aside {
  display: grid;
  gap: 14px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.08);
}
.stat strong {
  display: block;
  font-size: 1.18rem;
  color: var(--navy);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.section {
  padding: 26px 0 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.section .lede {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.card.plan {
  position: relative;
  overflow: hidden;
}
.plan .plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.plan h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}
.plan .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.plan .subprice { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.plan ul {
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.65;
}
.plan li + li { margin-top: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 210, 220, 0.1);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, rgba(248, 250, 253, 0.92));
  border: 1px solid rgba(1, 22, 56, 0.08);
}
.step .num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(1, 22, 56, 0.07);
  color: var(--navy);
  font-weight: 800;
}
.step h3 { margin: 12px 0 8px; font-size: 1.05rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); line-height: 1.65; }

.tone-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.swatch {
  border-radius: 18px;
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(1, 22, 56, 0.08);
  box-shadow: var(--shadow-soft);
}
.swatch strong { font-size: 0.95rem; color: var(--navy); }
.swatch span { font-size: 0.8rem; color: rgba(13,27,52,0.8); }
.swatch.navy { background: var(--navy); color: #fff; }
.swatch.navy strong, .swatch.navy span { color: #fff; }
.swatch.deep { background: var(--deep-navy); color: #fff; }
.swatch.deep strong, .swatch.deep span { color: #fff; }
.swatch.teal { background: var(--teal); }
.swatch.cyan { background: var(--cyan); }
.swatch.aqua { background: var(--aqua); }
.swatch.lime { background: var(--lime); }
.swatch.peach { background: var(--peach); }
.swatch.orange { background: var(--orange); }
.swatch.white { background: var(--white); }
.brand-assets {
  display: grid;
  gap: 12px;
}
.asset {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(1, 22, 56, 0.08);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.asset img { width: 100%; height: auto; display: block; }
.asset .caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.1);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.panel h3 { margin: 0 0 10px; color: var(--navy); }
.panel p { color: var(--muted); line-height: 1.65; }
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.faq p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}
.form-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.1);
  box-shadow: var(--shadow-soft);
}
.form-card h1, .form-card h2 { margin-top: 0; color: var(--navy); }
.form-card p { color: var(--muted); line-height: 1.65; }
.form {
  display: grid;
  gap: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(1, 22, 56, 0.14);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(0, 157, 175, 0.6);
  box-shadow: 0 0 0 4px rgba(21, 210, 220, 0.12);
}
.stripe-card {
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid rgba(1, 22, 56, 0.14);
  border-radius: 16px;
  background: #fff;
}
.help {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.error {
  min-height: 1.2em;
  margin-top: 8px;
  color: #b42318;
  font-size: 0.92rem;
}
.notice {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(21, 210, 220, 0.08);
  border: 1px solid rgba(0, 157, 175, 0.18);
  color: var(--navy);
}
.success {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(196, 206, 14, 0.12);
  border: 1px solid rgba(196, 206, 14, 0.3);
  color: var(--navy);
}
.success.show { display: block; }
.inline-link { color: var(--teal); font-weight: 700; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

.payment-summary,
.dashboard-grid {
  display: grid;
  gap: 16px;
}
.payment-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}
.payment-summary > div,
.dashboard-card,
.receipt-card,
.auth-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(1, 22, 56, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.payment-summary > div {
  padding: 16px;
}
.payment-summary strong { display: block; margin-top: 6px; font-size: 1.15rem; color: var(--navy); }
.dashboard-grid { grid-template-columns: 1.1fr 0.9fr; margin-bottom: 18px; }
.ops-grid { grid-template-columns: 1fr 1fr; }
.dashboard-card { padding: 22px; }
.ops-form-card { margin-top: 18px; }
.ops-map-card { margin-top: 18px; }
.ops-map {
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(1, 22, 56, 0.14);
  background: #f6fbff;
}
.ops-map .leaflet-container {
  height: 100%;
  min-height: 360px;
  border-radius: 20px;
}
.ops-map-placeholder {
  padding: 1rem;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.ops-route-card { margin-top: 18px; }
.route-summary { display: grid; gap: 14px; }
.route-summary-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.route-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.route-stops { display: grid; gap: 12px; }
.route-stop {
  padding: 14px;
  border-radius: 18px;
  background: rgba(1, 22, 56, 0.03);
  border: 1px solid rgba(1, 22, 56, 0.08);
  display: grid;
  gap: 10px;
}
.route-stop.active { border-color: rgba(21, 210, 220, 0.65); box-shadow: 0 10px 24px rgba(1, 22, 56, 0.08); }
.route-stop-meta { display: flex; align-items: flex-start; gap: 12px; }
.route-pill { min-width: 36px; justify-content: center; }
.route-links { display: flex; flex-wrap: wrap; gap: 12px; }
.route-metric { color: var(--navy); font-weight: 700; }
.route-address { color: var(--text); }
.route-location-status { margin: 6px 0 0; }
.route-legs { padding-top: 6px; border-top: 1px solid rgba(1, 22, 56, 0.08); }
.route-legs h4 { margin: 0 0 10px; color: var(--navy); }
.route-legs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route-legs li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(1, 22, 56, 0.08);
}
.route-legs li span { color: var(--muted); }
.route-legs li strong { color: var(--navy); }
.dashboard-card.accent { background: linear-gradient(180deg, rgba(21, 210, 220, 0.08), rgba(255, 255, 255, 0.96)); }
.dashboard-card h2, .dashboard-card h3 { margin-top: 0; color: var(--navy); }
.dashboard-card p { color: var(--muted); }
.dashboard-stats { margin-top: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(1, 22, 56, 0.05); color: var(--navy); font-size: 0.88rem; font-weight: 700; }
.mini-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--teal); font-weight: 800; }
.info-list { display: grid; gap: 12px; margin: 14px 0 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(1, 22, 56, 0.08); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--navy); font-weight: 800; text-align: right; }
.info-list.compact { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.receipt-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.receipt-table th, .receipt-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid rgba(1, 22, 56, 0.08); }
.receipt-table th { color: var(--navy); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.08em; }
.receipt-table td { color: var(--text); }
.empty-row, .empty-state { padding: 18px; color: var(--muted); text-align: center; }
.receipt-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.receipt-card { padding: 18px; }
.receipt-photo { width: 100%; border-radius: 16px; margin-top: 12px; display: block; box-shadow: var(--shadow-soft); }
.receipt-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.schedule-shell { align-items: start; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--navy); font-weight: 600; line-height: 1.45; }
.checkbox-row input { margin-top: 4px; }
.auth-box { padding: 16px; display: flex; align-items: center; }
.section-header.compact { margin-bottom: 10px; }

.footer {
  padding: 32px 0 42px;
  color: var(--muted);
}
.footer .footer-card {
  border-top: 1px solid rgba(1, 22, 56, 0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}
.footer strong { color: var(--navy); }
.small { font-size: 0.92rem; line-height: 1.55; }
.hidden { display: none !important; }

@media (max-width: 1040px) {
  .hero-grid, .tone-board, .split, .form-shell { grid-template-columns: 1fr; }
  .card-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .payment-summary, .receipt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .site-header .bar { align-items: flex-start; flex-direction: column; gap: 14px; padding: 12px 0; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { flex: 1 1 calc(50% - 8px); text-align: center; justify-content: center; }
  .nav .cta { flex-basis: 100%; }
  .hero { padding-top: 28px; }
  .hero h1 { max-width: 11ch; font-size: clamp(2.45rem, 15vw, 3.3rem); }
  .hero p { font-size: 1.03rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-notes { gap: 8px; }
  .hero-notes span { width: 100%; justify-content: center; }
  .card-grid, .steps, .field-grid, .palette, .stat-row { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero-card { padding: 16px; border-radius: 24px; }
  .form-card { padding: 18px; }
  .dashboard-card { padding: 18px; }
  .dashboard-grid { gap: 12px; }
  .receipt-card { padding: 16px; }
  .footer-card { gap: 10px; }
  .table-wrap { overflow-x: auto; }
  .receipt-table { min-width: 560px; }
  .route-summary-header, .route-stop-meta, .route-legs li { grid-template-columns: 1fr; }
  .route-legs li { justify-items: start; }
  .route-header-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
