:root {
  --bg: #0a0a0b;
  --card: #141417;
  --elev: #1c1c21;
  --line: #2a2a30;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #4c8bf5;
  --lip: #2b60c4;
  --danger: #e5484d;
  --nav: 4rem;
  --frame: 72rem;
  --section: 5.5rem;
  --section-divider-space: 3rem;
  --section-border: 1px solid rgba(42, 42, 48, 0.8);
  --mole-hero-size: clamp(9rem, 22vh, 17.5rem);
  --hero-shot-max-height: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 70% 32% at 50% -8%, rgba(76, 139, 245, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg.mole:not(.mole-hero) { max-width: 100%; height: auto; width: auto; }
.mole[data-mole-live] { animation: none; }
a { color: #c9dbff; }
button, a, input { font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #c9dbff; outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: #111;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 0.6rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.ver {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--elev);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-end { display: flex; align-items: center; gap: 0.75rem; }
.nav-short { display: none; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 0 var(--lip);
  height: 3.5rem;
  padding: 0 1.6rem;
  font-size: 1rem;
}
.btn-ghost {
  background: var(--card);
  border: 1px solid #3a3a44;
  box-shadow: 0 4px 0 #070709;
  height: 3.5rem;
  padding: 0 1.35rem;
}
.btn-nav {
  height: 2.5rem;
  padding: 0 1.15rem;
  font-size: 0.875rem;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--lip);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip); }
.btn-ghost:active { box-shadow: 0 1px 0 #070709; }

.brew,
.brew-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.brew-pill {
  height: 2.5rem;
  padding: 0 0.35rem 0 0.85rem;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
}
.brew {
  height: 3.5rem;
  padding: 0 0.4rem 0 1rem;
  min-width: 0;
}
.brew code,
.brew-pill code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  color: #e7e7ee;
  white-space: nowrap;
}
.copy {
  border: 0;
  background: var(--elev);
  color: #fff;
  border-radius: 999px;
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.copy.is-copied { color: #b7f0c8; }

.wrap { width: min(var(--frame), calc(100% - 3rem)); margin: 0 auto; }
.kicker {
  margin: 0 0 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9dbff;
}
.kicker.danger { color: #ffb4b6; }

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.lede {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}
.chapter h2, .band h2, .closing h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.chapter p, .band p, .closing p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.chapter p + p { margin-top: 0.7rem; }

.hero, .page-hero { text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--accent); }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
}
.hero .mole-hero,
.page-hero .mole-hero,
.closing .mole-hero {
  flex-shrink: 0;
  box-sizing: border-box;
  width: var(--mole-hero-size);
  height: auto;
  max-width: 92vw;
  aspect-ratio: 1;
}
.frame {
  width: min(var(--frame), calc(100% - 2rem));
  margin: 3.5rem auto 0;
}
main > section {
  padding-top: var(--section);
}
main > section:not(:last-child) {
  padding-bottom: var(--section-divider-space);
}
main > section + section {
  border-top: var(--section-border);
}
main > section:last-child {
  padding-bottom: max(var(--section), var(--section-divider-space));
}
main > section.band {
  padding-top: max(var(--section), var(--section-divider-space));
}
main > section.band:not(:last-child) {
  padding-bottom: max(var(--section-divider-space), 2.5rem);
}
.offers { margin-top: 1rem; }
.mac-offers { display: flex; flex-direction: column; align-items: center; width: 100%; }
.offer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.meta {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
}
.other {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: left;
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.other h2 { margin: 0 0 0.3rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.other p { margin: 0 0 0.6rem; }
.other .mole { width: 96px; flex: 0 0 auto; }
.texty {
  background: none;
  border: 0;
  padding: 0;
  color: #c9dbff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.shot-prod img {
  border: 3px solid var(--danger);
  box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.16), 0 24px 70px rgba(0, 0, 0, 0.45);
}
.shot figcaption {
  margin: 0.75rem 0 0;
  color: #a1a1aa;
  font-size: 0.85rem;
}

.chapter-danger {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(229, 72, 77, 0.14), transparent 62%);
}
.chapter-head {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
}
.mole-chapter { width: 96px; height: auto; flex: 0 0 auto; }

.facts, .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.fact, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem 1.2rem;
}
.fact strong, .card h3 { display: block; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.fact span, .card p { color: var(--muted); font-size: 0.95rem; }
.card p { margin: 0; }
.card-stage {
  border-color: #e8bf6a;
  box-shadow: 0 0 0 1px rgba(232, 191, 106, 0.45);
}
.card-stage h3 { color: #f3d48a; }
.card-prod { border-color: rgba(229, 72, 77, 0.55); background: #1a1012; }
.card-prod h3 { color: #ffb4b6; }
.closing { text-align: center; }
.closing .mole-hero { margin-inline: auto; }
ol.steps, ul.reqs { margin: 0.45rem 0 0; padding-left: 1.15rem; color: var(--muted); }
ol.steps li, ul.reqs li { margin: 0.35rem 0; }
ol.steps strong, ul.reqs strong { color: #fff; }

.site-footer {
  border-top: var(--section-border);
  padding: 2.5rem 0 3rem;
  color: #71717a;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

html[data-platform="other"] .only-mac { display: none; }
html[data-platform="other"][data-downloads="open"] .only-mac { display: flex; }
.only-other { display: none; }
html[data-platform="other"] .only-other { display: flex; }
html[data-platform="other"][data-downloads="open"] .only-other { display: none; }

@media (min-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root {
    --section: 3.75rem;
    --section-divider-space: 2.25rem;
  }
}
@media (min-width: 900px) {
  :root {
    /* max(vh, vw) so wide and tall screens both get a large mole */
    --mole-hero-size: clamp(13rem, max(28vh, 18vw), 32rem);
    --hero-shot-max-height: min(46vh, 40rem);
  }
}
@media (min-width: 1200px) {
  :root {
    --mole-hero-size: clamp(15rem, max(32vh, 20vw), 36rem);
    --hero-shot-max-height: min(52vh, 44rem);
  }
}
@media (min-width: 1600px) {
  :root {
    --mole-hero-size: clamp(17rem, max(34vh, 22vw), 40rem);
    --hero-shot-max-height: min(56vh, 48rem);
  }
}
@media (min-width: 980px) {
  .cards.three { grid-template-columns: 1fr 1fr 1fr; }
}
.hero h1, .page-hero h1 { margin-left: auto; margin-right: auto; text-align: center; }
.page-hero h1 { max-width: 16em; }
@media (max-width: 1040px) {
  .brew-pill { display: none; }
}
@media (max-width: 999px) {
  .card .brew {
    width: 100%;
    min-width: 0;
    height: auto;
    flex-wrap: wrap;
    border-radius: 1rem;
    padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  }
  .card .brew code { white-space: normal; }
}
@media (max-width: 520px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .btn-nav { padding: 0 0.75rem; }
  .brand { font-size: 0.95rem; gap: 0.45rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem 1.1rem;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav { height: auto; }
  .nav-inner { height: 4rem; position: relative; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .mole-float { animation: none; }
}

/* One screen per section. Heroes stay a single centred column. */
@media (min-width: 900px) {
  main > section.hero,
  main > section.page-hero,
  main > section.chapter,
  main > section.closing,
  main > section.closing:last-child {
    box-sizing: border-box;
    min-height: calc(100vh - var(--nav));
    min-height: calc(100svh - var(--nav));
    padding-top: var(--section-divider-space);
    padding-bottom: var(--section-divider-space);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }
  .hero .frame,
  .page-hero .frame {
    flex-shrink: 0;
    margin-top: 0;
    width: min(var(--frame), calc(100% - 2rem));
  }
  .chapter .frame {
    margin-top: 0;
  }
  .chapter .wrap.lead + .frame,
  .hero .wrap.lead + .frame,
  .page-hero .wrap.lead + .frame {
    margin-top: 1.25rem;
  }
  .hero .shot img,
  .page-hero .shot img {
    width: auto;
    max-width: 100%;
    max-height: var(--hero-shot-max-height);
    margin-inline: auto;
    object-fit: contain;
  }
  .chapter .shot img {
    width: auto;
    max-width: 100%;
    max-height: 46vh;
    margin-inline: auto;
    object-fit: contain;
  }
}
