:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-alt: #ebeae3;
  --text: #15191a;
  --muted: #5d6663;
  --line: #dddcd3;
  --primary: #14724b;
  --primary-text: #ffffff;
  --primary-soft: #dbede2;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1110;
    --surface: #191f1d;
    --surface-alt: #232b28;
    --text: #eff2f0;
    --muted: #9aa5a1;
    --line: #2a3330;
    --primary: #4cc38a;
    --primary-text: #06231a;
    --primary-soft: #123027;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.brand svg { width: 34px; height: 34px; }
nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav.links a:hover, nav.links a[aria-current='page'] { color: var(--text); }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }

.hero { padding: 56px 0 40px; text-align: center; }
.hero .mark { width: 96px; height: 96px; margin: 0 auto 28px; display: block; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 540px; margin: 18px auto 0; }
.pill {
  display: inline-block; margin-top: 28px; padding: 10px 18px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 15px;
}

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

.band { background: var(--surface); border-radius: var(--radius); padding: 32px; margin: 32px 0; }
.band ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.band li { padding-left: 28px; position: relative; }
.band li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

.page { padding: 40px 0 24px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); }
.page .intro { font-size: 18px; color: var(--muted); margin-top: 14px; }
.section { margin-top: 32px; }
.section h2 { font-size: 20px; margin-bottom: 8px; }
.section p { color: var(--text); }

details { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 600; }
details[open] summary::after { content: '−'; }
details p { margin-top: 10px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  background: var(--primary); color: var(--primary-text); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button.secondary { background: var(--surface-alt); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.code {
  margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--surface-alt);
  font: 600 15px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; word-break: break-all; text-align: center;
}
ol.steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 8px; }

footer.bottom {
  border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted);
}
footer.bottom nav { display: flex; gap: 16px; }
footer.bottom a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  nav.links { gap: 14px; font-size: 14px; }
  .band { padding: 24px; }
  .hero { padding-top: 32px; }
  .code { font-size: 13px; letter-spacing: -0.2px; }
}
.note { margin-top: 16px; }
