/* Mac Cleanup Assistant: project site */

:root {
  color-scheme: light dark;

  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-alt: #f2f4ee;
  --ink: #14211d;
  --muted: #55655f;
  --line: #dde3dc;

  --brand: #0f3d33;
  --brand-ink: #ffffff;
  --accent: #1f8a6b;
  --lime: #dcf26a;
  --coral: #c95e43;

  --tag-bg: #e3f1e8;
  --tag-ink: #115240;
  --tag-trash-bg: #f8e6df;
  --tag-trash-ink: #8a3a24;
  --tag-docker-bg: #e4ecf8;
  --tag-docker-ink: #284a82;

  --dark-bg: #0d2c25;
  --dark-ink: #eaf3ef;
  --dark-muted: #a9c0b7;
  --dark-line: #2b5146;

  --shadow: 0 1px 2px rgb(16 40 33 / 6%), 0 12px 32px rgb(16 40 33 / 10%);
  --radius: 14px;

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #121f1b;
    --surface-alt: #0f1b17;
    --ink: #eaf1ee;
    --muted: #9db1a9;
    --line: #243630;

    --brand: #dcf26a;
    --brand-ink: #10231d;
    --accent: #6fd3b0;

    --tag-bg: #17332a;
    --tag-ink: #9fe3c6;
    --tag-trash-bg: #3a2119;
    --tag-trash-ink: #f2b8a5;
    --tag-docker-bg: #17273f;
    --tag-docker-ink: #a8c4f2;

    --dark-bg: #08120f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 45%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

code, pre {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  color: var(--brand-ink);
  background: var(--brand);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--muted); }

.btn-ghost {
  padding-inline: 12px;
  color: var(--muted);
}

.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { display: block; border-radius: 8px; }

.site-header nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.hero {
  padding-block: 72px 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 360px at 0% 0%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(38px, 5vw, 58px);
}

.hero h1 span { color: var(--accent); }

.lead {
  max-width: 520px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-shot img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgb(16 40 33 / 18%));
}

/* Trust strip ------------------------------------------------------------ */

.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item strong,
.trust-item span { display: block; line-height: 1.35; }

.trust-item strong { font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* Sections --------------------------------------------------------------- */

.section { padding-block: 88px; }

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head-center { margin-inline: auto; text-align: center; }

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h2 { font-size: clamp(28px, 3.4vw, 38px); }

.section-head > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

/* Steps ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.steps h3 { font-size: 18px; }

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* Product tour ----------------------------------------------------------- */

.tour {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.tour-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-tab {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.tour-tab strong { display: block; font-size: 16px; }

.tour-tab span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.tour-tab:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.tour-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tour-stage { min-width: 0; }

.tour-panel img {
  display: block;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  filter: drop-shadow(0 14px 24px rgb(16 40 33 / 14%));
}

/* Without JavaScript the screenshots stack; with it only the active one shows. */
.js .tour-panel { display: none; }
.js .tour-panel.is-active { display: block; }

.tour-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.js .tour-tab span { display: none; }
.js .tour-tab[aria-selected="true"] span { display: block; }

/* Categories ------------------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.cat-grid li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.cat-grid strong { font-size: 15px; }

.cat-grid code {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tag {
  justify-self: start;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 99px;
  color: var(--tag-ink);
  background: var(--tag-bg);
  font-size: 12px;
  font-weight: 600;
}

.tag-trash { color: var(--tag-trash-ink); background: var(--tag-trash-bg); }
.tag-docker { color: var(--tag-docker-ink); background: var(--tag-docker-bg); }

/* Safety ----------------------------------------------------------------- */

.section-dark {
  color: var(--dark-ink);
  background: var(--dark-bg);
}

.section-dark .eyebrow { color: var(--lime); }

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.safety-intro > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--dark-muted);
  font-size: 17px;
}

.safety-aside {
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--coral);
  font-size: 15px !important;
}

.safety-aside strong { color: var(--dark-ink); }

.safety-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.safety-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
}

.safety-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-list strong,
.safety-list span { display: block; }

.safety-list strong { font-size: 15px; }
.safety-list span { color: var(--dark-muted); font-size: 14px; line-height: 1.5; }

/* Install ---------------------------------------------------------------- */

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
}

.card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 14px; font-size: 20px; }

.card > p:not(.fine) { color: var(--muted); }

.card ol {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.card li + li { margin-top: 6px; }
.card li strong { color: var(--ink); }

.card .btn { margin-top: 4px; }

.code {
  margin: 14px 0 12px;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 10px;
  color: #e8f4ee;
  background: #0f2520;
  font-size: 13px;
  line-height: 1.7;
}

.code code { white-space: pre; }

.fine code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-alt);
  font-size: 12px;
}

.card .code + .fine { margin-bottom: 18px; margin-top: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--ink); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-header nav { display: none; }
  .header-actions { margin-left: auto; }

  .hero { padding-block: 48px 40px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-shot img { max-width: 520px; }

  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tour {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* Tabs become a horizontal chip row; the description is dropped to keep it compact. */
  .tour-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tour-tab {
    width: auto;
    padding: 8px 16px;
    border-color: var(--line);
    border-radius: 99px;
    background: var(--surface);
  }

  .tour-tab span,
  .js .tour-tab[aria-selected="true"] span { display: none; }

  .tour-tab[aria-selected="true"] {
    color: var(--brand-ink);
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: none;
  }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .safety-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }

  .section { padding-block: 60px; }
  .section-head { margin-bottom: 30px; }

  .header-inner { min-height: 58px; gap: 12px; }
  .brand { font-size: 14px; }
  .btn-ghost { display: none; }

  .lead { font-size: 17px; }

  .cta-row .btn { flex: 1 1 100%; }

  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px 18px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
