/* ---- Aktiv Grotesk (self-hosted, licensed webfont) ---- */
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-italic.woff2") format("woff2"); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:"aktiv-grotesk"; src:url("/assets/fonts/aktiv-grotesk-bold-italic.woff2") format("woff2"); font-weight:700; font-style:italic; font-display:swap; }

:root {
  --ink: #0a0a0a;
  --white: #fff;
  --teal: #10b5b0;
  --purple: #9c56b8;
  --orange: #f97a43;
  --green: #25c764;
  --gray: #a8a6a1;
  --callout-bg: #fdfbe4;
  --callout-border: #e6b980;
  --container: 1200px;
  --font: "aktiv-grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 1.1rem;      /* ~17.6px */
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: 900px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Header ---- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1320px; margin: 0 auto;
}
.wordmark { grid-column: 2; font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.9rem); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.header-right { grid-column: 3; justify-self: end; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.socials { display: flex; gap: 1rem; font-size: 1.1rem; }
.socials a { text-decoration: none; opacity: .8; }
.socials a:hover { opacity: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center;
  background: var(--teal); color: var(--white);
  font-weight: 500; font-size: .9rem; letter-spacing: 0.02em;
  padding: 1rem 1.6rem; border-radius: 4px; text-decoration: none; border: none; cursor: pointer;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .9; }

/* ---- Sections ---- */
.section { padding: clamp(2rem, 5vh, 3.5rem) 0; }
.section-heading { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.15rem); line-height: 1.25; margin: 0 0 1.25rem; }
.lead { font-size: 1.1rem; margin: 0 0 1.5rem; }
.lead a, .band-text a, p a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Hero callout ---- */
.callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.callout-title { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.72rem); line-height: 1.3; margin: 0; }
.callout-title a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Figures ---- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: 4px; }
.figure figcaption { font-size: .95rem; font-style: italic; color: #333; margin-top: .75rem; max-width: 60ch; }
.full-img { width: 100%; border-radius: 4px; margin: 1.5rem 0; }

/* ---- Pill section headings (colored badge + white icon) ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--teal);
  color: var(--white);
  border-radius: 5px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
/* consecutive pills within one section get top spacing */
.pill + * + .pill, .lead + .pill, .full-img + .pill { margin-top: 2.5rem; }
.pill-icon { width: 40px; height: 40px; object-fit: contain; flex: none; }
.pill-blue { background: #245ad8; }
.pill-green { background: #25c764; }
.pill-lightblue { background: #00a2e0; }
.pill-pink { background: #f457ac; }
.pill-orange { background: #f97a43; }

.center { text-align: center; }
.link-muted { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.lead strong { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Toolkit page ---- */
.indent { padding-left: 2.5rem; }
.toolkit-list { padding-left: 3.2rem; margin: 0 0 1.5rem; }
.toolkit-list li { margin: .2rem 0; }
mark.mark-green { background: #1a9c3c; color: #fff; padding: 0 .3em; border-radius: 2px; }
mark.mark-red { background: #e02424; color: #fff; padding: 0 .3em; border-radius: 2px; }
.toolkit-list .figure, .container.narrow .figure { margin: 1.25rem 0 .5rem; }

/* ---- Benefit blocks ---- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.benefit { border: 2px solid #808080; border-radius: 4px; padding: 40px 30px 30px; }
.benefit-title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; margin: 0 0 1rem; }
.benefit p { margin: 0; }
.benefit strong { font-weight: 700; }
.benefit-teal { color: var(--teal); }
.benefit-purple { color: var(--purple); }
.benefit-orange { color: var(--orange); }
.benefit-green { color: var(--green); }

/* ---- Complete Street Myths ---- */
.myths { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.myth { border: 2px solid #808080; border-radius: 4px; padding: 30px; }
.myth-q { font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.3; margin: 0 0 .9rem; }
.myth-a { margin: 0 0 .9rem; }
.myth-a strong { font-weight: 700; }
.myth-src { font-size: .9rem; color: var(--gray); margin: 0; }
.myth-src a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Before / after slider (full-width, drag to reveal) ---- */
.ba-section { padding: .5rem 0 1.5rem; }
.ba-slider { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3/2; width: 100%; touch-action: none; cursor: ew-resize; user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.ba-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.1rem; color: var(--ink); background: #fff; border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.ba-label { position: absolute; bottom: 14px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 5px 11px; border-radius: 3px; pointer-events: none; }
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-caption { font-weight: 700; margin: .7rem 0 0; }

/* ---- Modes + footer (one block) ---- */
.modes-section { background: #f7f7f7; text-align: center; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.modes-heading { color: var(--gray); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.15rem); margin: 0 0 1.5rem; }
.modes { display: inline-block; text-align: left; }
.modes .mode { font-weight: 700; font-size: 1.35rem; margin: .55rem 0; }
.mode-emoji { font-size: 1.5rem; }

.modes-footer { margin-top: 2.5rem; font-size: 1rem; }
.modes-footer a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.modes-footer p { margin: .5rem 0; }
.modes-footer .copyright { color: #888; font-size: .9rem; margin-top: 1.5rem; }
.footer-socials { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.25rem; font-size: 1.25rem; }
.footer-socials a { text-decoration: none; opacity: .85; }
.footer-socials a:hover { opacity: 1; }

@media (max-width: 720px) {
  .benefits, .ba-grid { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 1fr auto; }
  .wordmark { grid-column: 1; justify-self: start; }
  .header-right { grid-column: 2; }
  .socials { display: none; }
}
