/* ==========================================================================
   StackHandoff — the quiet interface
   --------------------------------------------------------------------------
   This file is structure: tokens, layout, components. Everything that moves
   lives in motion.css, so "what does it look like" and "what does it do" stay
   separable.

   The palette descends from the app's own tokens (src/styles/index.css), which
   is why the product and its marketing page read as one thing. Two additions
   the app does not need but a cinematic page does:

     --signal   a green reserved exclusively for "this is moving / this
                succeeded". Never decorative. The one place a visitor looks to
                answer "is it working?"
     --accent   a lilac-leaning indigo, used where the app uses --primary,
                brightened for a dark canvas.

   Three rules held without exception, because they are what make it look like
   the product rather than a generic SaaS page:

     - No drop shadows. Depth is tonal layering plus a 1px hairline.
     - No pills. Radii are 4px, 6px and 8px. The only circle is the step number.
     - Colour is never the only signal. Every status colour is paired with text.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  color-scheme: dark;

  --bg: #0a0a0d;
  --canvas: #101115;
  --sunken: #0d0d11;
  --surface: #17181e;
  --surface-2: #1e1f26;
  --raised: #22232b;

  --line: #292a31;
  --line-2: #34353e;
  --line-3: #43444e;

  --fg: #f4f4f8;
  --fg-muted: #b6b6c4;
  /* #7b7d89 measures 3.8:1 on --raised, which is the chrome every device frame
     in the journey sits on. Lifted to clear 4.5:1 on the darkest of the three
     surfaces these labels land on. */
  --fg-subtle: #a0a0b0;
  --fg-faint: #91939f;

  --accent: #a29bff;
  /* A brighter lilac than --accent, for filled buttons. Both are too light to
     carry white text, so these are the *foreground* roles; --solid below is
     the fill that white is actually measured against. */
  --accent-2: #8b83fb;
  --accent-hover: #9b94ff;
  --accent-ink: #ffffff;
  --accent-soft: #1b1a33;
  --accent-line: #35325c;

  --signal: #89f7b2;
  --signal-deep: #79eda5;
  --signal-ink: #052e18;

  /* Indigo as a BACKGROUND behind white text. Distinct from --accent, which
     inverts to a light lilac on dark and would measure about 2.6:1 if used
     behind white. */
  --solid: #433cc4;
  --solid-hover: #4c44d4;

  /* The same job at button scale. A 15px/600 label still counts as body text
     for WCAG, so a button fill needs a real 4.5:1 against white — #433cc4
     clears 7.8:1, which is a great ratio on a 900px-wide panel and a slightly
     heavy flat field on a 54px-tall button. #5a53e2 holds 5.6:1 and reads
     lighter. */
  --fill: #5a53e2;
  --fill-hover: #6962ef;

  --danger: #f0827a;
  --danger-bg: #2c1618;
  --danger-line: #4d2b2e;
  --warning: #f6c25a;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI',
    system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --shell: 1200px;
  --nav-h: 64px;
  --r: 6px;
  --r-sm: 4px;
  --r-lg: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* A real light scheme, not an afterthought. The token names are identical, so
   the entire motion layer keeps working against it unchanged. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #eef0f5;
    --canvas: #f7f8fc;
    --sunken: #eceff3;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --raised: #ffffff;

    --line: #dee1e8;
    --line-2: #cfd3dd;
    --line-3: #b9bfcc;

    --fg: #151b28;
    --fg-muted: #5a6272;
    /* Darkened twice. The app's own #788191 is 3.7:1 on white, which is fine for
       the 13px body grey it was used for and not fine for the 9–11px mono
       labels this page sets in it — the journey's phase captions, the device
       tags, the transfer footer. Those are the smallest text on the site and
       the least forgiving, so they get their own floor of 4.5:1 on every
       surface they sit on, including the sunken one inside a device frame. */
    --fg-subtle: #5f6775;
    --fg-faint: #616979;

    --accent: #5048e5;
    --accent-2: #5048e5;
    --accent-hover: #3128dc;
    --accent-ink: #ffffff;
    --accent-soft: #f0f0ff;
    --accent-line: #d0cef3;

    --signal: #1a7048;
    --signal-deep: #145c3a;
    --signal-ink: #ffffff;

    --solid: #5048e5;
    --solid-hover: #3128dc;
    --fill: #5048e5;
    --fill-hover: #453dcc;

    --danger: #ab2121;
    --danger-bg: #fef1f1;
    --danger-line: #f4cdcd;
    --warning: #864709;
  }
}

/* ----------------------------------------------------------------- reset -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.14;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--fill);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------- layout -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 100px;
}

.section--tight {
  padding-block: 88px 56px;
}

.section--alt {
  background: var(--sunken);
  border-block: 1px solid var(--line);
}

/* Grid children default to min-width:auto and so refuse to shrink below their
   content. One long line in a scrollable <pre> then widens the whole document
   instead of scrolling in its own box. This is the matching half of the
   `minmax(0, 1fr)` used on the tracks themselves. */
.hero-intro > *,
.split > *,
.steps .shell > *,
.gitpay > *,
.cards > *,
.stats > * {
  min-width: 0;
}

pre {
  max-width: 100%;
}

/* ------------------------------------------------------------------ type -- */
.kicker {
  margin: 0 0 14px;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--light {
  color: rgba(255, 255, 255, 0.82);
}

.lede {
  max-width: 780px;
  margin-bottom: 56px;
}

.lede h2 {
  font-size: clamp(28px, 4.2vw, 54px);
}

.lede__p {
  max-width: 720px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
}

em {
  font-style: normal;
  color: var(--fg);
  background: linear-gradient(transparent 74%, var(--accent-soft) 74%);
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--sm {
  height: 32px;
  padding-inline: 12px;
  font-size: 13px;
}

.btn--lg {
  min-height: 54px;
  padding: 12px 26px;
  font-size: 15px;
}

.btn--primary {
  background: var(--fill);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: var(--fill-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg);
}
.btn--outline:hover {
  background: var(--surface-2);
  border-color: var(--line-3);
}

.btn--light {
  background: #ffffff;
  color: #151b28;
}
.btn--light:hover {
  background: #eceafc;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn[data-platform-glyph] svg {
  flex: none;
}

.text-link {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-3);
  color: var(--fg);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--fg-muted);
  font: 600 11px/1 var(--sans);
  white-space: nowrap;
}

.chip--danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger);
}

/* On the indigo panel, so these are fixed colours rather than tokens — the
   backdrop is the same in both schemes.

   Darkening the chip, not lightening it. A white overlay on #433cc4 raises the
   composited backdrop toward white and pushes white text down to 3.8:1, while
   a black overlay pushes it toward the panel and takes white text up to
   7:1+. Same visual idea — a chip recessed into the panel rather than raised
   off it — and it is the direction that keeps the label readable. */
.chip--soft {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}
.chip--soft b {
  color: #ffffff;
}

/* ---------------------------------------------------------------- cards -- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.card p {
  font-size: 15px;
  color: var(--fg-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fcard {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.fcard:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.fcard__ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.fcard h3 {
  margin-top: 16px;
  font-size: 16px;
}

.fcard p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}

.stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 26px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.stat b {
  display: block;
  font-size: 42px;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.nav[data-stuck] {
  border-bottom-color: var(--line);
}

.nav__in {
  max-width: 1320px;
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--fill);
  color: #fff;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav__links a {
  transition: color 0.18s var(--ease);
}
.nav__links a:hover {
  color: var(--fg);
}

.nav__cta {
  flex: none;
}

/* ------------------------------------------------------------- read bar -- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--signal));
}

/* ---------------------------------------------------------------- steps -- */
.steps {
  position: relative;
}

.steps__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
  pointer-events: none;
}
.steps__rail i {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--accent), var(--signal));
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 84px;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.step h3 {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 34px);
}

.step p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--fg-muted);
}

.step__text,
.step__art {
  opacity: 0.32;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.step.is-active .step__text,
.step.is-active .step__art {
  opacity: 1;
  transform: none;
}

.ticks {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--fg-muted);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}

/* pairing diagram */
.pairviz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.peer {
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.peer__ico {
  display: grid;
  place-items: center;
  height: 24px;
  padding-inline: 9px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font: 11px/1 var(--mono);
}
.peer--b .peer__ico {
  background: color-mix(in srgb, var(--signal) 14%, transparent);
  color: var(--signal);
}

.wire {
  position: relative;
  flex: 1;
  min-width: 90px;
  height: 1px;
  background: var(--line-2);
}
.wire span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font: 10px/1 var(--mono);
  color: var(--fg-faint);
  white-space: nowrap;
}
.wire i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

/* ----------------------------------------------------------- screenshot -- */
.shot {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.shot:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.shot img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.shot:hover img {
  transform: scale(1.014);
}

.shot__cap {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--sunken);
  font: 11px/1.5 var(--mono);
  color: var(--fg-subtle);
}

.shot--wide {
  align-self: center;
}

/* git payoff */
.gitpay {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 40px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.gitpay h3 {
  font-size: 26px;
}

.gitpay p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--fg-muted);
}

.gitpay h3 code {
  font-size: 0.92em;
  color: var(--accent);
}

.snippet {
  position: relative;
  margin-top: 22px;
}

.snippet pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.c-p,
.c-g {
  color: var(--signal);
}
.c-d {
  color: var(--fg-faint);
}
.c-r {
  color: var(--danger);
}

.copy {
  margin-top: 12px;
  height: 30px;
  padding-inline: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-muted);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.copy:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.copy--float {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  background: var(--surface);
}

/* ------------------------------------------------------------- manifest -- */
.manifest {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.manifest pre {
  margin: 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.72;
  color: var(--fg-muted);
}

.manifest .k {
  color: var(--accent);
}
.manifest .s {
  color: var(--signal);
}
.manifest .true {
  color: var(--warning);
}
.manifest .false {
  color: var(--danger);
}

.never {
  margin-top: 40px;
  padding: 26px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-lg);
}

.never__h {
  font-size: 15px;
  color: var(--danger);
}

.never__list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.never__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--fg-muted);
}
.never__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--danger-line);
}
.never__list li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 9.5px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--danger);
  border-bottom: 1.6px solid var(--danger);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- stack -- */
.stack {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.stack__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.stack__row:last-child {
  border-bottom: 0;
}
.stack__row span {
  color: var(--fg-subtle);
  font: 500 12px/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stack__row b {
  font-weight: 500;
}

.repo {
  margin-top: 28px;
}
.repo a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease);
}
.repo a:hover {
  border-color: var(--line-3);
}
.repo__url {
  font: 14px/1.5 var(--mono);
  color: var(--fg-muted);
}

/* ------------------------------------------------------------- download -- */
.get {
  padding-block: 104px;
  background: var(--solid);
  color: #ffffff;
}

.get__box {
  text-align: center;
}

.get h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  color: #fff;
}

.get__platform {
  margin-top: 22px;
}

.get__actions {
  margin-top: 30px;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.switch__btn {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.switch__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.switch__btn[aria-pressed='true'] {
  background: #fff;
  border-color: #fff;
  color: #151b28;
}
.switch__btn b {
  font-size: 13px;
  font-weight: 600;
}
.switch__btn em {
  font: 11px/1.4 var(--mono);
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}
/* The pressed button is white-backed in BOTH schemes, so this must not be a
   scheme-dependent token. */
.switch__btn[aria-pressed='true'] em {
  color: #5a6272;
}

.download-status {
  min-height: 1.4em;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.download-status:empty {
  margin-top: 0;
}

.get__facts {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------------------------------------------------------------- footer -- */
.foot {
  padding-block: 56px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.foot__in {
  display: grid;
  gap: 24px;
}

.foot__tag {
  margin-top: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--fg-muted);
}
.foot__links a:hover {
  color: var(--fg);
}

.foot__fine {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-subtle);
}
.foot__fine code {
  font-size: 12px;
}

/* -------------------------------------------------------- lightbox (dlg) -- */
.shot-view {
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: var(--r);
  width: min(1300px, 95vw);
  max-width: 95vw;
  max-height: 94svh;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
}
.shot-view::backdrop {
  background: rgba(4, 4, 6, 0.9);
}
.shot-view img {
  width: 100%;
  height: auto;
}
.shot-view__close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 2;
  margin: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--fg);
  font: 12px/1 var(--sans);
  cursor: pointer;
}
.shot-view__cap {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font: 12px/1.5 var(--mono);
  color: var(--fg-subtle);
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1000px) {
  .step,
  .gitpay {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps__rail {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats,
  .split {
    grid-template-columns: 1fr;
  }
  .gitpay {
    padding-top: 44px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 60px;
  }
  .section {
    padding-block: 68px;
  }
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
    display: inline-flex;
  }
  .never__list {
    grid-template-columns: 1fr;
  }
  .stack__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .repo a {
    flex-direction: column;
    align-items: flex-start;
  }
  .manifest {
    padding: 18px;
  }
  .manifest pre {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .switch {
    width: 100%;
    flex-direction: column;
  }
  .switch__btn {
    width: 100%;
  }
}
