/* Lift marketing site - shared styles
   Palette mirrors the Flutter apps' LiftTheme (lift_shared/lib/src/theme/lift_theme.dart):
   near-black ink, white surface, light-gray muted fills, 12px rounded corners. */

:root {
  --ink: #101010;
  --ink-70: rgba(16, 16, 16, 0.7);
  --ink-45: rgba(16, 16, 16, 0.45);
  --surface: #ffffff;
  --muted: #f3f3f3;
  --muted-2: #e0e0e0;
  --error: #b3261e;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --shadow: 0 1px 2px rgba(16, 16, 16, 0.06), 0 8px 24px rgba(16, 16, 16, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--muted-2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-70);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--muted-2);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.82;
}

.btn-inverse {
  background: #fff;
  color: var(--ink);
}

.btn-inverse:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--muted);
}

.btn-secondary-inverse {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-secondary-inverse:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-disabled {
  background: var(--muted);
  color: var(--ink-45);
  border-color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Hero (dark, matches the logo's black lockup) ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.72);
}

.hero-art {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock {
  width: 220px;
  border-radius: 28px;
  border: 6px solid rgba(255, 255, 255, 0.85);
  background: #0a0a0a;
  padding: 18px 14px;
  color: #fff;
}

.phone-mock .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 14px;
}

.phone-mock .card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.phone-mock .card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.phone-mock .fare {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-muted {
  background: var(--muted);
}

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

.section-head.left {
  text-align: left;
  margin: 0 0 44px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps.steps-5 {
  grid-template-columns: repeat(5, 1fr);
}

.step {
  background: var(--surface);
  border: 1px solid var(--muted-2);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.95rem;
}

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--muted-2);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-70);
  font-size: 0.93rem;
}

/* ---------- Split panels (Ride / Drive teaser) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split-panel {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: #fff;
}

.split-panel.ride {
  background: var(--ink);
}

.split-panel.drive {
  background: #2a2a2a;
}

.split-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.split-panel .btn {
  margin-top: 8px;
}

/* ---------- Callout / banner ---------- */

.callout {
  background: var(--muted);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.callout p {
  margin: 0;
  max-width: 520px;
}

.notice {
  border: 1px solid var(--muted-2);
  background: var(--muted);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-70);
}

.notice strong {
  color: var(--ink);
}

.notice-warning {
  background: #fff4f0;
  border-color: #f0cfc2;
}

/* ---------- Download page ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.download-card {
  border: 1px solid var(--muted-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface);
}

.download-card h3 {
  font-size: 1.3rem;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--muted-2);
  border-radius: var(--radius);
  padding: 10px 16px;
  background: var(--muted);
  color: var(--ink-45);
  font-size: 0.85rem;
  cursor: not-allowed;
}

.store-badge .glyph {
  font-size: 1.2rem;
}

.store-badge .label small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge .label strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-70);
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.download-actions .hint {
  font-size: 0.82rem;
  color: var(--ink-45);
  margin: -4px 0 4px;
}

/* ---------- FAQ / details ---------- */

details {
  border: 1px solid var(--muted-2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}

details summary {
  font-weight: 700;
  cursor: pointer;
}

details p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal pages ---------- */

.legal-body h2 {
  margin-top: 40px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body ul {
  color: var(--ink-70);
}

.legal-body p,
.legal-body li {
  color: var(--ink-70);
}

.legal-meta {
  color: var(--ink-45);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-toc {
  border: 1px solid var(--muted-2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  background: var(--muted);
}

.legal-toc h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--ink-45);
}

.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.legal-toc a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-body h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--muted-2);
  color: var(--ink-70);
  vertical-align: top;
}

.legal-body th {
  background: var(--muted);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* ---------- Contact ---------- */

.contact-card {
  border: 1px solid var(--muted-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--muted-2);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-row .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 56px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 22px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  font-size: 0.82rem;
}

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

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--muted-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .split,
  .download-grid,
  .grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps,
  .steps.steps-5 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 64px;
  }

  section {
    padding: 52px 0;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
