/* ============================================================
   Abel Tools website
   Built on the Abel Tools Installer's own design language (v50):
   warm neutrals, ink and lime, Bricolage Grotesque, Figtree and
   JetBrains Mono. Dark is the default; body.light switches.
   © 2026 Abel Achenkunju. All rights reserved.
   ============================================================ */

:root {
    --f-display: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;
    --f-body: 'Figtree', -apple-system, system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    --bg: #111114;
    --bg-2: #16161A;
    --card: #1B1B20;
    --card-2: #202026;
    --line: #2A2A31;
    --line-2: #34343B;
    --ink: #F2F1EE;
    --ink-2: #C8C8D0;
    --muted: #9C9CA6;
    --lime: #CDEB52;
    --lime-ink: #17171B;
    --brand-bg: #CDEB52;
    --brand-fg: #17171B;
    --btn: #F2F1EE;
    --btn-fg: #17171B;
    --btn2: #1B1B20;
    --btn2-line: #34343B;
    --panel: #1B1B20;
    --panel-line: #2E2E36;
    --panel-ink: #F2F1EE;
    --panel-muted: #B6B6BF;
    --chip: #24242A;
    --lb-bg: #132A1B;
    --lb-line: #23452F;
    --lb-ink: #E7F2EA;
    --lb-muted: #A9C4B1;
    --lb-check: #7FD9A3;
    --ok-ink: #7FD9A3;
    --warn-bg: #2E2614;
    --warn-ink: #F2C94C;
    --bad-bg: #3A1B17;
    --bad-ink: #FF9A8A;
    --retired: #F08A65;
    --scrim: rgba(0, 0, 0, 0.6);
    --frame: #0B0B0D;
    --frame-line: #2E2E35;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    --focus: #CDEB52;

    --c-productivity: #3B93F0;
    --c-customization: #8583F0;
    --c-battery: #3FBF7A;
    --c-images: #F09A2A;
    --c-voice: #4AB3E0;
    --c-utilities: #9C9CA6;
    --c-developer: #4B95EA;
    --c-legacy: #F08A65;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 20px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    color-scheme: dark;
}

body.light {
    --bg: #F4F2ED;
    --bg-2: #ECE9E2;
    --card: #FFFFFF;
    --card-2: #FAF9F6;
    --line: #E6E2D9;
    --line-2: #D6D2C8;
    --ink: #17171B;
    --ink-2: #3D3D45;
    --muted: #5E5E68;
    --brand-bg: #17171B;
    --brand-fg: #CDEB52;
    --btn: #17171B;
    --btn-fg: #FFFFFF;
    --btn2: #FFFFFF;
    --btn2-line: #D6D2C8;
    --panel: #17171B;
    --panel-line: transparent;
    --panel-ink: #F4F2ED;
    --panel-muted: #BDBBB4;
    --chip: #ECE9E2;
    --lb-bg: #E4F0E6;
    --lb-line: #CEE3D3;
    --lb-ink: #12301D;
    --lb-muted: #3F5E49;
    --lb-check: #17643C;
    --ok-ink: #17643C;
    --warn-bg: #FBF1D9;
    --warn-ink: #7A5300;
    --bad-bg: #FBE9E6;
    --bad-ink: #B42318;
    --retired: #A1401C;
    --scrim: rgba(23, 23, 27, 0.42);
    --frame: #17171B;
    --frame-line: #2A2A31;
    --shadow: 0 30px 70px rgba(23, 23, 27, 0.22);
    --focus: #17171B;

    --c-productivity: #0A7AE8;
    --c-customization: #5E5CE6;
    --c-battery: #2E9E63;
    --c-images: #E58300;
    --c-voice: #2E95C7;
    --c-utilities: #55555C;
    --c-developer: #1F7AE0;
    --c-legacy: #A1401C;

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
strong, b { font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 500;
}
.eyebrow { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--btn); color: var(--btn-fg); padding: 8px 16px; border-radius: var(--r-sm);
    font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
    transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--btn); color: var(--btn-fg); }
.btn-ink:hover { background: color-mix(in srgb, var(--btn) 88%, var(--bg)); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #D8F26E; }
.btn-ghost { background: var(--btn2); border-color: var(--btn2-line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.icon-btn {
    width: 44px; height: 44px; display: inline-grid; place-items: center; flex-shrink: 0;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
    transition: border-color 0.18s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Announcement ---------- */
.announce {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    font-size: 14px;
}
.announce .wrap {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 44px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center;
}
.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
    background: var(--lime); color: var(--lime-ink);
    font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.announce a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce a .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.download .brand-logo { width: 60px; height: 60px; border-radius: 16px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px;
    text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px;
    transition: background-color 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--card); color: var(--ink); }
.nav-links img { width: 18px; height: 18px; border-radius: 4px; }
.nav-links .ext { width: 13px; height: 13px; opacity: 0.6; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.theme-toggle .sun-icon { display: none; }
body.light .theme-toggle .sun-icon { display: block; }
body.light .theme-toggle .moon-icon { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-copy { max-width: 820px; }
.hero h1 {
    font-size: clamp(44px, 7.4vw, 92px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 16px 0 24px;
}
.hero h1 .soft { color: var(--muted); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--lime); }
body.light .hero-facts li::before { background: var(--ink); }

.device { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px; }
.device-frame {
    position: relative; padding: clamp(10px, 1.4vw, 18px);
    background: var(--frame); border: 1px solid var(--frame-line);
    border-radius: clamp(22px, 3vw, 40px);
    box-shadow: var(--shadow);
}
.device-frame::before {
    content: ''; position: absolute; top: clamp(4px, 0.6vw, 8px); left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: #2A2A31;
}
.device-frame img { width: 100%; height: auto; border-radius: clamp(12px, 1.8vw, 24px); }
.device figcaption { margin-top: 16px; text-align: center; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 620px; }
.section-head p.mono { font-size: 13px; color: var(--muted); }

/* ---------- Collection ---------- */
.collection { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: start; }
.cats { position: sticky; top: 96px; display: grid; gap: 4px; }
.cats .mono { padding: 0 12px 8px; color: var(--muted); }
.cat {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left;
    color: var(--ink-2); font-size: 16px; font-weight: 500;
    transition: background-color 0.18s, color 0.18s;
}
.cat:hover { background: var(--card); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cat .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex-shrink: 0; }
.cat .count { margin-left: auto; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.cat-all .dot { background: var(--ink); }

[data-cat="Productivity"] { --c: var(--c-productivity); }
[data-cat="Customization"] { --c: var(--c-customization); }
[data-cat="Battery"] { --c: var(--c-battery); }
[data-cat="Images"] { --c: var(--c-images); }
[data-cat="Voice"] { --c: var(--c-voice); }
[data-cat="Utilities"] { --c: var(--c-utilities); }
[data-cat="Developer"] { --c: var(--c-developer); }
[data-cat="Legacy"] { --c: var(--c-legacy); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
}
.tile[hidden] { display: none; }
.tile img { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; }
.tile h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.tile-cat { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.tile-cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tile .tag, .tile .flag { position: absolute; top: 20px; right: 20px; }
.flag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
    border: 1px solid var(--line-2); color: var(--muted);
    font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.flag-retired { color: var(--retired); border-color: color-mix(in srgb, var(--retired) 40%, transparent); }
.tile.is-retired img { filter: grayscale(1); opacity: 0.6; }
.collection-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.collection-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- leaf blower V2 spotlight ---------- */
.spotlight {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg);
    background: var(--lb-bg); border: 1px solid var(--lb-line); color: var(--lb-ink);
}
.spotlight-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.spotlight-head img { width: 64px; height: 64px; border-radius: 16px; }
.spotlight h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -0.02em; }
.spotlight .lead { margin-top: 16px; font-size: 18px; color: var(--lb-muted); max-width: 520px; }
.spotlight .hero-actions { margin-top: 28px; }
.spotlight .btn-ghost { background: transparent; border-color: var(--lb-line); color: var(--lb-ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--lb-check); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.why-item { grid-column: span 2; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.why-item:nth-child(-n+2) { grid-column: span 3; }
.why-item h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.why-item p { color: var(--muted); max-width: 440px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; list-style: none; margin: 0; padding: 0;
    border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.step { padding: clamp(24px, 3vw, 36px); }
.step + .step { border-left: 1px solid var(--line); }
.step .num {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--card); border: 1px solid var(--line); font-family: var(--f-mono); font-weight: 600; font-size: 14px;
}
.step h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; margin: 20px 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); }
.step strong { color: var(--ink); font-weight: 600; }

/* ---------- Download ---------- */
.download {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--panel-line); color: var(--panel-ink);
}
.download h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; letter-spacing: -0.02em; margin-top: 24px; }
.download .lead { margin-top: 16px; color: var(--panel-muted); font-size: 18px; max-width: 480px; }

.version-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--panel-ink) 18%, transparent); color: var(--panel-muted);
    font-family: var(--f-mono); font-size: 13px; font-weight: 500;
}
.pill .icon { width: 14px; height: 14px; }
button.pill { background: transparent; cursor: pointer; font-family: var(--f-body); font-size: 14px; color: var(--panel-ink); }
button.pill:hover { border-color: color-mix(in srgb, var(--panel-ink) 40%, transparent); }
.download-action {
    display: flex; flex-direction: column; justify-content: center; gap: 16px;
    padding: clamp(20px, 3vw, 32px); border-radius: var(--r);
    background: color-mix(in srgb, var(--panel-ink) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--panel-ink) 10%, transparent);
}
.download-action .btn-lime { width: 100%; min-height: 56px; font-size: 18px; }
.requirements { display: flex; flex-wrap: wrap; gap: 8px; }
.official { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--panel-muted); }
.official .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--lime); }
.official strong { color: var(--panel-ink); font-weight: 600; }

/* Not an iPad: explained calmly, with the way forward first */
.elsewhere { display: grid; gap: 12px; }
.elsewhere h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.elsewhere p { color: var(--panel-muted); font-size: 16px; }
.elsewhere .link-box {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: 12px;
    background: color-mix(in srgb, var(--panel-ink) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--panel-ink) 14%, transparent);
}
.elsewhere .link-box code { font-family: var(--f-mono); font-size: 13px; color: var(--panel-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elsewhere .btn-copy { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--lime); color: var(--lime-ink); }
/* Grid children may shrink below their content (the link box would push the panel wider) */
.collection > *, .spotlight > *, .download > *, .elsewhere > * { min-width: 0; }
.qr-row { display: flex; align-items: center; gap: 16px; }
.qr-wrap { flex-shrink: 0; width: 112px; padding: 8px; border-radius: 12px; background: #fff; }
.qr-wrap .qr { width: 100%; height: auto; }
.qr-row .link-box { flex: 1; min-width: 0; }
.no-qr-hint { display: none; }
.download-anyway-link { color: var(--panel-ink); font-size: 15px; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(80px, 11vw, 140px); border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer .brand { margin: 0 0 16px; }
.footer p + p { margin-top: 8px; }
.footer h3 { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer .claude-icon { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; border-radius: 3px; }
.footer a { text-underline-offset: 3px; }
.footer-id { margin-top: 16px; font-size: 13px; }
.footer-id button {
    font: inherit; font-family: var(--f-mono); background: none; border: 0; padding: 0; color: var(--ink-2);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; word-break: break-all;
}
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.text-btn {
    background: none; border: 1px solid var(--line); border-radius: 999px; min-height: 36px; padding: 0 16px;
    color: var(--ink-2); font-size: 14px; cursor: pointer;
}
.text-btn:hover { border-color: var(--line-2); color: var(--ink); }

.scroll-to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 30;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
}
.scroll-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-to-top svg { width: 20px; height: 20px; }
.scroll-indicator { display: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 16px 0; }
.page-hero .hero-lead { max-width: 680px; }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--card); }

/* Library */
.toolbar { display: grid; gap: 16px; margin: clamp(32px, 4vw, 48px) 0 24px; }
.search { position: relative; max-width: 560px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; min-height: 52px; padding: 0 16px 0 48px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
    -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--card); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); }
.chip .count { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
[data-cat="Other"] { --c: var(--c-utilities); }
.count-line { color: var(--muted); }
.tiles-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile-fallback {
    width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center;
    background: var(--chip); color: var(--muted);
}
.tile-fallback svg { width: 24px; height: 24px; }
.skeleton {
    min-height: 196px; background: var(--card-2);
}
.state-box {
    display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 5vw, 48px); text-align: center;
    border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--muted);
}
.state-box h2 { font-size: 26px; font-weight: 600; color: var(--ink); }
.state-box .btn { margin-top: 4px; }
.cta-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--panel-line); color: var(--panel-ink);
}
.cta-strip h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.cta-strip p { color: var(--panel-muted); margin-top: 8px; }

/* leaf blower V2 page */
.lb-hero { padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--lb-bg); border: 1px solid var(--lb-line); color: var(--lb-ink); }
.lb-hero .spotlight-head img { width: 80px; height: 80px; border-radius: 20px; }
.lb-hero h1 { font-size: clamp(48px, 8vw, 104px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.lb-hero .hero-lead { color: var(--lb-muted); margin-top: 20px; max-width: 700px; }
.lb-hero .btn-ghost { background: transparent; border-color: var(--lb-line); color: var(--lb-ink); }
.release {
    display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin-top: 28px; padding: 16px 20px;
    border-radius: var(--r); background: color-mix(in srgb, var(--lb-ink) 7%, transparent); border: 1px solid var(--lb-line);
}
.release p { color: var(--lb-ink); font-size: 16px; }
.v1-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.v1-item { padding: 20px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.v1-item h3 { display: flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.v1-item h3 .icon { width: 16px; height: 16px; color: var(--bad-ink); }
.v1-item p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.group + .group { margin-top: 40px; }
.group-label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.feature { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feature h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.code { font-family: var(--f-mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px; background: var(--chip); color: var(--ink); }
.lb-cta { display: grid; gap: 16px; justify-items: start; }
.lb-cta .mono { color: var(--lb-muted); }
.lb-cta-title { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -0.02em; }
.lb-cta .hero-lead { margin-top: 0; }

/* ---------- Modals ---------- */
.changelog-modal, .card-modal {
    position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
    background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.changelog-modal.active, .card-modal.active { opacity: 1; visibility: visible; }
.changelog-modal-content, .card-modal-content {
    width: 100%; max-width: 520px; max-height: min(86vh, 760px); overflow: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
    transform: translateY(12px) scale(0.98); transition: transform 0.25s var(--ease);
}
.changelog-modal.active .changelog-modal-content, .card-modal.active .card-modal-content { transform: none; }
.changelog-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.changelog-eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.changelog-modal-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.changelog-modal-close, .card-modal-close {
    width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card-2);
    transition: border-color 0.18s;
}
.changelog-modal-close:hover, .card-modal-close:hover { border-color: var(--muted); }
.changelog-modal-close .icon, .card-modal-close svg { width: 16px; height: 16px; }
.changelog-modal-body { padding: 20px 24px 24px; color: var(--ink-2); }
.changelog-modal-body p + p, .changelog-modal-body p + ul, .changelog-modal-body ul + p { margin-top: 12px; }
.changelog-modal-body strong { color: var(--ink); }
.changelog-modal-body h1, .changelog-modal-body h2, .changelog-modal-body h3 { font-size: 20px; margin: 18px 0 8px; color: var(--ink); }
.changelog-modal-body ul, .changelog-modal-body ol { padding-left: 20px; margin: 10px 0 0; }
.changelog-modal-body li + li { margin-top: 6px; }
.changelog-modal-body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.changelog-modal-body code { font-family: var(--f-mono); font-size: 0.9em; background: var(--chip); padding: 1px 5px; border-radius: 5px; }
.changelog-modal-body a { color: var(--ink); text-underline-offset: 3px; }
.changelog-loading { display: grid; place-items: center; gap: 14px; padding: 28px 0; color: var(--muted); }
.changelog-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.changelog-error { color: var(--bad-ink); }
.modal-lead { font-size: 16px; }
.install-steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 16px 0 0 !important; display: grid; gap: 8px; }
.install-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; margin: 0 !important; }
.install-steps li::before {
    content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
    background: var(--chip); font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--ink);
}
.notice-box { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-top: 4px; }
.notice-box .icon { margin-top: 2px; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice-bad { background: var(--bad-bg); color: var(--bad-ink); }
.notice-box strong { color: inherit; }
.warn-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin-top: 16px !important; }
.warn-list li { display: flex; gap: 8px; align-items: flex-start; margin: 0 !important; }
.warn-list .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--bad-ink); }
.confirm-actions { display: flex; gap: 8px; margin-top: 24px; }
.confirm-actions > * { flex: 1; }
.card-modal-content { padding: 28px; text-align: center; position: relative; max-width: 420px; }
.card-modal-close { position: absolute; top: 16px; right: 16px; }
.card-modal-icon img { width: 88px; height: 88px; border-radius: 20px; margin: 8px auto 16px; }
.card-modal-title { font-size: 26px; font-weight: 600; }
.card-modal-description { margin-top: 10px; color: var(--ink-2); }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].revealed { opacity: 1; transform: none; }
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; transition: none !important; }
body.no-motion [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .changelog-spinner { animation-duration: 2s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-links a { padding: 0 9px; }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-grid; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
        padding: 8px var(--gutter) 16px; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links a { min-height: 48px; font-size: 17px; }
    .collection { grid-template-columns: 1fr; gap: 16px; }
    .cats {
        position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
    }
    .cats::-webkit-scrollbar { display: none; }
    .cats .mono { display: none; }
    .cat { width: auto; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; font-size: 15px; }
    .cat[aria-pressed="true"] { box-shadow: none; border-color: var(--ink); }
    .cat .count { margin-left: 2px; }
    .spotlight, .download { grid-template-columns: 1fr; }
    .why-item, .why-item:nth-child(-n+2) { grid-column: span 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .header .wrap { min-height: 64px; gap: 8px; }
    .brand-name span { display: none; }
    .header-actions .nav-cta { display: none; }
    .tiles { grid-template-columns: 1fr; }
    .why-item, .why-item:nth-child(-n+2) { grid-column: 1 / -1; padding-right: 0; }
    .steps { grid-template-columns: 1fr; }
    .step + .step { border-left: 0; border-top: 1px solid var(--line); }
    .hero-actions .btn { flex: 1 1 auto; }
    .qr-wrap, .qr-hint { display: none; }
    .no-qr-hint { display: inline; }
    .confirm-actions { flex-direction: column-reverse; }
    .release { flex-direction: column; gap: 8px; }
}

/* Inner pages, smaller screens */
@media (max-width: 1080px) {
    .tiles-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v1-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tiles-wide, .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tiles-wide, .features-grid, .v1-list { grid-template-columns: 1fr; }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
}
