:root {
  --paper: #f7f7f0;
  --ink: #192b27;
  --muted: #4e6057;
  --rule: #c8d0c3;
  --blue: #214ada;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: var(--blue); text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img, canvas { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
.site-header, .site-footer, .hero, .guide { width: min(1360px, 90%); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-header { border-bottom: 1px solid var(--rule); min-height: 82px; }
.brand { color: var(--ink); font-size: 1.45rem; line-height: 1; font-weight: 750; letter-spacing: -.07em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 45px); }
nav a { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.skip-link, .skip { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: 8px 16px; background: white; }
.skip-link:focus, .skip:focus { top: .7rem; }
.hero { display: grid; grid-template-columns: .9fr 1.15fr; gap: clamp(35px, 5.2vw, 85px); align-items: center; padding: clamp(54px, 5.7vw, 88px) 0; }
.eyebrow, .mono, .sample, .map-key, .readout span { font-family: var(--mono); text-transform: uppercase; font-size: .72rem; line-height: 1.4; font-weight: 650; letter-spacing: .09em; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: clamp(4.1rem, 6.6vw, 6.9rem); line-height: .91; letter-spacing: -.08em; margin: .28em 0 .23em; font-weight: 650; }
.hero em { font-family: 'Baskervville', Georgia, serif; color: var(--blue); font-weight: 500; letter-spacing: -.075em; }
.intro-copy { font-size: clamp(1.04rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 35ch; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.download { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--ink); color: white; background: var(--ink); padding: 10px 15px; border-radius: 6px; font-size: .92rem; font-weight: 600; text-decoration: none; }
.download.secondary { background: transparent; color: var(--ink); }
.download:hover { background: var(--blue); color: white; border-color: var(--blue); }
.app-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 26px); width: min(100%, 530px); margin-inline: auto; }
.app-screens figure { margin: 0; }
.app-screens figure + figure { padding-top: clamp(20px, 3vw, 44px); }
.app-screens button { display: block; width: 100%; padding: 0; border: 0; background: transparent; border-radius: 15px; cursor: zoom-in; }
.app-screens img { display: block; width: 100%; height: auto; border-radius: 15px; border: 1px solid var(--rule); box-shadow: 0 5px 15px #192b2712; }
.app-screens figcaption { color: var(--muted); text-align: center; font-size: .84rem; margin-top: 8px; }
.guide { border-top: 1px solid var(--ink); padding-block: clamp(36px,4vw,66px) 64px; }
.guide h2, .article h1 { font-size: clamp(2.7rem, 4.9vw, 5rem); line-height: 1.02; letter-spacing: -.078em; margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.5%; margin-top: 35px; }
.features > div { border-top: 1px solid var(--rule); padding-top: 17px; }
.feature-symbol { display: block; color: var(--blue); font-size: 2.25rem; line-height: 1; font-weight: 450; }
.features h3 { font-size: 1.45rem; letter-spacing: -.055em; margin: 15px 0 5px; }
.features p { color: var(--muted); max-width: 40ch; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 36px; flex-wrap: wrap; }
.site-footer nav { flex-wrap: wrap; }
.site-footer .brand { font-size: 1.18rem; }
.article { width: min(720px, 90%); margin: clamp(38px, 6vw, 85px) auto; overflow-wrap: break-word; }
.article h1 { margin: 0 0 .45em; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.18; letter-spacing: -.05em; margin: 1.45em 0 .45em; }
.article h3 { margin: 1.25em 0 .3em; letter-spacing: -.025em; }
.article p, .article li { line-height: 1.7; }
.article p + p { margin-top: .85em; }
.article ul, .article ol { padding-left: 1.45em; }
.article li + li { margin-top: .4em; }
.article details { border-bottom: 1px solid var(--rule); padding: 15px 0; }
.article details p { margin: .65em 0 .3em; }
.article summary { cursor: pointer; font-weight: 650; }
.article .eyebrow { margin-bottom: 1.25em; }
@media (max-width: 820px) {
  .hero { grid-template-columns: .95fr 1fr; gap: 23px; }
  .hero h1 { font-size: clamp(3.65rem, 7.4vw, 4.2rem); }
}
@media (max-width: 680px) {
  .site-header { min-height: 66px; gap: 9px; }
  .brand { font-size: 1.12rem; gap: 4px; }
  .brand img { width: 28px; height: 28px; }
  nav { gap: clamp(10px, 3vw, 18px); }
  nav a { font-size: .81rem; }
  .hero { grid-template-columns: 1fr; padding: 38px 0; gap: 30px; }
  .hero h1 { font-size: clamp(4.1rem, 14.4vw, 5.6rem); }
  .downloads { margin-top: 20px; }
  .features { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .features h3 { margin-top: 8px; }
  .site-footer { align-items: flex-start; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.screenshot-viewer { padding: 12px; border: 0; border-radius: 12px; background: var(--paper); }
.screenshot-viewer::backdrop { background: rgb(12 22 20 / 80%); }
.screenshot-viewer form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.screenshot-viewer button { padding: 8px 16px; min-height: 44px; border: 0; border-radius: 6px; background: var(--ink); color: white; font: inherit; cursor: pointer; }
.screenshot-viewer img { max-height: calc(100dvh - 110px); max-width: 100%; width: auto; }
body:has(.screenshot-viewer[open]) { overflow: hidden; }

.commute-log { margin-top: 32px; padding: clamp(18px, 3vw, 34px); background: #e9ede1; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 6%; }
.commute-log h3 { flex: 1 1 210px; font-size: 1.55rem; letter-spacing: -.045em; }
.commute-log p { flex: 2 1 320px; max-width: 65ch; }

.ride-examples, .route-example { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,4vw,56px); margin-top: 32px; align-items: start; }
.ride-examples section, .route-example { background: #e9ede1; border-radius: 14px; padding: clamp(20px,3vw,40px); }
.ride-examples h3, .route-tips h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 10px; }
.ride-examples p, .route-tips p { color: var(--muted); max-width: 48ch; }
.feature-shot { display: block; width: min(100%,430px); padding: 0; border: 0; background: transparent; cursor: zoom-in; margin: 22px auto 0; }
.feature-shot img { width: 100%; height: auto; border-radius: 12px; }
.route-example { align-items: center; }
.route-example .feature-shot { margin: 0 auto; }
.route-tips > div + div { margin-top: 24px; }
@media (max-width: 680px) { .ride-examples, .route-example { grid-template-columns: 1fr; } }
