/* CoolRides marketing site -- shared styles. No build step, no external deps. */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7fb;
  --card: #ffffff;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 550px at 100% -8%,
      color-mix(in srgb, var(--brand) 10%, transparent), transparent),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo img { width: 32px; height: 32px; display: block; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* Small screens: logo on its own row, links wrap beneath it. */
@media (max-width: 720px) {
  .nav {
    flex-direction: column; align-items: center; height: auto;
    padding: 12px 0 14px; gap: 10px;
  }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .nav-links .btn { padding: 8px 16px; }
  .hero { padding: 56px 0 48px; }
}

/* ---- hero ---- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.12; max-width: 780px; margin: 0 auto;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p.lede {
  margin: 22px auto 0; max-width: 620px; font-size: 19px; color: var(--muted);
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---- sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 20px;
  background: color-mix(in srgb, var(--brand) 9%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* ---- split rows (how it works) ---- */
.steps { counter-reset: step; max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line); align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 36px; height: 36px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step h3 { font-size: 17px; font-weight: 700; }
.step p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---- banner CTA ---- */
.banner {
  background: linear-gradient(135deg, var(--brand), #6d28d9);
  border-radius: 18px; padding: 56px 40px; text-align: center; color: #fff;
}
.banner h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.banner p { margin: 12px auto 28px; max-width: 520px; opacity: 0.9; }
.banner .btn { background: #fff; color: var(--brand); }
.banner .btn:hover { transform: translateY(-1px); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; margin-left: 20px; }
.foot a:hover { color: var(--ink); }

/* ---- legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 8px 0 36px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16px; color: #374151; margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal .callout {
  background: color-mix(in srgb, var(--brand) 6%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 12px; padding: 18px 20px; margin: 20px 0;
}
.legal .callout p { margin-bottom: 0; }
.legal a { color: var(--brand); }

/* ---- pricing ---- */
.tiers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px; justify-content: center;
}
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; position: relative; display: flex; flex-direction: column;
}
.tier.featured {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--brand) 14%, transparent);
}
.tier .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: 19px; font-weight: 800; }
.tier .tagline { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tier .price { margin: 22px 0 4px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.tier .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; margin: 22px 0 28px; flex: 1; }
.tier li {
  padding: 7px 0 7px 30px; font-size: 15px; color: #374151; position: relative;
}
.tier li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700;
}
.tier .btn { text-align: center; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
