:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1d2420;
  --muted: #5c6661;
  --line: #e2e6e1;
  --accent: #2f7d4f;
  --accent-ink: #ffffff;
  --code-bg: #eef2ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121714;
    --surface: #1a211d;
    --text: #e6ece8;
    --muted: #9aa69f;
    --line: #2a332d;
    --accent: #5fbf85;
    --accent-ink: #0d1510;
    --code-bg: #222b25;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121714;
  --surface: #1a211d;
  --text: #e6ece8;
  --muted: #9aa69f;
  --line: #2a332d;
  --accent: #5fbf85;
  --accent-ink: #0d1510;
  --code-bg: #222b25;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
img { display: block; }

.site-header {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; padding: 20px 16px;
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 16px; max-width: 18ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.lede strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.note, .muted { color: var(--muted); font-size: 0.95rem; }

.grid-section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.grid-section h2, .prose h2 { font-size: 1.5rem; margin: 0 0 16px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.facts, .steps { padding-left: 1.25em; }
.facts li, .steps li { margin-bottom: 10px; }

.prose { padding-top: 40px; max-width: 760px; }
.prose h1 { font-size: 2.2rem; margin: 0 0 8px; }
.prose h2 { margin-top: 36px; scroll-margin-top: 16px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }

.site-footer { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 28px; }
}

.shot { margin: 0; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.hero-shot { margin-top: 32px; max-width: 760px; }

.feature { display: grid; gap: 24px 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; margin: 32px 0 0; }
.feature.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: 1.2rem; margin: 0 0 8px; }
.feature-text p { margin: 0 0 12px; }
.feature-text .facts { margin-top: 0; }
.feature-shots { display: grid; gap: 16px; }
.feature-shots.narrow { max-width: 340px; width: 100%; justify-self: center; }

.download { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 20px 0 24px; }
.download h3 { margin: 0 0 8px; font-size: 1.15rem; }
.download p { margin: 0 0 12px; }
.download .actions { margin: 16px 0 0; }
.files { border-collapse: collapse; width: 100%; margin: 0; font-size: 0.95rem; }
.files th, .files td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.files thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.files tbody th { font-weight: 500; }

.install-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 24px; }
.install-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.install-col h3 { margin: 0 0 12px; font-size: 1.15rem; }
.steps.big { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; }
.steps.big li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps.big li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; text-align: center; line-height: 28px;
}

.callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; padding: 4px 20px 12px; margin: 0 0 24px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout h3 { margin-bottom: 8px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 4px; color: var(--muted); }

@media (max-width: 760px) {
  .feature, .feature.reverse { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse .feature-text { order: 0; }
}

.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.site-header nav { gap: 6px 18px; }

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 12px; max-width: 24ch; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; }
.page-head .lede { margin-bottom: 20px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }

.detail { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.page-head + .detail { margin-top: 24px; }
.detail h2 { font-size: 1.45rem; margin: 0 0 14px; scroll-margin-top: 16px; }
.detail h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.detail > p, .detail > ul, .detail > ol { max-width: 72ch; }
.detail .feature-text h3:first-child { margin-top: 0; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--code-bg); color: var(--muted); font-size: 0.78rem; font-weight: 600; vertical-align: middle; }
.tag.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag.off { color: var(--muted); border-style: dashed; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.grid { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.grid th, .grid td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child th, .grid tr:last-child td { border-bottom: 0; }
.grid thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; background: var(--code-bg); }
.grid tbody th { font-weight: 600; min-width: 11em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.chips span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 0.9rem; }

.link-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.link-card:hover, .link-card:focus-visible { border-color: var(--accent); }
.link-card h3 { color: var(--text); }
.link-card .more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }

.detail .cards { margin: 0 0 16px; }
.detail .callout h2 { font-size: 1.2rem; }
.download h2 { font-size: 1.2rem; margin: 0 0 8px; }
.install-col h2 { font-size: 1.2rem; margin: 0 0 12px; }
.detail .steps { max-width: 72ch; }
.table-wrap.compact { max-width: 420px; }

.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand { font-size: 1.05rem; }
