/* MacWand website. The page reads as a Mac desktop: system font, window chrome,
   vibrancy and the accent blue macOS uses for selection. The MacWand window in the
   hero is a working imitation of the app (see app.js). */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --accent: #0a64e0;
  --accent-strong: #0a5ad0;
  --page: #ececf0;
  --surface: #fbfbfd;
  --window: rgba(246, 246, 248, .9);
  --window-solid: #f6f6f8;
  --titlebar: rgba(232, 232, 236, .92);
  --sidebar: rgba(226, 224, 236, .78);
  --card: rgba(0, 0, 0, .045);
  --hairline: rgba(0, 0, 0, .12);
  --text: #1d1d1f;
  --text-2: #5b5b63;
  --text-3: #8a8a92;
  --panel: rgba(236, 236, 240, .78);
  --row-hover: rgba(0, 0, 0, .05);
  --row-alt: rgba(0, 0, 0, .025);
  --shadow-window: 0 0 0 .5px rgba(0, 0, 0, .18), 0 22px 60px rgba(10, 8, 40, .38), 0 6px 16px rgba(10, 8, 40, .18);
  --radius-window: 12px;
  --radius-control: 6px;

  --brand: linear-gradient(135deg, #6b45f2, #218cfa);
  --reclaim: linear-gradient(90deg, #8c5cfa, #f2619e);
  --safe: #28a745;
  --review: #e8850c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-strong: #2a8fff;
    --page: #1c1c22;
    --surface: #26262d;
    --window: rgba(40, 40, 46, .9);
    --window-solid: #2a2a30;
    --titlebar: rgba(52, 52, 58, .92);
    --sidebar: rgba(46, 44, 58, .8);
    --card: rgba(255, 255, 255, .055);
    --hairline: rgba(255, 255, 255, .12);
    --text: #f2f2f5;
    --text-2: #b4b4bd;
    --text-3: #85858f;
    --panel: rgba(40, 40, 48, .78);
    --row-hover: rgba(255, 255, 255, .06);
    --row-alt: rgba(255, 255, 255, .03);
    --shadow-window: 0 0 0 .5px rgba(255, 255, 255, .14), 0 24px 70px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .35);
    --safe: #32d74b;
    --review: #ff9f0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
kbd {
  font: 500 .86em var(--font);
  display: inline-block;
  min-width: 1.6em;
  padding: .05em .4em;
  margin: 0 .08em;
  text-align: center;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 0 0 .5px var(--hairline), 0 1px 0 var(--hairline);
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Desktop ---------- */

.desktop {
  position: relative;
  min-height: max(100vh, 860px);
  overflow: hidden;
  color: var(--text);
  isolation: isolate;
}
.wallpaper { position: absolute; inset: 0; z-index: -1; }
.wallpaper svg { width: 100%; height: 100%; display: block; }

.menubar {
  position: relative;
  z-index: 20;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #fff;
  font-size: 13.5px;
  background: rgba(16, 14, 56, .3);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.menubar a { color: inherit; padding: 2px 9px; border-radius: 4px; }
.menubar a:hover { text-decoration: none; background: rgba(255, 255, 255, .18); }
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 2px; }
.menubar-app { font-weight: 700; }
.menubar-clock { padding: 0 6px; font-variant-numeric: tabular-nums; }

.desk {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) 28px 150px;
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}

/* Window chrome */
.window {
  background: var(--window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  overflow: hidden;
}
.titlebar {
  position: relative;
  height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--titlebar);
  border-bottom: .5px solid var(--hairline);
}
.lights { position: absolute; left: 13px; top: 13px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window-title { margin: 0; font: 600 13px var(--font); color: var(--text-2); }

/* About window */
.about { margin-top: 36px; }
.about .titlebar { background: transparent; border-bottom: 0; }
.about-body { padding: 4px 30px 32px; text-align: center; }
.about-icon { display: block; margin: 0 auto 6px; filter: drop-shadow(0 8px 14px rgba(20, 20, 80, .3)); }
.about h1 {
  margin: 0;
  font: 700 clamp(38px, 4.6vw, 48px)/1.05 var(--font-display);
  letter-spacing: -.035em;
}
.lede { margin: 12px auto 22px; max-width: 26ch; font-size: 17px; line-height: 1.45; color: var(--text-2); }
.about-meta { margin: 18px 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.quiet-link { font-size: 13px; }

/* Buttons that look like AppKit push buttons */
.push-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 28px;
  padding: 4px 16px;
  font: 500 14px var(--font);
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 1.5px rgba(0, 0, 0, .12);
  cursor: pointer;
  white-space: nowrap;
}
.push-button:hover { text-decoration: none; filter: brightness(.97); }
.push-button:active { filter: brightness(.92); }
.push-button:disabled { opacity: .45; cursor: default; filter: none; }
.push-button.default {
  color: #fff;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 2px rgba(10, 60, 160, .35);
}
.push-button.destructive { color: #fff; background: linear-gradient(#ff5a50, #e5352b); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 2px rgba(160, 20, 10, .3); }
.about .push-button.default { min-height: 40px; padding: 8px 28px; font-size: 16px; border-radius: 9px; }
.push-button.large { min-height: 42px; padding: 9px 26px; font-size: 16px; border-radius: 9px; }

/* Desktop file icon (the DMG) */
.desktop-file {
  width: 112px;
  margin: 36px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.desktop-file:hover { text-decoration: none; }
.dmg-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(#f4f4f7, #d6d6de);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(0, 0, 0, .15);
}
.desktop-file-name { padding: 1px 6px; border-radius: 4px; }
.desktop-file:hover .desktop-file-name, .desktop-file:focus-visible .desktop-file-name { background: var(--accent); text-shadow: none; }

/* ---------- Dock ---------- */

.dock {
  position: absolute;
  z-index: 15;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 8px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 10px 30px rgba(0, 0, 0, .25);
}
.dock-item {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.dock-item:hover { transform: translateY(-6px) scale(1.12); text-decoration: none; }
.dock-item img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.dock-dot { position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.dock-divider { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255, 255, 255, .35); }
.dock-item.bounce { animation: dock-bounce .6s cubic-bezier(.3, .7, .4, 1); }
@keyframes dock-bounce { 30% { transform: translateY(-14px); } 60% { transform: translateY(0); } 80% { transform: translateY(-5px); } }

/* Trash can, empty or full, drawn with CSS so it can change state. */
.trash-can {
  position: relative;
  width: 40px; height: 48px;
  display: block;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(225, 228, 238, .8) 50%, rgba(255, 255, 255, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 4px 8px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.trash-can::before {
  content: ""; position: absolute; inset: 6px 7px 7px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(80, 90, 120, .28) 5px 6.5px);
  border-radius: 2px;
}
.trash-can::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 22px; height: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(#fff, #dfe3ec);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15);
  transition: height .35s ease;
}
.trash-can.full::after {
  height: 20px;
  background:
    linear-gradient(170deg, #fff 0 30%, transparent 30%),
    linear-gradient(10deg, #f2f2f6 0 45%, transparent 45%),
    linear-gradient(#e9ecf3, #cfd5e2);
}

/* ---------- The MacWand window (mirrors the app) ---------- */

.app {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 600px;
  background: var(--window-solid);
  outline: none;
}
.app-sidebar {
  position: relative;
  padding: 40px 10px 12px;
  background: var(--sidebar);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  border-right: .5px solid var(--hairline);
  overflow: auto;
}
.app-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-heading { margin: 12px 8px 3px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.nav-item {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 5px 8px;
  font-size: 13px; text-align: left;
  border: 0; border-radius: 6px; background: none;
  cursor: default;
}
.nav-item:hover { background: var(--row-hover); }
.nav-item[aria-current="page"] { background: color-mix(in srgb, var(--text) 13%, transparent); }
.nav-item svg { width: 16px; height: 16px; color: var(--c); }
.nav-item .nav-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .nav-size { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-item.appear { animation: slide-in .4s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } }

.app-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.app-toolbar {
  height: 40px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 18px;
  border-bottom: .5px solid var(--hairline);
  background: var(--titlebar);
}
.app-title { margin: 0; font: 700 14.5px var(--font-display); }
.tool-button {
  width: 30px; height: 24px;
  display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none;
  color: var(--text-2); cursor: pointer;
}
.tool-button:hover { background: var(--row-hover); }
.tool-button svg { width: 15px; height: 15px; }
.app-detail { position: relative; flex: 1; min-height: 0; overflow: auto; }
.app-detail.list-mode { display: flex; flex-direction: column; overflow: hidden; }

/* Overview */
.overview { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.card { border-radius: 16px; background: var(--card); }

.disk-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.disk-head strong { font-size: 14.5px; }
.disk-head .spacer { flex: 1; }
.disk-head .free { font-weight: 600; font-variant-numeric: tabular-nums; }
.disk-head .of { color: var(--text-2); }
.disk-bar { position: relative; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.disk-bar .used { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ffab3d, #f08c12); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.disk-bar .reclaim { position: absolute; top: 0; bottom: 0; background: var(--reclaim); transition: width .9s cubic-bezier(.2, .8, .2, 1), left .9s cubic-bezier(.2, .8, .2, 1); }
.disk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.disk-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--c); vertical-align: 1px; }

.welcome { padding: 34px 20px 30px; text-align: center; }
.welcome-icon { position: relative; width: 92px; height: 92px; margin: 0 auto 16px; }
.welcome-icon::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: var(--brand); filter: blur(24px); opacity: .55; animation: glow 2.4s ease-in-out infinite alternate; }
.welcome-icon img { position: relative; width: 92px; height: 92px; }
@keyframes glow { to { opacity: .85; transform: scale(1.12); } }
.welcome h3 { margin: 0 0 6px; font: 700 22px var(--font-rounded); }
.welcome p { margin: 0 auto 18px; max-width: 46ch; font-size: 13.5px; color: var(--text-2); }
.welcome .push-button { min-height: 34px; padding: 6px 20px; font-size: 15px; border-radius: 8px; }

.scanning { display: flex; align-items: center; gap: 22px; padding: 20px 22px; }
.radar { position: relative; width: 116px; height: 116px; flex: none; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #6d5df5; animation: ring 2.4s linear infinite; opacity: 0; }
.radar .ring:nth-child(2) { animation-delay: .8s; }
.radar .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.radar .beam { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent) 50%, transparent)); animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radar .lens { position: absolute; inset: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.radar .lens svg { width: 26px; height: 26px; }
.scan-title { margin: 0 0 10px; font: 700 19px var(--font-rounded); }
.scan-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.scan-stats strong { display: block; font: 600 19px var(--font-rounded); font-variant-numeric: tabular-nums; }
.scan-stats span { font-size: 11px; color: var(--text-2); }
.scan-stats .reclaim-text { background: var(--reclaim); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scan-path { margin: 10px 0 0; font: 11px var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }

.result { display: flex; align-items: center; gap: 26px; padding: 18px 22px; }
.donut { position: relative; width: 190px; height: 190px; flex: none; animation: donut-in .9s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes donut-in { from { opacity: 0; transform: scale(.7) rotate(-60deg); } }
.donut svg { width: 100%; height: 100%; overflow: visible; }
.donut .slice { transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 95px 95px; transform: scale(.97); pointer-events: none; }
.donut .slice.hot { transform: scale(1.04); }
.donut.dim .slice:not(.hot) { opacity: .35; }
/* Unscaled hit areas on top, so the hover target doesn't move under the pointer. */
.donut .hit { fill: transparent; cursor: pointer; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; line-height: 1.2; }
.donut-center strong { font: 700 17px var(--font-rounded); font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 11px; color: var(--text-2); }
.result-side { min-width: 0; flex: 1; }
.result-side .label { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.big-number { margin: 0; font: 700 34px/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; background: var(--reclaim); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footnote { margin: 2px 0 8px; font-size: 11px; color: var(--text-3); }
.legend { list-style: none; margin: 0; padding: 0; }
.legend button {
  width: 100%; max-width: 300px;
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 2px 6px;
  font-size: 12.5px; text-align: left;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
}
.legend button:hover, .legend button.hot { background: var(--row-hover); }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend .size { color: var(--text-2); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 13px 14px;
  text-align: left;
  border: 0; border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 0 var(--c);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
  animation: tile-in .45s cubic-bezier(.2, .9, .3, 1.15) backwards;
}
.tile:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent), 0 10px 22px rgba(0, 0, 0, .14); }
@keyframes tile-in { from { opacity: 0; transform: scale(.9); } }
.tile-name { font-size: 13px; font-weight: 600; }
.tile-size { font: 700 21px/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.tile-detail { font-size: 11px; color: var(--text-2); }
.tile-bar { height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.tile-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.badge-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: 0 3px 6px color-mix(in srgb, var(--c) 40%, transparent); flex: none; }
.badge-icon svg { width: 15px; height: 15px; }

/* List sections */
.list-head {
  flex: none;
  display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  border-bottom: .5px solid var(--hairline);
}
.list-total { display: flex; align-items: center; gap: 10px; }
.list-total .badge-icon { width: 36px; height: 36px; }
.list-total strong { display: block; font: 700 23px/1.1 var(--font-rounded); font-variant-numeric: tabular-nums; }
.list-total span { font-size: 12px; color: var(--text-2); }
.list-summary { margin: 7px 0 4px; font-size: 12px; color: var(--text-2); }
.safety { font-size: 12px; font-weight: 600; }
.safety.safe { color: var(--safe); }
.safety.review { color: var(--review); }
.bars { display: grid; gap: 5px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 58px; align-items: center; gap: 8px; font-size: 11.5px; }
.bar-row .bar-name { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar-track { height: 9px; display: flex; }
.bar-row .bar-fill { display: flex; height: 100%; border-radius: 99px; overflow: hidden; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar-row .bar-fill i { height: 100%; }
.bar-row .bar-size { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-legend { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 4px; font-size: 11px; color: var(--text-2); }
.bar-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--c); }
.toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; cursor: pointer; }
.toggle input { appearance: none; width: 28px; height: 16px; margin: 0; border-radius: 99px; background: color-mix(in srgb, var(--text) 22%, transparent); position: relative; cursor: pointer; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(12px); }

.table-wrap { flex: 1; min-height: 0; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.table th {
  position: sticky; top: 0; z-index: 1;
  padding: 5px 10px;
  font-weight: 500; font-size: 11.5px; text-align: left; color: var(--text-2);
  background: var(--window-solid);
  border-bottom: .5px solid var(--hairline);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.table th.num, .table td.num { text-align: right; }
.table th[aria-sort]::after { content: " ▾"; font-size: 10px; }
.table th[aria-sort="ascending"]::after { content: " ▴"; }
.table td { padding: 4px 10px; height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.table tbody tr { cursor: default; transition: background .12s; }
.table tbody tr:nth-child(even) { background: var(--row-alt); }
.table tbody tr:hover { background: var(--row-hover); }
.table tbody tr[aria-selected="true"] { background: var(--accent); color: #fff; }
.table tbody tr[aria-selected="true"] .muted, .table tbody tr[aria-selected="true"] .warn { color: rgba(255, 255, 255, .8); }
.table tbody tr[aria-selected="true"] .tag { background: rgba(255, 255, 255, .22); }
.table tbody tr.leaving { animation: leave .45s ease-in forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(40px); } }
.table .muted { color: var(--text-2); }
.table .warn { color: var(--review); }
.name-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.name-cell .name { overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; padding: 0 6px; font-size: 10.5px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.file-icon { width: 16px; height: 16px; flex: none; }
.app-icon { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 5px; font: 700 10px var(--font-rounded); color: #fff; background: var(--c); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.empty-list { padding: 40px 20px; text-align: center; color: var(--text-2); font-size: 13px; }

.action-bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px;
  border-top: .5px solid var(--hairline);
  background: var(--titlebar);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.action-bar .hint { color: var(--text-2); }
.action-bar .push-button { min-height: 26px; padding: 3px 14px; font-size: 13px; }

/* Sheet (confirmation), slides down from the toolbar like an AppKit sheet */
.sheet {
  position: absolute; z-index: 5;
  top: 40px; left: 50%;
  width: min(320px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px 20px 16px;
  text-align: center;
  border-radius: 0 0 12px 12px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 .5px var(--hairline), 0 18px 40px rgba(0, 0, 0, .3);
  animation: sheet-in .28s cubic-bezier(.2, .9, .3, 1);
}
@keyframes sheet-in { from { transform: translate(-50%, -110%); } }
.sheet h3, .alert h3 { margin: 8px 0 4px; font-size: 13.5px; font-weight: 700; }
.sheet p, .alert p { margin: 0 0 14px; font-size: 12px; color: var(--text-2); white-space: pre-line; }
.sheet-buttons { display: flex; justify-content: center; gap: 8px; }
.sheet-buttons .push-button { flex: 1; min-height: 26px; font-size: 13px; }

.toast {
  position: absolute; z-index: 4;
  bottom: 56px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 99px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 .5px var(--hairline), 0 10px 26px rgba(0, 0, 0, .25);
  font-size: 12px;
  white-space: nowrap;
  animation: toast-in .4s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px); } }
.toast .check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--safe); color: #fff; flex: none; }
.toast strong { display: block; font-size: 12.5px; }
.toast span { color: var(--text-2); }

/* Finder alert */
.alert-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .25); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.alert {
  width: min(300px, calc(100vw - 32px));
  padding: 20px 20px 16px;
  text-align: center;
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 .5px var(--hairline), 0 24px 60px rgba(0, 0, 0, .4);
  animation: alert-in .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes alert-in { from { transform: scale(.92); opacity: 0; } }
.alert-icon { margin: 0 auto; width: 34px; height: 42px; }

/* Notification banner */
.notification {
  position: fixed;
  z-index: 40;
  top: 40px; right: 14px;
  width: min(344px, calc(100vw - 28px));
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px 12px 12px;
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 .5px var(--hairline), 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 13px;
}
.notification:not([hidden]) { animation: note-in .35s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes note-in { from { transform: translateX(110%); } }
.notification strong { font-size: 13px; }
.notification p { margin: 1px 0 0; color: var(--text-2); line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Sections below the desktop ---------- */

main { padding: 0 24px; }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin: 0 0 10px; font: 700 clamp(30px, 4vw, 40px)/1.12 var(--font-display); letter-spacing: -.025em; }
.section-head p { margin: 0; font-size: 17px; color: var(--text-2); }

.features { padding: 104px 0 40px; }
.settings { max-width: 860px; margin: 0 auto; background: var(--window-solid); }
.settings-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 380px; }
.sidebar {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px;
  background: color-mix(in srgb, var(--window-solid) 70%, var(--page));
  border-right: .5px solid var(--hairline);
}
.sidebar [role="tab"] {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px;
  font: 14px var(--font);
  color: var(--text);
  text-align: left;
  background: none; border: 0; border-radius: 6px;
  cursor: pointer;
}
.sidebar [role="tab"]:hover { background: var(--row-hover); }
.sidebar [aria-selected="true"], .sidebar [aria-selected="true"]:hover { background: var(--accent); color: #fff; }
.side-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--c); color: #fff; flex: none; }
.side-icon svg { width: 14px; height: 14px; }
.pane { padding: 28px 32px 32px; }
.pane h3 { margin: 0 0 8px; font: 700 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.pane p { margin: 0 0 20px; max-width: 60ch; color: var(--text-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row div { padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline); }
.stat-row strong { display: block; font: 700 22px var(--font-rounded); }
.stat-row span { font-size: 12.5px; color: var(--text-2); }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 5px 12px; font-size: 13.5px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline); }
.paths { margin: 0; padding: 14px 16px; overflow: auto; font: 12.5px/1.7 var(--mono); color: var(--text-2); background: var(--surface); border-radius: 9px; box-shadow: 0 0 0 .5px var(--hairline); }
.paths b { color: var(--text); font-weight: 600; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline); }
.check-list .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.safe { background: var(--safe); }
.dot.review { background: var(--review); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 13px; }
.timeline li { padding: 8px 10px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline); }
.timeline li:first-child { background: var(--accent); color: #fff; box-shadow: none; }

.install { padding: 88px 0 96px; max-width: 860px; margin: 0 auto; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  font: 600 15px var(--font);
  color: #fff; background: var(--accent); border-radius: 50%;
}
.steps h3 { margin: 0 0 6px; font: 600 17px var(--font-display); }
.steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.install-note { margin: 36px auto 0; max-width: 62ch; text-align: center; font-size: 14px; color: var(--text-2); }
.install-cta { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.footer { padding: 28px 24px 40px; text-align: center; font-size: 13px; color: var(--text-3); border-top: .5px solid var(--hairline); }
.footer p { margin: 4px 0; }
.footer p + p a { margin: 0 8px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .desk { grid-template-columns: minmax(0, 820px); }
  .desk-left { max-width: 420px; justify-self: center; width: 100%; }
  .about { margin-top: 0; }
  .desktop-file { display: none; }
}
@media (max-width: 900px) {
  .desk { padding: 24px 14px 150px; }
  .menubar-left a:not(.menubar-app) { display: none; }
  .settings-body { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: .5px solid var(--hairline); }
  .sidebar [role="tab"] { flex: none; }
  .pane { padding: 22px 20px 24px; }
  .stat-row, .timeline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .desktop-file { display: none; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 640px; }
  .app-sidebar { padding: 34px 8px 6px; border-right: 0; border-bottom: .5px solid var(--hairline); }
  .app-nav { flex-direction: row; overflow-x: auto; }
  .nav-heading { display: none; }
  .nav-item { flex: none; grid-template-columns: 16px auto; }
  .nav-item .nav-size { display: none; }
  .result { flex-direction: column; align-items: stretch; }
  .donut { align-self: center; }
  .scanning { flex-direction: column; text-align: center; }
  .scan-stats { justify-content: center; }
  .list-head { grid-template-columns: 1fr; }
  .bars { display: none; }
  .table .col-location, .table .col-modified, .table .col-app, .table .col-support { display: none; }
}
