/* SCleaner website — single stylesheet, mobile-first. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --border: #e3e7ee;
  --border-strong: #cfd6e0;
  --text: #1a1f2c;
  --text-muted: #5a6475;
  /* Accent #ECCCA2 (sand). --accent-fill is used for buttons and other filled shapes;
     --accent is for text and links, darker in the light theme so it stays readable. */
  --accent: #8b6534;
  --accent-hover: #6e4f26;
  --accent-soft: #fbf3e8;
  --accent-fill: #ECCCA2;
  --accent-fill-hover: #e2bb88;
  --green: #137a43;
  --green-soft: #e3f4ea;
  --amber: #8a5a00;
  --amber-soft: #fdf1d8;
  --gray-soft: #eef0f4;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --notice-text: #5c3c00;
  --header-bg: rgba(255, 255, 255, .96);
  --dot: #d4d9e1;
  --sidebar-bg: #fafbfc;
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .1);
  --shadow-menu: 0 8px 16px rgba(16, 24, 40, .08);
  --on-accent: #2a1f12;
  color-scheme: light;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
}

/* Dark theme. The inline script in <head> sets data-theme from the saved choice or the
   system setting; without JS the media query below follows the system setting. */
:root[data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #161c24;
  --surface: #1a212b;
  --border: #2a3340;
  --border-strong: #3a4554;
  --text: #e6eaf0;
  --text-muted: #9aa5b5;
  --accent: #ECCCA2;
  --accent-hover: #f5ddbe;
  --accent-soft: #2e261c;
  --accent-fill: #ECCCA2;
  --accent-fill-hover: #f5ddbe;
  --green: #4cc58a;
  --green-soft: #15302a;
  --amber: #f0b54a;
  --amber-soft: #352a14;
  --gray-soft: #242c37;
  --danger: #ff7b6e;
  --danger-soft: #3a1c1a;
  --on-accent: #2a1f12;
  --notice-text: #f3d9a4;
  --header-bg: rgba(15, 20, 25, .92);
  --dot: #3a4554;
  --sidebar-bg: #151b23;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-menu: 0 8px 16px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1419; --bg-alt: #161c24; --surface: #1a212b; --border: #2a3340; --border-strong: #3a4554;
    --text: #e6eaf0; --text-muted: #9aa5b5; --accent: #ECCCA2; --accent-hover: #f5ddbe; --accent-soft: #2e261c; --accent-fill: #ECCCA2; --accent-fill-hover: #f5ddbe;
    --green: #4cc58a; --green-soft: #15302a; --amber: #f0b54a; --amber-soft: #352a14; --gray-soft: #242c37;
    --danger: #ff7b6e; --danger-soft: #3a1c1a; --on-accent: #2a1f12; --notice-text: #f3d9a4; --header-bg: rgba(15, 20, 25, .92);
    --dot: #3a4554; --sidebar-bg: #151b23; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; transition: background-color .2s, color .2s; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2, .h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--gray-soft); padding: .1em .35em; border-radius: 4px; }
.break { word-break: break-all; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--accent-fill); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 8px; color: var(--on-accent); }
.icon { flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9375rem; }
.btn-lg { min-height: 48px; padding: 12px 24px; }
.btn:disabled, fieldset:disabled .btn { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.5) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.js-theme .theme-toggle { display: inline-flex; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.brand:hover { color: var(--text); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
.site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 20px; box-shadow: var(--shadow-menu); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 12px 8px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.site-nav li a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-cta { width: 100%; margin-top: 16px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; position: static; padding: 0; border: 0; box-shadow: none; background: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a { border: 0; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .9375rem; }
  .site-nav li a:hover { background: var(--bg-alt); }
  .site-nav a[aria-current="page"] { background: var(--accent-soft); }
  .nav-cta { width: auto; margin: 0; }
}

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 0 32px; }
.section-head p { color: var(--text-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9375rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 640px; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .9375rem; color: var(--text-muted); }
.hero-note .icon { color: var(--green); }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

.page-hero { padding: 40px 0 24px; }
.page-hero h1 { margin-bottom: .4em; }
.page-hero-sm { padding-bottom: 8px; }
.hero-download { margin-top: 24px; }
.hero-download > p { margin-top: 12px; font-size: .9375rem; }
@media (min-width: 768px) { .page-hero { padding: 64px 0 32px; } }

/* App mockup: illustration of the home screen with interactive demos (src/lib/demos.js) */
.app-mockup { margin: 0; }
.app-mockup figcaption, .screenshot figcaption { margin-top: 10px; font-size: .8125rem; color: var(--text-muted); text-align: center; }
.mock-window { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .8125rem; }
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.mock-titlebar em { margin-left: 10px; font-style: normal; color: var(--text-muted); font-size: .75rem; }
.mock-body { display: grid; grid-template-columns: 1fr; }
.mock-sidebar { display: none; padding: 14px 10px; border-right: 1px solid var(--border); background: var(--sidebar-bg); }
.mock-sidebar b { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 6px 8px; }
.mock-nav { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; }
button.mock-nav { cursor: pointer; }
button.mock-nav:hover { background: var(--bg-alt); }
.mock-nav.is-active, .mock-nav.is-active:hover { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-main { padding: 16px; min-height: 430px; }
.mock-heading { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.mock-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: .75rem; }
.no-js .mock-hint, .no-js .mock-try { display: none; }
.mock-tasks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.mock-task { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; text-align: left; }
button.mock-task { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
button.mock-task:hover, button.mock-task.is-hint { border-color: var(--accent-fill); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.mock-task-text strong { display: block; font-size: .875rem; }
.mock-task-text span { color: var(--text-muted); }
.mock-try { position: absolute; top: -8px; right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-style: normal; font-weight: 700; font-size: .6875rem; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
button.mock-task:hover .mock-try, .mock-task.is-hint .mock-try, button.mock-task:focus-visible .mock-try { opacity: 1; transform: none; }
.mock-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; flex-shrink: 0; background: linear-gradient(160deg, var(--tone-light), var(--tone-dark)); }
@media (min-width: 560px) { .mock-body { grid-template-columns: 150px 1fr; } .mock-sidebar { display: block; } }

/* Demo views */
.demo { animation: demo-in .25s ease; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } }
.demo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.demo-back { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; padding: 2px 8px; font: inherit; cursor: pointer; }
.demo-back:hover { border-color: var(--accent); color: var(--accent); }
.demo-title { font-size: .9375rem; }
.demo-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-weight: 600; font-size: .6875rem; white-space: nowrap; }
.demo-sub { margin: 0 0 8px; color: var(--text-muted); }
.demo-status { margin: 12px 0 0; min-height: 2.8em; color: var(--text-muted); line-height: 1.4; }
.demo-status strong { color: var(--text); }
.demo-actions { margin-top: 10px; }
.demo-btn { min-height: 34px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--accent-fill); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.demo-btn:hover { background: var(--accent-fill-hover); }
.demo-btn:disabled { opacity: .6; cursor: default; }
.demo-btn.is-pulse:not(:disabled) { animation: demo-pulse 1.6s ease-out infinite; }
@keyframes demo-pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 204, 162, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(236, 204, 162, 0); } }
.demo input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }

/* Organize Files */
.org-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.org-file { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: transform .38s cubic-bezier(.5, 0, .75, 0), opacity .38s ease; }
.org-file.is-moving { transform: translateY(24px) scale(.85); opacity: 0; }
.org-file.is-gone { visibility: hidden; }
.org-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-dest { color: var(--accent); font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.org-file.is-planned .org-dest { opacity: 1; transform: none; }
.ext { display: inline-block; min-width: 34px; padding: 1px 4px; border-radius: 4px; color: #fff; font-weight: 700; font-size: .625rem; text-align: center; }
.ext-pdf { background: #D32F2F; } .ext-jpg { background: #2563EB; } .ext-mov { background: #6d55d6; }
.ext-doc { background: #0077B6; } .ext-zip { background: #6B7385; } .ext-mp3 { background: #E0245E; }
.org-folders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.org-folder { --tone-light: #5AB0FF; --tone-dark: #2563EB; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px dashed var(--border-strong); border-radius: 6px; color: var(--text-muted); }
.org-folder .icon { color: var(--tone-dark); }
.org-folder b { min-width: 16px; padding: 0 4px; border-radius: 999px; background: var(--gray-soft); color: var(--text); font-size: .6875rem; text-align: center; }
.org-folder.is-filled { border-style: solid; border-color: var(--tone-light); color: var(--text); }
.org-folder.is-filled b { background: var(--tone-dark); color: #fff; }
.org-folder.is-bump { animation: demo-bump .35s ease; }
@keyframes demo-bump { 50% { transform: scale(1.12); } }

/* Free Up Space */
.demo-progress { height: 6px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3FE0BE, #0E9F8A); }
.is-scanning .demo-progress i { width: 100%; transition: width 1.9s linear; }
.is-scanned .demo-progress i { width: 100%; }
.clean-path { margin: 6px 0 8px; color: var(--text-muted); font-family: var(--mono); font-size: .6875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clean-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.clean-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; opacity: .35; transition: opacity .3s, transform .35s ease; }
.clean-item.is-found { opacity: 1; }
.clean-item.is-removed { opacity: 0; transform: translateX(30px); }
.clean-item label { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.clean-item small { display: block; color: var(--text-muted); font-size: .6875rem; }
.clean-size { font-variant-numeric: tabular-nums; white-space: nowrap; }
.clean-disk { margin-top: 10px; }
.clean-disk p { display: flex; gap: 6px; align-items: baseline; margin: 4px 0 0; }
.disk-bar { height: 8px; border-radius: 999px; background: var(--green-soft); overflow: hidden; }
.disk-bar i { display: block; height: 100%; width: 88.5%; background: linear-gradient(90deg, #5AB0FF, #2563EB); transition: width .9s ease; }

/* Clean Up Mail */
.mail-inbox { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 8px; border-radius: 6px; background: var(--bg-alt); }
.mail-inbox .icon { color: #F0642E; }
.mail-inbox b { font-variant-numeric: tabular-nums; }
.mail-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mail-group { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 6px; opacity: .35; transition: opacity .3s; }
.mail-group.is-found { opacity: 1; }
.mail-group label { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.mail-bar { height: 6px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.mail-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFAE6B, #F0642E); transition: width .6s ease; }
.mail-group.is-found .mail-bar i { width: var(--w); }
.mail-group.is-cleared .mail-bar i { width: 0; }
.mail-group.is-cleared strong { text-decoration: line-through; color: var(--text-muted); }
.mail-group b { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }

/* Device Health */
.health-top { position: relative; width: 112px; height: 112px; margin: 0 auto 10px; }
.health-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.health-ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--gray-soft); }
.ring-fg { stroke: #16A34A; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.3s cubic-bezier(.2, .8, .2, 1); }
.is-checked .ring-fg { stroke-dashoffset: 12.6; }
.health-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.health-score b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.health-score span { color: var(--text-muted); font-size: .75rem; }
.is-checked .health-score span { color: var(--green); font-weight: 700; }
.health-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.health-row button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.health-row button:hover { border-color: var(--accent); }
.health-row strong { flex: 1; font-weight: 600; }
.health-value { color: var(--text-muted); opacity: 0; transition: opacity .3s; }
.health-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-soft); color: transparent; transition: background .3s, color .3s; }
.health-row.is-ok .health-check { background: var(--green); color: #fff; }
.health-row.is-ok .health-value { opacity: 1; }
.health-row p { margin: 4px 8px 2px 34px; color: var(--text-muted); font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .demo, .demo-btn.is-pulse:not(:disabled), .org-folder.is-bump { animation: none; }
  .mock-window *, .mock-window *::before { transition-duration: 0s !important; }
}

.screenshot { margin: 0; }
.screenshot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); width: 100%; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }

.platform-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.platform-card h3 { margin: 0; font-size: 1.25rem; }
.platform-card p { color: var(--text-muted); flex: 1; margin: 0; }
.platform-card .btn { margin-top: 8px; width: 100%; padding-inline: 12px; white-space: nowrap; }
.platform-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }

.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg, var(--tone-light), var(--tone-dark)); color: #fff; flex-shrink: 0; margin-bottom: 14px; box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }

/* App section colors (same as in the app): a light-to-dark gradient per section.
   Icon tiles without a section use "the rest" (gray). */
.feature-icon, .mock-icon { --tone-light: #A3ACBC; --tone-dark: #6B7385; }
.tone-commands { --tone-light: #9C7BFF; --tone-dark: #5B3FD1; }
.tone-organize { --tone-light: #5AB0FF; --tone-dark: #2563EB; }
.tone-cleanup { --tone-light: #3FE0BE; --tone-dark: #0E9F8A; }
.tone-uninstall { --tone-light: #FF8A80; --tone-dark: #D32F2F; }
.tone-mail { --tone-light: #FFAE6B; --tone-dark: #F0642E; }
.tone-chat { --tone-light: #F6DE95; --tone-dark: #C9982E; }
.tone-insights { --tone-light: #FF8AA6; --tone-dark: #E0245E; }
.tone-stats { --tone-light: #FFC46B; --tone-dark: #E67E22; }
.tone-disk-health { --tone-light: #6EE7A0; --tone-dark: #16A34A; }
.tone-network { --tone-light: #70D6FF; --tone-dark: #0077B6; }
.feature-card { display: flex; flex-direction: column; }
.feature-card p { color: var(--text-muted); }
.feature-card .text-link { margin-top: auto; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row .feature-icon { margin: 0; }
.feature-row h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-pills { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.platform-pills li { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 3px 4px 3px 10px; border: 1px solid var(--border); border-radius: 999px; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.4; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge-available { background: var(--green-soft); color: var(--green); }
.badge-coming-soon { background: var(--amber-soft); color: var(--amber); }
.badge-planned { background: var(--gray-soft); color: var(--text-muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--text-muted); margin: 0; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font-weight: 700; margin-bottom: 14px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Why */
.grid-why { gap: 28px; }
.why-item { display: flex; gap: 16px; }
.why-item .feature-icon { margin: 0; }
.why-item p { color: var(--text-muted); margin: 0; }
@media (min-width: 768px) { .grid-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-why { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 4px 16px; color: var(--text-muted); }

/* Spec table, lists */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.spec-table th { width: 40%; font-weight: 600; }
.numbered { padding-left: 1.4em; }
.numbered li { margin-bottom: 12px; padding-left: 4px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist .icon { color: var(--green); margin-top: 2px; }

/* Download */
.download-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.download-box.is-pending { padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-alt); }
.download-box.is-pending p { margin: 0; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.download-meta { font-size: .8125rem; color: var(--text-muted); margin: 6px 0 0; }
.download-card { display: flex; flex-direction: column; gap: 16px; }
.download-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--accent); }
.download-card-head h2 { margin: 0; color: var(--text); }
.download-card .text-link { margin-top: auto; }

/* Features filter */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.filter-btn { flex-shrink: 0; min-height: 40px; padding: 8px 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.filter-btn:hover { border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; margin-bottom: 12px; }
.filter-count { font-size: .9375rem; color: var(--text-muted); min-height: 1.5em; }
.empty-state { text-align: center; padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-muted); }
.empty-state .icon { margin: 0 auto 12px; color: var(--amber); }
.empty-state strong { color: var(--text); }

/* Help */
.search { position: relative; max-width: 640px; margin-top: 24px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search input { width: 100%; min-height: 52px; padding: 12px 16px 12px 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--surface); }
.search input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.help-categories { display: grid; gap: 20px; }
@media (min-width: 768px) { .help-categories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .help-categories { grid-template-columns: repeat(3, 1fr); } }
.help-cat-head { display: flex; gap: 14px; margin-bottom: 8px; }
.help-cat-head .feature-icon { margin: 0; }
.help-cat-head h2 { margin: 0 0 2px; }
.help-cat-head p { margin: 0; font-size: .9375rem; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li + li { border-top: 1px solid var(--border); }
.article-list a { display: block; padding: 12px 0; text-decoration: none; }
.article-list a strong { display: block; color: var(--text); }
.article-list a span { display: block; font-size: .9375rem; color: var(--text-muted); }
.article-list a:hover strong { color: var(--accent); }
[data-help-results] { margin-bottom: 32px; }
.help-contact { margin-top: 32px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .875rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.breadcrumbs span { color: var(--text-muted); }
.tags { font-size: .875rem; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { background: var(--gray-soft); color: var(--text); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8125rem; }
.related { margin: 40px 0 24px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Prose */
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }

/* Notice */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 24px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--notice-text); }
.notice p { margin: 0; }
.notice .icon { margin-top: 2px; }

/* Forms */
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: var(--surface); }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin: 6px 0 0; }
.field-hint { color: var(--text-muted); font-size: .875rem; margin: 6px 0 0; }
fieldset:disabled input, fieldset:disabled textarea { background: var(--bg-alt); cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); }
.form-status.is-success { background: var(--green-soft); color: var(--green); }
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-about { grid-column: 1 / -1; }
.footer-about p { color: var(--text-muted); margin-top: 10px; }
.footer-title { font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .8125rem; }
.footer-bottom p { margin: 0 0 6px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-about { grid-column: auto; } }
