:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #1f5fd1;
  --accent-soft: rgba(31, 95, 209, 0.08);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #5b8ff0;
    --accent-soft: rgba(91, 143, 240, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

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

/* Page */
main { padding: 56px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 40px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 44px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p, li { color: var(--text); }
ul { padding-left: 20px; }
li { margin: 6px 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.highlight { background: var(--accent-soft); border-color: transparent; display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 8px; }
.highlight .icon { font-size: 22px; line-height: 1.3; }
.highlight p { margin: 0; }
.highlight strong { display: block; margin-bottom: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.grid .card p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin: 10px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > *:not(summary) { margin-top: 0; }
details[open] { padding-bottom: 6px; }

.kbd { font: 600 13px/1 ui-rounded, -apple-system, sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; background: var(--surface); white-space: nowrap; }

/* Home */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; margin-bottom: 18px; }
.hero .lede { max-width: 520px; margin: 0 auto 28px; }
.button { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 11px 22px; border-radius: 999px; }
.button:hover { text-decoration: none; opacity: 0.9; }

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

@media (max-width: 520px) {
  nav { gap: 14px; font-size: 14px; }
  .brand span { display: none; }
  main { padding-top: 36px; }
}
