:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6470;
  --border: #e3e4e8;
  --accent: #ff5a1f;
  --accent-soft: #fff0e9;
  --ok: #1f9d55;
  --warn: #c27a00;
  --err: #d23b3b;
  --shadow: 0 20px 50px -20px rgba(22, 24, 29, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #181b21;
    --text: #eceef2;
    --muted: #9aa1ad;
    --border: #2a2e37;
    --accent: #ff7240;
    --accent-soft: #2b1a12;
    --ok: #3ccf7c;
    --warn: #f0a83a;
    --err: #ff6b6b;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b21;
  --text: #eceef2;
  --muted: #9aa1ad;
  --border: #2a2e37;
  --accent: #ff7240;
  --accent-soft: #2b1a12;
  --ok: #3ccf7c;
  --warn: #f0a83a;
  --err: #ff6b6b;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    Roboto,
    sans-serif;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}
nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 16px 0;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* App window mockup */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.titlebar span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 600;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.row:last-child {
  border-bottom: 0;
}
.ride {
  font-weight: 600;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
.status {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.status.ok {
  color: var(--ok);
}
.status.wait {
  color: var(--warn);
}
.status.err {
  color: var(--err);
}
.retry {
  margin-left: 8px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
h2 {
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.step-n {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer p {
  margin: 4px 0;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding: 24px 0 64px;
}
.legal h1 {
  font-size: 36px;
}
.legal h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}
.legal p,
.legal li {
  color: var(--text);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 48px;
    gap: 32px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  nav a {
    margin-left: 14px;
  }
}
