:root {
  --bg: #eef3ee;
  --bg-deep: #dfe8e1;
  --ink: #15211c;
  --muted: #4f6358;
  --line: rgba(21, 33, 28, 0.14);
  --lane: #1f9d55;
  --lane-deep: #147a3f;
  --asphalt: #1c2420;
  --fog: #f7faf7;
  --highlight: #c8f0d4;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 55% at 80% -10%, rgba(31, 157, 85, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 30%, rgba(200, 240, 212, 0.55), transparent 50%),
    linear-gradient(180deg, var(--fog) 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

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

a {
  color: var(--lane-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  background: var(--asphalt);
  color: white;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  color: var(--lane-deep) !important;
}

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: -2;
  animation: hero-rise 1.4s ease-out both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 24, 20, 0.18) 0%, rgba(15, 24, 20, 0.42) 42%, rgba(15, 24, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 24, 20, 0.45) 0%, transparent 55%);
}

.hero__content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.4rem, 6vh, 3.5rem);
  color: #f4faf5;
  animation: copy-in 0.9s ease-out 0.15s both;
}

.brand-mark {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #dff8e7;
}

.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero__dek {
  margin: 0;
  max-width: 36rem;
  color: rgba(244, 250, 245, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--lane);
  color: #f4fff7;
}

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

.button--ghost {
  background: rgba(244, 250, 245, 0.1);
  border-color: rgba(244, 250, 245, 0.35);
  color: #f4faf5;
}

.button--ghost:hover {
  background: rgba(244, 250, 245, 0.18);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem;
}

.section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--lane-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2,
.feedback-title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.lede + .lede {
  margin-top: 0.85rem;
}

.spine-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.spine-list div {
  padding-top: 0.7rem;
  border-top: 2px solid var(--lane);
}

.spine-list strong,
.spine-list span {
  display: block;
}

.spine-list strong {
  font-size: 1rem;
}

.spine-list span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.improve-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.8rem;
  align-items: start;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
  margin: 0.5rem 0 0;
}

.explore-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 250, 247, 0.72);
}

.explore-list .focus-list {
  gap: 0;
}

.explore-list .focus-list li:last-child {
  border-bottom: 0;
}

.explore-list .focus-item {
  padding: 0.48rem 0.75rem;
  border-radius: 0;
  gap: 0.55rem;
  align-items: center;
}

.explore-list .focus-list__num {
  font-size: 0.92rem;
}

.explore-list .focus-item__copy strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.explore-list .focus-item__copy span {
  margin-top: 0.08rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.details-panel {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--line);
  animation: list-in 0.45s ease both;
}

.details-panel__intro {
  max-width: 42rem;
}

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

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.focus-list li {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
  animation: list-in 0.55s ease both;
}

.focus-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  padding: 0.7rem 0.35rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.focus-item:hover,
.focus-item:focus-visible,
.focus-item.is-active {
  background: rgba(31, 157, 85, 0.1);
  outline: none;
}

.focus-item__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.focus-list__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lane-deep);
  line-height: 1.2;
}

.focus-list strong,
.focus-list span,
.focus-item__copy strong,
.focus-item__copy span {
  display: block;
}

.focus-list strong,
.focus-item__copy strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.focus-list span,
.focus-item__copy span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.map-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #d8e4dc;
  box-shadow: 0 18px 50px rgba(21, 33, 28, 0.08);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sfbike-map {
  width: 100%;
  flex: 1;
  min-height: 480px;
  height: 100%;
  background: #d7e2da;
}

.focus-list--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
}

.map-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1.25rem;
  padding: 0.7rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(247, 250, 247, 0.96);
  border-top: 1px solid var(--line);
}

.map-legend-bar__toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  color: var(--ink);
  font-weight: 600;
}

.map-toggle input {
  accent-color: var(--lane-deep);
}

.legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  vertical-align: -0.1rem;
}

.legend-swatch--spine {
  background: var(--lane);
}

.legend-swatch--secondary-route {
  background: #7a9486;
}

.legend-swatch--focus {
  background: #0f5132;
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.28);
}

.legend-swatch--secondary-zone {
  background: #c98512;
  box-shadow: 0 0 0 3px rgba(201, 133, 18, 0.28);
}

.map-error {
  margin: 0;
  padding: 1rem;
  color: #8a2f2f;
  font-size: 0.9rem;
}

.map-embed {
  width: 100%;
  min-height: 560px;
  border: 0;
  background: #d8e4dc;
}

.map-note {
  margin: 0;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 247, 0.8);
}

.sfbike-marker {
  background: transparent;
  border: 0;
}

.sfbike-marker__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0f5132;
  color: #f4fff7;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 81, 50, 0.35);
  border: 2px solid #f4fff7;
}

.sfbike-marker__dot--secondary {
  width: 14px;
  height: 14px;
  background: #c98512;
  box-shadow: 0 4px 12px rgba(201, 133, 18, 0.4);
  border: 2px solid #fff8e8;
}

.leaflet-tooltip.sfbike-tooltip {
  border: 0;
  border-radius: 8px;
  background: rgba(21, 33, 28, 0.92);
  color: #f4faf5;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: none;
}

.leaflet-tooltip.sfbike-tooltip::before {
  border-top-color: rgba(21, 33, 28, 0.92);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(21, 33, 28, 0.18);
}

.leaflet-popup-content {
  margin: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 0.15rem;
}

.leaflet-popup-content span {
  color: var(--muted);
}

.sfbike-popup__caption {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

.proposal-kicker {
  margin: 0 0 0.35rem;
  color: var(--lane-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-figure {
  margin: 1.6rem 0 0;
}

.proposal-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.proposal-compare.has-before {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposal-shot__label {
  margin: 0 0 0.45rem;
  color: var(--lane-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-figure img,
.proposal-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 640;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(21, 33, 28, 0.12);
  background: rgba(247, 250, 247, 0.9);
}

.proposal-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.proposal-slot-empty {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  aspect-ratio: 1024 / 640;
  min-height: 0;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(31, 157, 85, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 157, 85, 0.08), transparent 55%),
    rgba(247, 250, 247, 0.9);
  text-align: center;
}

.proposal-slot-empty[hidden],
.proposal-shot img[hidden] {
  display: none;
}

.proposal-slot-empty__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.proposal-slot-empty__file {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--lane-deep);
}

@media (max-width: 720px) {
  .proposal-compare.has-before {
    grid-template-columns: 1fr;
  }
}

#proposal-detail code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
}

.section--cta {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.section--cta .hero__actions {
  margin-top: 0;
}

.section--cta .button--ghost {
  background: rgba(31, 157, 85, 0.08);
  border-color: rgba(31, 157, 85, 0.35);
  color: var(--lane-deep);
}

.section--cta .button--ghost:hover {
  background: rgba(31, 157, 85, 0.14);
}

.philosophy-grid,
.start-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.philosophy-grid article,
.start-points > div {
  padding-top: 0.85rem;
  border-top: 2px solid var(--lane);
}

.philosophy-grid h3,
.start-points strong {
  display: block;
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.philosophy-grid p,
.start-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) 0 2rem;
}

.section--page-hero {
  padding-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.page-title {
  margin: 0 0 0.55rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.feedback-page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
}

.feedback-form {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 250, 247, 0.82);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.req {
  color: var(--lane-deep);
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(31, 157, 85, 0.35);
  border-color: var(--lane);
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--lane-deep);
  font-size: 0.9rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@keyframes hero-rise {
  from {
    transform: scale(1.06);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .spine-list,
  .improve-layout,
  .explore-layout,
  .philosophy-grid,
  .start-points,
  .focus-list--wide {
    grid-template-columns: 1fr;
  }

  .map-embed,
  .sfbike-map {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .site-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 78vh;
  }

  .spine-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image,
  .hero__content,
  .focus-list li,
  .button {
    animation: none !important;
    transition: none !important;
  }
}
