:root {
  --ink: #24313f;
  --muted: #627185;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d8e0da;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --yellow: #ffd400;
  --yellow-hover: #f3c600;
  --blue: #2563eb;
  --coral: #c2410c;
  --green: #15803d;
  --cream: #fff8df;
  --mist: #eef4f1;
  --radius: 8px;
  --shadow: 0 18px 38px rgba(36, 49, 63, 0.12);
  --page-max: 1040px;
  --page-pad: clamp(18px, 4vw, 48px);
  --grid-gap: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffdf3 0, var(--paper) 520px),
    var(--paper);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 224, 218, 0.85);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--mist);
}

.nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.hero,
.section {
  max-width: calc(var(--page-max) + (var(--page-pad) * 2));
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: center;
  gap: var(--grid-gap);
  min-height: clamp(610px, 82vh, 760px);
  padding-block: clamp(42px, 7vw, 86px) clamp(28px, 6vw, 62px);
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

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

p {
  line-height: 1.62;
}

.hero-lede,
.section-intro p,
.safety-copy p,
.movement-section p,
.partner-section p,
.signup-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

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

.button.secondary {
  border-color: var(--ink);
  background: var(--surface);
}

.button.secondary:hover {
  background: #f7faf8;
}

.route-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-toolbar,
.route-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.route-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.route-toolbar span,
.route-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.route-toolbar strong {
  color: var(--green);
  font-size: 13px;
}

.map-grid {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(140deg, #f7fbf9 0, #eef4f1 54%, #fff8df 100%);
}

.route-map {
  display: block;
  width: 100%;
  min-height: 430px;
}

.map-water {
  fill: #f7fbf9;
}

.park-shape {
  fill: rgba(255, 248, 223, 0.84);
}

.minor-streets path,
.major-streets path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.minor-streets path {
  stroke: rgba(160, 174, 165, 0.42);
  stroke-width: 2;
}

.major-streets path {
  stroke: #ffffff;
  stroke-width: 18;
}

.major-streets path + path {
  stroke-width: 16;
}

.bike-route-shadow,
.bike-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bike-route-shadow {
  stroke: rgba(36, 49, 63, 0.2);
  stroke-width: 18;
  transform: translate(0, 5px);
}

.bike-route {
  stroke: var(--teal);
  stroke-width: 13;
}

.stop-dot {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 5;
}

.helper-dot {
  fill: var(--yellow);
  stroke: #fff;
  stroke-width: 5;
}

.helper-cross {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 4;
}

.map-pins text,
.map-label text,
.school-building text {
  font-size: 17px;
  font-weight: 900;
  text-anchor: middle;
}

.map-pins text {
  fill: #fff;
}

.map-label rect {
  fill: var(--yellow);
  stroke: #fff;
  stroke-width: 4;
}

.map-label text {
  fill: var(--ink);
  font-size: 15px;
}

.school-building rect,
.school-building path {
  fill: var(--coral);
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 4;
}

.school-building text {
  fill: #fff;
  font-size: 15px;
}

.route-details {
  border-top: 1px solid var(--line);
}

.route-details div {
  display: grid;
  gap: 3px;
}

.section {
  padding-block: clamp(56px, 8vw, 94px);
}

.section-intro,
.safety-copy,
.signup-copy {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.section-intro.compact {
  max-width: 780px;
}

.organizer-band {
  max-width: none;
  border-block: 1px solid var(--line);
  background: #f5f1e6;
}

.organizer-band > * {
  max-width: var(--page-max);
  margin-inline: auto;
}

.problem-list,
.feature-grid,
.safety-grid,
.why-grid {
  display: grid;
  gap: var(--grid-gap);
}

.problem-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-list article,
.feature-card,
.safety-grid article,
.family-flow article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.problem-list article {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.problem-list span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.problem-list p,
.feature-card p,
.safety-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.feature-card::before {
  content: "";
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0 55%, var(--yellow) 55% 78%, var(--blue) 78%);
}

.family-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.family-flow {
  display: grid;
  gap: 12px;
}

.family-flow article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 18px;
}

.family-flow strong {
  color: var(--teal-dark);
}

.family-flow span {
  color: var(--muted);
  line-height: 1.45;
}

.safety-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: var(--grid-gap);
  align-items: start;
  border-block: 1px solid var(--line);
  max-width: none;
  background: var(--mist);
}

.safety-section > * {
  max-width: 510px;
}

.safety-copy {
  justify-self: end;
}

.safety-grid {
  max-width: 510px;
}

.safety-grid article {
  display: grid;
  gap: 9px;
  padding: 18px;
  border-left: 6px solid var(--teal);
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-grid p {
  min-height: 132px;
  margin: 0;
  border-top: 4px solid var(--yellow);
  padding-top: 16px;
  color: var(--ink);
  font-size: 18px;
}

.movement-section,
.partner-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.why-section,
.movement-section,
.signup-section,
.partner-section {
  padding-block: clamp(48px, 6vw, 72px);
}

.movement-section {
  border-block: 1px solid var(--line);
  max-width: none;
  background: #fffdf3;
}

.movement-section > *,
.partner-section > * {
  max-width: 510px;
}

.movement-section > p,
.partner-section > p {
  max-width: 510px;
}

.movement-section > :first-child {
  justify-self: end;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.signup-copy {
  justify-self: end;
  max-width: 510px;
}

.signup-form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 510px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(36, 49, 63, 0.04);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

label span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfcac4;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.form-submit {
  justify-self: start;
}

.form-message {
  min-height: 26px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.form-message.error {
  color: #9f1239;
}

.partner-section {
  border-top: 1px solid var(--line);
  max-width: none;
  background: #f7faf8;
}

.partner-section > :first-child {
  justify-self: end;
}

.partner-section .button {
  grid-column: 2;
  justify-self: start;
  width: min(100%, 440px);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    justify-content: start;
  }

  .hero,
  .family-section,
  .safety-section,
  .movement-section,
  .signup-section,
  .partner-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding-block: 30px 26px;
  }

  .route-board {
    max-width: 680px;
  }

  .map-grid {
    min-height: 300px;
  }

  .route-map {
    min-height: 300px;
  }

  .problem-list,
  .feature-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .safety-section > *,
  .safety-copy,
  .signup-copy,
  .movement-section > :first-child,
  .partner-section > :first-child {
    justify-self: stretch;
    max-width: none;
  }

  .movement-section > *,
  .partner-section > *,
  .signup-form {
    max-width: none;
  }

  .partner-section .button {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: end;
    max-width: none;
    overflow: visible;
  }

  .nav a {
    white-space: nowrap;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    gap: 16px;
    padding-block: 22px;
  }

  .hero-copy {
    gap: 14px;
  }

  .hero-lede,
  .section-intro p,
  .safety-copy p,
  .movement-section p,
  .partner-section p,
  .signup-copy p {
    font-size: 16px;
  }

  .nav a {
    padding-inline: 8px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .map-grid {
    min-height: 186px;
  }

  .route-map {
    min-height: 186px;
  }

  .route-toolbar,
  .family-flow article,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .route-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .route-details strong {
    font-size: 13px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}
