:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1b1d22; --muted: #5d636f; --line: #e6e3dc;
  --accent: #0f5fd7; --accent-ink: #ffffff;
  --good: #1a7f37; --warn: #b26a00; --bad: #b3261e;
  --radius: 14px; --measure: 68ch;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111317; --surface: #191c22; --ink: #eceef2; --muted: #a0a7b4; --line: #2a2f38; --accent: #7fb0ff; --accent-ink: #0b1220; --good: #4cc26b; --warn: #e2a33c; --bad: #ff7b72; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, 980px); margin-inline: auto; }
.narrow { max-width: var(--measure); }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
header.site a.brand { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font: 600 clamp(2.1rem, 6vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.025em; }
h2 { font-size: 1.55rem; margin-bottom: 18px; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 72px 0 64px; }
.app-icon { display: block; width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; }
section.hero h1 { max-width: 18ch; }
.prose h1, section.hero .prose h1 { max-width: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.disabled { background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: default; }
.fine { font-size: 14px; color: var(--muted); }

.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 p:last-child { margin-bottom: 0; }
.card .n { font: 600 14px var(--sans); color: var(--muted); margin-bottom: 10px; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
a.card img { width: 44px; height: 44px; border-radius: 11px; }
a.card .kind { font-size: 13px; color: var(--muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.5 var(--sans); color: #fff; letter-spacing: .2px; white-space: nowrap; }
.badge.good { background: #1a7f37; } .badge.warn { background: #b26a00; } .badge.bad { background: #b3261e; }
.legend { display: grid; gap: 12px; }
.legend > div { display: grid; grid-template-columns: minmax(200px, max-content) 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.legend p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .legend > div { grid-template-columns: 1fr; gap: 8px; } section { padding: 44px 0; } section.hero { padding: 48px 0 44px; } }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font: 600 2.2rem/1 var(--serif); margin: 10px 0 4px; }
.plan .price small { font: 400 15px var(--sans); color: var(--muted); }
.plan ul { padding-left: 18px; margin: 14px 0 20px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 4px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); max-width: var(--measure); }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.prose { max-width: var(--measure); }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 650; }
.prose em { color: var(--muted); }

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