:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #24261f;
  --muted: #62665a;
  --line: #e4e2d8;
  --accent: #2f7d4f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15170f;
    --surface: #1f2218;
    --text: #eeefe6;
    --muted: #a6aa9b;
    --line: #33372a;
    --accent: #7fce9c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main, footer { max-width: 680px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
.hero { text-align: center; padding: 64px 0 32px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; }
h1 { font-size: 2.4rem; line-height: 1.15; margin: 20px 0 8px; }
.tagline { font-size: 1.2rem; color: var(--muted); margin: 0 auto; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.button.primary { background: var(--text); color: var(--bg); }
.button.secondary { border: 2px solid var(--accent); color: var(--accent); padding: 10px 20px; }
.button:hover { opacity: 0.85; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 16px; }
.gallery.small { grid-template-columns: 2fr 1fr; align-items: end; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 6px; }
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery.small { grid-template-columns: 1fr; }
  .gallery.small figure:last-child { max-width: 220px; margin: 0 auto; }
  .gallery figcaption { font-size: 0.75rem; }
}
.prices { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prices li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.prices span { display: block; color: var(--muted); font-size: 0.85rem; }
.prices strong { font-size: 1.3rem; }
@media (max-width: 420px) { .prices { grid-template-columns: 1fr; } .prices li { display: flex; justify-content: space-between; align-items: baseline; text-align: left; } }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.features { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.features strong { display: block; }
.features span { color: var(--muted); font-size: 0.95rem; }
footer { margin-top: 48px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer a { margin-right: 16px; }
.back { display: inline-block; margin-top: 32px; }
.updated { color: var(--muted); margin-top: 0; }

/* Support page */
:root { --code-bg: #f1efe6; }
@media (prefers-color-scheme: dark) { :root { --code-bg: #1a1c14; } }
main.doc { max-width: 760px; }
.lede { color: var(--muted); font-size: 1.05rem; }
.note { color: var(--muted); font-size: 0.9rem; font-style: italic; }
h2 { scroll-margin-top: 16px; }
h3 { font-size: 1.08rem; margin: 26px 0 6px; }
h4 { font-size: 1rem; margin: 22px 0 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2; column-gap: 24px; }
@media (max-width: 520px) { .toc ol { columns: 1; } }
code { font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); border-radius: 4px; padding: 1px 4px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; max-width: 100%; }
pre code { background: none; padding: 0; font-size: 0.8rem; overflow-wrap: normal; white-space: pre; }
pre.tall { max-height: 34em; overflow-y: auto; }
table.spec { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; display: block; overflow-x: auto; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.spec th { color: var(--muted); font-weight: 600; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 6px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.shots.widgets, .shots.watch { grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); justify-content: center; }
.shots.widgets img { border-radius: 26px; }
.shots.watch img { border-radius: 22px; }
figure.wide { max-width: 480px; margin: 20px auto; }
figure.wide img { border-radius: 26px; }
figure.phone { max-width: 240px; margin: 20px auto; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
table.spec code { overflow-wrap: normal; white-space: nowrap; }
