/* v4 shared layer: loaded after each page's own styles. Spacing, header, type, one radius token, chips, reveal. */
:root {
  --r-card: 16px;
  --r-img: 12px;
  --r-pill: 999px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="light"],
:root[data-theme="dark"] .sl {
  --page: #f6f3ec;
  --hero-bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #ece8de;
  --rule: #ded8ca;
  --chip-bg: #ece8de;
}
body {
  font-size: 17px;
}
section {
  padding: 96px 0;
}
@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }
}
nav.top {
  background: color-mix(in srgb, var(--page) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.theme-toggle {
  font: 600 13px/1 var(--font-body);
}
h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
h1 {
  font-weight: 800;
  letter-spacing: -1.5px;
}
.label {
  font-weight: 800;
}
.btn {
  min-height: 48px;
  padding: 0 24px;
  font: 600 15px/1.2 var(--font-body);
  border-radius: var(--r-pill);
}
nav.top .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
/* one radius token: cards 16, images in cards 12, chips and buttons pill */
.stat, .astats div, .chips li, .angles li, .tryc, .plan, .rs, .fit-col, .quote, .sample-card,
.calc-details, .woe, .feature, .res, .cmp tr, .portrait, .about-photo img {
  border-radius: var(--r-card);
}
.shot img, .wt, .wt img, .sample-thumb, .cs-img, .chatshot {
  border-radius: var(--r-img);
}
/* chips: 12px, sentence case, pill, no mono */
.pb-cats li, .rv-lang, .lang, .wk, .tag, .chain-tag, .wt figcaption b, .tryc h3 span,
.quote figcaption .mono, .rs .lang, .plan .tag, .tryc .tag {
  font: 600 12px/1.2 var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: var(--r-pill) !important;
  padding: 5px 12px;
}
/* secondary text no smaller than 15px; 13px kept for data captions only */
.lead-l {
  font-size: 19px;
}
/* one reveal: slide up 20px + fade, only when JS set rv-on */
.rv-on .v4rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.rv-on .v4rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv-on .v4rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
