:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --text: #1d1a17;
  --muted: #6b6259;
  --line: #eadfd3;
  --brand: #f28a1c;
  --brand-deep: #d96f00;
  --brand-soft: #fff0df;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c0b;
    --surface: #1a1714;
    --text: #f4eee8;
    --muted: #a99d91;
    --line: #2e2823;
    --brand: #ff9a2e;
    --brand-deep: #ffb35c;
    --brand-soft: #2a1d10;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand-deep); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--brand); }
nav.site { display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 7px 11px; border-radius: 999px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); background: var(--brand-soft); }

/* Hero */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 38px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); border: 6px solid #111; background: #111; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots img { width: 220px; border-radius: 26px; border: 4px solid #111; background: #111; display: block; }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

.cta { background: var(--brand-soft); border-radius: 28px; padding: 40px 28px; text-align: center; margin: 24px 0 56px; }
.cta p { color: var(--muted); max-width: 34em; margin: 0 auto 22px; }

/* Docs pages */
.doc { max-width: 760px; padding: 48px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.1; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { margin-top: 24px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 8px; }
.toc ul { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.note { border-left: 4px solid var(--brand); background: var(--surface); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 16px 0; }
kbd { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; }

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

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: left; }
  .phone { width: 260px; }
  header.site .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
  nav.site { margin-left: -8px; gap: 0; flex-wrap: nowrap; }
  nav.site a { padding: 6px 8px; font-size: 14px; }
  .toc ul { columns: 1; }
}

/* Screenshots inside docs pages */
.shot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 18px 0 8px; }
.shot figure { margin: 0; width: 220px; max-width: 46%; }
.shot img { width: 100%; border-radius: 24px; border: 4px solid #111; background: #111; display: block; }
.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
