/* Contour: a cartographic company site. Shaded relief, contour lines and a magenta route;
   everything around the map stays quiet: hairlines, one typeface family, generous space. */
:root {
  --paper: #FBFBF9;
  --land: #F1F4EE;
  --ink: #18261F;
  --ink-2: #4A5952;
  --hair: rgba(24, 38, 31, 0.13);
  --route: #C1166B;
  --route-ink: #9C0E55;
  --water: #3D7DB3;
  --night: #10231D;
  --night-ink: #E3ECE6;
  --error: #B42318;

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 76rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: max(var(--pad), (100% - var(--wrap)) / 2);
  --measure: 40rem;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--paper); scroll-padding-top: 5rem; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--route); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { color: var(--route-ink); }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 20; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.028em; font-stretch: 88%; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; font-stretch: 90%; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.005em; }
p, li, dd { text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem 2rem;
  padding: 0.85rem var(--gutter);
  background: rgba(251, 251, 249, 0.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; font-stretch: 92%; }
.brand:hover { color: inherit; }
.brand svg { width: 1.6rem; height: 1.6rem; }
.brand path { fill: none; stroke: var(--route); stroke-width: 3; stroke-linecap: round; }
.brand circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.site-head nav { justify-self: end; display: flex; gap: 0.25rem 1.75rem; font-size: 0.9375rem; }
.site-head nav a { text-decoration: none; color: var(--ink-2); padding-block: 0.35rem; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--route); }
.head-cta {
  display: inline-flex; align-items: center; height: 2.4rem; padding: 0 1rem; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  color: var(--route); border: 1.5px solid var(--route);
}
.head-cta:hover { background: var(--route); color: #fff; }
[data-page="joined"] .head-cta, [data-page="joined"] .signup-band { display: none; }

/* ---------- Launch-list forms ---------- */
.signup-row { display: flex; gap: 0.5rem; max-width: 30rem; }
.signup-row label { flex: 1; min-width: 0; }
.signup-form input {
  width: 100%; height: 3.25rem; padding: 0 1rem; border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid rgba(24, 38, 31, 0.28);
}
.signup-form input::placeholder { color: #7C8983; }
.signup-form input:focus { outline: none; border-color: var(--route); box-shadow: 0 0 0 3px rgba(193, 22, 107, 0.18); }
.signup-form button {
  height: 3.25rem; padding: 0 1.35rem; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; white-space: nowrap;
  color: #fff; background: var(--route);
}
.signup-form button:hover { background: var(--route-ink); }
.signup-form button:active { transform: translateY(1px); }
.signup-form button:disabled { opacity: 0.6; cursor: progress; }
.form-note { margin-top: 0.65rem; font-size: 0.875rem; color: var(--ink-2); }
.form-status { font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.signup-form[data-state="error"] .form-status { margin-top: 0.65rem; color: var(--error); }
.signup-form[data-state="sending"] .form-status { margin-top: 0.65rem; color: var(--ink-2); }
.signup-form[data-state="done"] .signup-row, .signup-form[data-state="done"] .form-note { display: none; }
.signup-form[data-state="done"] .form-status {
  display: flex; gap: 0.75rem; align-items: center; max-width: 30rem;
  padding: 0.9rem 1.1rem; border-radius: 8px; background: #fff; border: 1px solid var(--hair);
}
.signup-form[data-state="done"] .form-status::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--route) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .signup-form[data-state="done"] .form-status { animation: settle 0.35s ease-out; }
}
@keyframes settle { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Home: the map ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(36rem, calc(100svh - 4.2rem), 54rem); overflow: hidden; border-bottom: 1px solid var(--hair); background: var(--land); }
.hero-map { position: absolute; inset: 0; }
.hero-map svg { display: block; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 251, 249, 0.96) 28%, rgba(251, 251, 249, 0.6) 42%, rgba(251, 251, 249, 0) 56%);
}
.hero-copy { position: relative; z-index: 2; padding: 4rem var(--gutter); }
.hero-copy > * { max-width: 31rem; }
.hero-copy .lede { margin-top: 1.25rem; }
.hero-copy .signup-form { margin-top: 2rem; }
.stores { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.6rem; }
.stores::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 4px rgba(193, 22, 107, 0.15); }

.wood path { fill: #7FAA70; opacity: 0.2; }
.river { fill: none; stroke: #86BBE0; stroke-width: 5; stroke-linecap: round; }
.grid path { stroke: #5B8FC0; stroke-width: 0.8; opacity: 0.3; }
.grid text { font: 500 11px var(--sans); fill: #3F6F9C; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.casing { fill: none; stroke: var(--paper); stroke-width: 12; stroke-linecap: round; opacity: 0.9; }
.route { fill: none; stroke: var(--route); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.end { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.you .halo { fill: var(--water); opacity: 0.18; }
.you circle:not(.halo) { fill: var(--water); stroke: #fff; stroke-width: 3; }
.place text { font: italic 17px var(--serif); fill: var(--ink); paint-order: stroke; stroke: rgba(251, 251, 249, 0.85); stroke-width: 4px; stroke-linejoin: round; }
.place .water { fill: #2F6E9F; }
.card rect { fill: var(--paper); stroke: rgba(24, 38, 31, 0.1); filter: drop-shadow(0 6px 14px rgba(24, 38, 31, 0.14)); }
.card .icon { fill: var(--route); }
.card .glyph { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c2 .glyph { fill: #fff; stroke: none; }
.card .t { font: 600 15px var(--sans); fill: var(--ink); }
.card .s { font: 13px var(--sans); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.leader { stroke: var(--ink); stroke-width: 1.2; opacity: 0.45; }
.poi { fill: var(--paper); stroke: var(--route); stroke-width: 2.5; }
.scale rect { fill: var(--ink); }
.scale rect.alt { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.scale text { font: 500 11px var(--sans); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.scale .north { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s 0.35s cubic-bezier(0.45, 0.05, 0.3, 1) forwards; }
  .card, .you { opacity: 0; transform-box: fill-box; animation: rise 0.5s ease-out forwards; }
  .you { animation-delay: 0.3s; }
  .c1 { animation-delay: 1.05s; }
  .c2 { animation-delay: 1.65s; }
  .c3 { animation-delay: 2.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Home: sections ---------- */
main > section { padding-inline: var(--gutter); }
main > .hero { padding-inline: 0; }
.how, .ask, .riders, .maker { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.ask { background: var(--land); border-block: 1px solid var(--hair); }
.section-head { max-width: 38rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; }
.more { margin-top: 2.5rem; font-weight: 600; }

.profile { position: relative; height: clamp(6rem, 11vw, 9.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.profile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile .area { fill: var(--land); }
.profile .line path { fill: none; stroke-linecap: round; }
.profile .planned { stroke: var(--route); stroke-width: 2.5; stroke-dasharray: 7 6; }
.profile .ridden { stroke: var(--route); stroke-width: 3.5; }
.profile .done { stroke: var(--ink); stroke-width: 2.5; }
.profile .ticks { stroke: var(--hair); stroke-width: 1; }
.mark { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; }
.you-mark { width: 0.95rem; height: 0.95rem; background: var(--water); box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(61, 125, 179, 0.16); }
.flag-mark { width: 0.8rem; height: 0.8rem; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.stages li { padding: 1.5rem 2rem 0 1.5rem; border-left: 1px solid var(--hair); }
.stages li:first-child { padding-left: 0; border-left: 0; }
.stages h3::before { content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 0.9rem; background: var(--route); border-radius: 2px; }
.stages li:first-child h3::before { background: repeating-linear-gradient(90deg, var(--route) 0 7px, transparent 7px 12px); }
.stages li:last-child h3::before { background: var(--ink); }
.stages p { margin-top: 0.5rem; color: var(--ink-2); }

.ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.qa div { padding-block: 1.35rem; border-top: 1px solid var(--hair); }
.qa dt { font: italic 1.3rem/1.3 var(--serif); color: var(--ink); }
.qa dd { margin-top: 0.55rem; padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: 0.975rem; font-variant-numeric: tabular-nums; }
.qa dd::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9rem; height: 2px; background: var(--route); border-radius: 1px; }

.rider-list { list-style: none; padding: 0; margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); }
.rider-list li { border-top: 1px solid var(--ink); padding-top: 1rem; }
.rider-list p { margin-top: 0.4rem; color: var(--ink-2); }

.maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--hair); }
.principles div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding-block: 1.15rem; border-top: 1px solid var(--hair); }
.principles div:last-child { border-bottom: 1px solid var(--hair); }
.principles dt { font-weight: 600; }
.principles dd { color: var(--ink-2); }

/* ---------- Sign-up band (every page) ---------- */
.signup-band {
  padding: clamp(4.5rem, 9vw, 7rem) var(--gutter);
  background: var(--night) url(contours-night.svg) center / cover;
  color: var(--night-ink);
}
.band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.band-copy h2 { color: #fff; }
.band-copy p { margin-top: 1rem; max-width: 30rem; color: rgba(227, 236, 230, 0.78); font-size: 1.125rem; }
.signup-band input { background: rgba(255, 255, 255, 0.07); border-color: rgba(227, 236, 230, 0.3); color: #fff; }
.signup-band input::placeholder { color: rgba(227, 236, 230, 0.6); }
.signup-band input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.signup-band .form-note { color: rgba(227, 236, 230, 0.7); }
.signup-band a { text-decoration-color: rgba(255, 255, 255, 0.5); }
.signup-band a:hover { color: #fff; }
.signup-band :focus-visible { outline-color: #fff; }
.signup-band .signup-form[data-state="error"] .form-status { color: #FFB4A8; }
.signup-band .signup-form[data-state="sending"] .form-status { color: rgba(227, 236, 230, 0.8); }
.signup-band .signup-form[data-state="done"] .form-status { background: rgba(255, 255, 255, 0.08); border-color: rgba(227, 236, 230, 0.2); color: #fff; }

/* ---------- Inner pages ---------- */
.page-head {
  position: relative; padding: clamp(7rem, 15vw, 11rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  background: url(contours.svg) center / 1500px auto, url(relief.webp) center / 1500px auto, var(--land);
  border-bottom: 1px solid var(--hair);
}
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 251, 249, 0) 0%, rgba(251, 251, 249, 0.55) 40%, var(--paper) 88%); }
.page-head > * { position: relative; max-width: 44rem; }
.page-head .lede { margin-top: 1rem; }
[data-page="ride-buddy"] .page-head { background-position: 72% 30%; }
[data-page="about"] .page-head { background-position: 12% 20%; }
[data-page="support"] .page-head { background-position: 45% 80%; }
[data-page="privacy"] .page-head { background-position: 90% 60%; }
[data-page="terms"] .page-head { background-position: 30% 55%; }
[data-page="404"] .page-head { background-position: 60% 10%; }
.status { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 4px rgba(193, 22, 107, 0.15); }
.updated { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-2); }

.page-head ~ section { padding-block: clamp(2.75rem, 5vw, 3.75rem) 0; }
.page-head ~ section:last-child { padding-bottom: clamp(4rem, 8vw, 6rem); }
.page-head ~ section > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.page-head ~ section p + p, .page-head ~ section p + ul, .page-head ~ section ul + p { margin-top: 0.9rem; }
.page-head ~ section ul { padding-left: 1.2rem; }
.page-head ~ section li + li { margin-top: 0.55rem; }
.page-head ~ section li::marker { color: var(--route); }

/* Most inner sections: the heading in a left column, the text on the right */
.page-head ~ section:not(.stage) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-head ~ section:not(.stage) > * { grid-column: 2; max-width: 46rem; }
.page-head ~ section:not(.stage) > h2 { grid-column: 1; font-size: clamp(1.35rem, 2vw, 1.65rem); }
/* a hairline between sections, as wide as the content rather than the window */
.page-head ~ section:not(.stage) + section:not(.stage) { margin-top: clamp(2.75rem, 5vw, 3.75rem); background: linear-gradient(var(--hair), var(--hair)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.page-head ~ .stage + section:not(.stage) { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Ride Buddy: the page is a route, before to after */
.stage { position: relative; }
.stage > * { margin-left: 2.75rem; }
.stage::before { content: ""; position: absolute; left: calc(var(--gutter) + 0.47rem); top: calc(clamp(2.75rem, 5vw, 3.75rem) + 1.2rem); bottom: calc(-1 * clamp(2.75rem, 5vw, 3.75rem) - 0.4rem); width: 3px; background: var(--route); border-radius: 2px; }
#before::before { background: repeating-linear-gradient(180deg, var(--route) 0 7px, transparent 7px 12px); }
#after::before { background: var(--ink); bottom: auto; height: 2.5rem; }
.stage > h2::before { content: ""; position: absolute; left: var(--gutter); margin-top: 0.35rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--route); }
#after > h2::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.stage > p { color: var(--ink-2); font-size: 1.125rem; }
.page-head ~ .stage > ul { list-style: none; padding: 0; margin-top: 1.5rem; max-width: 56rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.page-head ~ .stage li, .page-head ~ .stage li + li { margin: 0; padding-block: 1rem; border-top: 1px solid var(--hair); color: var(--ink-2); }
.stage li strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }

/* Questions */
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.1rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.85rem; height: 0.85rem;
  background: linear-gradient(var(--route), var(--route)) center / 100% 2px no-repeat, linear-gradient(var(--route), var(--route)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; margin-top: -0.2rem; color: var(--ink-2); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Company details and contacts */
.company dl div, .contact dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; padding-block: 0.85rem; border-top: 1px solid var(--hair); }
.company dl div:last-child, .contact dl div:last-child { border-bottom: 1px solid var(--hair); }
.company dt, .contact dt { color: var(--ink-2); }
.company dd, .contact dd { font-variant-numeric: tabular-nums; }

/* Legal pages: each heading starts a row, with a hairline across both columns */
.prose > h2 { font-size: 1.2rem !important; }
.page-head ~ .prose > h2:not(:first-child), .page-head ~ .prose > h2:not(:first-child) + * { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.prose > h2 + p, .prose > h2 + ul { margin-top: 0; }
.prose > h2:not(:first-child) + p, .prose > h2:not(:first-child) + ul { margin-top: 2.25rem; }
.prose > h2 + ul { padding-top: 1.5rem; }
.prose > h2:first-child + ul { padding-top: 0; }
.prose p, .prose li { color: #2E3D36; }
.page-head ~ .prose > .table-wrap { max-width: none; overflow-x: auto; margin-block: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1.25rem 0.8rem 0; border-bottom: 1px solid var(--hair); }
th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
td:first-child { color: var(--ink); }
td { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-foot { padding: clamp(3.5rem, 6vw, 4.5rem) var(--gutter) 2rem; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.foot-brand p { margin-top: 0.85rem; color: var(--ink-2); max-width: 20rem; }
.site-foot nav { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.site-foot h2 { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; font-stretch: 100%; color: var(--ink-2); margin-bottom: 0.3rem; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; color: var(--ink); }
.foot-legal { margin-top: clamp(3rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.8125rem; color: var(--ink-2); }
.foot-legal p { max-width: 44rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 62rem) {
  .ask, .maker { grid-template-columns: 1fr; }
  .rider-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .hero { display: block; min-height: 0; background: var(--paper); }
  /* Phones: crop the map to the route (map units x 580 to 1170, y 50 to 440) so the cards stay readable */
  .hero-map { position: relative; aspect-ratio: 590 / 390; overflow: hidden; }
  .hero-map svg { position: absolute; width: 203.4%; height: auto; left: -98.3%; top: -28.2%; }
  .hero::before { display: none; }
  .hero-map::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4rem; background: linear-gradient(180deg, rgba(251, 251, 249, 0), var(--paper)); }
  .hero-copy { padding-top: 1rem; padding-bottom: 3.5rem; }
  .stages { grid-template-columns: 1fr; border-top: 0; }
  .stages li, .stages li:first-child { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 1.5rem; }
  .profile { display: none; }
  .qa { grid-template-columns: 1fr; }
  .page-head ~ .stage > ul { grid-template-columns: 1fr; }
  .page-head ~ section:not(.stage) { grid-template-columns: 1fr; }
  .page-head ~ section:not(.stage) > h2 { grid-column: 1; }
  .page-head ~ section:not(.stage) > * { grid-column: 1; }
  .prose > h2:not(:first-child) + * { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
  .principles div, .company dl div, .contact dl div { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 40rem) {
  .site-head { grid-template-columns: 1fr auto; gap: 0.5rem 0.75rem; }
  .brand { gap: 0.45rem; font-size: 0.9375rem; white-space: nowrap; }
  .head-cta { height: 2.25rem; padding: 0 0.625rem; font-size: 0.875rem; white-space: nowrap; }
  .site-head nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: 1.25rem; }
  .signup-row { flex-direction: column; }
  .signup-form button { width: 100%; }
  .rider-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 22rem) {
  .head-cta { display: none; }
}
