/* SnapPick website */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --sunken: #eef0f6;
  --line: #e2e6ef;
  --fg: #12151f;
  --muted: #5d6679;
  --faint: #8f97a9;
  --brand: #6d4cff;
  --brand-strong: #583ae8;
  --brand-soft: #f0ecff;
  --ok: #0e9f6e;
  --warn: #b8650a;
  --wechat: #07c160;
  --aurora: linear-gradient(120deg, #7c5cff 0%, #ff5ca8 55%, #ffb45c 100%);
  --cta: linear-gradient(135deg, #7c5cff 0%, #5b5bf7 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(40, 30, 110, 0.35), 0 4px 14px rgba(16, 24, 40, 0.08);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e14;
    --surface: #151821;
    --sunken: #1d212c;
    --line: #2a2f3d;
    --fg: #eceff6;
    --muted: #9ca4b6;
    --faint: #6c7486;
    --brand: #9a84ff;
    --brand-strong: #7c60ff;
    --brand-soft: #241f47;
    --ok: #34c78f;
    --warn: #f5a63c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code, kbd {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.45em;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--fg); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand small { font-weight: 500; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--sunken); text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--cta); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(109, 76, 255, 0.75); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 320px at 16% 30%, rgba(124, 92, 255, 0.24), transparent 70%),
    radial-gradient(520px 320px at 78% 12%, rgba(255, 92, 168, 0.18), transparent 70%),
    radial-gradient(480px 300px at 92% 62%, rgba(255, 180, 92, 0.18), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora); }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 30em; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.hero .meta span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* a browser window with the side panel open */
.window { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.window .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 12px; flex: 1; height: 22px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; line-height: 20px; padding: 0 12px; color: var(--faint); overflow: hidden; white-space: nowrap; }
.window .view { display: grid; grid-template-columns: 1fr 34%; aspect-ratio: 16 / 10.4; }
.window .view > div { overflow: hidden; position: relative; }
.window .view > div + div { border-left: 1px solid var(--line); }
.window .view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------------------------------------------------------------- sections */
section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.section-head h2 { margin-top: 8px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* steps strip */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow .card { padding: 20px 18px; position: relative; }
.flow .card::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.flow h3 { font-size: 17px; }
.flow p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card { padding: 24px; }
.features .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.features .icon svg { width: 22px; height: 22px; }
.features h3 { font-size: 18px; }
.features p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.showcase video { width: 100%; border-radius: 14px; background: #000; box-shadow: var(--shadow-lg); }
.showcase figcaption, .caption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.covers img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.covers figure { margin: 0; }
.covers figcaption { margin-top: 4px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* install */
.install { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.install .card { padding: 26px; }
.install h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.wait { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.install p.sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.stores { margin-top: 18px; display: grid; gap: 10px; }
.stores .btn { justify-content: flex-start; height: 56px; gap: 12px; }
.stores .btn small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); line-height: 1.2; }
.stores .btn span { text-align: left; line-height: 1.25; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); color: var(--muted); font-size: 14px; line-height: 1.65; }
.downloads { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.downloads .ver { color: var(--muted); font-size: 14px; }
ol.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cta); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
ol.steps b { font-weight: 700; }
ol.steps p { color: var(--muted); font-size: 15px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 9px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--brand); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.copy:hover { border-color: var(--brand); }
.annotated { position: relative; margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
/* A ring around the control a step talks about, and its step number just below the ring
   (so neither covers the label, at any size). Positions come from shots/chrome-labels.json. */
.annotated img { width: 100%; height: auto; }
.annotated .ring {
  position: absolute; border: 2px solid #ff3b5c; border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.16);
}
.annotated .pin {
  position: absolute; width: 24px; height: 24px; margin-top: 5px; transform: translateX(-50%); border-radius: 50%;
  background: #ff3b5c; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 28px 17px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; color: var(--faint); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15.5px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer .grow { margin-left: auto; }
footer a { color: var(--muted); }

/* ---------------------------------------------------------------- guide */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 44px 0 80px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14.5px; }
.toc b { display: block; font-size: 12.5px; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); background: var(--sunken); text-decoration: none; }
.doc h1 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.doc .intro { margin-top: 12px; color: var(--muted); font-size: 17.5px; max-width: 44em; }
.doc article > section { padding: 44px 0 0; }
.doc h2 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.doc h2 .num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 11px; background: var(--cta); color: #fff; font-size: 16px; }
.doc h3 { margin-top: 26px; font-size: 18.5px; }
.doc section > p, .doc .text > p { margin-top: 12px; }
.doc ul, .doc ol.plain { margin: 12px 0 0; padding-left: 1.3em; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--faint); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-top: 8px; }
.split.wide { grid-template-columns: minmax(0, 1fr); }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.shot.page { border-radius: 12px; }
figure { margin: 0; }
.tip { margin-top: 16px; padding: 13px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--fg); font-size: 15px; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.tip b { color: var(--brand); }
.warn { margin-top: 16px; padding: 13px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: 15px; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 5px; }

.prose { max-width: 780px; padding: 44px 0 80px; }
.prose h1 { font-size: 34px; font-weight: 800; }
.prose h2 { font-size: 21px; margin-top: 34px; }
.prose p, .prose ul { margin-top: 12px; color: var(--fg); }
.prose .muted { color: var(--muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero .wrap, .showcase, .install { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav a:not(.keep) { display: none; }
  .site-header .wrap { gap: 10px; }
  .brand small { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; }
  .hero { padding-top: 44px; }
  .features, .flow { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .shot { max-width: 320px; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
