/* Tokens from the app's src/ui/theme.ts and app.config.js, so the site reads as the app. */
:root {
  color-scheme: light;
  --blue: #2f6fed;
  --blue-deep: #1b3f8f;
  --blue-ink: #2f4fed;
  --sky: #e6f4fe;
  --teal: #9ce3d7;
  --teal-soft: #e3f7f3;
  --orange: #e8590c;
  --ink: #111;
  --body: #333;
  --muted: #666;
  --meta: #777;
  --line: #e2e2e2;
  --chip: #eef2ff;
  --surface: #fff;
  --page: #fbfcfd;
  --radius: 22px;
  --shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 12px 32px -12px rgb(17 24 39 / 0.18);
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-ink);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.container {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2 * var(--gutter));
}

/* Unwritten copy. Loud on purpose so none ships by accident. */
.slot {
  background: #fff3bf;
  outline: 1px dashed #e0a020;
  border-radius: 4px;
  padding: 0 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgb(17 17 17 / 0.06);
}

.nav-inner {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
}

.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav nav a:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: #1f5ad6;
  transform: translateY(-1px);
}

.button-small {
  padding: 8px 16px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav nav {
    display: none;
  }
  .nav .button {
    margin-left: auto;
  }
}

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(156 227 215 / 0.55), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, var(--sky), transparent 70%),
    var(--page);
}

.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgb(27 63 143 / 0.08);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lede {
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--body);
  max-width: 34em;
  margin: 22px 0 32px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store {
  display: block;
  transition: transform 0.15s ease;
}

.store:hover {
  transform: translateY(-2px);
}

.store img {
  height: 50px;
  width: auto;
}

/* Google's badge carries its own transparent margin; this trims it to match Apple's. */
.store-play img {
  height: 74px;
  margin: -12px -12px;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 78vw);
  border-radius: 46px;
  padding: 10px;
  background: #0d0f14;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08) inset,
    0 40px 80px -30px rgb(27 63 143 / 0.55),
    0 18px 40px -20px rgb(17 17 17 / 0.4);
  transform: rotate(2deg);
}

.phone img {
  border-radius: 37px;
  width: 100%;
  height: auto;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .phone {
      animation: phone-drift linear both;
      animation-timeline: view();
      animation-range: exit -20% exit 100%;
    }
    @keyframes phone-drift {
      to {
        transform: rotate(-2deg) translateY(-60px);
      }
    }
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---- sections ------------------------------------------------------------- */

main > section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  main > section {
    padding: 64px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2,
.faq h2,
.cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 780;
}

.section-head p {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.problem {
  background: var(--surface);
  border-block: 1px solid rgb(17 17 17 / 0.05);
}

.statement {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.statement-follow {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
}

/* ---- live map demo --------------------------------------------------------- */

.demo-grid {
  display: grid;
}

.map-shell {
  position: relative;
  height: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfe9d9;
  box-shadow: var(--shadow);
  border: 1px solid rgb(17 17 17 / 0.06);
  isolation: isolate;
}

.map-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(0.9);
  transform: scale(1.05);
  transition: opacity 0.5s ease;
}

.map-shell.is-ready .map-poster {
  opacity: 0;
  pointer-events: none;
}

/* Outranks maplibre-gl.css's `.maplibregl-map { position: relative }`, which loads later. */
.map-shell .map {
  position: absolute;
  inset: 0;
}

/* Mirrors the app's location puck: dot, accuracy ring, and a live pulse. Under the sheet,
   and never a tap target, so it cannot steal a tap meant for a climb. */
.location-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35), 0 0 0 14px rgb(47 111 237 / 0.14);
  pointer-events: none;
}

.location-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgb(47 111 237 / 0.45);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .location-dot::after {
    animation: location-pulse 2s ease-out infinite;
  }
  @keyframes location-pulse {
    0% {
      transform: scale(1);
      opacity: 0.7;
    }
    100% {
      transform: scale(3.4);
      opacity: 0;
    }
  }
}

/* Sits above the map, indented so the arrow points at the map's Filter pill. */
.map-hint {
  margin: 0 0 10px;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 650;
  color: var(--blue);
}

.map-hint-arrow {
  display: inline-block;
  animation: hint-bounce 1.2s ease-in-out infinite;
}

.map-hint.is-settled .map-hint-arrow {
  animation: none;
}

@keyframes hint-bounce {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-hint-arrow {
    animation: none;
  }
}

/* ---- map filter (the app's FilterBar pill + FilterPanel card) ---- */

.map-filter {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--blue);
  color: #fff;
}

.filter-caret {
  font-size: 11px;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(300px, calc(100vw - 60px));
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 40px -12px rgb(17 24 39 / 0.35);
  animation: sheet-in 0.2s ease;
}

.filter-panel[hidden] {
  display: none;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.filter-reset {
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

.filter-reset:disabled {
  color: #bbb;
  cursor: default;
}

.filter-group {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
}

.filter-types {
  display: flex;
  gap: 8px;
}

.type-chip {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}

.type-chip.is-on {
  background: var(--blue);
  color: #fff;
}

.filter-grade-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.grade-readout {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Two native range inputs stacked on one track: only the thumbs take pointer events, so
   each thumb is draggable and the track underneath shows the selected span. */
.grade-range {
  position: relative;
  height: 28px;
}

.grade-track {
  position: absolute;
  top: 50%;
  left: 11px;
  right: 11px;
  height: 4px;
  translate: 0 -50%;
  border-radius: 2px;
  background: var(--line);
}

.grade-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  background: var(--blue);
}

.grade-range input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.grade-range input::-webkit-slider-runnable-track {
  background: none;
}

.grade-range input::-moz-range-track {
  background: none;
}

.grade-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  pointer-events: auto;
  cursor: grab;
}

.grade-range input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  pointer-events: auto;
  cursor: grab;
}

.grade-range input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.grade-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  color: var(--meta);
}

.climb-list button.dimmed {
  opacity: 0.4;
}

.skip-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-inline: 2px;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--body);
  background: rgb(255 255 255 / 0.7);
  z-index: 3;
}

/* The detail sheet: a side card on wide screens, the app's bottom sheet on phones. */
.sheet {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(380px, 100% - 28px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 12px 40px -12px rgb(17 24 39 / 0.35);
  overflow: hidden;
  animation: sheet-in 0.25s ease;
}

.sheet[hidden] {
  display: none;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .map-shell {
    height: min(720px, 88svh);
  }
  .sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 52%;
    border-radius: 18px 18px 0 0;
  }
}

.sheet-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: var(--body);
  font-size: 14px;
  cursor: pointer;
  z-index: 1;
}

.sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 34px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.sheet-subtitle {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 22px;
  padding: 0 4px;
  border-radius: 11px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--chip);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.rating .stars {
  color: #e0a020;
  letter-spacing: 1px;
}

.rating .count {
  font-weight: 400;
  color: var(--meta);
  font-size: 14px;
}

.sheet-section h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--meta);
}

.sheet-section p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue-ink);
  font-weight: 600;
  cursor: pointer;
}

.photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -20px;
  padding-inline: 20px;
  scrollbar-width: none;
}

.photo-strip button {
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  scroll-snap-align: start;
  background: #f4f4f5;
}

.photo-strip img {
  height: 180px;
  width: auto;
}

.outbound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--blue-ink);
  font-weight: 600;
  text-decoration: none;
}

.get-app-card {
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--teal-soft);
  font-size: 14px;
  color: var(--body);
}

.get-app-card a {
  font-weight: 650;
}

.climb-list {
  list-style: none;
  margin: 0 -20px;
  padding: 0;
}

.climb-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 0;
  border-top: 1px solid #eee;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.climb-list button:hover {
  background: #f1f5f9;
}

.climb-list .name {
  flex: 1;
  font-weight: 500;
}

.climb-list .grade {
  color: var(--muted);
  font-size: 14px;
}

.wall-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.wall-nav button {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.wall-nav button + button {
  justify-content: flex-end;
}

/* Only the name truncates: a clipped skip count would be worse than a clipped name. */
.wall-nav button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-jump {
  flex: none;
  display: inline-flex;
  align-items: center;
}

.wall-nav button:disabled {
  color: #cbd0e0;
  cursor: default;
}

/* ---- features bento ---------------------------------------------------------- */

.features {
  background: linear-gradient(180deg, var(--page), var(--sky) 60%, var(--page));
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgb(17 17 17 / 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-3px);
}

.tile h3 {
  font-size: 20px;
  font-weight: 720;
}

.tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--blue);
  margin-bottom: 18px;
}

.tile-wide {
  grid-column: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.tile-shot {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--surface), var(--teal-soft));
}

.tile-shot img {
  margin: 24px auto 0;
  width: 78%;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -2px 30px -10px rgb(17 24 39 / 0.3);
  border: 6px solid #0d0f14;
  border-bottom: 0;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.tile-offline {
  display: flex;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(156 227 215 / 0.6), transparent 60%),
    var(--surface);
}

.tile-offline .tile-copy {
  flex: 1;
}

/* A signal meter that empties out: the map keeps working as the bars go. */
.signal {
  flex: none;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 64px;
}

.signal span {
  width: 12px;
  border-radius: 4px;
  background: var(--blue);
}

.signal span:nth-child(1) { height: 25%; }
.signal span:nth-child(2) { height: 50%; }
.signal span:nth-child(3) { height: 75%; }
.signal span:nth-child(4) { height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .signal span {
    animation: signal-fade 3.2s ease-in-out infinite;
  }
  .signal span:nth-child(4) { animation-delay: 0s; }
  .signal span:nth-child(3) { animation-delay: 0.25s; }
  .signal span:nth-child(2) { animation-delay: 0.5s; }
  .signal span:nth-child(1) { animation-delay: 0.75s; }
  @keyframes signal-fade {
    0%, 20% { opacity: 1; }
    50%, 80% { opacity: 0.12; }
    100% { opacity: 1; }
  }
}

/* The app's parking sheet in miniature: an orange lot with its "P", and the Directions
   button that takes you to the lot's entrance. A picture, not a control. */
.tile-parking {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(80% 60% at 100% 100%, rgb(247 103 7 / 0.12), transparent 60%),
    var(--surface);
}

.parking-visual {
  position: relative;
  height: 140px;
  border-radius: 14px;
  background: #cfe9d9;
  overflow: hidden;
}

/* A road running past the lot, so the lot reads as a place you drive to. */
.parking-visual::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 16px;
  height: 9px;
  background: #fff;
  opacity: 0.85;
  transform: rotate(-6deg);
}

.parking-lot {
  position: absolute;
  top: 30px;
  left: 12%;
  width: 50%;
  height: 44px;
  border: 2px solid #f76707;
  border-radius: 4px;
  background: rgb(247 103 7 / 0.14);
  transform: rotate(-6deg);
}

.parking-p {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #f76707;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.parking-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 18px -8px rgb(17 24 39 / 0.35);
}

.parking-sheet p {
  margin: 0;
}

/* Scoped under .parking-sheet to outrank `.tile p`. */
.parking-sheet .parking-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.parking-sheet .parking-meta {
  font-size: 12px;
  color: var(--muted);
}

.parking-directions {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-ink);
}

.tile-extras {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.tile-extras ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-extras li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 600;
}

.tile-extras li svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: var(--chip);
  color: var(--blue);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-wide,
  .tile-tall {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ---- where ------------------------------------------------------------------ */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.area {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 90% at 100% 100%, rgb(47 111 237 / 0.12), transparent 60%),
    var(--surface);
  border: 1px solid rgb(17 17 17 / 0.06);
  box-shadow: var(--shadow);
}

.area h3 {
  font-size: 30px;
  font-weight: 800;
}

.area-state {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.area-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.area-stats {
  margin: 10px 0 0;
  color: var(--muted);
}

.area-next {
  background: transparent;
  border: 1.5px dashed rgb(27 63 143 / 0.25);
  box-shadow: none;
}

.area-next h3 {
  font-size: 22px;
}

.area-next p {
  color: var(--muted);
}

/* ---- story, faq, cta ------------------------------------------------------------ */

.story {
  background: var(--surface);
  border-block: 1px solid rgb(17 17 17 / 0.05);
}

.story blockquote {
  margin: 0;
}

.story blockquote p {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.story blockquote footer {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 600;
}

.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: rotate 0.2s ease;
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  margin: 0 0 22px;
  color: var(--body);
}

main > .cta {
  padding: 0 0 96px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(156 227 215 / 0.45), transparent 60%),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 30px 60px -30px rgb(27 63 143 / 0.7);
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 12px 0 28px;
  font-size: 18px;
  color: rgb(255 255 255 / 0.85);
}

.qr-pair {
  display: flex;
  gap: 16px;
}

.qr-pair figure {
  margin: 0;
  padding: 12px 12px 8px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}

.qr-pair figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

/* A QR code is for a desktop visitor to hand off to their phone; on a phone it is noise. */
@media (max-width: 860px), (pointer: coarse) {
  .qr-pair {
    display: none;
  }
}

@media (max-width: 720px) {
  .cta-inner {
    padding: 36px 24px;
    border-radius: 24px;
  }
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: inherit;
}

/* ---- lightbox ------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  border-radius: 8px;
}

.lightbox-caption {
  color: #fff;
  margin: 12px 0 0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ---- reveal on scroll ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

.maplibregl-ctrl-attrib {
  font-size: 11px;
}

