:root {
  --bg: #0b0f13;
  --bg-alt: #0e1319;
  --card: #161c23;
  --card-alt: #1d2530;
  --line: #28313b;
  --text: #edf2f6;
  --dim: #8a97a3;
  --dimmer: #5c6873;
  --accent: #5ee0a0;
  --accent2: #4bc8ff;
  --danger: #ff6b5e;
  --radius: 16px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  display: block;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav .links a {
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}

nav .links a:hover {
  color: var(--text);
  text-decoration: none;
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(94, 224, 160, 0.16), transparent 60%);
  pointer-events: none;
}

.hero .mark {
  margin: 0 auto 28px;
  width: 120px;
  height: 120px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--dim);
  font-size: clamp(16px, 2vw, 19px);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #0b1f16;
}

.btn.primary:hover {
  background: #78e8b3;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--card);
  border-color: var(--card-alt);
}

.store-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dimmer);
}

/* Sections */

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  color: var(--accent2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--dim);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 44px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-alt);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

/* Modes */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.mode {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.mode .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.mode.walk .dot { background: var(--accent); }
.mode.bike .dot { background: var(--accent2); }
.mode.drive .dot { background: #ff9f5e; }

.mode h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.mode p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

/* Support / contact */

.support {
  text-align: center;
}

.support .email {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer.site .fbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 14px;
}

footer.site .flinks {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

footer.site .flinks a {
  color: var(--dim);
}

footer.site .flinks a:hover {
  color: var(--text);
}

/* Legal pages */

.legal {
  padding: 56px 0 80px;
}

.legal .wrap {
  max-width: 720px;
}

.legal h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--dimmer);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--dim);
  font-size: 15px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--accent2);
}

@media (max-width: 640px) {
  nav .links {
    gap: 16px;
  }
  nav .links span.badge {
    display: none;
  }
}

/* Account pages (verify-email / forgot-password / reset-password) */

.auth-shell {
  padding: 72px 0 100px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authcard {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.authcard h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.authcard p.lede {
  color: var(--dim);
  font-size: 14.5px;
  margin: 0 0 24px;
}

.authcard .field {
  margin-bottom: 14px;
  text-align: left;
}

.authcard .field label {
  display: block;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.authcard .field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.authcard .field input:focus {
  outline: none;
  border-color: var(--accent2);
}

.authcard .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.authcard .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  font-size: 13.5px;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.alert.success {
  color: var(--accent);
  background: rgba(94, 224, 160, 0.08);
  border: 1px solid rgba(94, 224, 160, 0.3);
}

.alert.error {
  color: var(--danger);
  background: rgba(255, 107, 94, 0.1);
  border: 1px solid rgba(255, 107, 94, 0.3);
}

.alert.info {
  color: var(--dim);
  background: var(--card-alt);
  border: 1px solid var(--line);
}

.authcard .spinner {
  width: 22px;
  height: 22px;
  margin: 8px auto 20px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.authcard .back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
}
