/* DiskOps website. Colours are the app's own (Sources/DiskOps/Views/SourcesView.swift, Theme);
   the type and layout follow an editorial style: tall condensed headlines, uppercase labels,
   square edges and halftone pictures. */
:root {
  color-scheme: dark;
  --night: #0e1017;
  --deep: #151824;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f1ee;
  --muted: rgba(242, 241, 238, 0.6);
  --star: #ffb84d;
  --refuse: #f55c54;
  --safe: #5ccc8f;
  --violet: #40345c;

  /* Headlines are light and narrow; uppercase labels, links and buttons use a sturdier condensed face. */
  --headline: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --display: "Antonio", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::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;
  background:
    radial-gradient(1200px 720px at 70% -10%, rgba(64, 52, 92, 0.55), transparent 70%),
    var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}

/* A thin lit frame around the whole window. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  border: 5px solid transparent;
  border-image: linear-gradient(135deg, rgba(255, 184, 77, 0.55), rgba(64, 52, 92, 0.95) 35%, rgba(64, 52, 92, 0.95) 65%, rgba(76, 134, 217, 0.55)) 1;
  box-shadow: inset 0 0 24px rgba(64, 52, 92, 0.55);
}
@media (max-width: 560px) { body::after { border-width: 3px; } }

a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 1px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Small uppercase labels, used for eyebrows, specs and lists. */
.label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */

/* Fixed rather than sticky, so the header shrinking on scroll doesn't move the page under it. */
body { padding-top: 108px; }
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.top.scrolled {
  background: rgba(14, 16, 23, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 108px; transition: height 0.3s; }
.top.scrolled .wrap { height: 70px; }
.top .side { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.top .side.left { padding-right: clamp(20px, 4vw, 56px); }
.top .side.right { padding-left: clamp(20px, 4vw, 56px); }
.top nav { display: contents; }
.top nav a, .top .side > a:not(.button) {
  text-decoration: none; color: rgba(242, 241, 238, 0.78);
  font: 500 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--star); border-bottom-color: var(--star); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; transition: width 0.3s, height 0.3s; }
.brand .word { display: flex; flex-direction: column; font: 300 29px/0.84 var(--headline); letter-spacing: 0.02em; text-transform: uppercase; transition: font-size 0.3s; }
.top.scrolled .brand svg { width: 26px; height: 26px; }
.top.scrolled .brand .word { font-size: 20px; }

/* Jumping to a section leaves room for the sticky header. */
section[id] { scroll-margin-top: 70px; }

.sound {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: 1px;
  color: var(--muted); font: 500 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 11px; cursor: pointer;
}
.sound:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.sound[aria-pressed="true"] { color: var(--star); border-color: rgba(255, 184, 77, 0.5); }
.sound svg { width: 14px; height: 14px; }
.top .get { min-height: 38px; padding: 0 14px; font-size: 15px; background: rgba(242, 241, 238, 0.14); color: var(--text); box-shadow: none; }
.top .get:hover { background: rgba(242, 241, 238, 0.22); }
.top.scrolled .get { background: var(--star); color: #17120a; }
@media (max-width: 980px) {
  body { padding-top: 72px; }
  .top .wrap { grid-template-columns: auto 1fr; height: 72px; }
  .top.scrolled .wrap { height: 64px; }
  .top .side.left { display: none; }
  .top .brand { grid-column: 1; }
  .top .side.right { justify-content: flex-end; }
  .top .side.right nav { display: none; }
  .brand .word { flex-direction: row; gap: 0; font-size: 22px; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 1px;
  font: 500 17px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, color 0.15s;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--star); color: #17120a; }
.button.primary:hover { background: #ffc46b; box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.18); }
.button.quiet { background: rgba(242, 241, 238, 0.14); color: var(--text); }
.button.quiet:hover { background: rgba(242, 241, 238, 0.22); }
.button.outline { background: none; color: var(--text); box-shadow: inset 0 0 0 1px rgba(242, 241, 238, 0.4); }
.button.outline:hover { box-shadow: inset 0 0 0 1px var(--text); background: rgba(242, 241, 238, 0.06); }
.button svg { width: 18px; height: 18px; }
/* Inside the demo windows, buttons look like the app's, not the site's. */
.window .button { border-radius: 7px; font: 600 13.5px/1 var(--body); letter-spacing: 0; text-transform: none; }
.window .button.quiet { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(18px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { position: relative; z-index: 1; }
/* The halftone figure behind the hero, faded where the headline sits so the text stays readable. */
.hero-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 32%, #000 52%, #000 100%), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 32%, #000 52%, #000 100%), linear-gradient(180deg, #000 80%, transparent); mask-composite: intersect;
}
@media (max-width: 900px) { .hero-backdrop { opacity: 0.35; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

h1, h2 { font-family: var(--headline); font-weight: 200; margin: 0; }
h1 { font-size: clamp(64px, 9.2vw, 132px); line-height: 0.9; letter-spacing: -0.015em; font-weight: 200; }
h1 em { font-style: normal; color: var(--star); }
h2 { font-size: clamp(48px, 6.6vw, 90px); line-height: 0.95; letter-spacing: -0.01em; }

.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 30em; margin: 26px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 4px; }

/* What it needs, as a strip of small cells. */
.specs { margin-top: 34px; max-width: 470px; }
.specs .label { margin: 0 0 9px; }
.specs ul { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 2px; }
.specs li { position: relative; padding: 9px 10px; font: 400 12px/1.3 var(--mono); text-align: center; background: rgba(255, 255, 255, 0.04); }
.specs li::before, .specs li::after { content: ":"; position: absolute; top: 50%; transform: translateY(-50%); color: rgba(242, 241, 238, 0.3); }
.specs li::before { left: 6px; } .specs li::after { right: 6px; }
@media (max-width: 420px) { .specs ul { grid-template-columns: 1fr; } }

/* The live chart sits on a halftone plate, like a printed picture. */
.viewer {
  position: relative; width: 100%; max-width: 660px; justify-self: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 2px;
  /* See-through, so the halftone figure shows faintly behind the chart. */
  background: radial-gradient(circle at 50% 46%, rgba(64, 52, 92, 0.35), transparent 70%), rgba(14, 16, 23, 0.6);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.views { display: flex; gap: 2px; padding: 3px; border-radius: 1px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); margin-bottom: 6px; }
.views button { border: 0; background: none; color: var(--muted); font: 500 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 15px; border-radius: 1px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.views button:hover { color: var(--text); }
.views button[aria-pressed="true"] { background: rgba(255, 184, 77, 0.18); color: var(--star); }
.hero-crumbs { min-height: 26px; margin: 0; justify-content: center; max-width: 100%; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.stage .flow-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage[data-view="flow"] .flow-layer { pointer-events: auto; }
.stage canvas { width: 100%; height: 100%; cursor: default; }
.stage canvas.pointing { cursor: pointer; }
.readout {
  align-self: stretch; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); min-height: 18px;
  font: 400 11.5px/1.5 var(--mono); color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center;
}
.readout .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--star); box-shadow: 0 0 10px var(--star); }
.readout.done .dot { background: var(--safe); box-shadow: 0 0 10px var(--safe); }
.readout b { color: var(--text); font-weight: 500; }

.tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: rgba(14, 16, 23, 0.94); border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 12px; font-size: 14px; line-height: 1.35; min-width: 140px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tip.show { opacity: 1; transform: none; }
.tip b { display: block; font-weight: 600; }
.tip span { font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* ---------- Scenes ---------- */

.scene { padding: clamp(72px, 11vw, 140px) 0; }
/* Every other band is a shade lighter, so the page reads as a run of plates. */
.scene.flip, .more { background: var(--deep); }
.scene .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.scene.flip .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.scene.flip .copy { order: 2; }
@media (max-width: 900px) {
  .scene .wrap, .scene.flip .wrap { grid-template-columns: 1fr; }
  .scene.flip .copy { order: 0; }
}
.copy p { color: var(--muted); margin: 22px 0 0; max-width: 30em; }
.copy ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--muted); }
.copy li { display: flex; gap: 12px; }
.copy li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.66em; background: var(--star); }

.tier {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tier::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.tier.premium { color: var(--star); }

/* A pared-down app window that the demos play in. */
.window {
  position: relative; border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 33, 48, 0.96), rgba(17, 19, 28, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.window-bar span { margin-left: 10px; font: 400 12px/1 var(--mono); color: var(--muted); }

.cursor {
  position: absolute; z-index: 6; width: 22px; height: 22px; left: 0; top: 0;
  pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.9s cubic-bezier(0.55, 0, 0.25, 1);
}
.chip {
  position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(21, 24, 36, 0.95); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; font-size: 13px; opacity: 0;
  transition: transform 0.9s cubic-bezier(0.55, 0, 0.25, 1), opacity 0.2s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.chip span { font: 400 11px/1 var(--mono); color: var(--muted); }

/* Collect scene */
.collect-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; min-height: 380px; }
.collect-body canvas { width: 100%; aspect-ratio: 1 / 1; align-self: center; }
.tray { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.tray h3 { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tray-drop {
  flex: 1; min-height: 120px; border: 1.5px dashed rgba(255, 255, 255, 0.14); border-radius: 12px;
  display: flex; flex-direction: column; gap: 6px; padding: 8px; transition: border-color 0.2s, background 0.2s;
}
.tray-drop.hot { border-color: var(--star); background: rgba(255, 184, 77, 0.06); }
.tray-drop.refuse { border-color: var(--refuse); background: rgba(245, 92, 84, 0.08); }
.tray-empty { margin: auto; text-align: center; color: var(--muted); font-size: 12px; }
.tray-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel); animation: drop-in 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.tray-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tray-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-row span { margin-left: auto; flex: none; white-space: nowrap; font: 400 11px/1 var(--mono); color: var(--muted); }
.tray-row b { min-width: 0; }
@keyframes drop-in { from { transform: translateY(-8px) scale(0.92); opacity: 0; } }
.delete-btn {
  height: 34px; border-radius: 9px; border: 0; background: rgba(245, 92, 84, 0.18); color: #ffb2ad;
  font: 600 13px/1 var(--body); transition: background 0.2s, transform 0.1s;
}
.delete-btn.press { transform: scale(0.96); background: rgba(245, 92, 84, 0.32); }
@media (max-width: 560px) {
  .collect-body { grid-template-columns: 1fr; }
  .tray { border-left: 0; border-top: 1px solid var(--line); }
  .tray-drop { min-height: 90px; }
}

/* The app's banner, as in ReportView.swift */
.banner {
  display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; font-size: 13.5px;
  background: rgba(255, 184, 77, 0.11); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; position: relative;
}
.banner svg { width: 16px; height: 16px; flex: none; color: var(--star); }
.banner .muted { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.banner b { font-weight: 600; }
.banner.refused { background: rgba(245, 92, 84, 0.16); }
.banner.refused::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--refuse); }
.banner.refused svg { color: var(--refuse); }
.banner.idle { color: var(--muted); background: transparent; }
/* The safety demo's banner appears only when something is refused, as in the app. */
#safety-demo .banner { max-height: 0; opacity: 0; border-bottom-width: 0; transition: max-height 0.22s ease, opacity 0.22s ease, padding 0.22s ease; }
#safety-demo .banner.shown { max-height: 80px; opacity: 1; border-bottom-width: 1px; }
@media (prefers-reduced-motion: reduce) { #safety-demo .banner { transition: none; } }
@media (max-width: 560px) {
  #safety-demo .banner { white-space: normal; height: auto; padding: 0 14px; flex-wrap: wrap; row-gap: 2px; line-height: 1.35; }
  #safety-demo .banner.shown { padding: 8px 14px; }
  #safety-demo .banner .muted { flex-basis: 100%; padding-left: 25px; }
  .row { gap: 8px; font-size: 13.5px; }
}
.banner .count { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }

/* Safety scene */
.safety-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 360px; }
.rows { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px;
  transition: background 0.2s, transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.3s;
}
.row.lift { background: var(--panel-hover); }
.row i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.row svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.row b { font-weight: 500; }
.row .size { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--muted); }
.badge { font: 700 9px/1 var(--body); letter-spacing: 0.04em; padding: 3px 6px; border-radius: 999px; }
.badge.safe { background: rgba(92, 204, 143, 0.22); color: #9ff0c3; }
.badge.check { background: rgba(255, 184, 77, 0.22); color: #ffd79c; }
.badge.block { background: rgba(245, 92, 84, 0.24); color: #ffaca6; }
.row.gone { opacity: 0.35; }
@media (max-width: 560px) {
  .safety-body { grid-template-columns: 1fr; }
  .safety-body .tray { border-left: 0; border-top: 1px solid var(--line); }
}

/* Flow scene */
.flow-head { padding: 14px 18px 0; text-align: center; min-height: 66px; }
.flow-head b { display: block; font-weight: 600; font-size: 15px; }
.flow-head span { font-size: 13px; color: var(--muted); }
.flow-body canvas { width: 100%; height: 440px; }
@media (max-width: 560px) { .flow-body canvas { height: 380px; } }

/* ---------- Full Power showcase ---------- */

.more { padding: clamp(72px, 11vw, 130px) 0; }
.more h2 { max-width: 13em; }

/* ---------- Pricing ---------- */

.pricing { padding: clamp(72px, 11vw, 140px) 0; }
.pricing h2 { max-width: 12em; }
.pricing > .wrap > p { color: var(--muted); max-width: 34em; margin: 20px 0 0; }
.plate { position: relative; margin-top: 44px; height: clamp(220px, 28vw, 360px); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--night); }
.plate canvas { width: 100%; height: 100%; }
.plate .label { position: absolute; left: 16px; bottom: 14px; color: rgba(242, 241, 238, 0.55); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); margin-top: 40px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding-top: 22px; border-top: 1px solid var(--line); }
.plan.coffee { border-top-color: var(--star); }
.plan h3 { margin: 0; font: 500 19px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.plan.coffee h3 { color: var(--star); }
.price { font: 200 clamp(80px, 10vw, 116px)/1 var(--headline); margin: 20px 0 6px; letter-spacing: -0.02em; }
.price small { display: block; margin-top: 18px; line-height: 1.2; font: 500 16px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; flex: 1; font: 400 12.5px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: rgba(242, 241, 238, 0.85); }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--muted); }
.plan.coffee li svg { color: var(--star); }
.plan .button { align-self: flex-start; min-width: 240px; }
@media (max-width: 560px) { .plan .button { align-self: stretch; } }

.cup { position: absolute; top: 14px; right: 0; width: 46px; height: 46px; color: var(--star); }
.cup .steam path { animation: steam 2.4s ease-out infinite; opacity: 0; }
.cup .steam path:nth-child(2) { animation-delay: 0.6s; }
.cup .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-7px); } }

/* ---------- Footer ---------- */

footer { position: relative; overflow: hidden; padding: clamp(80px, 14vw, 200px) 0 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%); }
/* The name, huge and faint, behind the columns. */
footer .giant { position: absolute; left: 0; right: 0; top: clamp(40px, 7vw, 110px); text-align: center; pointer-events: none; user-select: none;
  font: 200 clamp(120px, 27vw, 400px)/0.8 var(--headline); letter-spacing: -0.01em; text-transform: uppercase; color: rgba(242, 241, 238, 0.07); white-space: nowrap; }
footer .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px 28px; align-items: start; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .brand { flex-direction: column; align-items: flex-start; gap: 16px; }
footer .brand svg { width: 52px; height: 52px; }
footer .brand .tagline { font: 500 13px/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-col .label { margin: 0 0 8px; color: rgba(242, 241, 238, 0.45); }
.footer-col h3 { margin: 0 0 16px; font: 300 34px/1 var(--headline); color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font: 500 14px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 241, 238, 0.8); }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; font-size: 12.5px; line-height: 1.6; color: rgba(242, 241, 238, 0.45); }
.legal-line p { margin: 0 0 6px; max-width: 76em; }
.legal-line a { color: var(--muted); }

/* ---------- Text pages ---------- */

.doc { padding: clamp(36px, 6vw, 80px) 0 clamp(60px, 9vw, 110px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(56px, 8vw, 96px); }
.doc .updated { font: 400 12px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 44px; }
.doc h2 { font: 300 clamp(32px, 3.8vw, 42px)/1.05 var(--headline); margin: 46px 0 12px; letter-spacing: 0; }
.doc p, .doc li { color: rgba(242, 241, 238, 0.82); }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--star); }
.doc .card { border: 1px solid rgba(255, 184, 77, 0.35); border-left: 3px solid var(--star); background: rgba(255, 184, 77, 0.05); border-radius: 1px; padding: 20px 22px; margin: 24px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cup .steam path { animation: none; opacity: 0.6; }
}

/* ---------- Premium showcase: Treemap, History and alerts, App uninstaller ---------- */

.more-lede { color: var(--muted); margin: 20px 0 0; }
.showcase { margin-top: 44px; }
.tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 1px; background: rgba(0, 0, 0, 0.3); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 0; border-radius: 1px; padding: 11px 18px; cursor: pointer;
  background: transparent; color: var(--muted); font: 500 16px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.tabs button svg { width: 17px; height: 17px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: rgba(255, 184, 77, 0.18); color: var(--star); }
.panel { margin-top: 16px; }
.panel[hidden] { display: none; }
.panel.enter { animation: panel-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel-body { position: relative; }
@media (max-width: 560px) { .tabs button { padding: 9px 11px; font-size: 13.5px; } .tabs button svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .panel.enter { animation: none; } }


.crumbs { display: flex; gap: 4px; margin-left: 10px; font: 400 12px/1 var(--mono); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs button { border: 0; background: none; color: var(--muted); font: inherit; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.crumbs button:hover { color: var(--text); background: var(--panel-hover); }
.crumbs button[aria-current="page"] { color: var(--text); cursor: default; background: none; }
.crumbs i { color: var(--muted); opacity: 0.5; font-style: normal; align-self: center; }

/* History */
.history-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 360px; }
.chart { position: relative; padding: 14px 14px 10px; display: flex; flex-direction: column; }
.chart canvas { width: 100%; height: 280px; cursor: crosshair; }
.threshold { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.threshold b { color: var(--refuse); font-weight: 600; font-family: var(--mono); font-size: 12px; }
.threshold input { flex: 1; min-width: 140px; accent-color: var(--refuse); }
.growth { border-left: 1px solid var(--line); padding: 16px; }
.growth h3 { margin: 0; font: 600 15px/1.3 var(--body); }
.growth p { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.growth-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.growth-list li { font-size: 13px; }
.growth-list .line { display: flex; justify-content: space-between; gap: 8px; }
.growth-list .line span { font: 400 11.5px/1.5 var(--mono); white-space: nowrap; }
.growth-list .up { color: #ffaca6; }
.growth-list .down { color: #9ff0c3; }
.growth-list .bar { height: 5px; border-radius: 3px; background: var(--panel-hover); margin-top: 5px; overflow: hidden; }
.growth-list .bar i { display: block; height: 100%; border-radius: 3px; transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 760px) { .history-body { grid-template-columns: 1fr; } .growth { border-left: 0; border-top: 1px solid var(--line); } .notice { right: 14px; } }

/* A macOS-style notification, as the app's alerts arrive. */
.notice {
  position: absolute; top: 52px; right: 296px; z-index: 4; width: min(330px, calc(100% - 28px));
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start;
  padding: 11px 12px; border-radius: 14px; font-size: 13px; line-height: 1.35;
  background: rgba(40, 43, 58, 0.92); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: translateX(30px); pointer-events: none;
  transition: opacity 0.3s, transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.notice.show { opacity: 1; transform: none; }
.notice-icon { width: 34px; height: 34px; border-radius: 8px; background: #0e1017 url("icon.svg") center / 100% no-repeat; }
.notice b { display: block; font-weight: 600; }
.notice span { color: rgba(242, 241, 238, 0.75); }
.notice small { color: var(--muted); font-size: 11px; }

/* App uninstaller */
.window-bar .mini-tabs { margin-left: auto; display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--panel); }
.mini-tabs button { border: 0; background: none; color: var(--muted); font: 500 12px/1 var(--body); padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.mini-tabs button.on { background: var(--panel-hover); color: var(--text); }
.apps-banner { max-height: 0; opacity: 0; border-bottom-width: 0; transition: max-height 0.22s, opacity 0.22s; }
.apps-banner.shown { max-height: 40px; opacity: 1; border-bottom-width: 1px; }
.apps-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 400px; }
.app-list { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.app-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; border: 0;
  background: none; color: var(--text); font: 500 14px/1.2 var(--body); text-align: left; cursor: pointer;
}
.app-list button:hover { background: var(--panel); }
.app-list button[aria-pressed="true"] { background: rgba(255, 184, 77, 0.12); }
.app-list .meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-list .meta span { font: 400 11px/1 var(--mono); color: var(--muted); }
.app-list li.gone { animation: app-out 0.45s forwards; }
@keyframes app-out { to { opacity: 0; transform: translateX(-20px); height: 0; } }
.app-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 14px/1 var(--display); color: rgba(255, 255, 255, 0.92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.unused { font: 700 8.5px/1 var(--body); letter-spacing: 0.04em; padding: 3px 5px; border-radius: 999px; background: rgba(255, 184, 77, 0.22); color: #ffd79c; margin-left: 4px; vertical-align: 1px; }
.app-detail { padding: 18px; display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-head .app-icon { width: 52px; height: 52px; border-radius: 13px; font-size: 20px; }
.app-head b { display: block; font-size: 18px; font-weight: 600; }
.app-head span { font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.parts label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.parts label:hover { background: var(--panel); }
.parts input { accent-color: var(--star); width: 15px; height: 15px; margin: 0; }
.parts .what { min-width: 0; }
.parts .what b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parts .what span { font: 400 11px/1.4 var(--mono); color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parts .size { font: 400 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.parts li.fly { animation: fly 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@keyframes fly { to { opacity: 0; transform: translate(60px, 20px) scale(0.9); } }
.app-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-foot b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
.app-foot .button { min-height: 38px; font-size: 14px; margin-left: auto; padding: 0 16px; }
.app-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; }
.app-empty .button { margin-top: 14px; min-height: 38px; font-size: 14px; }
.leftovers { grid-column: 1 / -1; padding: 18px; }
.leftovers[hidden] { display: none; }
.leftovers > p { margin: 0 0 4px; font-weight: 600; }
.leftovers > small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; max-width: 46em; }
.leftover { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--panel); }
.leftover .what { min-width: 0; flex: 1; }
.leftover .what b { font-weight: 500; font-size: 14px; }
.leftover .what span { display: block; font: 400 11px/1.5 var(--mono); color: var(--muted); }
.leftover .size { font: 400 12px/1 var(--mono); color: var(--muted); }
.leftover button { border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 12.5px/1 var(--body); padding: 8px 11px; border-radius: 8px; cursor: pointer; }
.leftover button:hover { background: var(--panel-hover); }
.leftover.fly { animation: fly 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
@media (max-width: 680px) {
  .apps-body { grid-template-columns: 1fr; }
  .app-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-list li { flex: none; }
  .app-list .meta span { display: none; }
}

/* Cleanup */
.collector-count { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: var(--panel); }
.collector-count.bump { animation: bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); color: var(--star); }
@keyframes bump { 40% { transform: scale(1.18); } }
.cleanup-body { padding: 18px; display: grid; gap: 12px; }
.cleanup-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cleanup-summary .big { font: 600 30px/1 var(--display); color: var(--safe); letter-spacing: -0.02em; }
.cleanup-summary small { display: block; flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.preset { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.preset > button.head {
  width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 16px; gap: 10px; align-items: center;
  padding: 12px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.preset > button.head:hover { background: var(--panel-hover); }
.preset .head svg.icon { width: 20px; height: 20px; color: var(--star); }
.preset .head b { display: block; font-weight: 600; font-size: 14.5px; }
.preset .head span { display: block; font-size: 12.5px; color: var(--muted); }
.preset .head .size { font: 500 12.5px/1 var(--mono); color: var(--text); white-space: nowrap; }
.preset .head .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.preset[data-open="true"] .head .chev { transform: rotate(90deg); }
.preset .items { display: none; padding: 0 10px 10px; }
.preset[data-open="true"] .items { display: block; }
.finding { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; }
.finding .name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.finding .name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finding .size { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.finding p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.finding.fly { animation: fly 0.5s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.finding.done { opacity: 0.4; }
.finding.done .name b { text-decoration: line-through; }
.idle { font: 700 8.5px/1 var(--body); letter-spacing: 0.04em; padding: 3px 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.preset .move { margin: 6px 10px 2px; min-height: 36px; font-size: 13.5px; padding: 0 14px; }
.preset .move[disabled] { opacity: 0.5; cursor: default; }
.dupes-progress { height: 4px; border-radius: 2px; background: var(--panel-hover); overflow: hidden; margin: 4px 10px 10px; }
.dupes-progress i { display: block; height: 100%; width: 0; background: var(--star); border-radius: 2px; }
.dupe-set { padding: 8px 10px; border-radius: 9px; font-size: 13px; }
.dupe-set > b { font: 500 11.5px/1.6 var(--mono); color: var(--muted); }
.dupe-copy { display: flex; align-items: center; gap: 8px; padding: 3px 0; font: 400 12px/1.4 var(--mono); color: rgba(242, 241, 238, 0.85); }
.dupe-copy .keep { font: 700 8.5px/1 var(--body); padding: 3px 5px; border-radius: 999px; background: rgba(92, 204, 143, 0.22); color: #9ff0c3; }
.dupe-copy input { accent-color: var(--star); }
.dupe-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Assistant */
.sample-note { margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; }
.assistant-body { display: flex; flex-direction: column; height: 520px; }
.chat { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat .intro { color: var(--muted); font-size: 14px; max-width: 40em; }
.chat .intro small { display: block; margin-top: 6px; font-size: 12.5px; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chips button { border: 1px solid rgba(255, 184, 77, 0.35); background: rgba(255, 184, 77, 0.07); color: var(--text); border-radius: 12px; padding: 9px 13px; font: 500 14px/1.3 var(--body); cursor: pointer; text-align: left; transition: background 0.2s; }
.chips button:hover { background: rgba(255, 184, 77, 0.15); }
.chips button[disabled] { opacity: 0.45; cursor: default; }
.bubble { max-width: min(560px, 88%); padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; animation: drop-in 0.3s ease-out; }
.bubble.me { align-self: flex-end; background: rgba(255, 184, 77, 0.16); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.ai b { color: var(--text); }
.bubble.thinking { color: var(--muted); font-size: 13.5px; }
.bubble.thinking::after { content: "…"; animation: dots 1.2s steps(3) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } }
.proposal { align-self: flex-start; width: min(560px, 100%); border: 1px solid rgba(255, 184, 77, 0.35); border-radius: 14px; background: rgba(255, 184, 77, 0.05); padding: 12px; animation: drop-in 0.35s ease-out; }
.proposal-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.proposal-head b { font-size: 14.5px; }
.proposal-head span { font: 500 12.5px/1 var(--mono); }
.proposal > p { margin: 3px 0 8px; font-size: 13px; color: var(--muted); }
.proposal-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.proposal-item .name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.proposal-item .name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proposal-item .size { font: 400 12px/1 var(--mono); color: var(--muted); }
.proposal-item p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.proposal-item p code { font: 400 11px/1.4 var(--mono); color: rgba(242, 241, 238, 0.55); display: block; }
.proposal-item button { border: 1px solid var(--line); background: var(--panel); color: var(--text); width: 30px; height: 28px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.proposal-item button svg { width: 15px; height: 15px; }
.proposal-item button[disabled] { color: var(--safe); cursor: default; }
.proposal .all { margin-top: 8px; min-height: 36px; font-size: 13.5px; padding: 0 14px; }
.ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); color: var(--text); font: 400 14.5px/1.3 var(--body); }
.ask button { width: 40px; border: 0; background: none; color: var(--star); cursor: pointer; display: grid; place-items: center; }
.ask button svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .assistant-body { height: 560px; } }

/* Window-bar extras sit at the right; ".window-bar span" would otherwise restyle them. */
.window-bar > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar .collector-count, .window-bar .sample-note { margin-left: auto; flex: none; white-space: nowrap; }
.window-bar .collector-count span { margin: 0; font: inherit; color: inherit; }
.dupe-copy .keep, .finding .badge, .proposal-item .badge { flex: none; }
@media (max-width: 560px) {
  .tabs { flex-wrap: wrap; width: 100%; }
  .window-bar .collector-count { font-size: 10.5px; padding: 4px 7px; }
}

.release-date { font: 400 13px/1 var(--mono); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.lost { text-align: center; padding: 30px 0 20px; }
.lost svg { width: 140px; height: 140px; margin: 0 auto 26px; }
.lost p { color: var(--muted); }
.lost .button { margin-top: 10px; color: #17120a; }

/* The trademark sign: small and raised, so it doesn't change the line height. */
.tm { font-size: 0.55em; line-height: 0; vertical-align: super; margin-left: 0.05em; font-weight: 500; }
