/*
  Pricing page (/preise, /pricing): page-specific styles only. Loaded after styles.css and motion.css on this page only
  (scripts/build.mjs › SUBPAGES). Shared subpage building blocks (page-hero variants, .card, .chip,
  .badge, .pill-status, .callout, .seg, .checks …) live in styles.css; reuse them.
  Rules: the two literal breakpoints (max-width: 960px / 640px); every hidden start state scoped to
  html.motion (".motion .x") or a JS-only state attribute; animate transform/opacity only.

  Sections: centred hero · plan cards · credit figure · estimator · comparison table · FAQ · closing strip.
*/

/* ---------------------------------------------------------------------------------------------
   Credit figure ("Credits pro Videominute."): heading left, figure right, below the plan cards.
   Fixed sizes, no images that load late (the thumbnail is a CSS crop of the shared sample frame). */
.credits-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-8); align-items: start; }
.credits-layout .visual-heading { margin-bottom: 0; }
.credit-figure { margin: 0; display: grid; gap: var(--space-5); padding: var(--space-6); }
.cf-source { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: var(--space-4); }
.cf-thumb { position: relative; display: block; aspect-ratio: var(--ar-video); border-radius: var(--radius-sm); background: var(--surface-2) url('/assets/editor-demo-source.jpg') center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.cf-thumb .media-tag { top: auto; bottom: 4px; left: 4px; font-variant-numeric: tabular-nums; }
.cf-source p { display: grid; gap: 2px; font-size: var(--fs-meta); line-height: 1.45; }
.cf-source strong { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }

/* Content timeline in the homepage hero-story language: frames track + transcript track, labelled
   like the homepage tracks, all unchosen (the whole video counts), axis labels only at the ends. */
.cf-timeline { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 6px var(--space-3); }
.cf-lab { font-size: var(--fs-badge); line-height: 16px; color: var(--muted); }
.cf-axis { grid-column: 2; }
.cf-frames { display: flex; justify-content: space-between; height: 6px; }
.cf-frames i { width: 9px; height: 6px; border-radius: 1.5px; background: var(--line-strong); }
.cf-text { display: flex; gap: 0; height: 11px; overflow: hidden; }
.cf-text i { flex: var(--w) 0 0; height: 3px; margin-left: calc(var(--g) * 3px + 3px); border-radius: 2px; background: #ffffff2e; }
.cf-text i:nth-child(odd) { margin-top: 8px; }
.cf-text i:first-child { margin-left: 0; }
.cf-axis { display: flex; justify-content: space-between; margin-top: 2px; font-size: var(--fs-badge); line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Three credit rows (shared .rate-rows): label, then one cell per 10 credits and the value chip.
   Only used cells are drawn, so the row length is the amount; editing draws a bare baseline. */
.cf-rows { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.cf-rows .rate-row { grid-template-areas: "label label" "cells chip"; }
.cf-rows .rate-label { grid-area: label; }
.cf-rows .rate-chip { grid-area: chip; }
.cf-cells { grid-area: cells; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; height: 10px; }
.cf-cells:empty::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.cf-cells i, .cf-legend i { border-radius: 2px; }
[data-k=ai] { background: var(--ink); }
[data-k=cloud] { background: repeating-linear-gradient(135deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.cf-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-meta); line-height: 1.4; color: var(--ink-2); }
.cf-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.cf-legend i { display: inline-block; width: 14px; height: 10px; }
.credit-figure figcaption { margin-top: calc(var(--space-2) * -1); }

/* ---------------------------------------------------------------------------------------------
   Plans. The cards are <article class="plan"> (a test counts them), styled as the shared .card /
   .card--feature. Seven rows per card share one subgrid, so names, prices, allowances, feature
   lists and the purchase buttons line up across the three cards whatever wraps. The planned / not-available status sits once
   in the hero right above the cards, not as a pill on every card. */
.pricing { padding-top: 0; }
.pricing-controls { display: flex; justify-content: center; margin-bottom: var(--space-6); }
.billing-switch .badge { margin-left: 2px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); column-gap: var(--space-5); row-gap: 0; align-items: stretch; }
/* Padding eases from 32px (1440) to 24px (≤ 1100) so "Studio Max" and the switch share a line at 961px. */
.plan { position: relative; min-width: 0; display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: clamp(24px, 3.2vw - 14px, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.plan[data-recommended] { border-color: var(--line-strong); background: linear-gradient(180deg, #ffffff0a, #ffffff03 40%), var(--surface); box-shadow: 0 26px 64px -35px #000; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--touch); }
.plan h2 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: var(--tracking-title); color: var(--ink); white-space: nowrap; }
/* The Pro/Max switch always shares the title line ("Studio Max" + switch fits the narrowest wide
   card at 961px), so the head row never grows and the three titles stay level. */
.pro-switch { flex: none; padding: 2px; gap: 2px; }
.pro-switch button { min-height: 38px; padding-inline: 9px; }
/* 38px buttons in a 3px-padded track: the whole 44px track is the hit area for each half. */
.pro-switch button::before { content: ''; position: absolute; inset: -4px -2px; }

/* Row 2: watermark label + short explanation (text only). */
.plan-mark { margin-top: var(--space-4); }
.plan-mark p { display: grid; gap: 2px; font-size: var(--fs-meta); line-height: 1.45; }
.plan-label { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }

/* Rows 3–5: price, billing line (two lines reserved), allowance. */
/* -.02em: tighter tracking makes the euro sign touch the first digit in English ("€4.17"). */
.plan-price { margin-top: var(--space-5); font-size: var(--fs-price); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-price .price-unit { font-size: var(--fs-meta); color: var(--ink-2); letter-spacing: 0; }
.billing-note { margin-top: var(--space-2); min-height: calc(2em * var(--lh-ui)); font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-2); }
.allowance { margin-top: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); font-size: var(--fs-meta); line-height: 1.5; }
.allowance strong { font-size: var(--fs-body); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.allowance .small { margin-top: 2px; line-height: 1.5; }
/* Row 6: features. */
.plan-features { margin-top: var(--space-5); align-content: start; }
/* Row 7: the purchase button, full card width, on one shared line in all three cards (the feature
   row above absorbs any height difference). App mode → download page; web mode → the checkout page
   on the API host (dist/pages/pricing.js). "Abo in der App abschließen" + arrow needs 205px; the
   narrowest buttons are 230px (320px phone) and 233px (961px). Should a classic scrollbar make
   them narrower, the label wraps in all three cards alike, so the buttons stay level. */
.plan-cta { margin-top: var(--space-6); display: flex; align-items: end; }
.plan-cta .button { width: 100%; gap: 10px; padding-inline: 12px; text-align: center; }
.plan-cta .button svg { flex: none; }
/* One line under the cards: how buying works in the current mode. */
.cta-note { margin-top: var(--space-5); text-align: center; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-2); text-wrap: balance; }

/* Cadence / Pro–Max change: the changed rows crossfade once (opacity + a hint of scale). Card
   heights never change: the billing row reserves two lines. */
@keyframes pricing-swap { from { opacity: 0; transform: scale(1.01); } }
.motion .plan.is-swapping :is(.plan-price, .billing-note, .allowance, .plan-head h2, .plan-features) { animation: pricing-swap var(--dur-fade) var(--ease-out-soft); transform-origin: 0 50%; }

.pricing-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.pricing-notes p { max-width: var(--measure); font-size: var(--fs-meta); line-height: 1.6; }

/* ---------------------------------------------------------------------------------------------
   Estimator. Inputs left, result right. Without scripting the live part is replaced by the
   worked-example table (decided by CSS at first paint). */
.estimator { padding: var(--space-6); }
.est-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.est-inputs { display: grid; gap: var(--space-6); }
.est-field { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-3); }
.est-field legend { padding: 0; margin-bottom: var(--space-3); }
.est-hours-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.est-number { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-ui); color: var(--ink-2); }
.est-number input { width: 96px; min-height: var(--touch); padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 500 var(--fs-body)/1 var(--font); font-variant-numeric: tabular-nums; text-align: right; }
.est-number input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Range slider: native input on top (44px hit area), drawn track below. --p = value / max. */
.est-range { position: relative; display: block; height: var(--touch); }
.est-range::before, .est-range::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; pointer-events: none; }
.est-range::before { background: var(--line-strong); }
.est-range::after { background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.est-range input { position: relative; z-index: 1; width: 100%; height: 100%; margin: 0; font-size: var(--fs-body); background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.est-range input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.est-range input::-moz-range-track { height: 4px; background: transparent; }
.est-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--fill); box-shadow: 0 1px 4px #0008; }
.est-range input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--fill); box-shadow: 0 1px 4px #0008; }
.est-range input:focus-visible { outline: none; }
.est-range:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--radius-sm); }
.est-mode { display: grid; width: 100%; }
.est-mode .seg-sub { font-size: var(--fs-meta); font-weight: 400; color: var(--ink-2); }
.est-mode label:has(input:checked) .seg-sub { color: var(--ink-2); }

.est-result { min-width: 0; display: grid; align-content: start; }
.est-total { display: block; font: 700 32px/1.15 var(--heading); letter-spacing: var(--tracking-title); color: var(--ink); font-variant-numeric: tabular-nums; }
.est-formula { margin-top: var(--space-2); font-size: var(--fs-ui); line-height: var(--lh-ui); font-variant-numeric: tabular-nums; }
.est-meter { list-style: none; margin: var(--space-5) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.est-meter li { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 196px); align-items: center; gap: var(--space-4); min-height: 28px; font-size: var(--fs-meta); line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.est-name { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); white-space: nowrap; }
.est-name .icon { visibility: hidden; color: var(--ink); }
.est-meter li[data-fit] { color: var(--ink); }
.est-meter li[data-fit] .est-name .icon { visibility: visible; }
.est-bar { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.est-fill, .est-over { position: absolute; inset: 0; border-radius: inherit; }
.est-fill { background: var(--ink-2); opacity: .6; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.est-meter li[data-fit] .est-fill { background: var(--ink); opacity: 1; }
/* More than the allowance: a hatched end on the full bar (plus the words "reicht nicht"). */
.est-over { left: auto; width: 22%; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, var(--surface-2) 1.5px 4px); opacity: 0; }
.est-meter li[data-over] .est-over { opacity: 1; }
.est-value { text-align: right; }
.est-rec { margin-top: var(--space-5); min-height: calc(2em * var(--lh-ui)); font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink); text-wrap: pretty; }
.est-link { justify-self: start; margin-top: var(--space-1); }
.est-link[data-off] { visibility: hidden; }
.est-note { margin-top: var(--space-5); font-size: var(--fs-meta); }

/* Bars follow input with a short transition; the first view fills them once (signature motion). */
.motion .est-meter[data-meter-state=done] .est-fill { transition: transform var(--dur-ui) var(--ease-standard); }
.motion .est-meter[data-meter-state=done] .est-over { transition: opacity var(--dur-ui) var(--ease-standard); }
.motion .est-meter[data-meter-state=armed] .est-fill { transform: scaleX(0); }
.motion .est-meter[data-meter-state=armed] .est-over { opacity: 0; }
/* 240ms head start lets the card's own reveal settle before the bars move. */
.motion .est-meter[data-meter-state=play] .est-fill { transition: transform var(--dur-reveal) var(--ease-out-soft) calc(240ms + var(--i, 0) * var(--stagger-fine)); }
.motion .est-meter[data-meter-state=play] .est-over { transition: opacity var(--dur-ui) var(--ease-standard) calc(240ms + var(--dur-reveal) + var(--i, 0) * var(--stagger-fine)); }

/* Worked examples (no-JS replacement for the live estimator). */
.est-examples { display: none; width: 100%; border-collapse: collapse; font-size: var(--fs-ui); line-height: var(--lh-ui); font-variant-numeric: tabular-nums; }
.est-examples th, .est-examples td { padding: 12px var(--space-3) 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); font-weight: 400; }
.est-examples thead th { font-size: var(--fs-meta); color: var(--muted); }
.est-examples tbody th { color: var(--ink); }
.est-examples strong { font-weight: 500; color: var(--ink); }
@media (scripting: none) {
  .est-live { display: none; }
  .est-examples { display: table; }
  /* The cards show the monthly Pro prices; yearly and Max figures are in the comparison table. */
  .pricing-controls, .pro-switch { display: none; }
}

/* ---------------------------------------------------------------------------------------------
   Comparison table. Studio (recommended) carries a 1px column outline. Desktop: sticky header.
   Phones with JS: two selects choose two plan columns; without JS the table scrolls in its region. */
.cmp-pick { display: none; }
.cmp-scroll { position: relative; }
.cmp-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--fs-ui); line-height: 1.4; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { height: 48px; padding: 10px var(--space-3); border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; color: var(--ink); font-weight: 400; }
.cmp th[scope=row] { width: 32%; padding-left: 0; text-align: left; color: var(--ink-2); }
.cmp thead th { position: sticky; top: var(--header-h); z-index: 1; height: 64px; background: var(--bg); border-bottom-color: var(--line-strong); font-weight: 600; }
.cmp thead th > span:first-child { display: block; font-size: var(--fs-ui); }
.cmp thead th .badge { margin-top: 4px; }
.cmp .cmp-group th { height: auto; padding: var(--space-6) 0 10px; text-align: left; font: 600 var(--fs-body)/var(--lh-ui) var(--font); color: var(--ink); }
/* Group rows carry an empty cell under each plan, so the recommended column's outline runs on. */
.cmp .cmp-group td { height: auto; padding: 0; }
.cmp tbody:first-of-type .cmp-group th { padding-top: var(--space-5); }
.cmp td .icon { display: inline-block; vertical-align: -3px; color: var(--ink); }
.cmp [data-recommended] { background: #ffffff05; box-shadow: inset 1px 0 var(--line-strong), inset -1px 0 var(--line-strong); }
.cmp thead [data-recommended] { background: linear-gradient(#ffffff08, #ffffff08), var(--bg); box-shadow: inset 1px 0 var(--line-strong), inset -1px 0 var(--line-strong), inset 0 1px var(--line-strong); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.cmp tbody:last-of-type tr:last-child [data-recommended] { box-shadow: inset 1px 0 var(--line-strong), inset -1px 0 var(--line-strong), inset 0 -1px var(--line-strong); }

/* FAQ and closing card: shared components; only the spacing here. */
.faq-section .section-title { margin-bottom: var(--space-6); }
/* The FAQ list ends on a hairline already; the closing card follows without a second one. */
.faq-section + .page-end { padding-top: var(--space-5); }
.faq-section + .page-end::before { display: none; }

@media (max-width: 960px) {
  /* Plans: one card per row; each card in two columns. Left: name, price, billing, allowance.
     Right: the watermark label, then the features, so both halves carry content. */
  .plans { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--space-5); }
  .plan { grid-row: auto; grid-template-rows: auto auto auto 1fr auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head mark" "price feat" "bill feat" "allow feat" "cta cta"; column-gap: var(--space-7); }
  .plan-head { grid-area: head; }
  .plan-mark { grid-area: mark; align-self: start; margin-top: 0; padding-left: var(--space-6); border-left: 1px solid var(--line); }
  .plan-price { grid-area: price; }
  .billing-note { grid-area: bill; }
  .allowance { grid-area: allow; align-self: start; border-bottom: 0; padding-bottom: 0; }
  .plan-features { grid-area: feat; align-self: stretch; margin-top: 0; padding: var(--space-4) 0 0 var(--space-6); border-left: 1px solid var(--line); }
  /* The button closes each card on its own row, under the left column's width. */
  .plan-cta { grid-area: cta; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
  .plan-cta .button { width: calc(50% - var(--space-7) / 2); }
  .credits-layout { grid-template-columns: minmax(0, 1fr); }
  .credits-layout .visual-heading { margin-bottom: var(--space-6); }
  .est-live { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .est-result { padding-top: var(--space-6); border-top: 1px solid var(--line); }
  .est-meter { border-top: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .credit-figure { padding: var(--space-5); gap: var(--space-4); }
  .cf-source { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); }
  .cf-frames i { width: 7px; height: 5px; }
  .cf-rows .rate-row { grid-template-areas: "label" "cells" "chip"; }
  .cf-rows .rate-chip { margin-left: 0; }
  .pricing-controls { margin-bottom: var(--space-5); }
  .billing-switch { width: 100%; }
  /* The shared .seg goes full width on phones; the Pro/Max switch stays beside the title. */
  .pro-switch { display: inline-grid; width: auto; }
  .pro-switch > button { padding-inline: 12px; white-space: nowrap; }
  .plan { grid-template-rows: none; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "mark" "price" "bill" "allow" "feat" "cta"; padding: var(--space-5); }
  .plan-mark { margin-top: var(--space-4); padding-left: 0; border-left: 0; }
  .allowance { padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
  .plan-features { margin-top: var(--space-5); padding: 0; border-left: 0; }
  .plan-cta { margin-top: var(--space-5); padding-top: 0; border-top: 0; }
  .plan-cta .button { width: 100%; gap: 6px; padding-inline: 10px; }
  .cta-note { text-align: left; }
  .pricing-notes { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .estimator { padding: var(--space-5); }
  /* The value may wrap ("360 von 250 · reicht nicht" at 320px); the plan name never does. */
  .est-meter li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name value" "bar bar"; align-items: start; gap: 6px var(--space-3); }
  .est-value { min-width: 0; text-wrap: balance; }
  .est-name { grid-area: name; }
  .est-bar { grid-area: bar; }
  .est-value { grid-area: value; }
  .est-total { font-size: 28px; }
  .est-mode .seg-sub { flex-basis: 100%; }
  /* Comparison with JS: chooser + two plan columns. */
  .cmp { table-layout: auto; }
  .cmp th[scope=row] { width: 40%; }
  .cmp th, .cmp td { padding-inline: var(--space-2); }
  .cmp thead th { position: static; }
}
@media (max-width: 640px) and (scripting: enabled) {
  .cmp-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
  .cmp-pick label { display: grid; gap: 6px; font-size: var(--fs-meta); color: var(--ink-2); }
  /* appearance: none, or Safari draws a 26px native menulist that ignores height, border and padding. */
  .cmp-pick select { -webkit-appearance: none; appearance: none; width: 100%; min-height: var(--touch); padding: 0 36px 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 var(--fs-body)/1.2 var(--font); }
  /* Drawn chevron (CSP img-src 'self' rules out a data: URI background). */
  .cmp-pick label { position: relative; }
  .cmp-pick label::after { content: ''; position: absolute; right: 16px; bottom: 19px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
  .cmp-pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .cmp [data-col]:not([data-on]) { display: none; }
  .cmp [data-col][data-on] { width: 30%; }
}
@media (max-width: 640px) and (scripting: none) {
  /* The only horizontal scroll on the page, inside its own region; the label column stays put. */
  .cmp-scroll { overflow-x: auto; overscroll-behavior-x: contain; background: linear-gradient(90deg, transparent, #0000008c) right / 18px 100% no-repeat scroll; }
  .cmp { min-width: 600px; }
  .cmp th[scope=row] { position: sticky; left: 0; z-index: 1; width: 150px; background: var(--bg); }
  .cmp .cmp-group th { position: sticky; left: 0; }
}
@media print {
  .cmp thead th { position: static; }
}
