:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #eef1f4; --text: #11161c; --muted: #5a6573;
  --accent: #0a84c8; --accent-ink: #ffffff; --line: #dde2e8; --ok: #1a7f37; --warn: #9a5b00;
  --shadow: 0 10px 30px rgba(17, 22, 28, 0.12);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14; --surface: #131a22; --surface-2: #1a232e; --text: #e8eef4; --muted: #9aa7b5;
    --accent: #3fb7f0; --accent-ink: #04121c; --line: #263241; --ok: #3fb950; --warn: #e3a33a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    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(--accent); }
img { max-width: 100%; height: auto; }
code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--surface-2); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.button:hover { filter: brightness(1.05); }
.small { font-size: 0.9rem; color: var(--muted); }

/* Screens */
.screens { display: flex; gap: 22px; justify-content: center; align-items: flex-end; padding: 24px 0 8px; overflow-x: auto; }
.shot { border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; display: block; }
.shot.phone { width: 230px; flex: 0 0 auto; }
.shot.tablet { width: 380px; flex: 0 0 auto; border-radius: 20px; }
.shot.mac { border-radius: 12px; width: 100%; max-width: 820px; margin: 0 auto; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }

/* Help */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }
.guide { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 36px; }
.figures { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin: 18px 0; }
.figures figure { margin: 0; text-align: center; }
.figures figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.note.warn { border-left-color: var(--warn); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details > *:not(summary) { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .shot.phone { width: 200px; }
  .shot.tablet { width: 300px; }
  .screens { justify-content: flex-start; }
}
