@import "https://assets.elements.dev/assets/app/shared/styles/page.c499fc7d3c350d76.css";

/*
 * /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 width + gutters come from the shared marketing-column
   group in app/shared/styles/site.css, so install lines up with feed /
   home / learn at the same left edge and gutters. */

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

/* Canonical top-level page title (3rem desktop / 2.5rem on phones —
   matches .page-hero-title in app/shared/styles/site.css exactly, so
   "Install" sits at the same scale as "Learn", "Pricing", etc.). */
.install-h1 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--page-title);
  letter-spacing: -0.02em;
  line-height: 1;
  /* Top-aligned like every other page: the standard hero top margin
     plus a gap to the lede below. */
  margin: 2rem 0 var(--space-6);
  color: var(--ink);
}

/* Top-aligned like every other page — the install block flows from the
   top of .page-chrome-main, same as /learn, /pricing, etc. (Previously
   this page vertically centered the block on desktop; cmather wants it
   consistent with the rest of the site.) */

/* Matches the canonical lede treatment (.page-hero-lede in
   app/shared/styles/site.css). The gap to the termbox below stays a
   touch tighter than the title→lede gap above so the lede reads as
   paired with the termbox it explains rather than with the title. */
.install-lede {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 0 var(--space-5);
}

/* ─── 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 */
  /* More separation from the terminal above so the selector reads as
     its own row rather than crowding the command box. */
  margin: var(--space-8) 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(--weight-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(--accent-soft);
  color: var(--accent-deep);
  font-weight: var(--weight-bold);
}
.install-pill.is-selected:hover { background: var(--accent-soft); }
.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-12) 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(--weight-medium);
}
/* ─── 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: 1.5rem 0 1.5rem;
  }
  .install-shell { padding: 0 var(--space-4); }
}
