/* Blockwalk product site. One family (Overpass, from the Highway Gothic
   road-sign lettering) and the app's own map colours. Boldness lives in the
   hero map; everything else stays quiet. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #12204a;        /* navy: text, headings, the dark band */
  --ink-soft: #3e4c63;   /* secondary text, 8.6:1 on paper */
  --paper: #eef2f5;      /* cool map paper, the page ground */
  --surface: #ffffff;
  --road: #ffffff;
  --block: #dfe6ec;      /* land between roads on the hero map */
  --door: #0d5bab;       /* to visit; links and buttons */
  --door-dark: #0a4886;
  --visited: #1b7a3d;
  --opponent: #b3261e;
  --rule: #c9d3dc;
  --measure: 38rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: var(--door); text-underline-offset: 0.18em; }
a:hover { color: var(--door-dark); }

:focus-visible {
  outline: 3px solid var(--door);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--surface); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; }
.top nav { display: flex; gap: 1.25rem; font-size: 1rem; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.top nav a:hover { color: var(--door); }

/* Type scale: 1.125rem body on a 1.333 ratio */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 0.5rem; border: 2px solid var(--door);
  background: var(--door); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.btn:hover { background: var(--door-dark); border-color: var(--door-dark); color: #fff; }
.btn.quiet { background: transparent; color: var(--door); }
.btn.quiet:hover { background: var(--surface); color: var(--door-dark); }
.btn.on-ink { background: #fff; border-color: #fff; color: var(--ink); }
.btn.on-ink:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 4.2vw, 3.25rem); text-wrap: balance; }
.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--door);
}
.hero .lede { margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.fine { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }

.map {
  background: var(--block);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.map-key {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  margin: 0.9rem 0 0; padding: 0; list-style: none;
  font-size: 0.9rem; color: var(--ink-soft);
}
.map-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.map-key svg { width: 1.1rem; height: 1.1rem; }

/* Hero map animation lives in the SVG itself (one SMIL timeline, so the line,
   the walker and the houses can't drift apart). Reduced motion shows the end
   state: !important outranks the animated values. */
@media (prefers-reduced-motion: reduce) {
  .route { stroke-dashoffset: 0 !important; }
  .walker { display: none; }
  .h .after { opacity: 1 !important; }
  .h .before { opacity: 0 !important; }
}

/* Sections */
.section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section.white { background: var(--surface); }
.section h2 { max-width: 22ch; }
.section > .wrap > .lede { margin-top: 1rem; }

/* A day on the doors: a real sequence, so it's drawn as a route with stops */
.route-list {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  position: relative;
}
.route-list::before {
  content: ""; position: absolute; top: 0.9rem; left: 1rem; right: 1rem;
  border-top: 3px dashed var(--door);
  opacity: 0.45;
}
.stop { position: relative; display: flex; flex-direction: column; }
.stop .mark { width: 1.9rem; height: 1.9rem; position: relative; background: var(--surface); border-radius: 50%; }
.stop h3 { margin-top: 1.25rem; }
.stop p { margin-top: 0.6rem; color: var(--ink-soft); }
.stop ul { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.stop li + li { margin-top: 0.35rem; }
.section > .wrap > .note { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }

/* A real screen from the demo campaign under each stop, in a drawn phone
   cropped to its top three quarters (where the content is) and fading out
   at the bottom. margin-top: auto lines the three up whatever the text. */
.phone {
  margin: 0; margin-top: auto; padding-top: 2.25rem;
  width: 100%; max-width: 19rem;
}
.phone .screen {
  aspect-ratio: 644 / 1120;
  overflow: hidden;
  border: 0.55rem solid var(--ink);
  border-bottom: 0;
  border-radius: 2.6rem 2.6rem 0 0;
  background: var(--ink);
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, #000 84%, transparent);
}
.phone img {
  width: 100%; height: auto;
  border-radius: 2.05rem 2.05rem 0 0;
}

/* Feature rows: text beside a small drawing, alternating */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature .lede { margin-top: 1rem; }
.feature p + p { margin-top: 0.9rem; }
.feature.flip > :first-child { order: 2; }

.panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 1rem; padding: 1.25rem 1.4rem;
}
.section.white .panel { background: var(--paper); }

/* Walk-list row sample */
.row { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; align-items: start; }
.row + .row { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.row svg { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.row strong { font-weight: 800; }
.row .meta { grid-column: 2; font-size: 0.95rem; color: var(--ink-soft); }
.badge {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  padding: 0.05rem 0.55rem; border-radius: 999px; margin-left: 0.35rem;
  vertical-align: 0.1em;
}
.badge.history { background: #fdf3e2; color: #7a4f00; }
.badge.wait { background: #e8f1fb; color: var(--door-dark); }

/* Offline status sample */
.status { display: grid; gap: 0.7rem; }
.status div { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; }
.status div span:last-child { color: var(--ink-soft); }
.status .bar {
  background: var(--ink); color: #fff; border-radius: 0.6rem;
  padding: 0.6rem 0.9rem; font-weight: 600;
}
.status .bar span:last-child { color: #c7d3ff; }

/* Two audiences */
.pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem;
}
.pair ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.pair li + li { margin-top: 0.5rem; }

/* Closing band */
.band { background: var(--ink); color: #fff; }
.band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem);
}
.band h2 { max-width: 18ch; }
.band p { margin-top: 0.9rem; color: #d3dbf2; max-width: 34rem; }

/* Footer */
.foot { padding-top: 2rem; padding-bottom: 2.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* Text pages: privacy, support */
.doc { padding-top: 1.5rem; padding-bottom: 4rem; }
.doc article { max-width: var(--measure); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .updated { margin-top: 0.75rem; color: var(--ink-soft); font-size: 1rem; }
.doc h2 { font-size: 1.6rem; margin-top: 2.75rem; }
.doc h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.doc p, .doc ul, .doc ol { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.4rem; }
.doc details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; min-height: 1.75rem; }
.doc details p:first-of-type { margin-top: 0.75rem; }

@media (max-width: 52rem) {
  .hero, .feature, .pair { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .route-list { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .route-list::before {
    top: 1rem; bottom: 1rem; left: 0.95rem; right: auto;
    border-top: 0; border-left: 3px dashed var(--door);
  }
  .stop { padding-left: 3rem; }
  .stop .mark { position: absolute; left: 0; top: 0; }
  .stop h3 { margin-top: 0.1rem; }
}

@media (max-width: 24rem) {
  .top nav a[href="#how"] { display: none; }
}

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .top nav { gap: 0.9rem; }
  .actions .btn { flex: 1 1 100%; }
}
