/* Humavit case study (PL + EN) — identity "Receptura": light, natural, rounded.
   Supplement-label calm: warm white ground, Humavit navy text, green for done
   and links, an apricot touch for "next". Instrument Serif headlines, Figtree
   body, capsule shapes for chips and the production line, 24 px cards without
   shadows. Everything is scoped to .cs-humavit (the area between the shared
   header and footer). */

.cs-humavit {
  --hv-ground: #FAFAF6;
  --hv-tint: #EEF3EC;
  --hv-ink: #123E63;
  --hv-ink-2: #4E6475;
  --hv-green: #16A34A;
  --hv-green-text: #15803D;
  --hv-green-tint-text: #166534;
  --hv-green-deep: #14532D;
  --hv-green-soft: #E3F4E7;
  --hv-green-pale: #DCF0E1;
  --hv-line: #DCE4DA;
  --hv-line-2: #CBD8CE;
  --hv-line-3: #B7C6BC;
  --hv-apricot: #F89C27;
  --hv-apricot-soft: #FFF1DE;
  --hv-apricot-text: #9A5B00;
  --hv-navy-2: #1B4B73;
  --hv-on-navy: #D3E0EA;
  --hv-mint: #BFE8CC;
  --hv-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --hv-sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --hv-r: 24px;
  background: var(--hv-ground);
  color: var(--hv-ink);
  font-family: var(--hv-sans);
  font-size: 17px;
  line-height: 1.6;
}
.cs-humavit a { color: var(--hv-green-text); text-underline-offset: 3px; }
.cs-humavit a:hover { color: var(--hv-ink); }
.cs-humavit strong, .cs-humavit b { font-weight: 600; }
.cs-humavit .hv-nowrap { white-space: nowrap; }
.cs-humavit .hv-num { font-variant-numeric: tabular-nums; }

/* ---- Shared pieces --------------------------------------------------------- */
.cs-humavit .hv-sec { padding: clamp(56px, 7vw, 104px) 0; }
.cs-humavit .hv-sec--tint { background: var(--hv-tint); }
.cs-humavit .hv-stack { display: flex; flex-direction: column; gap: 40px; }

/* Capsule glyph: half filled, half empty. */
.cs-humavit .hv-pill {
  display: inline-block; flex: none; width: 22px; height: 10px; border-radius: 999px;
  border: 1.5px solid var(--hv-green); background: linear-gradient(90deg, var(--hv-green) 50%, #FFFFFF 50%);
}
.cs-humavit .hv-pill--apricot { border-color: var(--hv-apricot); background: linear-gradient(90deg, var(--hv-apricot) 50%, #FFFFFF 50%); }
.cs-humavit .hv-pill--done { background: linear-gradient(90deg, var(--hv-green) 50%, var(--hv-green-soft) 50%); }
.cs-humavit .hv-pill--next { border-color: var(--hv-apricot); background: linear-gradient(90deg, var(--hv-apricot) 50%, var(--hv-apricot-soft) 50%); }
.cs-humavit .hv-pill--wait { border-color: var(--hv-line-3); background: linear-gradient(90deg, var(--hv-tint) 50%, #FFFFFF 50%); }

.cs-humavit .hv-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hv-green-text);
}
.cs-humavit .hv-sec--tint .hv-eyebrow { color: var(--hv-green-tint-text); }
.cs-humavit .hv-kicker { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hv-ink-2); }

.cs-humavit .hv-h2 {
  font-family: var(--hv-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08;
  letter-spacing: 0; color: var(--hv-ink); text-wrap: balance;
}
.cs-humavit .hv-h3 {
  font-family: var(--hv-serif); font-weight: 400; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.12;
  letter-spacing: 0; color: var(--hv-ink); text-wrap: balance;
}
.cs-humavit .hv-head {
  max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.cs-humavit .hv-head__lead { font-size: 18px; line-height: 1.6; color: var(--hv-ink-2); text-wrap: pretty; }

/* Tab chip ("Zakładka: Oferty"). */
.cs-humavit .hv-tab {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--hv-green-soft);
  color: var(--hv-green-deep); font-size: 13px; line-height: 1.4; font-weight: 600;
}
.cs-humavit .hv-tab::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--hv-green); }

/* Status chips (order items, import results). */
.cs-humavit .hv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-humavit .hv-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--hv-line-2); font-size: 13px; font-weight: 500; line-height: 1.3;
}
.cs-humavit .hv-dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--hv-green); }
.cs-humavit .hv-dot--grey { background: #8A97A3; }
.cs-humavit .hv-dot--navy { background: var(--hv-ink); }
.cs-humavit .hv-dot--apricot { background: var(--hv-apricot); }
.cs-humavit .hv-dot--ring { box-sizing: border-box; background: transparent; border: 2px solid var(--hv-ink-2); }

.cs-humavit .hv-card { background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: var(--hv-r); }
.cs-humavit .hv-fineprint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--hv-ink-2); }
.cs-humavit .hv-fineprint--rule { padding-top: 14px; border-top: 1px dashed var(--hv-line-2); }

/* Small text links get a 44 px tall hit area without changing the layout. */
.cs-humavit .hv-byline a, .cs-humavit .hv-cta__alt a { padding-block: 14px; }
.cs-humavit .hv-crumbs a, .cs-humavit .hv-ext, .cs-humavit .hv-door__how a, .cs-humavit .hv-author a { padding-block: 12px; margin-block: -12px; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.cs-humavit .hv-crumbs { padding-top: 22px; }
.cs-humavit .hv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--hv-ink-2); }
.cs-humavit .hv-crumbs li { display: flex; align-items: center; gap: 8px; }
.cs-humavit .hv-crumbs [aria-current] { color: var(--hv-ink); font-weight: 500; }

/* ---- Hero ---------------------------------------------------------------- */
.cs-humavit .hv-hero { padding: 28px 0 clamp(56px, 7vw, 96px); }
.cs-humavit .hv-hero__inner { display: flex; flex-direction: column; gap: 48px; }
.cs-humavit .hv-hero__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; }
.cs-humavit .hv-hero__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cs-humavit .hv-client { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cs-humavit .hv-client__logo { display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: var(--hv-r); padding: 10px 18px; }
.cs-humavit .hv-client__logo img { display: block; width: 140px; height: 84px; }
.cs-humavit .hv-client__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cs-humavit .hv-client__sector { margin: 0; font-size: 15px; color: var(--hv-ink-2); }
.cs-humavit .hv-ext { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.cs-humavit .hv-ext svg { flex: none; }
.cs-humavit .hv-h1 {
  margin: 0; font-family: var(--hv-serif); font-weight: 400; font-size: clamp(42px, calc(4.4vw + 16px), 74px); line-height: 1.02;
  letter-spacing: -0.01em; color: var(--hv-ink); text-wrap: balance;
}
.cs-humavit .hv-h1 em { font-style: italic; color: var(--hv-green-text); }
.cs-humavit .hv-lead { max-width: 640px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.62; color: var(--hv-ink); text-wrap: pretty; }
.cs-humavit .hv-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; line-height: 1.4; color: var(--hv-ink-2); }
.cs-humavit .hv-byline a { font-weight: 600; }

/* Recipe card styled like a supplement-facts label. */
.cs-humavit .hv-recipe { flex: 0 1 440px; min-width: 0; padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 18px; }
.cs-humavit .hv-recipe__title { margin: 0; font-family: var(--hv-serif); font-size: 34px; line-height: 1.05; color: var(--hv-ink); }
.cs-humavit .hv-recipe__sub { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--hv-ink-2); }
.cs-humavit .hv-label-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; border-top: 8px solid var(--hv-ink); }
.cs-humavit .hv-label-table thead th {
  padding: 10px 8px 8px; border-bottom: 1px solid var(--hv-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--hv-ink-2); text-align: right; vertical-align: bottom;
}
.cs-humavit .hv-label-table thead th:first-child { padding-left: 0; text-align: left; }
.cs-humavit .hv-label-table thead th:last-child { padding-right: 0; }
.cs-humavit .hv-label-table tbody th, .cs-humavit .hv-label-table tbody td { padding: 10px 8px; border-bottom: 1px solid var(--hv-line); }
.cs-humavit .hv-label-table tbody tr:last-child th, .cs-humavit .hv-label-table tbody tr:last-child td { border-bottom: 0; }
.cs-humavit .hv-label-table tbody th { padding-left: 0; text-align: left; font-weight: 500; color: var(--hv-ink); }
.cs-humavit .hv-label-table td { text-align: right; font-weight: 600; }
.cs-humavit .hv-label-table td:last-child { padding-right: 0; font-weight: 400; color: var(--hv-ink-2); }
.cs-humavit .hv-label-table tfoot th, .cs-humavit .hv-label-table tfoot td { padding: 12px 8px 0; border-top: 3px solid var(--hv-ink); }
.cs-humavit .hv-label-table tfoot th { padding-left: 0; text-align: left; font-weight: 600; color: var(--hv-ink); }
.cs-humavit .hv-fill { display: flex; flex-direction: column; gap: 8px; }
.cs-humavit .hv-fill__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--hv-ink-2); }
.cs-humavit .hv-fill__row strong { font-size: 16px; color: var(--hv-ink); font-variant-numeric: tabular-nums; }
.cs-humavit .hv-fill__bar { height: 12px; border-radius: 999px; background: var(--hv-green-pale); overflow: hidden; }
.cs-humavit .hv-fill__bar span { display: block; width: 94.8%; height: 100%; border-radius: 999px; background: var(--hv-green); }
.cs-humavit .hv-fill__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--hv-ink-2); }

/* Fact strip under the hero. */
.cs-humavit .hv-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--hv-line); border: 1px solid var(--hv-line); border-radius: var(--hv-r); overflow: hidden; }
.cs-humavit .hv-facts > div { flex: 1 1 190px; background: #FFFFFF; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.cs-humavit .hv-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hv-ink-2); }
.cs-humavit .hv-facts dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--hv-ink-2); }
.cs-humavit .hv-facts dd.hv-facts__v { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--hv-ink); }
.cs-humavit .hv-facts__live { display: flex; align-items: center; gap: 8px; }
.cs-humavit .hv-facts__live::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--hv-green); }

/* ---- Before ---------------------------------------------------------------- */
.cs-humavit .hv-before { gap: 48px; }
.cs-humavit .hv-chain-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cs-humavit .hv-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; max-width: 1000px; }
.cs-humavit .hv-chain li { display: flex; align-items: center; gap: 8px; }
.cs-humavit .hv-chain li span { padding: 7px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--hv-line-2); font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.cs-humavit .hv-chain li svg { flex: none; color: var(--hv-ink-2); }
.cs-humavit .hv-chain li:last-child span { background: var(--hv-ink); border-color: var(--hv-ink); color: #FFFFFF; font-weight: 600; }
.cs-humavit .hv-pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-humavit .hv-pains li { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cs-humavit .hv-pains__t { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--hv-ink); }
.cs-humavit .hv-pains__d { font-size: 16px; line-height: 1.6; color: var(--hv-ink-2); }
.cs-humavit .hv-quote { margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cs-humavit .hv-quote__pre { font-size: 17px; line-height: 1.55; color: var(--hv-ink-2); }
.cs-humavit .hv-quote blockquote { margin: 0; }
.cs-humavit .hv-quote blockquote p { font-family: var(--hv-serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; color: var(--hv-ink); text-wrap: balance; }
.cs-humavit .hv-quote figcaption { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hv-ink-2); }
.cs-humavit .hv-note { margin: 0 auto; max-width: 820px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--hv-ink-2); }

/* ---- Modules ------------------------------------------------------------- */
.cs-humavit .hv-modules { display: flex; flex-direction: column; gap: clamp(64px, 7vw, 96px); }
.cs-humavit .hv-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.cs-humavit .hv-mod--rev { flex-direction: row-reverse; justify-content: flex-end; }
.cs-humavit .hv-mod--col { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 32px; }
.cs-humavit .hv-mod__row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.cs-humavit .hv-mod__text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-humavit .hv-mod__text--wide { flex-basis: 420px; }
.cs-humavit .hv-mod__p { font-size: 17px; line-height: 1.65; color: var(--hv-ink); text-wrap: pretty; }
.cs-humavit .hv-mod__aside { font-size: 15px; line-height: 1.6; color: var(--hv-ink-2); }
.cs-humavit .hv-mod__figure { flex: 0 1 784px; min-width: 0; max-width: 100%; }
.cs-humavit .hv-feature-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 56px; }
.cs-humavit .hv-feature-head__l { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-humavit .hv-feature-head__l .hv-h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; }
.cs-humavit .hv-feature-head > .hv-mod__p { flex: 1 1 480px; min-width: 0; }

/* Calculation card (M1). */
.cs-humavit .hv-calc { flex: 1 1 460px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cs-humavit .hv-calc__rows { display: flex; flex-direction: column; gap: 12px; font-variant-numeric: tabular-nums; }
.cs-humavit .hv-calc__row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; line-height: 1.3; }
.cs-humavit .hv-calc__row span:not(.hv-calc__eq) { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hv-line-2); background: var(--hv-ground); white-space: nowrap; }
.cs-humavit .hv-calc__row i { font-style: normal; color: var(--hv-ink-2); }
.cs-humavit .hv-calc__eq { display: inline-flex; align-items: center; gap: inherit; }
.cs-humavit .hv-calc__row span.hv-calc__sum { background: #FFFFFF; border-color: var(--hv-ink); font-weight: 600; }
.cs-humavit .hv-calc__row span.hv-calc__res { border: 2px solid var(--hv-green); background: var(--hv-green-soft); font-weight: 600; }
.cs-humavit .hv-calc__dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-humavit .hv-calc__dl > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--hv-tint); }
.cs-humavit .hv-calc__dl dt { font-size: 13px; line-height: 1.35; color: var(--hv-ink-2); }
.cs-humavit .hv-calc__dl dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--hv-ink); font-variant-numeric: tabular-nums; }
.cs-humavit .hv-calc__dl dd.hv-calc__formula { font-size: 15px; line-height: 1.35; }
.cs-humavit .hv-langs { margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--hv-line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.cs-humavit .hv-langs__label { font-size: 14px; color: var(--hv-ink-2); }
.cs-humavit .hv-langs abbr { text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hv-line-2); font-size: 13px; font-weight: 600; }

/* Screenshot frame: white rounded mat, inner window with a hairline. */
.cs-humavit .hv-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-humavit .hv-frame { padding: 10px; border-radius: var(--hv-r); border: 1px solid var(--hv-line); background: #FFFFFF; }
.cs-humavit .hv-shot {
  display: block; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid #E6ECE4;
  background: #FAFAFA; cursor: zoom-in;
}
.cs-humavit .hv-shot img { display: block; width: 100%; max-width: none; height: auto; }
/* Crop to the content area (no sidebar, no top bar): x 284–1440, y 56–900 of the 1440×900 screen. */
.cs-humavit .hv-shot--crop { aspect-ratio: 1156 / 844; }
.cs-humavit .hv-shot--crop img { position: absolute; left: -24.5675%; top: -6.6351%; width: 124.5675%; }
.cs-humavit .hv-shot__zoom {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--hv-ink);
  box-shadow: 0 1px 2px rgba(18, 62, 99, 0.16), 0 6px 16px -6px rgba(18, 62, 99, 0.35);
  transition: transform .15s ease;
}
.cs-humavit .hv-shot:hover .hv-shot__zoom, .cs-humavit .hv-shot:focus-visible .hv-shot__zoom { transform: scale(1.08); }
.cs-humavit .hv-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; line-height: 1.45; color: var(--hv-ink-2); }
.cs-humavit .hv-cap--center { justify-content: center; text-align: center; }
.cs-humavit .hv-cap__t { font-weight: 600; color: var(--hv-ink); }
.cs-humavit .hv-cap__note { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--hv-line-2); background: #FFFFFF; font-size: 12.5px; line-height: 1.5; }

/* 8-stage capsule line (M4). */
.cs-humavit .hv-stages { padding: 28px clamp(16px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.cs-humavit .hv-stages__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.cs-humavit .hv-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; line-height: 1.3; color: var(--hv-ink-2); }
.cs-humavit .hv-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cs-humavit .hv-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px 10px; }
.cs-humavit .hv-line li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cs-humavit .hv-line .hv-pill { width: 76px; height: 28px; border-width: 2px; }
.cs-humavit .hv-line__s { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--hv-ink-2); }
.cs-humavit .hv-line__s--done { color: var(--hv-green-text); }
.cs-humavit .hv-line__s--next { color: var(--hv-apricot-text); }
.cs-humavit .hv-line__n { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--hv-ink); }
.cs-humavit .hv-stages__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--hv-ink-2); }

/* Correction card (M5). */
.cs-humavit .hv-kor { flex: 1 1 460px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cs-humavit .hv-kor__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-humavit .hv-kor__no { padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--hv-ink); font-size: 14px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cs-humavit .hv-kor__why { padding: 5px 14px; border-radius: 999px; background: var(--hv-apricot-soft); border: 1px solid var(--hv-apricot); font-size: 14px; font-weight: 500; line-height: 1.3; }
.cs-humavit .hv-kor__meta { font-size: 14px; color: var(--hv-ink-2); }
.cs-humavit .hv-kor table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.cs-humavit .hv-kor caption { caption-side: top; text-align: left; padding-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hv-ink-2); }
.cs-humavit .hv-kor thead th { padding: 8px; border-bottom: 1px solid var(--hv-ink); font-size: 13px; font-weight: 600; color: var(--hv-ink-2); text-align: right; }
.cs-humavit .hv-kor thead th:first-child { padding-left: 0; text-align: left; }
.cs-humavit .hv-kor thead th:last-child, .cs-humavit .hv-kor td:last-child { padding-right: 0; }
.cs-humavit .hv-kor tbody th { padding: 12px 8px 12px 0; text-align: left; font-weight: 500; color: var(--hv-ink); border-bottom: 1px solid var(--hv-line); }
.cs-humavit .hv-kor td { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--hv-line); white-space: nowrap; }
.cs-humavit .hv-kor tbody tr:last-child th, .cs-humavit .hv-kor tbody tr:last-child td { border-bottom: 0; }
.cs-humavit .hv-kor td s { color: var(--hv-ink-2); }
.cs-humavit .hv-kor td strong { color: var(--hv-ink); }

.cs-humavit .hv-statline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 24px; border-top: 1px solid var(--hv-line); }
.cs-humavit .hv-statline .hv-tab { align-self: center; flex: none; }
.cs-humavit .hv-statline .hv-mod__p { flex: 1 1 460px; min-width: 0; }

/* ---- Architecture ------------------------------------------------------- */
.cs-humavit .hv-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-humavit .hv-doors > li { display: flex; flex-direction: column; align-items: stretch; }
.cs-humavit .hv-door { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cs-humavit .hv-door__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--hv-green-soft); color: var(--hv-green-text); }
.cs-humavit .hv-door__t { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--hv-ink); }
.cs-humavit .hv-door__how { font-size: 14px; font-weight: 500; color: var(--hv-green-tint-text); }
.cs-humavit .hv-door__how a { display: inline-flex; align-items: center; gap: 6px; }
.cs-humavit .hv-door__d { font-size: 15px; line-height: 1.55; color: var(--hv-ink-2); }
.cs-humavit .hv-door__wire { align-self: center; width: 2px; height: 28px; background: #A9BCB0; }
.cs-humavit .hv-core {
  background: var(--hv-ink); color: #FFFFFF; border-radius: 48px; padding: 22px clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; text-align: center;
}
.cs-humavit .hv-core svg { flex: none; }
.cs-humavit .hv-core__t { font-size: 18px; font-weight: 600; line-height: 1.4; }
.cs-humavit .hv-core__d { font-size: 16px; line-height: 1.5; color: var(--hv-on-navy); }
.cs-humavit .hv-where { padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); }
.cs-humavit .hv-where table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; border-top: 8px solid var(--hv-ink); }
.cs-humavit .hv-where caption { caption-side: top; text-align: left; padding: 0 0 14px; font-family: var(--hv-serif); font-size: 34px; font-weight: 400; line-height: 1.05; color: var(--hv-ink); }
.cs-humavit .hv-where th { width: 26%; text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hv-line); font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--hv-ink); }
.cs-humavit .hv-where td { vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--hv-line); color: var(--hv-ink-2); }
.cs-humavit .hv-where tr:last-child th, .cs-humavit .hv-where tr:last-child td { border-bottom: 0; padding-bottom: 4px; }
.cs-humavit .hv-tests { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.cs-humavit .hv-badge { padding: 6px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--hv-line-2); font-size: 14px; font-weight: 500; line-height: 1.3; }

/* ---- Timeline -------------------------------------------------------------- */
.cs-humavit .hv-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-humavit .hv-phase { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.cs-humavit .hv-phase__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cs-humavit .hv-phase__when { padding: 4px 12px; border-radius: 999px; background: var(--hv-green-soft); color: var(--hv-green-deep); font-size: 13px; font-weight: 600; line-height: 1.4; }
.cs-humavit .hv-phase__no { font-size: 13px; font-weight: 600; color: var(--hv-ink-2); }
.cs-humavit .hv-phase__t { font-family: var(--hv-serif); font-size: 30px; line-height: 1.1; color: var(--hv-ink); }
.cs-humavit .hv-phase ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--hv-ink-2); }
.cs-humavit .hv-phase li { display: flex; gap: 10px; }
.cs-humavit .hv-phase time { flex: 0 0 56px; font-weight: 600; color: var(--hv-ink); font-variant-numeric: tabular-nums; }
.cs-humavit .hv-center { display: flex; justify-content: center; }

/* ---- Results --------------------------------------------------------------- */
.cs-humavit .hv-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; }
.cs-humavit .hv-checks li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; line-height: 1.6; color: var(--hv-ink); }
.cs-humavit .hv-checks__i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--hv-green); color: #FFFFFF; }

/* ---- FAQ (rsm_faq markup, restyled as recipe cards) ------------------------ */
.cs-humavit .hv-faq-wrap { max-width: 880px; margin: 0 auto; width: 100%; }
.cs-humavit .rsm-faq { border-bottom: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-humavit .rsm-faq__item { border: 1px solid var(--hv-line); border-radius: var(--hv-r); background: #FFFFFF; padding: 0 28px; }
.cs-humavit .rsm-faq__q { padding: 22px 0; gap: 20px; align-items: center; }
.cs-humavit .rsm-faq__title { font-family: var(--hv-serif); font-size: clamp(23px, 2vw, 28px); line-height: 1.15; font-weight: 400; color: var(--hv-ink); text-wrap: balance; }
.cs-humavit .rsm-faq__icon {
  box-sizing: content-box; width: 18px; height: 18px; padding: 7px; margin-top: 0; border-radius: 999px;
  background: var(--hv-green-soft); color: var(--hv-green-text);
}
.cs-humavit .rsm-faq__item[open] .rsm-faq__icon { background: var(--hv-green); color: #FFFFFF; }
.cs-humavit .rsm-faq__q:hover .rsm-faq__title { color: var(--hv-green-text); }
.cs-humavit .rsm-faq__a { padding: 0 0 26px; font-size: 16px; line-height: 1.65; color: var(--hv-ink-2); }
.cs-humavit .rsm-faq__a a { font-weight: 500; }

/* ---- CTA band ------------------------------------------------------------- */
.cs-humavit .hv-end { padding: 0 0 clamp(56px, 7vw, 104px); }
.cs-humavit .hv-cta {
  background: var(--hv-ink); color: #FFFFFF; border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px;
}
.cs-humavit .hv-cta :focus-visible { outline-color: var(--hv-mint); }
.cs-humavit .hv-cta__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cs-humavit .hv-cta__h { margin: 0; font-family: var(--hv-serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.05; color: #FFFFFF; text-wrap: balance; }
.cs-humavit .hv-cta__p { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--hv-on-navy); }
.cs-humavit .hv-cta__btns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; }
.cs-humavit .hv-cta__wa { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cs-humavit .hv-cta__hint { padding-left: 8px; font-size: 14px; line-height: 1.4; color: var(--hv-on-navy); }
.cs-humavit .hv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 28px;
  border-radius: 999px; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cs-humavit .hv-btn svg { flex: none; }
.cs-humavit .hv-btn--green { background: var(--hv-green); color: #0B2A16; }
.cs-humavit .hv-btn--green:hover { background: #22C55E; color: #0B2A16; }
.cs-humavit .hv-btn--line { padding: 11px 26px; border: 2px solid var(--hv-on-navy); color: #FFFFFF; }
.cs-humavit .hv-btn--line:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.cs-humavit .hv-cta__alt { font-size: 15px; line-height: 1.5; color: var(--hv-on-navy); }
.cs-humavit .hv-cta__alt a, .cs-humavit .hv-author a { font-weight: 600; color: var(--hv-mint); }
.cs-humavit .hv-cta__alt a:hover, .cs-humavit .hv-author a:hover { color: #FFFFFF; }
.cs-humavit .hv-author { flex: 1 1 300px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 24px; border-radius: var(--hv-r); background: var(--hv-navy-2); }
.cs-humavit .hv-author img { flex: none; display: block; width: 96px; height: 96px; border-radius: 999px; object-fit: cover; background: var(--hv-on-navy); }
.cs-humavit .hv-author__body { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cs-humavit .hv-author__name { font-size: 18px; font-weight: 600; line-height: 1.3; color: #FFFFFF; }
.cs-humavit .hv-author__bio { font-size: 15px; line-height: 1.55; color: var(--hv-on-navy); }

/* ---- Read next, next case study ------------------------------------------- */
.cs-humavit .hv-more { display: flex; flex-direction: column; gap: 14px; }
.cs-humavit .hv-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-humavit .hv-more li { display: flex; }
.cs-humavit .hv-link-card {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px;
  background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: var(--hv-r); text-decoration: none; color: var(--hv-ink);
  transition: border-color .15s ease;
}
.cs-humavit a.hv-link-card { color: var(--hv-ink); }
.cs-humavit a.hv-link-card:hover { border-color: var(--hv-green); color: var(--hv-ink); }
.cs-humavit .hv-link-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cs-humavit .hv-link-card__meta { font-size: 13px; color: var(--hv-ink-2); }
.cs-humavit .hv-link-card__t { font-size: 18px; font-weight: 600; line-height: 1.35; }
.cs-humavit .hv-link-card svg, .cs-humavit .hv-next__go svg { flex: none; color: var(--hv-green-text); transition: transform .15s ease; }
.cs-humavit a.hv-link-card:hover > svg, .cs-humavit a.hv-next__card:hover .hv-next__go svg, .cs-humavit a.hv-all:hover svg { transform: translateX(3px); }
.cs-humavit .hv-all svg { transition: transform .15s ease; }
.cs-humavit .hv-next { display: flex; flex-direction: column; gap: 14px; }
.cs-humavit a.hv-next__card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 24px clamp(20px, 3vw, 36px);
  background: #FFFFFF; border: 1px solid var(--hv-line); border-radius: var(--hv-r); text-decoration: none; color: var(--hv-ink);
  transition: border-color .15s ease;
}
.cs-humavit a.hv-next__card:hover { border-color: var(--hv-green); color: var(--hv-ink); }
.cs-humavit .hv-next__brand { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cs-humavit .hv-next__brand img { display: block; width: 147px; height: 40px; }
.cs-humavit .hv-next__d { flex: 1 1 320px; min-width: 0; font-size: 17px; line-height: 1.55; color: var(--hv-ink-2); }
.cs-humavit .hv-next__go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--hv-green-text); }
.cs-humavit .hv-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; }

/* ---- Tablet --------------------------------------------------------------- */
@media (max-width: 1099px) {
  .cs-humavit .hv-recipe { flex: 1 1 100%; }
  .cs-humavit .hv-pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-humavit .hv-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-humavit .hv-door__wire { display: none; }
  .cs-humavit .hv-core { margin-top: 20px; }
  .cs-humavit .hv-core { border-radius: 32px; }
  .cs-humavit .hv-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-humavit .hv-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-humavit .hv-mod__figure { flex-basis: 100%; }
}

/* ---- Phone ------------------------------------------------------------------ */
@media (max-width: 759px) {
  .cs-humavit { font-size: 16px; }
  .cs-humavit .hv-hero__inner { gap: 36px; }
  .cs-humavit .hv-hero__grid { gap: 36px; }
  .cs-humavit .hv-hero__main { gap: 22px; }
  .cs-humavit .hv-client__logo { padding: 8px 14px; border-radius: 18px; }
  .cs-humavit .hv-client__logo img { width: 110px; height: 66px; }
  .cs-humavit .hv-lead { font-size: 17px; }
  .cs-humavit .hv-recipe { padding: 22px 18px 18px; }
  .cs-humavit .hv-recipe__title { font-size: 30px; }
  .cs-humavit .hv-label-table { font-size: 14px; }
  .cs-humavit .hv-label-table thead th { font-size: 11px; letter-spacing: 0.04em; }
  .cs-humavit .hv-head__lead { font-size: 17px; }
  .cs-humavit .hv-chain li span { padding: 6px 12px; font-size: 14px; }
  .cs-humavit .hv-pains { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cs-humavit .hv-pains li { padding: 22px; }
  .cs-humavit .hv-quote blockquote p { font-size: 27px; }
  .cs-humavit .hv-mod, .cs-humavit .hv-mod__row { gap: 28px; }
  .cs-humavit .hv-mod__p { font-size: 16px; }
  .cs-humavit .hv-calc, .cs-humavit .hv-kor { padding: 22px 18px; }
  .cs-humavit .hv-calc__row { gap: 6px; font-size: 14px; }
  .cs-humavit .hv-calc__row span:not(.hv-calc__eq) { padding: 5px 11px; }
  .cs-humavit .hv-facts > div { padding: 16px 18px; }
  .cs-humavit .hv-calc__dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-humavit .hv-calc__dl > div:last-child { grid-column: 1 / -1; }
  .cs-humavit .hv-frame { padding: 6px; border-radius: 18px; }
  .cs-humavit .hv-shot { border-radius: 12px; }
  /* On phones the featured screen is cropped like the others, so its content stays readable. */
  .cs-humavit .hv-shot--mcrop { aspect-ratio: 1156 / 844; }
  .cs-humavit .hv-shot--mcrop img { position: absolute; left: -24.5675%; top: -6.6351%; width: 124.5675%; }
  .cs-humavit .hv-shot__zoom { right: 8px; bottom: 8px; width: 36px; height: 36px; }
  .cs-humavit .hv-cap__note { border-radius: 12px; }
  .cs-humavit .hv-stages { padding: 22px 18px; }
  .cs-humavit .hv-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cs-humavit .hv-line li { flex-direction: row; align-items: center; gap: 14px; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--hv-line); }
  .cs-humavit .hv-line li:last-child { border-bottom: 0; }
  .cs-humavit .hv-line .hv-pill { width: 52px; height: 22px; }
  .cs-humavit .hv-line__s { flex: 0 0 auto; min-width: 86px; }
  .cs-humavit .hv-doors { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cs-humavit .hv-core { margin-top: 14px; }
  .cs-humavit .hv-core { border-radius: 24px; padding: 20px; }
  .cs-humavit .hv-where caption { font-size: 30px; }
  .cs-humavit .hv-where th, .cs-humavit .hv-where td { display: block; width: auto; padding: 0; border: 0; }
  .cs-humavit .hv-where th { padding-top: 14px; }
  .cs-humavit .hv-where td { padding: 4px 0 14px; border-bottom: 1px solid var(--hv-line); font-size: 15px; }
  .cs-humavit .hv-where tr:last-child td { border-bottom: 0; padding-bottom: 0; }
  .cs-humavit .hv-tests .hv-kicker { flex-basis: 100%; text-align: center; }
  .cs-humavit .hv-phases { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cs-humavit .hv-phase { padding: 22px; }
  .cs-humavit .hv-checks { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cs-humavit .hv-checks li { font-size: 16px; }
  .cs-humavit .rsm-faq__item { padding: 0 18px; border-radius: 18px; }
  .cs-humavit .rsm-faq__q { padding: 18px 0; gap: 14px; }
  .cs-humavit .rsm-faq__a { font-size: 15.5px; padding-bottom: 20px; }
  .cs-humavit .hv-cta { border-radius: 24px; padding: 28px 20px; gap: 28px; }
  .cs-humavit .hv-cta__p { font-size: 17px; }
  .cs-humavit .hv-cta__btns { align-self: stretch; flex-direction: column; align-items: stretch; }
  .cs-humavit .hv-cta__wa { align-items: stretch; }
  .cs-humavit .hv-cta__btns .hv-btn { width: 100%; white-space: normal; text-align: center; }
  .cs-humavit .hv-badge { border-radius: 16px; text-align: center; }
  .cs-humavit .hv-author { padding: 18px; }
  .cs-humavit .hv-author img { width: 72px; height: 72px; }
  .cs-humavit .hv-author__body { flex-basis: 100%; }
  .cs-humavit .hv-more ul { grid-template-columns: minmax(0, 1fr); }
  .cs-humavit .hv-link-card { padding: 18px 20px; }
  .cs-humavit .hv-link-card__t { font-size: 17px; }
}
