/* Main landing (/seo) additions. Builds on styles.css + archive.css; the stack page
   does not load this file. No inline styles anywhere: CSP is style-src 'self'. */

.landing-page code { color: var(--soft); font: .9em/1.4 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --- hero: the stack chip is a link to #stack, styled as a highlighted fact --- */
.fact-kit {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(46, 91, 255, .55);
  border-radius: 8px;
  background: rgba(46, 91, 255, .1);
  color: #cfd9ff;
  font: 500 14px/1.2 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.fact-kit small { color: var(--soft); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.fact-kit:hover { border-color: var(--soft); background: rgba(46, 91, 255, .16); color: #fff; transform: translateY(-2px); }

/* --- hero proof: count-up. The real number always holds the layout; while counting
   it is transparent and the running value is painted over it, so no shift. --- */
.count-up { position: relative; display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.count-up.is-counting { color: transparent; }
.count-up.is-counting::after { content: attr(data-count); content: attr(data-count) / ""; position: absolute; top: 0; right: 0; color: #f4f6ff; white-space: nowrap; }

/* --- program: each block points at the part of the stack that repeats it --- */
.program-section .archive-head > p { max-width: 460px; }
.program-section .program article > div { row-gap: 12px; }
.program-section .program .program-kit {
  grid-column: 2;
  margin: 0;
  color: rgba(244, 239, 231, .52);
  font: 12.5px/1.5 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.program-kit > span {
  display: inline-block;
  margin-right: 10px;
  vertical-align: 1px;
  padding: 3px 7px;
  border: 1px solid rgba(126, 151, 255, .4);
  border-radius: 5px;
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.program-kit code { font-size: 1em; }
/* Revealed a beat after its row. Only under .js-reveal, so without JS or with reduced
   motion the line is simply there. */
.js-reveal .program article.reveal .program-kit { opacity: 0; transform: translateX(-6px); }
.js-reveal .program article.reveal.is-in .program-kit {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 260ms);
}

/* --- fit: the honest "not for you" line --- */
.fit-not { max-width: 520px; margin-top: 24px; padding-left: 16px; box-shadow: inset 2px 0 #e1b76c; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fit-not b { color: #ecd3a4; font-weight: 600; }

/* --- pricing: link from the stack card to /seo/stack --- */
.card-more { align-self: flex-start; margin: -8px 0 24px; color: var(--tier); font: 600 12.5px/1.4 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: none; }
.card-more:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 760px) {
  .program-section .program .program-kit { grid-column: auto; }
  .card-more { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .facts .fact-kit { flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; font-size: 13px; }
  .fact-kit small { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fact-kit, .fact-kit:hover { transition: none; transform: none; }
  .js-reveal .program article.reveal .program-kit { opacity: 1; transform: none; transition: none; }
}
