/* ByteBroom landing page.
   Solid colours only (no gradients). Colour = meaning: the four junk categories use the same colours as the
   app (Windows blue, Browsers orange, Applications teal, Developer purple); green = safe/freed; pink = donate. */

:root {
  --ink: #1C1530;
  --text: #3A3450;
  --muted: #6B6585;
  --paper: #FFFFFF;
  --mist: #F4F2FB;
  --line: #E4E0F0;

  --purple: #9333EA;
  --purple-dark: #7A22C9;
  --blue: #2F6FED;
  --orange: #EA6A12;
  --teal: #0E9384;
  --green: #16A34A;
  --amber: #D48806;
  --danger: #F44336; /* the app's Danger button (Project Junk's "Delete selected") */
  --pink: #DB2777;
  --pink-dark: #BE1A64;
  --slate: #8B85A0;
  --free: #EEEBF7;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: 15px 24px; border-radius: 999px; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px -10px rgba(147, 51, 234, .7); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-quiet { color: var(--ink); background: var(--mist); }
.btn-quiet:hover { background: var(--line); }
.btn-white { background: #fff; color: var(--pink-dark); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  transition: background-color .18s, transform .18s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill-purple { background: var(--purple); color: #fff; }
.pill-purple:hover { background: var(--purple-dark); }
.pill-pink { background: var(--pink); color: #fff; }
.pill-pink:hover { background: var(--pink-dark); }
.heart { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.03em; }
.wordmark-accent { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.pill) { text-decoration: none; color: var(--text); font-weight: 600; font-size: .98rem; }
.nav-links > a:not(.pill):hover { color: var(--purple); }
.nav-donate { margin-left: 6px; }
.nav-links > a { white-space: nowrap; }
.menu-btn { display: none; }

/* Features: a button that opens a panel of the three feature sections. */
.nav-group { position: relative; }
.nav-group-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--text); white-space: nowrap;
}
.nav-group-btn:hover, .nav-group-btn[aria-expanded="true"] { color: var(--purple); }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.nav-group-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-group-label { display: none; }
.nav-panel {
  position: absolute; top: calc(100% + 18px); left: -18px; width: 330px;
  display: grid; gap: 2px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 18px 40px -18px rgba(28, 21, 48, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .2s var(--ease), visibility 0s .2s;
}
.nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .2s var(--ease); }
.nav-panel a {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.4;
}
.nav-panel a:hover { background: var(--mist); }
.nav-panel strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-panel a:hover strong { color: var(--purple); }
.nav-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; }
.dot-purple { background: var(--purple); }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-group.open .nav-panel, .chev { transition: none; }
}

/* Wide enough for every link on one line; below that, the menu button. */
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line);
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .nav-links > a:not(.pill) { padding: 12px 4px; font-size: 1.05rem; }
  .nav-links .pill { justify-content: center; padding: 12px; margin: 6px 0 0; }

  /* In the menu the feature links are always shown, under a small heading. */
  .nav-group-btn { display: none; }
  .nav-group-label { display: block; padding: 10px 4px 2px; font-size: .85rem; font-weight: 600; color: var(--muted); }
  .nav-panel {
    position: static; width: auto; padding: 0 0 6px; gap: 0; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none;
  }
  .nav-panel a { padding: 10px 4px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid > *, .safety-grid > *, .donate-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 11ch; }
.lede { font-size: 1.2rem; margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: .95rem; color: var(--muted); }
/* A pointer to the Space Analyzer; the little bar is its breakdown bar in miniature. */
.hero-new { margin-top: 18px; }
.hero-new a {
  display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1rem;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color .18s;
}
.hero-new a:hover { text-decoration-color: var(--purple); }
.mini-bar { display: inline-flex; gap: 2px; flex: none; }
.mini-bar i { width: 16px; height: 10px; border-radius: 2px; background: var(--blue); }
.mini-bar i:nth-child(2) { width: 10px; background: var(--orange); }
.mini-bar i:nth-child(3) { width: 7px; background: var(--teal); }
.mini-bar i:nth-child(4) { width: 5px; background: var(--purple); }
.hero-new + .hero-new { margin-top: 10px; }
/* Project Junk's pointer: one of its rows in miniature, a ticked box and a size bar, as wide as the mini bar above. */
.mini-row { display: inline-flex; align-items: center; gap: 4px; width: 44px; flex: none; }
.mini-row i { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.mini-row i:nth-child(2) { width: 30px; height: 6px; border-radius: 99px; }

.drive {
  margin: 0; padding: 22px 22px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(28, 21, 48, .28);
}
.drive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.drive-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.drive-name svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.drive-free { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); white-space: nowrap; }
.drive-free.grew { color: var(--green); }
.drive-free span { font-variant-numeric: tabular-nums; }

.drive-stage { position: relative; }
.cells {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows, 5), 1fr);
  grid-template-columns: repeat(var(--cols, 40), 1fr);
  gap: 5px;
}
.cell { aspect-ratio: 1; border-radius: 4px; background: var(--slate); opacity: .45; }
.cell.junk { opacity: 1; }
.cell.windows { background: var(--blue); }
.cell.browsers { background: var(--orange); }
.cell.apps { background: var(--teal); }
.cell.dev { background: var(--purple); }
.cell.free { background: var(--free); opacity: 1; box-shadow: inset 0 0 0 1px var(--line); }
.cell.flick { animation: flick .65s var(--ease) forwards; }
.cell.freed { background: var(--free); opacity: 1; box-shadow: inset 0 0 0 1.5px #9EDDB2; animation: settle .35s var(--ease); }
@keyframes flick {
  0% { transform: none; opacity: 1; }
  100% { transform: translate(var(--dx, 18px), var(--dy, -30px)) rotate(var(--rot, 120deg)) scale(.5); opacity: 0; }
}
@keyframes settle { from { transform: scale(.4); } to { transform: none; } }

.broom {
  position: absolute; top: -18px; left: 0; width: 40px; height: 60px;
  transform: translateX(-60px) rotate(-18deg); opacity: 0; pointer-events: none;
}
.broom svg { width: 100%; height: 100%; }
.broom-handle { fill: var(--ink); }
.broom-band { fill: var(--purple); }
.broom.sweeping { opacity: 1; }

.legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; font-family: var(--display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.sw-windows { background: var(--blue); }
.sw-browsers { background: var(--orange); }
.sw-apps { background: var(--teal); }
.sw-dev { background: var(--purple); }
.drive figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.replay {
  border: 0; background: var(--mist); color: var(--ink); cursor: pointer;
  font: 600 .9rem var(--display); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.replay:hover { background: var(--line); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 13ch; }
}
@media (max-width: 520px) {
  .legend { grid-template-columns: 1fr; }
  .cells { gap: 3px; }
  .drive { padding: 18px 16px 14px; }
  .drive-free { font-size: 1.25rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-mist { background: var(--mist); }
.section-lede { margin-top: 14px; font-size: 1.15rem; max-width: 40em; color: var(--muted); }

/* ---------- Screens ---------- */
.section-screens { padding-top: 0; }
.screens-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; cursor: pointer; color: var(--text);
  font: 600 .95rem var(--display); padding: 9px 18px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-pages { margin-top: 26px; max-width: 100%; }
.shot-frame {
  margin-top: 18px; padding: clamp(8px, 1.4vw, 16px);
  background: var(--ink); border-radius: var(--radius-l);
  box-shadow: 0 40px 80px -40px rgba(28, 21, 48, .5);
}
.shot-frame img { border-radius: 10px; width: 100%; transition: opacity .22s ease; }
.shot-frame img.swapping { opacity: 0; }
.shot-caption { margin-top: 16px; color: var(--muted); max-width: 52em; }

/* Below the width the page tabs need on one line, they scroll sideways instead of wrapping. */
@media (max-width: 840px) {
  .seg-pages { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
  .seg-pages::-webkit-scrollbar { display: none; }
  .seg-pages button { flex: none; }
}

/* ---------- What it cleans ---------- */
.bands { display: grid; gap: 14px; margin-top: 40px; }
.band { display: grid; grid-template-columns: 250px 1fr; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); }
.band-tag { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 26px; color: #fff; }
.band-tag svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.band-tag h3 { color: #fff; font-size: 1.6rem; }
.band-windows .band-tag { background: var(--blue); }
.band-browsers .band-tag { background: var(--orange); }
.band-apps .band-tag { background: var(--teal); }
.band-dev .band-tag { background: var(--purple); }
.band-body { padding: 26px 28px; }
.band-body > p { color: var(--ink); font-size: 1.08rem; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-size: .95rem; }
.band-windows .chips li { border-color: #C9D8FB; }
.band-browsers .chips li { border-color: #F8D2B6; }
.band-apps .chips li { border-color: #B5E0D9; }
.band-dev .chips li { border-color: #DCC2F7; }

@media (max-width: 760px) {
  .band { grid-template-columns: 1fr; }
  .band-tag { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 18px 22px; }
  .band-tag svg { width: 28px; height: 28px; }
  .band-tag h3 { font-size: 1.35rem; }
  .band-body { padding: 20px 22px 24px; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius-m); padding: 26px; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: #fff; font: 700 1.1rem var(--display); margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps b { color: var(--ink); }

.progress-mock {
  display: flex; align-items: center; gap: 16px; margin-top: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 22px;
}
.pm-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--purple); display: grid; place-items: center; flex: none; }
.pm-tile svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pm-body { flex: 1; min-width: 0; }
.pm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pm-top b { font-family: var(--display); color: var(--ink); font-size: 1.05rem; }
.pm-pct { font-variant-numeric: tabular-nums; }
.pm-meta { display: flex; gap: 14px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-freed { color: var(--purple); font-weight: 700; }
.pm-track { height: 8px; border-radius: 99px; background: var(--free); margin: 10px 0; overflow: hidden; }
.pm-fill { height: 100%; width: 100%; background: var(--purple); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform .45s var(--ease); }
.pm-now { font-size: .92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-item { color: var(--ink); }
.mock-note { margin-top: 12px; font-size: .95rem; color: var(--muted); }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Space Analyzer ----------
   The replica uses the app's breakdown colours in its order: blue, orange, teal, purple, pink, then slate for the rest. */
.space-grid > * { min-width: 0; }
.space-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: 40px; }
.sa-figure { margin: 0; }
.sa {
  padding: 22px 22px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(28, 21, 48, .28); overflow: hidden;
}
.sa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.sa-crumbs { display: flex; align-items: baseline; gap: 7px; font-family: var(--display); font-weight: 600; color: var(--muted); }
.sa-crumbs i { font-style: normal; color: var(--slate); }
.sa-crumbs b { color: var(--ink); font-weight: 600; }
.sa-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sa-total b { font: 700 1.5rem var(--display); color: var(--ink); }
.sa-total span { margin-left: 10px; font-size: .92rem; color: var(--muted); }
.sa-bar { display: flex; gap: 4px; height: 14px; margin-top: 16px; }
.sa-bar i { flex: 1 1 0; min-width: 3px; border-radius: 4px; background: var(--c); }
.sa-rows { list-style: none; padding: 0; margin: 18px 0 0; }
.sa-rows li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(48px, 120px) 4.6em 3.4em; gap: 14px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.sa-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.sa-name { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-name small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sa-track { height: 6px; border-radius: 99px; background: var(--free); overflow: hidden; }
.sa-fill { display: block; height: 100%; width: var(--w, 100%); border-radius: 99px; background: var(--c); }
.sa-gb { text-align: right; font-family: var(--display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sa-pct { text-align: right; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sa-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 6px -22px 0; padding: 12px 22px; background: var(--mist); border-top: 1px solid var(--line); font-size: .92rem;
}
.sa-pill { background: #EFE3FC; color: var(--purple-dark); font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.sa-btn { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; font-weight: 600; color: var(--ink); }
.sa .sa-scanning { display: none; }
.sa.scanning .sa-scanning { display: inline; }
.sa.scanning .sa-pill, .sa.scanning .sa-done { display: none; }
.sa-scanning::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--purple); vertical-align: 1px; animation: pulse 1s ease-in-out infinite alternate;
}
.sa-btn .sa-scanning::before { display: none; }
@keyframes pulse { from { opacity: 1; } to { opacity: .25; } }

.sa-notes > * + * { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.sa-note h3 { margin-bottom: 8px; }
.sa-note p + p, .sa-note .chips + p { margin-top: 12px; }
.sa-note b { color: var(--ink); }
.sa-note a { color: var(--purple-dark); font-weight: 600; text-underline-offset: 3px; }
.sa-note .chips { margin-top: 12px; }

/* The replica stays in view while the notes beside it are read. */
@media (min-width: 961px) { .sa-figure { position: sticky; top: 96px; } }
@media (max-width: 960px) { .space-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sa { padding: 18px 16px 0; }
  .sa-foot { margin-inline: -16px; padding-inline: 16px; }
  .sa-rows li { grid-template-columns: 12px minmax(0, 1fr) 4.6em 3.4em; gap: 10px; }
  .sa-track { display: none; }
  .sa-total b { font-size: 1.25rem; }
}

/* ---------- Project Junk ----------
   Shares the Space Analyzer's grid and notes; the replica sits on the other side. Each project's tile and size bar use
   its type's colour as in the app (Node green, .NET purple, Rust orange, Gradle teal); ticks use the app's accent. */
.pj-grid { grid-template-columns: 1fr 1.3fr; }
.pj {
  padding: 22px 22px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -30px rgba(28, 21, 48, .28); overflow: hidden; container-type: inline-size;
}
.pj-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.pj-total { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.pj-total b { margin-right: 4px; font: 700 1.5rem var(--display); color: var(--ink); }
.pj-actions { display: flex; align-items: center; gap: 12px; }
.pj-ticked { font-size: .92rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pj-btn { padding: 5px 14px; border-radius: 8px; background: var(--danger); color: #fff; font-weight: 600; white-space: nowrap; }
.pj-rows { list-style: none; padding: 0; margin: 16px 0 0; }
.pj-rows li {
  display: grid; grid-template-columns: 16px 34px minmax(0, 1fr) 7.6em 5.6em; gap: 12px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.pj-check { width: 16px; height: 16px; margin-top: 9px; border: 1.5px solid var(--slate); border-radius: 4px; }
.pj-rows .on .pj-check {
  border-color: var(--purple);
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pj-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c); }
.pj-tile svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pj-main { min-width: 0; }
.pj-name, .pj-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-name { color: var(--ink); font-weight: 600; line-height: 1.4; margin-top: 2px; }
.pj-path { font-size: .82rem; color: var(--muted); }
.pj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pj-chips > span {
  padding: 1px 9px; border-radius: 99px; background: var(--mist); border: 1px solid var(--line);
  font-size: .8rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pj-chips em { margin-left: 4px; font-style: normal; color: var(--muted); }
.pj-used { margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.pj-recent {
  display: table; margin-top: 5px; padding: 0 9px; border-radius: 99px;
  background: #DDF3E5; color: #11743A; font-size: .78rem; font-weight: 700;
}
.pj-size { margin-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.pj-size b { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1.4; }
.pj-track { display: block; height: 5px; margin-top: 7px; border-radius: 99px; background: var(--free); overflow: hidden; }
.pj-fill { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.pj-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 -22px; padding: 12px 22px; background: var(--mist); border-top: 1px solid var(--line); font-size: .92rem;
}
.pj-status > span { padding: 3px 12px; border-radius: 99px; font-weight: 700; }
.pj-left { background: var(--free); color: var(--text); }
.pj-measuring { display: none; background: #EFE3FC; color: var(--purple-dark); }
.pj-measuring::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--purple); vertical-align: 1px; animation: pulse 1s ease-in-out infinite alternate;
}
.pj.measuring .pj-measuring { display: inline; }
.pj.measuring .pj-left { display: none; }
/* While a folder is being measured: its chip shows the name alone and the project's size says so. */
.pj-chips .waiting em { display: none; }
.pj-size .waiting { font: 400 .85rem var(--body); color: var(--muted); }
.pj-size .partial small { display: block; font: 400 .78rem var(--body); color: var(--muted); }

/* In a narrow card, "Used …" moves under the project so its folder chips keep their room. */
@container (max-width: 600px) {
  .pj-rows li { grid-template-columns: 16px 34px minmax(0, 1fr) 5.6em; }
  .pj-used { grid-column: 3 / -1; grid-row: 2; margin-top: -4px; }
  .pj-recent { display: inline-block; margin: 0 0 0 6px; }
}
@media (min-width: 961px) { .pj-grid > .sa-figure { order: 2; } }
@media (max-width: 960px) { .pj-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .pj { padding: 18px 16px 0; }
  .pj-foot { margin-inline: -16px; padding-inline: 16px; }
  .pj-total b { font-size: 1.25rem; }
  .pj-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .pj-ticked { font-size: .85rem; }
  .pj-btn { font-size: .9rem; padding: 4px 12px; }
  .pj-rows li { grid-template-columns: 16px 34px minmax(0, 1fr) 4.8em; gap: 10px; }
}

/* ---------- Safety ---------- */
.section-ink { background: var(--ink); color: #D9D4EA; }
.section-ink h2 { color: #fff; }
.section-ink .section-lede { color: #B7B0CF; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.safety-sub { color: #fff; margin-top: 36px; }
.safety-sub + .checks { margin-top: 16px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.dialog-mock { background: #2B2440; border: 1px solid #3D3556; border-radius: var(--radius-m); overflow: hidden; color: #D9D4EA; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.dm-head { display: flex; gap: 14px; padding: 22px 22px 16px; }
.dm-badge { width: 44px; height: 44px; border-radius: 50%; background: rgba(147, 51, 234, .25); display: grid; place-items: center; flex: none; }
.dm-badge svg { width: 24px; height: 24px; fill: none; stroke: #C8A2F5; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dm-head b { font-family: var(--display); color: #fff; font-size: 1.2rem; }
.dm-head p { font-size: .92rem; color: #B7B0CF; margin-top: 2px; }
.dm-list { margin: 0 22px; border: 1px solid #3D3556; border-radius: 10px; background: #241E37; }
.dm-row { padding: 12px 14px; }
.dm-row + .dm-row { border-top: 1px solid #3D3556; }
.dm-title { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .95rem; }
.dm-title em { margin-left: auto; font-style: normal; font-size: .75rem; color: #C8A2F5; background: rgba(147, 51, 234, .22); padding: 1px 8px; border-radius: 99px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 20px; }
.dm-chips span { font-size: .8rem; padding: 3px 10px; border-radius: 99px; background: #342C4C; border: 1px solid #463D61; }
.dm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 22px; background: #332B4A; border-top: 1px solid #3D3556; font-size: .9rem; }
.dm-check::before { content: ""; display: inline-block; width: 15px; height: 15px; border: 1.5px solid #8F87A8; border-radius: 4px; vertical-align: -3px; margin-right: 8px; }
.dm-btns { display: flex; gap: 8px; }
.dm-btn { padding: 7px 16px; border-radius: 6px; background: #3D3556; color: #fff; font-weight: 600; }
.dm-primary { background: #C8A2F5; color: #1C1530; }
.safety-mocks { display: grid; gap: 22px; }
.dm-path { color: #fff; overflow-wrap: anywhere; }
/* Project Junk asks with the app's warning badge (amber). */
.dm-badge-warn { background: rgba(212, 136, 6, .22); }
.dm-badge-warn svg { stroke: var(--amber); }
.dm-btn { white-space: nowrap; }

@media (max-width: 900px) { .safety-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .dm-check { display: none; } .dm-foot { justify-content: flex-end; } }

/* ---------- Donate ---------- */
.donate { background: var(--pink); color: #FFE4F0; padding: clamp(56px, 8vw, 96px) 0; }
.donate-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.donate h2 { color: #fff; }
.donate p { margin-top: 10px; max-width: 36em; font-size: 1.1rem; }
.donate-heart { width: 72px; height: 72px; fill: #fff; transform-origin: center; }
.donate.in-view .donate-heart { animation: beat 1.6s ease-in-out 2; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
@media (max-width: 760px) {
  .donate-grid { grid-template-columns: 1fr; text-align: left; }
  .donate-heart { width: 52px; height: 52px; }
  .donate .btn { justify-self: start; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font: 600 1.15rem var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231C1530' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--line); }
.faq summary:hover { color: var(--purple); }
.answer { overflow: hidden; }
.answer p { padding: 0 4px 22px; max-width: 42em; }
.answer b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--mist); padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: start; }
.footer-tag { margin-top: 8px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--purple); }
.footer-dev { text-align: right; }
.footer-dev a { color: var(--purple); font-weight: 700; text-decoration: none; }
.footer-dev a:hover { text-decoration: underline; }
.copy { margin-top: 4px; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-dev { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
