/* Commute Times with Traffic — site styles (shared by index.html and privacy.html) */

:root {
  --brand: #1a73e8;
  --brand-dark: #1668d4;
  --brand-deep: #1b3fb8;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --canvas: #f1f5f9;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, .06), 0 12px 28px rgba(15, 23, 42, .10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 245, 249, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font-size: 15px; letter-spacing: -.1px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f8fafc; }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 8% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 65%),
    radial-gradient(700px 380px at 100% 0%, #d1fae5 0%, rgba(209, 250, 229, 0) 60%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--brand);
  background: #e8f1fe;
  border-radius: 999px;
  padding: 5px 13px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 52px); letter-spacing: -1.2px; margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; max-width: 620px; margin: 16px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.hero-shot { margin: 46px 0 0; }
.hero-shot img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- sections ---------- */
section { padding: 62px 0; }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.6px; }
.section-head p { margin: 12px 0 0; font-size: 16.5px; }

.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: #e8f1fe;
  margin-bottom: 14px;
}
.card .ico svg { width: 21px; height: 21px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 16.5px; margin-bottom: 7px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- traffic legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.pill.good { background: #dcfce7; color: #15803d; }
.pill.good .dot { background: var(--good); }
.pill.moderate { background: #fef3c7; color: #b45309; }
.pill.moderate .dot { background: var(--warn); }
.pill.heavy { background: #fee2e2; color: #b91c1c; }
.pill.heavy .dot { background: var(--bad); }

/* ---------- screenshots ---------- */
.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shots figure { margin: 0; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 7px; }
.step p { margin: 0; font-size: 15px; }
.step code {
  background: #f1f5f9; border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: 13.5px;
}

/* ---------- privacy callout ---------- */
.callout {
  background: linear-gradient(135deg, #1a73e8 0%, #1b3fb8 100%);
  color: #fff;
  border-radius: 18px;
  padding: 38px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.callout h2 { color: #fff; font-size: 24px; }
.callout p { color: #d7e6ff; margin: 9px 0 0; max-width: 620px; font-size: 15.5px; }

/* ---------- footer ---------- */
footer.site {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0;
  font-size: 14px;
}
footer.site a { color: #cbd5e1; text-decoration: none; }
footer.site a:hover { color: #fff; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- policy page ---------- */
.policy-head { background: linear-gradient(135deg, #1a73e8 0%, #1b63c9 100%); color: #fff; padding: 34px 0; }
.policy-head h1 { color: #fff; font-size: 22px; }
.policy-head p { margin: 7px 0 0; color: #d7e6ff; font-size: 14.5px; }
.policy-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 30px 0 60px; }
.policy-body h2 { font-size: 17.5px; margin: 30px 0 8px; }
.policy-body h2:first-of-type { margin-top: 0; }
.policy-body p, .policy-body li { font-size: 15.5px; }
.policy-body ul { padding-left: 22px; }
.policy-body li { margin: 6px 0; }
.policy-body code { background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.policy-body .note { background: #eff6ff; border-left: 3px solid var(--brand); border-radius: 9px; padding: 14px 18px; margin: 18px 0; }
.meta { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
}
