:root {
  --color-primary: #0b6b67;
  --color-primary-dark: #064c49;
  --color-primary-soft: #d9eeeb;
  --color-route: #285b8f;
  --color-accent: #c85f4c;
  --color-bg: #f7f8f5;
  --color-surface: #fbfcf8;
  --color-ink: #172321;
  --color-muted: #586762;
  --color-border: #cfd8d3;
  --color-warning: #8a4b08;
  --color-warning-bg: #fff2d7;
  --color-success: #0e6254;
  --color-error: #a93226;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 35, 33, 0.08);
  --shadow-md: 0 16px 40px rgba(23, 35, 33, 0.12);
  --font-sans: "Avenir Next", "Aptos", "Segoe UI", sans-serif;
  --font-mono: "Cascadia Mono", "IBM Plex Mono", monospace;
  --ease: 180ms ease;
  --density: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

.skip-link {
  background: var(--color-ink);
  color: var(--color-surface);
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  position: fixed;
  top: var(--space-4);
  transform: translateY(-150%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 var(--space-5);
}

.site-header {
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  min-height: 72px;
  padding: 0 var(--space-5);
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 750;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-surface);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  height: 32px;
  justify-content: center;
  letter-spacing: 0;
  width: 40px;
}

.nav-links {
  gap: var(--space-5);
}

.nav-links a {
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 650;
  min-height: 44px;
  padding: var(--space-3) 0;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links a:hover {
  color: var(--color-primary-dark);
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), color var(--ease), transform var(--ease);
}

.button:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-surface);
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-secondary {
  background: rgba(251, 252, 248, 0.9);
  border-color: var(--color-border);
  color: var(--color-primary-dark);
}

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

.button-small {
  min-height: 44px;
  padding: 0 var(--space-4);
}

.button-compact {
  min-height: 48px;
  padding: 0 var(--space-4);
}

.button-full {
  width: 100%;
}

.hero {
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.hero-media {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 26, 25, 0.78), rgba(12, 26, 25, 0.42) 45%, rgba(12, 26, 25, 0.12)),
    repeating-linear-gradient(45deg, #dfe6e1, #dfe6e1 10px, #eef2ef 10px, #eef2ef 20px);
  color: rgba(12, 26, 25, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  position: absolute;
}

.hero-media::after {
  background: var(--hero-image, url("assets/packnplot-hero.png")) center / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
}

.hero-media.image-ready::after {
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(247, 248, 245, 0), var(--color-bg));
  bottom: 0;
  height: 120px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  color: var(--color-surface);
  padding-top: 150px;
  position: relative;
}

.eyebrow,
.step-label {
  color: var(--color-accent);
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc8ba;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  text-wrap: pretty;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  margin-bottom: var(--space-5);
  max-width: 760px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  color: #edf4ef;
  font-size: 20px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.section {
  padding: calc(var(--space-9) * var(--density)) 0;
}

.section-tight {
  padding-top: var(--space-6);
}

.section-blue {
  background: #eaf1f5;
}

.map-section {
  background: #dfeaf0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 72px);
  min-height: 760px;
  order: -1;
  overflow: hidden;
  position: relative;
}

.map-control-deck {
  align-items: stretch;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  padding: var(--space-4);
  position: relative;
  z-index: 3;
}

.map-control-deck > * {
  min-width: 0;
}

.map-frame {
  height: 100%;
  min-height: 0;
  position: relative;
}

.section-roadmap {
  background: #eef3e9;
}

.journey-grid,
.market-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, 1fr);
}

.journey-card,
.vendor-card,
.tool-panel,
.route-tool,
.estimate-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.journey-card,
.vendor-card,
.tool-panel,
.route-tool {
  padding: var(--space-5);
}

.journey-card h2 {
  font-size: 24px;
}

.journey-card p,
.vendor-card p,
.section-heading p,
.split p,
.roadmap p {
  color: var(--color-muted);
}

.split,
.roadmap,
.waitlist {
  align-items: center;
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr 1fr;
}

.split-reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 44px;
  padding: 0 var(--space-4);
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.pill:active {
  transform: scale(0.98);
}

.pill.is-active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.tool-header,
.vendor-top,
.footer-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.tool-header h3,
.vendor-top h3 {
  margin-bottom: 0;
}

.trust-badge,
.sponsor-label,
.risk-label {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  min-height: 28px;
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

.trust-badge {
  background: var(--color-primary-soft);
  color: var(--color-success);
}

.sponsor-label {
  background: #e8edf7;
  color: var(--color-route);
}

.risk-label {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.score-row {
  align-items: center;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 140px 1fr 42px;
  margin-top: var(--space-5);
}

meter {
  height: 14px;
  width: 100%;
}

.insight {
  background: #edf4ef;
  border-radius: var(--radius-md);
  color: var(--color-primary-dark);
  margin-top: var(--space-5);
  padding: var(--space-4);
}

.route-tool label,
.waitlist-form label,
.tweak-panel label {
  color: var(--color-ink);
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin: var(--space-4) 0 var(--space-2);
}

input,
select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font: inherit;
  min-height: 48px;
  min-width: 0;
  padding: 0 var(--space-4);
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}

input:hover,
select:hover {
  border-color: var(--color-primary);
}

input:invalid.is-touched {
  border-color: var(--color-error);
}

.relocation-map {
  background: #dfeaf0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.relocation-map.leaflet-container {
  font-family: var(--font-sans);
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  left: 0;
  position: absolute;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
}

.leaflet-tile {
  border: 0;
  filter: saturate(0.86) contrast(0.98);
  height: 256px;
  max-width: none !important;
  width: 256px;
}

.leaflet-tile-container {
  pointer-events: none;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
}

.leaflet-top,
.leaflet-bottom {
  pointer-events: none;
  position: absolute;
  z-index: 900;
}

.leaflet-top {
  top: var(--space-4);
}

.leaflet-bottom {
  bottom: var(--space-3);
}

.leaflet-left {
  left: var(--space-4);
}

.leaflet-right {
  right: var(--space-4);
}

.leaflet-control {
  clear: both;
  float: left;
  pointer-events: auto;
}

.leaflet-bottom.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-control-attribution {
  background: rgba(251, 252, 248, 0.86);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 12px;
  padding: 2px 6px;
}

.leaflet-control-zoom a {
  align-items: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 34px;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.map-search-panel,
.route-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map-search-panel {
  display: grid;
  gap: var(--space-2) var(--space-3);
  grid-template-columns: auto minmax(220px, 1fr);
  padding: var(--space-4);
  width: 100%;
}

.map-search-panel h2 {
  font-size: 20px;
  grid-column: 1 / -1;
  margin: 0 0 var(--space-2);
}

.map-search-panel label {
  align-self: center;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.city-pop-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 52% 48% 44% 56% / 42% 48% 52% 58%;
  box-shadow: 0 14px 34px rgba(23, 35, 33, 0.22);
  color: var(--color-ink);
  min-width: 210px;
  padding: var(--space-3);
  position: relative;
}

.city-pop-card::before {
  background: rgba(200, 95, 76, 0.15);
  border: 2px solid currentColor;
  border-radius: 44% 56% 52% 48% / 50% 38% 62% 50%;
  content: "";
  inset: -10px;
  opacity: 0.85;
  position: absolute;
  z-index: -1;
}

.origin-city-card {
  border-color: var(--color-route);
}

.destination-city-card {
  border-color: var(--color-primary);
}

.city-pop-card::after {
  border-bottom: 12px solid transparent;
  border-left: 12px solid var(--color-surface);
  bottom: -12px;
  content: "";
  left: 0;
  position: absolute;
}

.city-pop-card .city-kicker {
  color: var(--color-accent);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.city-pop-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  margin: var(--space-1) 0 var(--space-2);
}

.city-stat-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, 1fr);
}

.city-stat-grid span {
  color: var(--color-muted);
  display: block;
  font-size: 10px;
}

.city-stat-grid b {
  display: block;
  font-size: 13px;
}

.route-summary {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 340px);
  padding: var(--space-4);
  overflow-wrap: anywhere;
}

.route-summary > * {
  min-width: 0;
}

.route-summary * {
  overflow-wrap: anywhere;
  white-space: normal;
}

.route-summary span,
.route-summary small,
.metric-card span,
.metric-card small {
  color: var(--color-muted);
  display: block;
  max-width: 100%;
}

.route-summary strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.metric-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  background: #f4f8f4;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.metric-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin: var(--space-1) 0;
}

.estimate-card {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.estimate-card span,
.estimate-card small {
  color: var(--color-muted);
  display: block;
}

.estimate-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin: var(--space-2) 0;
}

.map-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 20px;
}

.leaflet-control-zoom {
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
  color: var(--color-ink) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: transparent;
  box-shadow: none;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-container a.leaflet-popup-close-button {
  display: none;
}

.section-heading {
  max-width: 760px;
}

.market-grid {
  margin-top: var(--space-7);
}

.vendor-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.warning-card {
  background: #fffaf0;
}

.check-list,
.timeline {
  margin: 0;
  padding-left: var(--space-5);
}

.check-list {
  color: var(--color-muted);
}

.check-list li,
.timeline li {
  margin-bottom: var(--space-2);
}

.timeline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-7);
}

.waitlist {
  background: var(--color-ink);
  border-radius: var(--radius-md);
  color: var(--color-surface);
  padding: var(--space-7);
}

.waitlist p {
  color: #dfe8e3;
}

.inline-form {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr auto;
}

.form-message {
  color: var(--color-muted);
  font-size: 14px;
  margin: var(--space-3) 0 0;
  min-height: 22px;
}

.waitlist .form-message {
  color: #dfe8e3;
}

.form-message.is-error {
  color: #ffb4a8;
}

.form-message.is-success {
  color: #bcebdc;
}

.footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: var(--space-6) 0;
}

.footer span:first-child {
  color: var(--color-ink);
  font-weight: 750;
}

.toast {
  background: var(--color-ink);
  border-radius: var(--radius-md);
  bottom: var(--space-5);
  box-shadow: var(--shadow-md);
  color: var(--color-surface);
  left: 50%;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  opacity: 0;
  padding: var(--space-3) var(--space-4);
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity var(--ease), transform var(--ease);
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tweak-panel {
  background: rgba(251, 252, 248, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  bottom: var(--space-5);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  position: fixed;
  right: var(--space-5);
  width: 220px;
  z-index: 25;
}

.tweak-panel h2 {
  font-size: 18px;
  margin-bottom: var(--space-2);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    padding-top: var(--space-4);
  }

  .nav-links {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 112px;
  }

  .journey-grid,
  .market-grid,
  .split,
  .roadmap,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .map-section {
    height: calc(100vh - 180px);
    min-height: 820px;
  }

  .map-control-deck {
    grid-template-columns: 1fr;
  }

  .map-search-panel {
    grid-template-columns: 1fr;
  }

  .route-summary {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .hero-copy {
    font-size: 18px;
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  .relocation-map {
    height: 100%;
  }

  .route-summary {
    max-height: 34vh;
    overflow: auto;
    width: auto;
  }

  .route-summary strong,
  .estimate-card strong {
    font-size: 22px;
  }

  .route-summary small,
  .estimate-card small {
    font-size: 13px;
  }

  .map-control-deck {
    padding: var(--space-3);
  }

  .map-search-panel,
  .route-summary {
    max-width: calc(100vw - 24px);
  }

  .city-pop-card {
    min-width: 180px;
  }

  .waitlist {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
