/* Site layout on top of tokens.css and components.css. Fonts self-hosted, no third-party requests. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

html { scroll-padding-top: 24px; }
body { overflow-x: hidden; }
main { display: block; }

.skip { position: absolute; left: 12px; top: -60px; padding: 12px 16px; background: var(--tm-text); color: var(--tm-bg); font: 500 var(--tm-ui)/1 var(--tm-font-mono); z-index: 10; }
.skip:focus { top: 12px; }

/* ---- Header -------------------------------------------------------------- */
.site-nav .tm-nav__links a[aria-current="page"] { color: var(--tm-text); }
@media (max-width: 760px) {
  .site-nav { row-gap: 8px; }
  .site-nav .tm-nav__links { order: 3; width: 100%; gap: 18px; }
  .site-nav .tm-nav__end .hide-sm { display: none; }
}

/* ---- Layout helpers ------------------------------------------------------ */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 88px 72px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__window { flex: 1 1 460px; min-width: 0; }
.page-head { padding-block: 88px 64px; display: flex; flex-direction: column; gap: 24px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.split > p { max-width: 420px; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack-s { display: flex; flex-direction: column; gap: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 56px; }
.cols > :first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cols > :last-child { flex: 1 1 560px; min-width: 0; }
.prose { max-width: 40em; }
.prose p + p { margin-top: 16px; }

.window-host { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__window .tm-window__body > div { min-width: 0; overflow-wrap: anywhere; }

/* Log lines appear one by one in the hero window */
.log-in > * { animation: log-in 240ms var(--tm-ease) both; }
.log-in > *:nth-child(2) { animation-delay: 80ms; }
.log-in > *:nth-child(3) { animation-delay: 160ms; }
.log-in > *:nth-child(4) { animation-delay: 240ms; }
.log-in > *:nth-child(5) { animation-delay: 320ms; }
.log-in > *:nth-child(6) { animation-delay: 400ms; }
.log-in > *:nth-child(7) { animation-delay: 480ms; }
.log-in > *:nth-child(8) { animation-delay: 560ms; }
.log-in > *:nth-child(9) { animation-delay: 640ms; }
.log-in > *:nth-child(10) { animation-delay: 720ms; }
@keyframes log-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .log-in > * { animation: log-fade 200ms linear both; animation-delay: 0ms !important; }
  @keyframes log-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- Proof strip --------------------------------------------------------- */
.proof { display: flex; flex-wrap: wrap; align-items: stretch; border-block: 1px solid var(--tm-line); }
.proof .tm-stats { flex: 3 1 520px; }
.proof .tm-stat { padding: 28px 24px 28px 0; }
.proof .tm-stat + .tm-stat { padding-left: 24px; }
.proof__note { flex: 1 1 260px; padding: 28px 0; align-self: center; }
@media (max-width: 640px) {
  .proof .tm-stat { border-right: 0; padding-left: 0 !important; padding-block: 16px; }
}

/* ---- Lists of facts ------------------------------------------------------ */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tm-line); }
.facts li { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--tm-line); }
.facts li > :first-child { flex: 0 0 200px; font: 400 var(--tm-ui)/1.6 var(--tm-font-mono); color: var(--tm-text); }
.facts li > :last-child { flex: 1 1 280px; color: var(--tm-text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tm-tag { font-size: var(--tm-caption); line-height: 26px; padding: 0 10px; color: var(--tm-text-muted); }

/* ---- Pricing ------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--tm-line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan--featured { border-color: var(--tm-accent); background: var(--tm-surface); }
.plan__price { font: 500 40px/1 var(--tm-font-mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan__price small { font: 400 15px var(--tm-font-sans); letter-spacing: 0; color: var(--tm-text-muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: var(--tm-body-s); color: var(--tm-text-muted); }
.plan li::before { content: "— "; color: var(--tm-text-subtle); font-family: var(--tm-font-mono); }
.plan .tm-btn { margin-top: auto; width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Changelog ----------------------------------------------------------- */
.log-day { display: flex; flex-direction: column; }
.log-day .tm-event__top { font-size: 14px; }
.log-day .tm-event__msg { font-size: var(--tm-body); max-width: 44em; }

/* ---- Footer -------------------------------------------------------------- */
.footer-cta { padding-block: 96px 40px; display: flex; flex-direction: column; gap: 36px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-block: 28px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--tm-text-muted); text-decoration: none; padding-block: 8px; }
.footer-bottom a:hover { color: var(--tm-text); }

.link { color: var(--tm-text); text-decoration: none; border-bottom: 1px solid var(--tm-line-strong); }
.link:hover { border-bottom-color: var(--tm-text); }
