:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --text: #13212b;
  --muted: #586874;
  --accent: #1574ab;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0f8;
  --border: #e0e7ec;
  --warn-bg: #fff5e8;
  --warn-border: #e39a32;
  --shadow: 0 1px 2px rgba(19, 33, 43, 0.05), 0 8px 24px rgba(19, 33, 43, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1418;
    --surface: #172027;
    --text: #e7eef2;
    --muted: #9aa9b4;
    --accent: #5db2e4;
    --accent-ink: #08151d;
    --accent-soft: #15303f;
    --border: #25323b;
    --warn-bg: #2a2013;
    --warn-border: #b98030;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.app-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  flex: none;
}
.app-hero .text { flex: 1 1 300px; min-width: 0; }

/* Sections and cards */
section { padding: 32px 0; }
h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.2; }
h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.section-intro { color: var(--muted); margin: 0 0 24px; max-width: 640px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-app {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.feature-app img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.feature-app .text { flex: 1 1 260px; min-width: 0; }
.feature-app .text p { margin-bottom: 14px; }

/* Buttons and badges */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.secondary { color: var(--accent); background: transparent; }
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.notice {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  border-radius: 10px;
  padding: 16px 18px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* Long form pages (privacy, support) */
.doc { padding-top: 48px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 4px; letter-spacing: -0.02em; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc .muted { color: var(--muted); margin-top: 0; }
.doc .summary { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; }
.faq dt { font-weight: 700; margin-top: 20px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .hero { padding: 40px 0 32px; }
  .app-hero img { width: 96px; height: 96px; border-radius: 22px; }
  section { padding: 24px 0; }
}
