/* dl-nzb.com: one stylesheet for index.html and privacy.html.
   base16-eighties. The accent is base09 orange, as in the app icon.
   Contrast on --bg #2d2d2d: base07 12:1, base05 8.9:1, base04 5.2:1,
   base09 5.9:1. base03 (2.9:1) is for lines and decoration only. */
:root {
  --base00: #2d2d2d; --base01: #393939; --base02: #515151; --base03: #747369;
  --base04: #a09f93; --base05: #d3d0c8; --base06: #e8e6df; --base07: #f2f0ec;
  --base08: #f2777a; --base09: #f99157; --base0A: #ffcc66; --base0B: #99cc99;
  --base0C: #66cccc; --base0D: #6699cc; --base0E: #cc99cc;

  --bg: var(--base00);
  --well: #262626;            /* code and video wells */
  --line: #474747;            /* hairlines */
  --head: var(--base07);      /* headings, names */
  --text: var(--base05);      /* running text */
  --dim: var(--base04);       /* captions, dates, notes */
  --deco: var(--base03);      /* decoration only */
  --accent: var(--base09);
  --done: var(--base0B);      /* the app's green "done" dot */

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
          "DejaVu Sans Mono", "Liberation Mono", monospace;

  --fs-label: 0.8rem;
  --fs-small: 0.9rem;
  --fs-text: 1rem;

  --col: 64rem;
  --gutter: 1.5rem;
  --edge: max(var(--gutter), calc((100% - var(--col)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--base02) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: var(--base02); color: var(--head); }

a {
  color: var(--head);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
strong, b { color: var(--head); font-weight: 600; }
code, pre { font-family: var(--mono); }
code { font-size: 0.92em; }
img, video { max-width: 100%; }

h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.skip { position: absolute; top: -5rem; left: 1rem; z-index: 1; padding: 0.5rem 1rem;
  background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ── top bar: the name on the left, three links on the right ─────────── */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.4rem; padding: 1.4rem var(--edge);
  font-family: var(--mono);
}
.topbar .id {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--head); font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.topbar .id img { display: block; width: 32px; height: 32px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: var(--fs-label); }
.topbar nav a { color: var(--dim); text-decoration: none; }
.topbar nav a:hover { color: var(--head); }

/* ── hero: what it does, then the two buttons ────────────────────────── */
.hero { padding: 4.5rem var(--edge) 0; }
.hero h1 {
  max-width: 15em;
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); color: var(--head);
}
.lede { margin-top: 1.1rem; max-width: 34em; font-size: 1.1rem; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.btn {
  display: inline-block; padding: 0.6rem 1rem; white-space: nowrap;
  font-family: var(--mono); font-size: var(--fs-small); color: var(--head); text-decoration: none;
  border: 1px solid var(--base02); border-radius: 3px;
}
.btn::before { content: "["; color: var(--deco); margin-right: 0.45em; }
.btn::after { content: "]"; color: var(--deco); margin-left: 0.45em; }
.btn:hover { color: var(--head); border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn--primary::before, .btn--primary::after { color: rgba(45, 45, 45, 0.55); }
.btn--primary:hover { background: var(--base0A); border-color: var(--base0A); color: var(--bg); }

/* small print under buttons: requirements and a couple of links */
.fine {
  margin-top: 0.9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1.2rem;
  font-size: var(--fs-label); color: var(--dim);
}
.fine a { color: var(--dim); }
.fine a:hover { color: var(--accent); }

/* ── the Mac app, as wide as the column ──────────────────────────────── */
.stage { margin: 3.5rem var(--edge) 0; }
.stage video, .phone video {
  display: block; width: 100%; height: auto;
  background: #08090a;        /* the video's own stage, so the poster gap never flashes */
  border: 1px solid var(--line); border-radius: 6px;
}
.stage, .phone { position: relative; }
.stage .ctrl, .phone .ctrl { position: absolute; right: 0.8rem; bottom: 0.8rem; }
.ctrl {
  font-family: var(--mono); font-size: var(--fs-label); color: var(--text); cursor: pointer;
  background: rgba(8, 9, 10, 0.7); border: 1px solid var(--base02); border-radius: 3px; padding: 0.1rem 0.6rem;
}
.ctrl:hover { color: var(--accent); border-color: var(--accent); }
.ctrl[hidden] { display: none; }

/* ── download, repair, extract: the app's own steps, one line each ──── */
.steps {
  list-style: none; margin: 2.2rem var(--edge) 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2.5rem;
}
.steps h2 {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--head);
}
.steps h2::before {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--done);
}
.steps p { margin-top: 0.4rem; color: var(--text); }

/* ── the other two ways to run it ────────────────────────────────────── */
.platform {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: 2rem 3.5rem; margin: 6rem var(--edge) 0; scroll-margin-top: 1.5rem;
}
.platform--phone { grid-template-columns: minmax(0, 1fr) 20rem; }
.platform h2 {
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--head);
}
.platform__copy > p:not(.links, .fine) { margin-top: 0.7rem; max-width: 30em; }

/* the iPhone demo, cropped to the phone */
.phone { width: 100%; }
.phone video { aspect-ratio: 4 / 5; object-fit: cover; }

.links { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.3rem;
  font-size: var(--fs-small); }
.links .badge { display: inline-flex; border-radius: 7px; }
.links .badge img { display: block; height: 40px; width: auto; }

/* command line */
.shell {
  position: relative; min-width: 0;
  background: var(--well); border: 1px solid var(--line); border-radius: 6px;
}
.shell pre {
  padding: 1rem 4.8rem 1rem 1.1rem; font-size: 0.88rem; line-height: 1.8; color: var(--text);
  white-space: pre-wrap; overflow-wrap: break-word;
}
.shell .copy { position: absolute; top: 0.75rem; right: 0.7rem; }
/* a long command wraps under itself, past the prompt */
.cmd { display: block; padding-left: 2ch; text-indent: -2ch; }
.nb { white-space: nowrap; }
.pmt { color: var(--done); user-select: none; -webkit-user-select: none; }
.copy .copy__done { display: none; color: var(--done); }
.copy.is-done .copy__idle { display: none; }
.copy.is-done .copy__done { display: inline; }

/* ── footer: the base16 colours, flat, sign the page off ────────────── */
.bands {
  margin-top: 6rem; height: 3px;
  background: linear-gradient(90deg,
    var(--base08) 0 14.28%, var(--base09) 0 28.57%, var(--base0A) 0 42.85%, var(--base0B) 0 57.14%,
    var(--base0C) 0 71.42%, var(--base0D) 0 85.71%, var(--base0E) 0 100%);
}
.foot { padding: 2.2rem var(--edge) 3rem; font-size: var(--fs-small); color: var(--dim); }
.foot p { max-width: 44em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.2rem; font-size: var(--fs-label); }
.foot-links a { color: var(--text); }

/* ── privacy page ────────────────────────────────────────────────────── */
.doc { padding: 3.6rem var(--edge) 0.4rem; }
.doc > * { max-width: 44rem; }
.doc h1 {
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--head);
}
.doc .meta { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--dim); }
.doc h2 { margin-top: 2.4rem; font-family: var(--mono); font-size: 1.2rem; letter-spacing: -0.02em; }
.doc h2 + p { margin-top: 0.5rem; }
ul.bullets { list-style: none; display: grid; gap: 0.45rem; margin-top: 1.6rem; max-width: 46em; }
ul.bullets li { position: relative; padding-left: 1.1rem; }
ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px;
  background: var(--accent); opacity: 0.8;
}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { padding-top: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .platform, .platform--phone { grid-template-columns: 1fr; margin-top: 4.5rem; }
  .phone { justify-self: center; width: min(17rem, 100%); }
}
@media (max-width: 600px) {
  :root { --gutter: 1rem; }
  .topbar nav a:not(:last-child) { display: none; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .stage { margin-top: 2.5rem; }
  /* the copy button sits above the wrapped install line, not beside it */
  .shell pre { font-size: 0.84rem; padding: 2.6rem 0.8rem 0.9rem; }
}
