/* mSpendVanta website — one stylesheet for every page. Light and dark follow the visitor's system. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #14182b;
  --muted: #5b6275;
  --border: #e2e6ef;
  --accent: #1f6bff;
  --accent-strong: #0b4fd6;
  --accent-soft: #e8f0ff;
  --check: #22b35b;
  --shadow: 0 1px 2px rgba(20, 24, 43, 0.06), 0 8px 24px rgba(20, 24, 43, 0.06);
  --radius: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --surface: #171b24;
    --text: #eef1f7;
    --muted: #a2a9ba;
    --border: #2a3040;
    --accent: #5b93ff;
    --accent-strong: #84afff;
    --accent-soft: #1b2640;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { 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, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.button:hover { background: var(--accent-strong); text-decoration: none; }
.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.button.secondary:hover { background: var(--accent-soft); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero img.icon { width: 128px; height: 128px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}
.hero .tagline {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero p.lead {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: center;
}
section p.section-lead {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .emoji { font-size: 28px; line-height: 1; display: block; margin-bottom: 12px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* Highlight band */
.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Plans */
.plans { max-width: 900px; margin: 0 auto; }
.plan { text-align: center; }
.plan .price-note { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Legal and support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; text-align: left; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.doc .summary p { margin: 0; }
.doc details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p { margin: 10px 0 0; color: var(--muted); }

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

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-small { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
}
