:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #2b2420;
  --muted: #6e6359;
  --line: #e2d8c6;
  --accent: #c9542f;
  --accent-ink: #fff;
  --grass: #5aa45f;
  --code-bg: #2b2420;
  --code-ink: #f6f1e7;
  --max: 1080px;
  --pixel: "Pixelify Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2321;
    --surface: #252c29;
    --ink: #f1ebe0;
    --muted: #a99f93;
    --line: #36403c;
    --accent: #e8714a;
    --code-bg: #141816;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.pixel { image-rendering: pixelated; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px var(--pixel); color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 15px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 10px; border: 0;
  font: 600 15px var(--body); text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.lg { padding: 13px 22px; font-size: 16px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 6px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.eyebrow { font: 600 13px var(--body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 72px 0 56px; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.page-head { padding: 64px 0 24px; }
.page-head + section { border-top: 0; padding-top: 24px; }

.shot {
  border-radius: 14px; overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  background: #6aa94f;
}
.shot img { width: 100%; height: auto; image-rendering: pixelated; }
.hero .shot { margin-top: 48px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid3 p { margin: 0; color: var(--muted); }
.icon { font-size: 28px; line-height: 1; margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split ul { padding-left: 20px; margin: 16px 0 0; color: var(--muted); }
.split li { margin: 6px 0; }
.split li strong { color: var(--ink); }

/* cast strip */
.cast { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 32px 0 0; }
.cast img { width: 96px; height: 96px; image-rendering: pixelated; transition: transform .15s; }
.cast img:hover { transform: translateY(-6px); }

.cta { text-align: center; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* cards / callouts */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 0; }

/* prose (docs, privacy, faq) */
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
code { font: 14px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
pre { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 16px 0 24px; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.table-scroll { overflow-x: auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 22px var(--pixel); color: var(--accent); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* download */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.dl .card h3 { display: flex; align-items: center; gap: 10px; }
.tag { font: 600 12px var(--body); padding: 3px 8px; border-radius: 999px; background: var(--line); color: var(--muted); letter-spacing: .4px; }
.tag.go { background: var(--grass); color: #fff; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; padding-left: 44px; position: relative; margin: 14px 0; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 16px/30px var(--pixel); text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .pets { display: flex; gap: 0; }
.site-footer .pets img { width: 40px; height: 40px; image-rendering: pixelated; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .grid3 { grid-template-columns: 1fr; gap: 28px; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .dl { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; z-index: 10; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .site-header { position: relative; }
  .cast img { width: 72px; height: 72px; }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
