/* Sanction v4 — Attio × Linear × Vercel × Stripe
   White base, ink for type/CTAs only. Soft depth, hairlines, generous air. */

:root {
  --navy: #0C2340;
  --mid: #163556;
  --wash: #E6EEF7;
  --bg: #FFFFFF;
  --bg-soft: #f7f9fc;
  --bg-mute: #f0f4f9;
  --bg-wash: #E6EEF7;
  --bg-grid: rgba(12, 35, 64, 0.045);
  --ink: #0A0A0A;
  --ink-2: #0C2340;
  --muted: #5c5c5c;
  --muted-2: #8a8a8a;
  --muted-3: #a3a3a3;
  --border: #e3e9f0;
  --border-2: #d7e0ea;
  --border-3: #c5d0dc;
  --border-focus: #0C2340;
  --panel: #FFFFFF;
  --sidebar: #f8fafc;
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #e11d48;
  --accent-wash: #E6EEF7;
  --accent-ink: #0C2340;
  --accent-border: #b7c9dc;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --pill: 999px;
  --shadow-xs: 0 1px 1px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --shadow-card: 0 0 0 1px rgba(12,35,64,0.05), 0 1px 2px rgba(12,35,64,0.03), 0 8px 24px rgba(12,35,64,0.045);
  --shadow-window:
    0 0 0 1px rgba(12,35,64,0.07),
    0 2px 4px rgba(12,35,64,0.03),
    0 12px 28px rgba(12,35,64,0.06),
    0 40px 80px -24px rgba(12,35,64,0.16);
  --shadow-focus: 0 0 0 3px rgba(12,35,64,0.14);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(12,35,64,0.12); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Nav ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.nav__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs);
}
.nav__logo,
.footer__logo {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 450;
}
.nav__links a:hover { color: var(--ink); opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 14.5px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn--primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 1px 2px rgba(12,35,64,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn--primary:hover { background: var(--mid); opacity: 1; }
.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-3);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { background: var(--bg-soft); border-color: #bdbdbd; opacity: 1; }
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn--ghost:hover { color: var(--ink); background: var(--bg-mute); opacity: 1; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.18);
  padding: 8px 0;
}
.linkish:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ——— Hero (keep the loved clean look, slight polish) ——— */
.hero {
  position: relative;
  padding: 96px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 110%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(196,214,255,0.45), rgba(255,255,255,0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  border-radius: var(--pill);
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.hero__eyebrow strong { color: var(--ink); font-weight: 560; }
.hero h1 {
  margin: 0 auto 18px;
  max-width: 14ch;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.048em;
  font-weight: 600;
  color: var(--ink);
}
.hero__sub {
  margin: 0 auto 34px;
  max-width: 40ch;
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.hero__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
}

/* Hero CTAs stay black-and-white (owner preference); product chrome uses navy */
.hero .btn--primary,
.topbar .btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero .btn--primary:hover,
.topbar .btn--primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  opacity: 1;
}

/* ——— Product window ——— */
.product {
  position: relative;
  padding: 12px 0 120px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(210,224,255,0.35), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-wash) 42%, #f7f8fa 100%);
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  pointer-events: none;
  opacity: 0.45;
}
.product .container { position: relative; z-index: 1; }

.window {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.window__chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.08);
}
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: #ececec;
  border-radius: 6px;
  padding: 5px 14px;
  max-width: min(280px, 46vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window__body {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 740px;
}

/* Sidebar stepper */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 22px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  padding: 2px 12px 14px;
}
.side-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: -0.01em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.side-step:hover { background: rgba(0,0,0,0.03); color: var(--ink); }
.side-step.is-active {
  background: var(--wash);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.side-step.is-done { color: var(--ink-2); }
.side-step__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
  background: #fff;
  transition: all 0.15s var(--ease);
}
.side-step.is-done .side-step__check {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.side-step.is-active .side-step__check {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 0;
}
.side-step.is-active .side-step__check::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
.sidebar__foot {
  margin-top: auto;
  padding: 16px 12px 6px;
  font-size: 11.5px;
  color: var(--muted-3);
  line-height: 1.45;
  border-top: 1px solid transparent;
}

/* Panel */
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}
.panel__progress {
  height: 2px;
  background: var(--border);
}
.panel__progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--mid));
  transition: width 0.4s var(--ease-out);
}
.panel__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 44px 0;
  font-size: 12px;
  color: var(--muted-2);
  gap: 12px;
}
.panel__meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--pill);
  background: var(--wash);
  border: 1px solid var(--accent-border);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--pill);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 520;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--border-2);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
  font-family: var(--font);
  letter-spacing: 0;
}
.panel__content {
  padding: 28px 44px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.step-view { display: none; animation: fade 0.32s var(--ease-out); }
.step-view.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.step-view .actions { margin-top: auto; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.step-view h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.038em;
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
}
.step-view .lede {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
  letter-spacing: -0.01em;
}

/* Forms */
.form-grid { display: grid; gap: 22px; }
.form-grid.two { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: grid; gap: 8px; }
.field__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
label, .label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.badge {
  font-size: 10.5px;
  font-weight: 520;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--pill);
  padding: 2px 7px;
  letter-spacing: 0.01em;
}
.helper {
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.45;
}
.field-error { display: none; color: var(--danger); font-size: 12px; }
.field.is-invalid .field-error { display: block; }

.control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  background: #fff;
  outline: none;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  box-shadow: var(--shadow-xs);
}
textarea.control {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.control::placeholder { color: #b5b5b5; }
.control:hover { border-color: #b8b8b8; }
.control:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.1);
}
.control[readonly] {
  background: var(--bg-soft);
  color: var(--muted);
  box-shadow: none;
}
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--bg-mute);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.02);
}
.segmented__btn {
  flex: 1 1 auto;
  min-height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: all 0.15s var(--ease);
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.05);
}

.path-cards { display: grid; gap: 10px; }
.path-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 18px 18px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  box-shadow: var(--shadow-xs);
}
.path-card:hover { border-color: #c4c4c4; }
.path-card.is-selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), var(--shadow-sm);
  background: #fcfcfc;
}
.path-card__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  letter-spacing: -0.015em;
}
.path-card__body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-label {
  margin: 32px 0 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Map */
.map-search {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.map-search .control { flex: 1; }
.map-search .btn { flex-shrink: 0; height: 44px; }

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.map-toolbar__count {
  font-size: 13px;
  color: var(--muted);
}
.map-toolbar__count strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.leaflet-map {
  width: 100%;
  height: 440px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #f5f7fa;
  touch-action: pan-x pan-y;
  z-index: 1;
  box-shadow: var(--shadow-xs);
}
.leaflet-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: #f5f7fa;
}
.leaflet-container a { color: inherit; }
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.88) !important;
}
.leaflet-tooltip.zip-tip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
}
.leaflet-tooltip.zip-tip::before { display: none; }

.zip-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.zip-selected:empty::before {
  content: "None selected yet — tap ZIPs on the map.";
  color: var(--muted-3);
  font-size: 13px;
}
.zip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.zip-pill button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
}
.zip-pill button:hover { opacity: 1; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.toggle { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.toggle__track {
  position: absolute; inset: 0; border-radius: 999px; background: #e5e5e5; transition: 0.2s;
}
.toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: 0.2s;
}
.toggle input:checked + .toggle__track { background: var(--navy); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(18px); }

.file-drop {
  border: 1px dashed var(--border-3);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafafa, #f6f6f6);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.file-drop:hover, .file-drop.is-drag {
  border-color: var(--navy);
  background: #f8f8f8;
  box-shadow: var(--shadow-focus);
}
.file-drop input { display: none; }
.file-drop__name { margin-top: 6px; color: var(--ink); font-weight: 500; font-size: 12.5px; }

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink-2);
}
.alert--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #047857;
}

.status-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  background: #fff;
}
.status-row:nth-child(even) { background: var(--bg-soft); }
.status-row:last-child { border-bottom: 0; }
.status-row__state { color: var(--muted); font-weight: 500; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.actions__right { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; align-items: center; }
.actions__primary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.helper--under-cta {
  margin: 0;
  max-width: 28ch;
  text-align: right;
  color: var(--muted-2);
  /* brand-aligned muted helper; wash available via --wash / #E6EEF7, navy via --navy / #0C2340 */
}
@media (max-width: 720px) {
  .helper--under-cta { text-align: left; max-width: none; }
}

/* ——— Marketing sections ——— */
.section {
  position: relative;
  padding: 112px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.section--soft {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(230,238,247,0.75), transparent 70%),
    var(--bg-soft);
}
.section__head {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--wash);
  border: 1px solid var(--accent-border);
}
.section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
}
.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  min-height: 168px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--mid), transparent);
  opacity: 0.7;
}
.card:hover {
  box-shadow: 0 0 0 1px rgba(12,35,64,0.06), 0 14px 36px rgba(12,35,64,0.07);
  transform: translateY(-1px);
}
.card__n {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--navy);
  background: var(--wash);
  font-variant-numeric: tabular-nums;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.why-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.why-item {
  padding: 36px 30px;
  border-right: 1px solid var(--border);
  position: relative;
  background:
    linear-gradient(180deg, rgba(230,238,247,0.55) 0%, transparent 42%),
    #fff;
}
.why-item:last-child { border-right: 0; }
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--wash);
  border: 1px solid var(--accent-border);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 18px; height: 18px; }
.why-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--navy);
}
.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
  background: #fff;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.footer__brand {
  margin-bottom: 10px;
}
.footer__copy { color: var(--muted-2); font-size: 13px; max-width: 34ch; line-height: 1.5; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--navy);
  color: #fff;
  border-radius: var(--pill);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: var(--shadow-card);
  letter-spacing: -0.01em;
}

/* Mobile */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav-toggle { display: none; }
  .window__body { grid-template-columns: 1fr; }
  .window { border-radius: 14px; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 6px;
    padding: 12px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar #sidebarSteps {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .sidebar__label, .sidebar__foot { display: none; }
  .side-step {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 7px 10px;
    gap: 7px;
    font-size: 12px;
  }
  .side-step span:not(.side-step__check) { display: inline; }
  .side-step:not(.is-active):not(.is-done) span:not(.side-step__check) {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    display: inline-block;
  }
  .side-step.is-active span:not(.side-step__check),
  .side-step.is-done span:not(.side-step__check) {
    display: inline;
  }
  .panel__content { padding: 22px 18px 28px; }
  .panel__meta { padding-left: 18px; padding-right: 18px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .grid-3, .why-strip { grid-template-columns: 1fr; }
  .why-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .why-item:last-child { border-bottom: 0; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { max-width: none; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .leaflet-map { height: 340px; }
  .map-search { flex-direction: column; }
  .map-search .btn { width: 100%; }
  .product { padding-bottom: 72px; }
  .kbd { display: none; }
  .window__title { margin-right: 8px; max-width: 200px; font-size: 11px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__cta, .actions, .actions__right { flex-direction: column; align-items: stretch; }
  .actions__right { margin-left: 0; width: 100%; }
  .btn--lg, .actions .btn { width: 100%; }
  .nav__actions .btn--secondary { display: none; }
  .step-view h2 { font-size: 24px; }
  .card { min-height: 0; }
}
