/* Shared by the catalogue, model showcases, blind tests and legal pages. */
main.wrap, main .wrap {
  max-width: var(--site-width);
  padding-inline: var(--gutter);
}
main section[id] { scroll-margin-top: var(--header-height); }
main :is(.page-hero__t, .doc__title, .section-t, .cta__h, .khero__name, .ahero__name) {
  font-weight: 550;
  letter-spacing: -.055em;
}
main :is(.section-t, .cta__h, .page-hero__t) em { color: inherit; font-style: normal; }
main :is(.eyebrow, .doc__eyebrow, .page-hero__eye) { color: var(--muted); }
main :is(.eyebrow, .doc__eyebrow)::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
main .site-button:disabled { cursor: not-allowed; opacity: .55; }
main .site-button.btn--mini { min-height: 36px; font-size: 13px; padding-inline: 12px; }
main .doc__note { border-color: var(--lime); }
main .doc__title { font-size: clamp(38px, 5vw, 68px); }
main.doc h2 { font-weight: 550; letter-spacing: -.035em; }
main.doc { overflow-wrap: break-word; }

/* Model detail heroes use the same controls over both imagery and plain canvas. */
.khero {
  --hero-fg: #f7f8f4;
  --hero-secondary: #e3e7df;
  --hero-line: #737a72;
  --hero-em: var(--lime);
  background: #111410;
}
.ahero {
  --hero-fg: var(--fg);
  --hero-secondary: var(--muted);
  --hero-line: var(--line);
  --hero-em: var(--fg);
  background: var(--canvas);
}
.khero__scrim {
  background: linear-gradient(90deg, rgb(8 12 9 / .82), rgb(8 12 9 / .49) 55%, rgb(8 12 9 / .1)),
              linear-gradient(0deg, rgb(8 12 9 / .7), transparent 45%);
}
.khero__mark { -webkit-text-stroke-color: rgb(255 255 255 / .13); }
.khero__name, .ahero__name, .khero__flag, .ahero__flag { color: var(--hero-fg); }
.khero__name em, .ahero__name em { color: var(--hero-em); font-style: normal; }
.khero__line, .ahero__line, .khero__meta, .ahero__meta, .ahero__cap,
.ahero__deal, .khero__p span, .ahero__p span { color: var(--hero-secondary); }
.khero__p b, .ahero__p b, .ahero__deal b { font-style: normal; color: var(--hero-fg); }
.khero__price, .ahero__price, .khero__p + .khero__p, .ahero__p + .ahero__p { border-color: var(--hero-line); }
.khero__dot, .ahero__dot { background: var(--lime); box-shadow: none; }
main .khero .site-button--outline { color: var(--hero-fg); background: transparent; border-color: var(--hero-line); }
main .khero .site-button--outline:hover { border-color: var(--hero-fg); }
.ahero__tab { color: var(--hero-secondary); border-color: var(--hero-line); }
.ahero__tab:hover, .ahero__tab[aria-pressed="true"] { color: var(--hero-fg); border-color: var(--lime); }
.ahero__frame, .vcmp, .cmp, pre.code { border-radius: 8px; }
.ahero__sound[aria-pressed="true"], .vcmp__sound[aria-pressed="true"] {
  color: #171a16; background: var(--lime); border-color: var(--lime);
}
.scale__box { outline-color: var(--lime); }
.turns__tab[aria-pressed="true"], .chain__step[aria-pressed="true"], .axis .pill input:checked + span {
  color: #171a16; background: var(--lime); border-color: var(--lime);
}
.ptable tr.is-list td { color: var(--muted); }
#case .clip { background: var(--surface); }

/* Pricing is a searchable catalogue. Keep the sticky rows aligned with the site header. */
.pricing-page .page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4.5vw, 64px); }
.pricing-page .page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .75fr); gap: var(--gutter); align-items: end; }
.pricing-page .page-hero__t { margin: 0; font-size: clamp(52px, 6.75vw, 102px); line-height: .98; }
.pricing-intro .page-hero__l { color: var(--muted); margin: 0 0 12px; max-width: 44ch; }
.pricing-intro a { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.pricing-intro a:hover { border-color: currentColor; }
.ptools { padding-block: 24px; border-block: 1px solid var(--line); column-gap: clamp(12px, 2vw, 28px); }
.ptools__field--q { max-width: 360px; }
.ptools :is(input, select) { background-color: var(--surface); border-radius: 6px; height: 42px; }
.ptools select { appearance: auto; padding-right: 12px; background-image: none; }
.ptools__label, .pt thead th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .08em; }
.ptools__kinds { gap: 4px; }
.ptools__kinds .chip {
  margin: 0; padding: 0 clamp(8px, 1vw, 16px); height: 42px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--fg); font: 500 14px/1 var(--ui); letter-spacing: 0; text-transform: none;
}
.ptools__kinds .chip:hover { border-color: var(--fg); }
.ptools__kinds .chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #171a16; }
.ptools__count { font-variant-numeric: tabular-nums; }
.pgroup, .pgroup:first-child { margin-block-start: clamp(28px, 3vw, 44px); }
.pgroup__t { font-weight: 550; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.045em; }
.pt thead th { top: var(--header-height); background: var(--canvas); }
.pt__stick { top: calc(var(--header-height) + var(--pt-head) + 14px); }
.pt tbody.pm:hover { background: var(--surface); }
.pt__demo {
  display: inline-block; margin-top: 4px; padding-block: 4px;
  color: var(--accent); font-size: 13px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px;
}
.pt__demo:hover { color: var(--fg); }
.pt__name, .pt__amt { font-weight: 550; }
.pt__name { font-size: 17px; }
.pt__amt { font-size: 17px; font-variant-numeric: tabular-nums; }
.is-promo .pt__amt { font-style: normal; }
.pt__tag { border-radius: 4px; }
.pt__tag--until { color: var(--fg); background: color-mix(in srgb, var(--lime) 15%, var(--surface)); border-color: color-mix(in srgb, var(--lime) 48%, var(--line)); }
.pfoot { border-color: var(--line); }

@media (max-width: 700px) {
  .pricing-page .page-hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .khero__scrim { background: linear-gradient(0deg, rgb(8 12 9 / .94), rgb(8 12 9 / .62) 66%, rgb(8 12 9 / .34)); }
}
@media (max-width: 640px) {
  .ptools__kinds .chip { padding-inline: 2px; font-size: 13px; }
  .pt tbody.pm, .pt thead + tbody.pm, .pt tbody.pm:hover { background: var(--surface); border-radius: 8px; }
  .pt__name { font-size: 19px; }
  .ahero__name .nw, .stable td, main :not(pre) > code { white-space: normal; }
  main :not(pre) > code { overflow-wrap: anywhere; }
  .khero__meta, .ahero__meta, .card-id { overflow-wrap: anywhere; }
}
