/* Commute website. Night Route palette from the app: midnight green, ivory, route green, amber. System fonts only. */
:root {
  --night: #102b22;
  --night-deep: #07120d;
  --night-panel: #0e2419;
  --ivory: #f5f3ec;
  --paper: #fbfaf6;
  --ink: #102b22;
  --ink-2: #44574d;
  --ink-3: #6b7a71;
  --route: #14744a;
  --route-light: #9ef2ba;
  --amber: #f5a524;
  --amber-ink: #8a5300;
  --coral: #ff7a66;
  --line: #d9d6c8;
  --line-night: #25463a;
  --radius: 14px;
  --wrap: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--route); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ivory); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 750; }
h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 3.4vw, 1.375rem); line-height: 1.5; max-width: 34em; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }

/* Header */
.site-header { background: var(--night); color: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a { color: var(--ivory); text-decoration: none; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; opacity: 0.9; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { background: var(--night); color: var(--ivory); padding: 24px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--ivory); }
.hero .lead { color: #d8e4dc; }
.hero-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.route-art { width: 100%; height: auto; overflow: visible; }
.route-line { fill: none; stroke: var(--route-light); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-end { fill: var(--night); stroke: var(--ivory); stroke-width: 5; }
.route-start { fill: var(--night); stroke: var(--route-light); stroke-width: 5; }
.route-incident circle { fill: var(--amber); }
.route-incident text { fill: var(--night); font: 800 30px -apple-system, "SF Pro Text", Arial, sans-serif; text-anchor: middle; }
.route-label { fill: var(--ivory); font: 600 17px -apple-system, "SF Pro Text", Arial, sans-serif; }
.hero-phone { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border: 1px solid var(--line-night); }
.demo-note { margin: 10px 0 0; font-size: 0.8125rem; color: #a9bdb0; }

@media (prefers-reduced-motion: no-preference) {
  .route-line { stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) 0.4s forwards; }
  .route-incident { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.3) 1.45s forwards; }
  .route-end { opacity: 0; animation: fade 0.4s ease-out 2.6s forwards; }
  .route-label { opacity: 0; animation: fade 0.5s ease-out 0.6s forwards; }
  .route-label.late { animation-delay: 2.7s; }
  .route-label.incident-label { animation-delay: 1.6s; }
}
.route-art.waiting * { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

/* Buttons and form */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  background: var(--ivory); color: var(--night); min-height: 52px; padding: 0 22px;
  border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn:hover { background: #ffffff; color: var(--night); }
.btn-dark { background: var(--night); color: var(--ivory); }
.btn-dark:hover { background: #17402f; color: var(--ivory); }
.waitlist { display: grid; gap: 10px; max-width: 30rem; margin-top: 24px; }
.waitlist label { font-weight: 650; font-size: 0.9375rem; }
.waitlist input[type="email"] {
  font: inherit; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line-night); background: #0b1f17; color: var(--ivory); width: 100%;
}
.waitlist input[type="email"]::placeholder { color: #8ea297; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.8125rem; color: #a9bdb0; margin: 0; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status[data-state="ok"] { color: var(--route-light); }
.form-status[data-state="error"] { color: var(--coral); }
.on-light .waitlist input[type="email"] { background: #fff; color: var(--ink); border-color: var(--line); }
.on-light .btn { background: var(--night); color: var(--ivory); }
.on-light .form-note { color: var(--ink-2); }
.on-light .form-status[data-state="ok"] { color: var(--route); }
.on-light .form-status[data-state="error"] { color: #b3261e; }

/* Sections */
.section { padding: 64px 0; }
.section-dark { background: var(--night); color: var(--ivory); }
.section-dark a { color: var(--route-light); }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 12px; }
.steps li::before { content: counter(step); font-size: 2.5rem; font-weight: 750; line-height: 1; color: var(--route); grid-row: span 2; letter-spacing: -0.03em; }
.steps h3 { margin: 0; }
.steps p { margin: 0; color: var(--ink-2); }
.shots { display: grid; gap: 32px; margin-top: 32px; }
.shot { margin: 0; }
.shot img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(16, 43, 34, 0.14); }
.shot figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.two { display: grid; gap: 32px; }
.honest { margin: 20px 0 0; padding-left: 1.2em; display: grid; gap: 12px; }
.honest li::marker { color: var(--route); }
.honest.no li::marker { color: var(--coral); }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding: 14px 0; min-height: 44px; list-style-position: outside; }
details p { color: var(--ink-2); margin: 0 0 14px; }

.guide-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 18px 0; text-decoration: none; color: var(--ink); }
.guide-list a strong { display: block; font-size: 1.125rem; letter-spacing: -0.01em; }
.guide-list a span { color: var(--ink-2); font-size: 0.9375rem; }
.guide-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Article pages */
.article { padding: 40px 0 72px; }
.article .wrap { max-width: 720px; }
.crumbs { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.article h1 { font-size: clamp(2rem, 7vw, 3rem); }
.article h2 { font-size: 1.5rem; margin-top: 2em; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin-bottom: 0.5em; }
.answer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.answer p:last-child { margin-bottom: 0; }
.meta { font-size: 0.875rem; color: var(--ink-3); }
.next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

.site-footer { background: var(--night-deep); color: #b9c8be; padding: 40px 0 56px; font-size: 0.9375rem; }
.site-footer a { color: var(--ivory); }
.site-footer .wrap { display: grid; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 760px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-art { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 8px; }
}

/* Small utilities (the site's content security policy forbids inline styles) */
.narrow > * { max-width: 760px; }
.m0 { margin: 0; }
.mt-s { margin-top: 20px; }
.mt-m { margin-top: 32px; }
.mb-xs { margin-bottom: 6px; }
.body-size { font-size: 1rem; }
.inherit { color: inherit; }
.lead-night { color: #d8e4dc; }
