/* ==========================================================================
   FLUID TOKENS (2026-11-19) — one set of values that glides from the phone design (402px Figma,
   held fixed up to 620px) to the desktop design (1513px Figma, held fixed from there up).
   At 402/620 and at 1513+ the tokens equal the Figma values exactly; between them every value is a
   straight interpolation, so nothing jumps at a breakpoint. Applied only in 621–1512px, so the
   phone and the 1513 desktop stay byte-for-byte what Figma draws.
   ========================================================================== */
:root {
  --f-h1: clamp(30px, calc(30px + (100vw - 620px) * 0.03807), 64px);          /* section titles / hero H1: Mobile H1 30 → Desktop H1 64 */
  --f-h1-lh: clamp(38px, calc(38px + (100vw - 620px) * 0.03807), 72px);
  --f-h2: clamp(26px, calc(26px + (100vw - 620px) * 0.01568), 40px);          /* H2: Mobile 26 → Desktop 40 */
  --f-h2-lh: clamp(34px, calc(34px + (100vw - 620px) * 0.01792), 50px);
  --f-deco: clamp(36px, calc(36px + (100vw - 620px) * 0.03135), 64px);        /* Kreon statement headline: 36 → 64 */
  --f-deco-lh: clamp(44px, calc(44px + (100vw - 620px) * 0.03471), 75px);
  --f-body: clamp(16px, calc(16px + (100vw - 620px) * 0.00448), 20px);        /* body: 16/24 → 20/32 */
  --f-body-lh: clamp(24px, calc(24px + (100vw - 620px) * 0.00896), 32px);
  --f-q: clamp(18px, calc(18px + (100vw - 620px) * 0.01120), 28px);           /* FAQ question: 18/26 → 28/38 */
  --f-q-lh: clamp(26px, calc(26px + (100vw - 620px) * 0.01344), 38px);
  --f-gx-lg: clamp(40px, calc(40px + (100vw - 620px) * 0.10526), 134px);      /* side gutter of the wide sections (benefits, steps, values, docs): 40 → 134 */
  --f-gx: clamp(32px, calc(32px + (100vw - 620px) * 0.03587), 64px);          /* standard side gutter: 32 → 64 (tablets get a roomier edge than the 16px phone) */
}

@media (min-width: 621px) and (max-width: 1512px) {
  /* sub-page hero + section titles */
  html .hero-body h1 { font-size: var(--f-h1); line-height: var(--f-h1-lh); }
  html .benefits h2, html .ds-values h2, html .tagcloud-sec h2, html .info-steps > h2,
  html .activities .heading, html .news > .heading, html .contact-head h2 { font-size: var(--f-h1); line-height: var(--f-h1-lh); }
  html .hero-body .hero-text, html .hero-body .hero-text.hero-text-sm { font-size: var(--f-body); line-height: var(--f-body-lh); }
  /* H2 level */
  html .faq h2, html .doc-card h2, html .doc-interest h2, html .about-h2,
  html .istep-title { font-size: var(--f-h2); line-height: var(--f-h2-lh); }
  html .faq-sub, html .b-card p, html .ds-vcard p, html .about-p, html .istep-body p, html .contact-sub { font-size: var(--f-body); line-height: var(--f-body-lh); }
  html .faq-item summary { font-size: var(--f-q); line-height: var(--f-q-lh); }
  html .gallery-heading p { font-size: var(--f-deco); line-height: var(--f-deco-lh); }
  /* side gutters */
  html .benefits, html .info-steps, html .ds-values, html .tagcloud-sec, html .pron-img-sec, html .ds-docs { padding-left: var(--f-gx-lg); padding-right: var(--f-gx-lg); }
  html .faq, html .about, html .news, html .contact { padding-left: var(--f-gx); padding-right: var(--f-gx); }
}

/* Desktop (1101–1512px): the standard side gutter holds Figma's 64px instead of shrinking with the window (it fell to 56px at
   1280), so these sections line up with the header, gallery and footer, which were already 64. The wide sections (benefits,
   steps, values, docs) keep their fluid gutter. */
@media (min-width: 1101px) and (max-width: 1512px) {
  :root { --f-gx: 64px; }
}
