* { box-sizing: border-box; }
:root {
  --brand: #2E7D32;
  --brand-light: #C8E6C9;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --bg: #fafafa;
  --warn: #fff3cd;
  --danger: #b71c1c;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
header {
  padding: 12px 20px;
  background: var(--brand);
  color: white;
}
header .brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}
footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer a { color: var(--brand); }
.loading, .error {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.error { color: var(--danger); }
.trip-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.trip-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.trip-meta div { margin-bottom: 4px; }
.stops {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stop {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}
.stop-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.stop-body { flex: 1; min-width: 0; }
.stop-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.stop-meta {
  color: var(--muted);
  font-size: 13px;
}
.stop-notes {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
}
.segment {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segment::before, .segment::after {
  content: '';
  height: 1px;
  background: var(--border);
  flex: 1;
  max-width: 80px;
}

/* Landing page — shown when the URL has no /t/<token> path. */
.landing { padding: 16px 0 24px; }
.landing h1 {
  font-size: 32px;
  margin: 0 0 16px;
  line-height: 1.15;
}
.landing h2 {
  /* Section headers below the lede — each highlights one feature
     pillar (paste confirmations, connectivity rating, schedule
     awareness). */
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--brand);
  line-height: 1.25;
}
.landing .lede {
  font-size: 17px;
  margin-bottom: 16px;
}
.landing p { margin-bottom: 16px; }
.landing .note {
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 4px;
  color: #1a3d1f;
}
.landing code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}
@media (max-width: 480px) {
  .landing h1 { font-size: 24px; }
  .landing h2 { font-size: 17px; }
  .landing .lede { font-size: 15px; }
}
