@import "https://assets.elements.dev/assets/app/shared/styles/page.3ce31e5dfaa53ede.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;
  /* Real air under the lede. It used to sit a touch tighter than the
     title→lede gap so it read as paired with the panel, and the result was
     that the eye could not find where the reading stopped and the doing
     started: title, subtitle and tool arrived as one undifferentiated
     column. The lede belongs to the title. */
  margin: 0 0 var(--space-10);
}

/* No rule above the panel. It was the one structural mark on the page, and
   it earned that when a title and a lede sat above it and the reader needed
   telling where the reading stopped. The lede is gone and the panel is a
   black object on a white page, which marks itself far better than a
   hairline drawn next to it. Air alone now. */
.install-page .install-shell .ip {
  padding-top: var(--space-6);
}

/* ─── 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); }
}

/* ─── Safety, in one line ────────────────────────────────────────────
   Quiet on purpose. A box, an icon or a heading would turn a passing
   reassurance into a warning, and a warning on the install command is the
   opposite of what it is for. It reads as a footnote and answers the only
   question a careful person has. */
.install-safe {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
}

.install-safe code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-muted);
}


/* The founder letter's band. The letter itself is a shared template; this
   is only the rule and the air that separate it from the install panel. */
.install-note {
  margin: var(--space-14) 0 var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--rule);
}
