:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1d1d27;
  --muted: #5b5b6e;
  --accent: #5b3df5;
  --border: #e3e3ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121218;
    --surface: #1b1b24;
    --text: #ececf3;
    --muted: #a3a3b8;
    --accent: #9d8bff;
    --border: #2c2c3a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
header.site, footer.site { max-width: 820px; margin: 0 auto; padding: 20px 16px; }
header.site { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
header.site .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
header.site nav a { margin-left: 16px; text-decoration: none; color: var(--muted); }
header.site nav a:first-child { margin-left: 0; }
header.site nav a:hover { color: var(--accent); }
main { max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; }
.hero h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.meta { color: var(--muted); margin: 0 0 24px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.badge { display: inline-block; line-height: 0; margin-left: -10px; }
.badge img { height: 80px; width: auto; }
.hero-grid { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: center; }
.app-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 12px; }
.hero-shot, .shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
footer.site { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
footer.site a { color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 8px 6px; vertical-align: top; }
.table-wrap { overflow-x: auto; }
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 260px; }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots img { scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.7rem; }
  .card { padding: 20px 16px; }
}
