/* CommuteUs site styles, shared by the home page and the privacy policy. */

:root {
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #14161b;
  --muted: #5d6370;
  --line: #e4e6eb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .10);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #24272f;
    --bg-alt: #2a2d36;
    --surface: #31353f;
    --text: #f6f7f9;
    --muted: #b9bec8;
    --line: #40444f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .18);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .04); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: .94rem; font-weight: 600; }
.nav-links a:not(.button) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.button):hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links li:not(:last-child) { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.45rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  background: var(--blue); color: #fff;
  transition: transform .25s var(--ease), background .25s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); background: var(--blue-deep); }
.button.small { padding: .5rem 1rem; font-size: .88rem; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { background: var(--bg-alt); box-shadow: inset 0 0 0 1.5px var(--line); }
.button svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(2px); }

/* Labels and headings */
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; letter-spacing: -.022em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 40rem; margin: 0 0 3rem; }

/* Hero: the same soft wash of the accent color as the top of the app's Drive screen. */
.hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; background: linear-gradient(to bottom, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; } .hero-actions { justify-content: center; } .hero .lead { margin-inline: auto; } }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.25rem); max-width: 36rem; margin: 1.4rem 0 0; }
.tagline { margin: 1.1rem 0 0; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }

/* The Live Activity on a crop of the iPhone Lock Screen, following the app's Lock Screen
   layout (DriveActivity.swift): close to the app, not pixel-exact. */
.showcase { justify-self: center; width: min(27rem, 100%); }
.lockscreen {
  position: relative; overflow: hidden; padding: 2.1rem 1.1rem 1.1rem; border-radius: 2.4rem; text-align: center; color: #fff;
  background: #15161c;
  box-shadow: 0 40px 80px -28px rgba(10, 20, 40, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
/* The icon's artwork, blurred into an abstract wallpaper in its colors. */
.lockscreen::before { content: ""; position: absolute; inset: -30%; background: url("icon.png") center / cover; filter: blur(38px) saturate(140%); opacity: .9; }
.lockscreen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .3)); }
.lockscreen > * { z-index: 1; }
.lockscreen > * { position: relative; }
.lock-date { font-size: 1.05rem; font-weight: 600; opacity: .92; }
.lock-time { font: 600 5.4rem/1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; letter-spacing: -.02em; margin: .1rem 0 1.7rem; opacity: .96; }
.activity {
  text-align: left; padding: .95rem 1rem .85rem; border-radius: 1.55rem;
  background: rgba(30, 30, 32, .5); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
  font-variant-numeric: tabular-nums;
}
.activity-row { display: flex; align-items: center; gap: .35rem; font-size: .88rem; }
.activity-row b { font-weight: 600; }
.activity-row span { opacity: .95; }
.activity-icon { width: 1.35rem; height: 1.35rem; border-radius: .32rem; margin-right: .2rem; }
.activity-row .sym { width: 1rem; height: 1rem; }
.activity-row .arrow { width: .7rem; height: .7rem; color: rgba(235, 235, 245, .6); margin: 0 .1rem; }
.activity-main { display: flex; align-items: flex-end; gap: 1rem; margin-top: .55rem; }
.activity-mpg { margin-right: auto; }
.activity-mpg strong { display: block; font: 700 2.15rem/1.05 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; color: #30d158; }
.activity-mpg span, .activity-fig span { display: block; font-size: .66rem; color: rgba(235, 235, 245, .6); }
.activity-fig { text-align: right; }
.activity-fig b { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.activity-foot { display: flex; align-items: center; gap: .65rem; margin-top: .6rem; font-size: .72rem; font-weight: 500; color: rgba(235, 235, 245, .6); white-space: nowrap; }
.activity-foot span { display: inline-flex; align-items: center; gap: .25rem; }
.activity-foot svg { width: .72rem; height: .72rem; }
.activity-foot .push { margin-left: auto; }
@media (max-width: 480px) {
  .lock-time { font-size: 4.4rem; }
  .activity-main { gap: .7rem; } .activity-mpg strong { font-size: 1.9rem; } .activity-fig b { font-size: .92rem; }
  .activity-foot { gap: .45rem; font-size: .66rem; }
}

/* Proof strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 1.6rem 0; gap: 1rem; text-align: center; }
@media (max-width: 760px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
.strip li { font-weight: 700; font-size: .95rem; }
.strip li span { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; margin-top: .15rem; }

/* Sections */
section { padding: 6rem 0; }
section.alt { background: var(--bg-alt); }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card p { margin: .5rem 0 0; color: var(--muted); font-size: .98rem; }
.icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; border-radius: 13px;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
.icon svg { width: 1.35rem; height: 1.35rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.6rem; left: 1.7rem;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent);
}
.step h3 { margin-top: .6rem; }

/* Split layouts */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.pro {
  position: relative; overflow: hidden; border-radius: 28px; padding: 2.6rem;
  background: #1c1c1e; color: #f4f5f7;
  box-shadow: var(--shadow-lift);
}
@media (prefers-color-scheme: dark) { .pro { background: var(--surface); border: 1px solid var(--line); } }
.pro .eyebrow { color: #7db8ff; }
.pro h2 { color: #fff; }
.pro p { color: #c3c8d2; position: relative; z-index: 1; }
.pro .button { position: relative; z-index: 1; margin-top: .8rem; }

/* Quote callout, as on the masjid site */
.quote {
  position: relative; margin: 0; padding: 2.4rem 2.4rem 2.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.4;
}
.quote::before { content: "\201C"; position: absolute; top: -.35rem; left: 1.6rem; font-size: 4.5rem; line-height: 1; color: var(--blue); font-weight: 800; }
.quote footer { margin-top: 1rem; font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--text); }

/* Scroll reveal: only when JavaScript is running, so the page never hides content without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Policy pages: a narrow reading column with small uppercase headings. */
.policy { max-width: 44rem; margin: 0 auto; padding: 4rem 1.5rem 5rem; line-height: 1.75; }
.policy header { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.policy h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.policy .meta { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.policy h2 { font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 2.6rem 0 .7rem; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.2rem; }
.policy li { margin: .45rem 0; }
