:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1f2530;
  --muted: #5b6573;
  --accent: #4b586a;
  --accent-warm: #8c5f3a;
  --line: #e3e5e8;
  --ph-pale: #d9dde3;
  --ph-light: #c3c9d2;
  --ph-mid2: #9aa3b2;
  --ph-mid: #7b8494;
  --ph-dark: #2e3440;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1c2027;
    --text: #e8eaed;
    --muted: #a3acb8;
    --accent: #b8c6d6;
    --accent-warm: #d7a77c;
    --line: #2a2f37;
    --ph-pale: #e5e7eb;
    --ph-dark: #4b5563;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-warm); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
main .wrap { max-width: 680px; }
.home main .wrap { max-width: 960px; }

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

/* Content */
main { padding: 48px 0 56px; }
.hero { text-align: center; padding-bottom: 8px; }
.hero-mark { display: block; width: 144px; height: 144px; margin: -12px auto 8px; }
h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 auto 22px; max-width: 34em; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

h2 { font-size: 22px; line-height: 1.25; margin: 48px 0 14px; }
h3 { font-size: 17px; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 64px;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 14px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note { color: var(--muted); font-size: 15px; }
.updated { color: var(--muted); font-size: 15px; margin-top: -8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; gap: 14px; align-items: flex-start; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); }
.mark { flex: none; width: 40px; height: 40px; margin-top: -6px; }
.ph-pale { fill: var(--ph-pale); }
.ph-light { fill: var(--ph-light); }
.ph-mid2 { fill: var(--ph-mid2); }
.ph-mid { fill: var(--ph-mid); }
.ph-dark { fill: var(--ph-dark); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding: 36px 0 44px; }
  .lede { font-size: 17px; }
  .steps li { padding-left: 58px; }
  .site-nav { gap: 14px; }
}

/* Home page */
.home main { padding-top: 24px; }
.home .hero { padding: 24px 0 56px; }
.home .hero h1 {
  font-size: clamp(38px, 8.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.home .hero .lede { font-size: 21px; max-width: 28em; margin-bottom: 26px; }
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section h2 {
  text-align: center;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.story {
  max-width: 32em;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.benefits { display: grid; gap: 14px; grid-template-columns: 1fr; }
.benefit {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.benefit h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.benefit p { margin: 0; color: var(--muted); font-size: 16px; }
.closing { text-align: center; padding: 56px 0 8px; border-top: 1px solid var(--line); }
.closing .big {
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 22em;
  margin: 0 auto 26px;
}
.home h1, .home h2, .home .lede, .closing .big { text-wrap: balance; }
.hero h1 .line, .closing .line { display: block; }

@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .home .hero .lede { font-size: 18px; }
  .story { font-size: 18px; }
  .section { padding: 40px 0; }
}
