/* macWTF — visual system adapted from the eventStream style guide.
 *
 * The structure is kept wholesale: ambient blurred blobs, film grain, sticker
 * tilts, Space Grotesk headlines with Instrument Serif italic accent words,
 * JetBrains Mono labels, big rounded glowing cards.
 *
 * The accent is deliberately not eventStream's acid lime. macWTF is a security
 * tool, and lime reads as a consumer events product; violet also matches what
 * the terminal interface and the README badges already use, so the two halves
 * of the project look like one thing.
 *
 * Fonts are self-hosted rather than loaded from Google, so viewing the page
 * contacts no third party.
 */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap;
  src: url("./fonts/SpaceGrotesk-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("./fonts/SpaceGrotesk-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap;
  src: url("./fonts/SpaceGrotesk-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("./fonts/SpaceGrotesk-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap;
  src: url("./fonts/InstrumentSerif-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("./fonts/InstrumentSerif-400i-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("./fonts/JetBrainsMono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap;
  src: url("./fonts/JetBrainsMono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap;
  src: url("./fonts/JetBrainsMono-700-latin.woff2") format("woff2"); }

/* ---------------------------------------------------------------- palette */

:root {
  --bg: #0b0b10;
  --bg2: #121218;
  --card: #16161d;
  --line: #26262f;
  --ink: #f4f4f0;
  --muted: #8b8b95;
  --dim: #5a5a64;

  --accent: #a78bfa;        /* primary — violet, matching the TUI */
  --accent-deep: #7c3aed;
  --cyan: #4ee1ff;          /* links and interactive hints */
  --pink: #ff5ca8;
  --orange: #ff9e42;
  --lime: #c8ff2e;
  --danger: #ff6b6b;

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --glow: 0 0 28px rgba(167, 139, 250, .35);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient blobs: three huge blurred circles behind everything. */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}
.blob.a { width: 520px; height: 520px; background: #7c3aed; opacity: .26; top: -160px; right: -120px; }
.blob.b { width: 420px; height: 420px; background: #1d4ed8; opacity: .18; bottom: -140px; left: -120px; }
.blob.c { width: 300px; height: 300px; background: var(--pink); opacity: .10; top: 40%; left: 45%; }

/* Film grain over the whole page. */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Everything real sits above the blobs and grain. */
.page { position: relative; z-index: 5; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

/* --------------------------------------------------------------- type bits */

.zing {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(92deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.stamp {
  display: inline-block;
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: 99px;
  padding: 6px 14px;
  transform: rotate(-1deg);
}

h1, h2, h3 { letter-spacing: -.035em; line-height: 1.04; margin: 0; font-weight: 700; }
h1 { font-size: clamp(40px, 6.6vw, 74px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }

/* ------------------------------------------------------------------- nav */

nav.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 11, 16, .75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; padding: 13px 26px; max-width: 1180px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #0b0b10;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  transform: rotate(-6deg);
  box-shadow: 0 0 22px rgba(167, 139, 250, .45);
  flex: none;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.on { color: var(--accent); text-decoration: none; background: rgba(167,139,250,.08); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-block;
  background: var(--accent); color: #0b0b10;
  font: 700 14px/1 var(--sans);
  border: 0; border-radius: 14px;
  padding: 13px 22px; cursor: pointer;
  box-shadow: var(--glow);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 40px rgba(167,139,250,.5); text-decoration: none; background: #b9a2fc; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Hamburger, shown under 860px. */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 14px 26px 20px;
}
.drawer.open { display: block; }
.drawer a { display: block; padding: 12px 4px; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer a:last-of-type { border-bottom: 0; }

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: block; }
}

/* ------------------------------------------------------------------ hero */

.hero { padding: 74px 0 48px; }
.hero h1 { margin: 18px 0 0; max-width: 16ch; }
.hero .sub { margin: 22px 0 0; font-size: clamp(16px, 1.9vw, 19px); color: #c9c9cf; max-width: 60ch; line-height: 1.62; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }

.install-line {
  font: 500 13.5px/1 var(--mono);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: #d6d6e4;
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto;
}
.install-line button {
  background: none; border: 0; color: var(--muted);
  font: 700 11px var(--mono); cursor: pointer; letter-spacing: .1em;
  text-transform: uppercase; flex: none;
}
.install-line button:hover { color: var(--accent); }

.stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.stat span { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }

/* ----------------------------------------------------------------- packs */

section { padding: 54px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.pack {
  position: relative;
  display: block;
  background: linear-gradient(180deg, var(--bg2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .16s, border-color .16s;
}
.pack:hover { transform: translateY(-3px); border-color: var(--pack); text-decoration: none; }
.pack::after {
  content: "";
  position: absolute; inset: -40% -30% auto auto;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--pack); opacity: .16; filter: blur(60px);
  pointer-events: none;
}
.pack .glyph {
  font-size: 34px; line-height: 1; color: var(--pack);
  display: block; margin-bottom: 16px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--pack) 55%, transparent));
}
.pack h3 { font-size: 21px; margin-bottom: 4px; }
.pack .tagline { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--pack); }
.pack p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pack .foot { margin-top: 18px; display: flex; align-items: center; gap: 10px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pack .foot .n { color: var(--pack); }

/* ------------------------------------------------------------- catalogue */

.tool-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; padding-top: 26px; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }

aside.cats { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 900px) { aside.cats { position: static; max-height: none; display: none; } aside.cats.open { display: block; } }

.side-label { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--dim); margin: 16px 0 8px 10px; }
.cat {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 11px; border: 0; border-radius: 9px; background: none;
  color: var(--muted); font: 500 13.5px var(--sans); cursor: pointer;
  transition: background .12s, color .12s;
}
.cat:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.cat.on { background: rgba(167,139,250,.14); color: var(--ink); font-weight: 600; }
.cat .n { margin-left: auto; font: 500 11px var(--mono); color: var(--dim); }
.cat.on .n { color: var(--accent); }

.searchbar { position: relative; flex: 1; min-width: 160px; }
.searchbar input {
  width: 100%; padding: 12px 14px 12px 38px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink); font: 400 15px var(--sans); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167,139,250,.15); }
.searchbar .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 99px; padding: 7px 15px; font: 600 13px var(--sans); cursor: pointer;
  transition: all .12s;
}
.chip:hover { color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #0b0b10; box-shadow: var(--glow); transform: rotate(-1.5deg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }

.card {
  background: linear-gradient(180deg, var(--bg2), var(--card));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 17px; cursor: pointer; position: relative;
  transition: transform .14s, border-color .14s;
}
.card:hover { transform: translateY(-2px); border-color: #3a3a52; }
.card.picked { border-color: var(--accent); background: rgba(167,139,250,.08); }
.card h3 { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .be { font: 500 10px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; flex: none; }
.card-top { display: flex; align-items: center; gap: 8px; }
.card p { margin: 9px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.1em; }
.card .cat-note { margin-top: 11px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.tick { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent); color: #0b0b10; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.flags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.flag { font: 700 9.5px var(--mono); letter-spacing: .08em; border-radius: 5px; padding: 3px 7px; }
.flag.quarantine { background: rgba(255,158,66,.16); color: var(--orange); }
.flag.tcc        { background: rgba(78,225,255,.14); color: var(--cyan); }
.flag.rosetta    { background: rgba(255,158,66,.16); color: var(--orange); }
.flag.paid       { background: rgba(139,139,149,.16); color: var(--muted); }
.flag.unverified { background: rgba(255,107,107,.14); color: var(--danger); }

.empty { color: var(--dim); text-align: center; padding: 80px 0; }

/* ----------------------------------------------------------------- modal */

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,10,.78); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 22px; }
.modal { background: linear-gradient(180deg, var(--bg2), var(--card)); border: 1px solid var(--line);
  border-radius: 22px; width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 20px; }
.modal-head .x { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 20px; cursor: pointer; padding: 2px 6px; }
.modal-head .x:hover { color: var(--ink); }
.modal-body { padding: 22px 24px; overflow-y: auto; }

pre.cmd { background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin: 0; overflow-x: auto; font: 400 13px/1.65 var(--mono); color: #d6d6e4; white-space: pre-wrap; word-break: break-word; }
.copy { float: right; margin: -36px 10px 0 0; position: relative; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); border-radius: 7px; padding: 4px 10px; font: 700 10.5px var(--mono); cursor: pointer; text-transform: uppercase; letter-spacing: .1em; }
.copy:hover { color: var(--accent); border-color: var(--accent); }

.note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 13px; margin-top: 14px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--dim); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.kv dd { margin: 0; }

.banner { background: rgba(255,158,66,.10); border: 1px solid rgba(255,158,66,.28); color: #ffd7a8;
  border-radius: 12px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 20px; }

.pack-group { margin-bottom: 22px; }
.pack-group h4 { margin: 0 0 9px; font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--dim); }

.tray {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50;
  background: var(--card); border: 1px solid #3a3a52; border-radius: 99px;
  padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7); font-size: 14px;
}

footer.foot { border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; padding: 34px 26px 48px; text-align: center; }

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

/* The category button replaces the sidebar below the breakpoint where the
   sidebar is hidden, so it must not appear when the sidebar is present. */
.cats-toggle { display: none; }
@media (max-width: 900px) { .cats-toggle { display: inline-block; } }

/* ----------------------------------------------------- platform lockup */

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.plat {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  background: linear-gradient(180deg, var(--bg2), var(--card));
}
.plat b { display: block; font-size: 17px; letter-spacing: -.02em; color: var(--dim); }
.plat span { display: block; margin-top: 5px; font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--dim); }
.plat.on { border-color: var(--accent); box-shadow: var(--glow); }
.plat.on b { color: var(--ink); }
.plat.on span { color: var(--accent); }

.family { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.family span {
  font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; color: var(--dim);
}
.family .here { border-color: var(--accent); color: var(--accent); }
.family .soon em { font-style: normal; opacity: .55; margin-left: 6px; }

/* ------------------------------------------------------------ pack scope */

.scope-head { padding: 28px 0 4px; }
.scope-head p { color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.scope-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.scope-count { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--dim); }

/* The add control is always visible: selection used to need a modifier key,
   which meant most people never found it. */
.card { padding-right: 46px; }
.add {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); font: 700 15px/1 var(--sans); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: all .13s;
}
.add:hover { border-color: var(--accent); color: var(--accent); background: rgba(167,139,250,.12); }
.add.on { background: var(--accent); border-color: var(--accent); color: #0b0b10; box-shadow: var(--glow); }
.card .card-top { padding-right: 4px; }

.build-hint { font-size: 13px; color: var(--dim); margin-bottom: 4px; }
.build-hint b { color: var(--accent); }

/* --------------------------------------------------------------- filters */

.filters {
  display: grid; gap: 16px;
  background: linear-gradient(180deg, var(--bg2), var(--card));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 16px;
}
.fgroup { display: grid; gap: 8px; }
.flabel { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.frow { display: flex; gap: 7px; flex-wrap: wrap; }
.frow .chip { padding: 5px 12px; font-size: 12.5px; }

/* Select-all lives with the result count, where the current view is described:
   filter down to what you want, then take all of it. */
.resultbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 13.5px; color: var(--muted);
}
.resultbar b { color: var(--ink); }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 13px var(--sans); color: var(--accent);
}
.linkish:hover { text-decoration: underline; }
.linkish.dim { color: var(--dim); }
.linkish.dim:hover { color: var(--muted); }

/* -------------------------------------------------------------- cli page */

.doc section { padding: 44px 0; border-top: 1px solid var(--line); }
.doc section:first-of-type { border-top: 0; }
.doc h2 { margin-bottom: 14px; }
.doc .lede { color: #c9c9cf; font-size: 16px; line-height: 1.65; max-width: 68ch; margin: 0 0 18px; }
.doc .fine { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 68ch; margin: 14px 0 0; }
.doc code {
  font: 500 12.5px var(--mono); background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: #d6d6e4;
}
.doc .cmd { margin-bottom: 4px; }

.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; margin-top: 26px; }
.step-n {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(167,139,250,.14); border: 1px solid var(--accent);
  color: var(--accent); font: 700 14px var(--mono);
  display: grid; place-items: center; transform: rotate(-4deg);
}
.step-body h3 { font-size: 17px; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 66ch; }

/* Screenshots, and the placeholder that stands in until one exists. */
.shot { margin: 30px 0; }
.shot img {
  width: 100%; display: block; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.shot-ph {
  /* align-content packs the two rows together; place-items alone centres each
     row within its own share of the box, which spreads them to the edges. */
  display: grid; place-items: center; align-content: center; gap: 10px;
  aspect-ratio: 16 / 10; border-radius: 16px;
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, var(--bg2), var(--card));
}
.shot-ph-icon { font-size: 30px; color: var(--line); }
.shot-ph-file { font: 500 11.5px var(--mono); color: var(--dim); letter-spacing: .04em; }
.shot figcaption {
  margin-top: 11px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.55;
}

.callout {
  margin-top: 26px; padding: 16px 18px;
  border: 1px solid rgba(255,158,66,.28); background: rgba(255,158,66,.08);
  border-radius: 14px; color: #ffd7a8; font-size: 13.5px; line-height: 1.65;
}
.callout b { color: #ffe9c9; }
.callout code { background: rgba(0,0,0,.3); border-color: rgba(255,158,66,.28); color: #ffd7a8; }

.cmdlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cmdlist > div {
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
  background: var(--card); padding: 13px 16px;
}
.cmdlist code { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; }
.cmdlist span { color: var(--muted); font-size: 13.5px; }

/* A platform with a site of its own is a link; one without is not. */
.plat.linked { display: block; position: relative; transition: border-color .15s, transform .15s; }
.plat.linked:hover { border-color: var(--cyan); transform: translateY(-2px); text-decoration: none; }
.plat.linked:hover b { color: var(--ink); }
.plat-go {
  position: absolute; top: 16px; right: 18px;
  font: 700 9.5px var(--mono) !important; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan) !important; margin: 0 !important;
}
.family a.soon { color: var(--dim); }
.family a.soon:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }

/* ----------------------------------------------------------- family page

   A standalone page: no nav, no footer, nothing macWTF-branded, because it has
   to represent all three tools evenly. Three boxes centred in the viewport and
   nothing else, so the wordmarks carry the page instead of a headline. */

.fam {
  min-height: 100vh; min-height: 100dvh;
  display: grid; align-content: center;
  padding: 56px 24px; max-width: 1180px; margin: 0 auto;
}

.fam-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.fam-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 28px 26px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.fam-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  border-radius: 20px 20px 0 0; background: var(--tone); opacity: .85;
}
.fam-card:hover {
  border-color: color-mix(in srgb, var(--tone) 55%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}

.fam-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fam-glyph { font-size: 26px; line-height: 1; color: var(--tone); }
.fam-status {
  font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .13em;
  color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  border-radius: 99px; padding: 5px 10px; white-space: nowrap;
}

/* The type scale does the work the removed headline used to. The wordmark is
   the largest thing on the page; everything under it steps down hard. */
.fam-word {
  font: 700 clamp(34px, 3.6vw, 46px)/1 var(--sans);
  margin: 20px 0 0; letter-spacing: -.035em;
}
.fam-os {
  display: block; margin-top: 9px;
  font: 400 15px/1 var(--serif); font-style: italic; color: var(--tone); opacity: .8;
}
.fam-blurb {
  color: var(--muted); font-size: 14px; line-height: 1.68;
  margin: 18px 0 0; flex: 1;
}

.fam-links { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.fam-btn {
  font: 700 12.5px var(--sans); padding: 10px 16px; border-radius: 10px;
  background: var(--tone); color: #0b0b10; white-space: nowrap;
}
.fam-btn:hover { text-decoration: none; filter: brightness(1.12); }
.fam-gh {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 12.5px var(--sans); padding: 10px 15px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--muted);
}
.fam-gh:hover { border-color: var(--tone); color: var(--tone); text-decoration: none; }

/* The footer pointer to the family page: present, but quiet. */
.fam-link { margin: 10px 0 0; }
.fam-link a { font: 500 11.5px var(--mono); color: var(--dim); letter-spacing: .04em; }
.fam-link a:hover { color: var(--cyan); }

.fam-gh.off { color: var(--dim); opacity: .5; cursor: default; }
.fam-gh.off:hover { border-color: var(--line); color: var(--dim); }
