/* Simple Money website. One stylesheet, no web fonts, no scripts: the site makes no third-party requests. */

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #16232e;
  --muted: #586b7b;
  --line: #dde4ea;
  --primary: #1f5373;
  --primary-soft: #e3edf4;
  --accent: #2f7d5b;
  --warn-soft: #fff6e0;
  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f161c;
    --surface: #17212a;
    --text: #e6edf2;
    --muted: #9aabb8;
    --line: #26343f;
    --primary: #5cb0e6;
    --primary-soft: #1a2d3b;
    --accent: #5fc29a;
    --warn-soft: #2d2715;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--primary); text-underline-offset: 2px; }

img, svg { max-width: 100%; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 14em; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.badge strong { color: var(--text); }

/* Sections */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 20px; height: 20px; }

.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Plans table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 15px; color: var(--muted); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; }
td.yes { color: var(--accent); font-weight: 600; }
td.no { color: var(--muted); }

/* Prose pages: privacy, terms, deletion */
.prose { max-width: var(--prose); margin: 0 auto; padding: 48px 20px 64px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
.prose .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .table-scroll { margin: 16px 0; }
.prose table { min-width: 520px; font-size: 15px; }

.summary { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 20px; }
.summary ul { margin: 0; }
.note { background: var(--warn-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 16px; }
.toc { font-size: 16px; columns: 2 220px; padding-left: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 12px 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 15px; }

.button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--primary); color: var(--surface); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero p.lead { font-size: 18px; }
  section { padding: 40px 0; }
  .nav { gap: 14px; }
}
