

/*
 * /install — single-page install flow. Big headline, mono lede, dark
 * terminal block with live-updating curl URL, platform + arch pills,
 * small prereqs section at the bottom.
 */

.install-page { color: var(--ink); }

.install-shell {
  max-width: 45rem;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.install-h1 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.install-h2 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

/* font-family / size / color / line-height / max-width are forced
   from global.css's canonical lede rule. The bottom margin (gap to
   the termbox below) belongs to the install page. Kept TIGHTER
   than the title→lede gap above so the lede reads as paired with
   the termbox it explains rather than with the title above. */
.install-lede {
  margin: 0 0 var(--space-3) !important;
}

/* ─── Pills ──────────────────────────────────────────────────────
   Single row, packed tight. The two groups (macOS/Linux/Windows |
   arm64/amd64) are visually divided by a thin vertical rule, not
   by a gap — pills hug each other so the row reads as one tight
   selector at any width. flex-wrap: nowrap; if the row genuinely
   doesn't fit, it scrolls horizontally rather than stacking. */

.install-pills {
  display: flex;
  gap: 0.125rem;                 /* 2px — pills very close to each other */
  margin: 1rem 0 0;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.install-pills::-webkit-scrollbar { display: none; }

.install-pill {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-box-trim: trim-both; text-box-edge: cap alphabetic;
  /* Override framework button defaults — these pills are chip-sized,
     not 44px CTA buttons. */
  height: auto;
  line-height: 1;
  padding: 0.3125rem 0.5625rem;
  /* Tighter radius so the pills read as kbd-style chips, not
     rounded marketing pills — fits the install page's terminal
     aesthetic. */
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: var(--font-regular);
  flex-shrink: 0;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out);
}
.install-pill:hover { background: var(--bg-panel); }
.install-pill.is-selected {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: var(--font-bold);
}
.install-pill.is-selected:hover { background: var(--blue-light); }
.install-pill-separator {
  width: 1px;
  height: 16px;
  background: var(--rule);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .install-pills { gap: 0.0625rem; margin-top: 0.875rem; }
  .install-pill {
    font-size: 0.6875rem;         /* 11px */
    padding: 0.3125rem 0.5rem;
    letter-spacing: 0.05em;
  }
  .install-pill-separator {
    margin: 0 0.1875rem;
    height: 14px;
  }
}

/* ─── Footnote ─────────────────────────────────────────────────── */

.install-footnote {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  /* --ink-dim is the site's standard "quiet hint" color — one notch
     up from --ink-faint so the text is readable without shouting. */
  color: var(--ink-dim);
  /* Generous breathing room between the pills above and this footnote
     so they don't read as one crammed block. */
  margin: var(--space-10) 0 0;
}
/* Keep `~/elements/bin` as plain inline text — no chip/background.
   The whole line is already mono, wrapping it in a bordered pill
   reads as "hey look at this code!" when it's just a path. */
.install-footnote code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--ink-soft);
  font-weight: var(--font-medium);
}

/* ─── Prereqs ──────────────────────────────────────────────────── */

.install-prereqs {
  margin-top: var(--space-10);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-8);
}

.install-prereqs-intro {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--space-6);
  max-width: 36rem;
}

/* First prereq flows directly from the "Before you start." intro —
   no border. Subsequent prereqs get a rule above them so they read
   as list rows sharing a divider, not as disconnected sections. */
.install-prereq-item {
  padding: var(--space-4) 0;
}
.install-prereq-item + .install-prereq-item {
  border-top: 1px solid var(--rule);
}

.install-prereq-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--font-bold);
  color: var(--ink);
  margin: 0 0 0.375rem;
}

.install-prereq-desc {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.install-prereq-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .install-h1 {
    font-size: 2.5rem;
    /* More breathing room between "Install" and the lede paragraph
       on phone widths — the tight desktop gap reads cramped when
       the title drops to two lines. */
    margin: 0 0 1.5rem;
  }
  .install-shell { padding: 0 var(--space-4); }
}
