:root {
  --canvas: #F2F6EF; --surface: #FFFFFF; --tint: #E7EEE3; --tint-strong: #DCE6D6;
  --ink: #263A30; --muted: #586A5E; --line: #DFE6DB;
  --accent: #0E9F5B; --accent-top: #2CC97A; --on-accent: #0F2418; --accent-text: #08703F;
  --amber-fill: #F6E8D9; --amber-text: #8E5527;
  --hl: rgba(255,255,255,.9); --shade: rgba(92,122,98,.14); --drop: rgba(111,140,116,.22);
  --rim: rgba(255,255,255,.55); --sheen: rgba(255,255,255,.35);
  --glow-a: rgba(14,159,91,.22); --glow-b: rgba(44,201,122,.18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1C2821; --surface: #2A392F; --tint: #33463A; --tint-strong: #3A4F40;
    --ink: #E5EEE9; --muted: #A5B7AB; --line: #46594A;
    --accent-text: #5BE3A0; --amber-fill: #4A3B26; --amber-text: #EBC395;
    --hl: rgba(255,255,255,.10); --shade: rgba(0,0,0,.45); --drop: rgba(0,0,0,.45);
    --rim: rgba(255,255,255,.16); --sheen: rgba(255,255,255,.10);
    --glow-a: rgba(14,159,91,.20); --glow-b: rgba(44,201,122,.12);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
code { font: .9em var(--mono); background: var(--tint); padding: .1em .35em; border-radius: 5px; }
img, video { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.read > * { max-width: 720px; }

/* Clay surface: inner highlight and shade, a broad soft drop, a thin bright rim and a sheen across the top. */
.clay {
  position: relative; background: var(--surface); border-radius: 14px;
  box-shadow: inset 3px 4px 7px var(--hl), inset -4px -6px 10px var(--shade), 0 14px 30px -10px var(--drop);
}
.clay::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--rim); background: linear-gradient(180deg, var(--sheen), transparent 38%);
}

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 40px 0 24px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 72% 22%, var(--glow-a), transparent 70%),
    radial-gradient(420px 360px at 92% 70%, var(--glow-b), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 0 0 22px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 600; }

.install { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 12px; max-width: 560px; }
.install code { background: none; padding: 0; flex: 1; overflow-x: auto; white-space: nowrap; font-size: 13.5px; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.hint { font-size: 14px; color: var(--muted); margin: 10px 0 26px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 9px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary {
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent-top), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 7px 14px -4px rgba(14,159,91,.45);
}
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 4px rgba(14,159,91,.3); }
.btn-quiet { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--tint); }
.btn-small { height: 34px; padding: 0 12px; font-size: 13.5px; flex: none; }

/* The menu bar demo */
.demo { position: relative; }
.menubar {
  display: flex; justify-content: flex-end; align-items: center; gap: 16px; height: 30px; padding: 0 14px;
  font-size: 13px; color: var(--ink); border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--rim); border-bottom: 0;
}
.menubar .moon { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: var(--tint-strong); }
.menubar .moon svg { width: 15px; height: 15px; }
.popover {
  margin: 8px 0 0 auto; width: min(380px, 100%); border-radius: 22px; padding: 18px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
.pop-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pop-head img { width: 36px; height: 36px; }
.pop-head strong { display: block; font-size: 15px; }
.pop-head span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.group { background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
.g-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; font-size: 13px; }
.g-head b { font-weight: 600; margin-right: 2px; }
.badge { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--tint); color: var(--muted); }
.badge.ended { background: var(--amber-fill); color: var(--amber-text); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line);
  max-height: 40px; overflow: hidden; transition: opacity .2s ease, max-height .24s ease, padding .24s ease, border-color .24s ease;
}
.group li:first-child { border-top: 0; }
.group .port { font-family: var(--mono); color: var(--accent-text); font-size: 12px; }
.group .mem { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.swept .group li { opacity: 0; max-height: 0; padding-block: 0; border-color: transparent; }
.pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pop-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.swept .pop-foot p { color: var(--ink); }
.demo-note { font-size: 13px; color: var(--muted); text-align: right; margin: 10px 4px 0; }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 30px; max-width: 40em; }

.features { list-style: none; margin: 0; padding: 10px 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.features li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.features li:nth-child(-n+2) { border-top: 0; }
.tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--accent-text); }
.tile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 16px; margin: 0 0 2px; font-weight: 600; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.pro-mark { font-size: 12px; font-weight: 600; color: var(--accent-text); margin-left: 6px; }

.video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--tint); border-radius: 12px; border: 1px solid var(--line); }

.table-panel { padding: 6px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-weight: 600; color: var(--muted); font-size: 14px; }
tbody th { font-weight: 600; width: 22%; }
td:last-child, thead th:last-child { background: color-mix(in srgb, var(--tint) 70%, transparent); color: var(--ink); }
thead th:last-child { color: var(--accent-text); border-radius: 10px 10px 0 0; }
tbody tr:last-child td:last-child { border-radius: 0 0 10px 10px; }
td { color: var(--muted); }

.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; border-radius: 20px; align-items: center; }
.pro ul { margin: 0; padding-left: 20px; color: var(--muted); }
.pro li { margin: 8px 0; }
.pro li strong { color: var(--ink); font-weight: 600; }
.price { font-size: 15px; color: var(--muted); margin: 0 0 22px; }

.safety { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.safety li { padding-left: 28px; position: relative; color: var(--muted); }
.safety li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg);
}
.safety strong { color: var(--ink); font-weight: 600; }

.faq h3 { font-size: 18px; margin: 34px 0 8px; font-weight: 600; letter-spacing: -.01em; }
.faq p { margin: 0; color: var(--muted); }
.faq strong { color: var(--ink); font-weight: 600; }

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

@media (max-width: 860px) {
  .hero-grid, .pro { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .features { grid-template-columns: 1fr; padding: 4px 18px; }
  .features li:nth-child(2) { border-top: 1px solid var(--line); }
  .shots { grid-template-columns: 1fr; }
  .popover { margin-inline: auto; }
  .pro { padding: 24px; gap: 24px; }
  .top nav a:not(.gh, .guides-link) { display: none; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { .group li { transition: none; } }
@media (prefers-reduced-transparency: reduce) {
  .popover, .menubar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.guide { max-width: 720px; padding-block: 44px 64px; }
.guide h1 { margin-top: 28px; }
.guide h2 { margin-top: 36px; font-size: clamp(23px, 3vw, 28px); }
.guide .byline { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.guide li + li { margin-top: .7em; }
.guide code { overflow-wrap: anywhere; }
.guide pre { padding: 14px 16px; white-space: pre-wrap; border-radius: 10px; background: var(--tint); }
.guide pre code { padding: 0; }
.guide .actions { margin-top: 32px; }

.guide table { min-width: 0; }
.guide th, .guide td { padding-inline: 10px; }
.guide-media { margin: 32px 0 0; }
.guide-media img { height: auto; border-radius: 12px; border: 1px solid var(--line); }
.guide-media figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
