/* MacDiskSleuth site: technical and honest. IBM Plex, data-viz colours from the sunburst. */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --teal: #2dd4bf; --blue: #3b82f6; --violet: #8b5cf6; --amber: #f59e0b; --rose: #fb7185;

  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #eef2f7; --text: #0e1526; --muted: #4f5b72;
  --line: #dbe2ec; --accent: #0f6bd8; --accent-fg: #ffffff; --hl: #08756a; --focus: #0f6bd8;
  --win: #0d1630; --win-2: #131e3d; --win-text: #e6ecf8; --win-muted: #9aa7c2;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020; --surface: #111a33; --surface-2: #16213f; --text: #e9eef8; --muted: #a4afc6;
    --line: #243155; --accent: #5aa2ff; --accent-fg: #061226; --hl: #2dd4bf; --focus: #5aa2ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin-bottom: 16px; max-width: 22em; }
h3 { font-size: 19px; font-weight: 600; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--hl); margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 36em; margin: 0; }
.fineprint { color: var(--muted); font-size: 15px; margin: 20px 0 0; max-width: 56em; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); }
nav a.nav-cta { color: var(--accent-fg); background: var(--accent); padding: 7px 14px; border-radius: 8px; font-weight: 600; }
@media (max-width: 680px) { nav .hide-s { display: none; } }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hl { color: var(--hl); }
.lede { font-size: 19px; color: var(--muted); margin: 20px 0 0; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--surface); line-height: 1.2; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.06); }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero { padding: 40px 0 64px; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Illustrated app window with a CSS-only lens toggle */
.demo { margin: 0; }
.win { background: var(--win); color: var(--win-text); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgb(8 14 32 / .55), 0 0 0 1px rgb(255 255 255 / .06); }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--win-2); font-size: 13px; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.path { font-family: var(--mono); color: var(--win-muted); }
.lens { margin: 0 0 0 auto; padding: 2px; border: 0; display: flex; background: rgb(255 255 255 / .07); border-radius: 8px; }
.lens input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lens label { padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--win-muted); font-weight: 500; }
.lens input:checked + label { background: rgb(255 255 255 / .16); color: #fff; }
.lens input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 1px; }
.win-body { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 18px; }
.burst svg { width: 100%; height: auto; display: block; }
.burst .core { fill: #0a1226; }
.burst .t1 { fill: #fff; font: 600 20px var(--sans); }
.burst .t2 { fill: var(--win-muted); font: 400 12px var(--mono); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.rows li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name n" "track track"; gap: 4px 10px; align-items: center; }
.rows .name { grid-area: name; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .tag { display: none; }
.rows .n { grid-area: n; font-family: var(--mono); font-weight: 500; }
.rows .n b { font-weight: 500; }
.v-phy, .v-fre { display: none; }
.rows .track { grid-area: track; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .07); overflow: hidden; }
.rows .fill { display: block; height: 100%; border-radius: 4px; width: var(--log); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.c1 { background: var(--teal); } .c2 { background: var(--blue); } .c3 { background: var(--violet); } .c4 { background: var(--amber); } .c5 { background: var(--rose); }
.demo:has(#l-phy:checked) .fill { width: var(--phy); }
.demo:has(#l-fre:checked) .fill { width: var(--fre); }
.demo:has(#l-phy:checked) .v-log, .demo:has(#l-fre:checked) .v-log { display: none; }
.demo:has(#l-phy:checked) .v-phy, .demo:has(#l-fre:checked) .v-fre { display: inline; }
.demo figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 520px) { .win-body { grid-template-columns: 1fr; } .burst { width: 180px; margin: 0 auto; } }

/* Sections */
main > section.wrap { margin-top: 112px; }
@media (max-width: 700px) { main > section.wrap { margin-top: 80px; } }
.lenses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.lens-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lens-card .k { font-family: var(--mono); font-weight: 500; font-size: 15px; display: block; margin-bottom: 6px; }
.lens-card p { margin: 0; color: var(--muted); font-size: 16px; }
.lens-card.accent { border-color: var(--hl); box-shadow: inset 0 3px 0 var(--hl); }
.callout { margin-top: 14px; background: var(--win); color: var(--win-text); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline; }
.callout p { margin: 0; }
.callout .mono { color: var(--teal); }
.callout strong { color: #fff; }
.gotchas { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.gotchas b { display: block; font-weight: 600; margin-bottom: 4px; }
.gotchas span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .lenses { grid-template-columns: 1fr; } .gotchas { grid-template-columns: 1fr 1fr; } .callout { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.top5 { list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px -18px rgb(8 14 32 / .35); }
.top5 li { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 12px 12px; border-radius: 10px; }
.top5 li + li { border-top: 1px solid var(--line); }
.top5 .r { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-family: var(--mono); font-weight: 500; font-size: 14px; }
.top5 li:first-child .r { background: var(--hl); color: var(--bg); }
.top5 b { display: block; font-weight: 600; }
.top5 small { color: var(--muted); font-size: 14px; }
.top5 .f { font-family: var(--mono); font-weight: 500; color: var(--hl); white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.term { margin-top: 28px; background: #070b16; border-radius: var(--radius); overflow: hidden; border: 1px solid #1c2747; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #0f1730; color: #8d99b6; font: 13px var(--mono); }
.term pre, details pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 14px/1.7 var(--mono); color: #dbe4f5; }
.term .p { color: var(--teal); } .term .c { color: #8a97b5; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); font-size: 16px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text); font: 500 15px var(--mono); margin-bottom: 12px; }
.steps b { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); max-width: 60em; }
details pre { background: #070b16; border-radius: 10px; margin-top: 12px; }

footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.foot-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-main .brand { font-size: 16px; }
footer a { color: var(--muted); } footer a:hover { color: var(--text); }
.more { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
