:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg2: #f6f7f9; --bg3: #e9ebef; --fg: #111827; --fg2: #5f6773; --line: #e5e7eb;
  --accent: #1a73e8; --accent-fg: #fff; --danger: #dc2626; --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1d20; --bg2: #24272b; --bg3: #30343a; --fg: #e8e9eb; --fg2: #9aa0a6; --line: #363a40; --accent: #8ab4f8; --accent-fg: #0b1a33; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
kbd { font: 13px/1 ui-monospace, Menlo, Consolas, monospace; padding: 3px 7px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
code { font: 14px ui-monospace, Menlo, Consolas, monospace; background: var(--bg2); padding: 2px 6px; border-radius: 5px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 650; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { color: var(--fg2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: var(--bg2); color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--bg2); color: var(--fg); }
.btn-secondary:hover { background: var(--bg3); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* sections */
.promo { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 820px) { .promo { grid-template-columns: 3fr 2fr; } }
.hero { padding: 56px 0 32px; text-align: center; }
.hero .lead { font-size: 19px; color: var(--fg2); max-width: 640px; margin: 0 auto 24px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--fg2); margin-top: 12px; }
section { padding: 36px 0; }
.card { background: var(--bg2); border-radius: var(--radius); padding: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.muted { color: var(--fg2); }
.center { text-align: center; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--fg2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.site-footer a { color: inherit; }

/* steps (welcome) */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .num { counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.step .num::before { content: counter(step); }
.shot { margin: 12px 0 0; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--bg2); }
.shot img { display: block; width: 100%; }
.shot .placeholder { padding: 40px 20px; text-align: center; color: var(--fg2); font-size: 14px; }

/* picker tool */
.tool { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .tool { grid-template-columns: 3fr 2fr; } }
.drop { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg2); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 20px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg2)); }
.drop.has-image { padding: 0; border-style: solid; min-height: 0; cursor: crosshair; display: block; }
.drop canvas { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); }
.drop .hint { color: var(--fg2); }
.drop .hint strong { color: var(--fg); }
.loupe { position: absolute; pointer-events: none; width: 110px; height: 110px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); overflow: hidden; display: none; transform: translate(-50%, -140%); image-rendering: pixelated; background: #fff; }
.loupe canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.loupe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%,-50%); border: 2px solid #fff; outline: 1px solid rgba(0,0,0,.5); }
.result { display: flex; flex-direction: column; gap: 14px; }
.result .sw { width: 100%; aspect-ratio: 3/1; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background: repeating-conic-gradient(var(--bg3) 0 25%, var(--bg2) 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; color: var(--fg2); }
.codes { display: grid; gap: 6px; }
.codes button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; text-align: left; }
.codes button:hover { background: var(--bg2); }
.codes .lbl { font-size: 12px; color: var(--fg2); font-weight: 600; letter-spacing: .05em; }
.codes .val { font: 15px ui-monospace, Menlo, Consolas, monospace; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 40px; height: 40px; border-radius: 9px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .08s; }
.swatches button:hover { transform: scale(1.1); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); z-index: 20; }
[hidden] { display: none !important; }

/* uninstall form */
.choices { display: grid; gap: 10px; margin: 18px 0; }
.choices label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.choices label:hover { background: var(--bg2); }
.choices input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
textarea { width: 100%; min-height: 96px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; resize: vertical; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--fg2); }
