/* Generated from Figma variables. Do not edit by hand — re-sync & regenerate from the Tokens tab. */

:root {
  /* Colors */
  --black2: #292b2a;
  --black3: #171918;
  --brand: #ffd400;
  --brand-2: #e9be00;
  --icon-color: #ffd400;
  --black1: #646567;
  --light1: #f3f4f4;
  --white: #ffffff;
  --light2: #f2efe9;
  --light3: #bfc0c2;
  --dark-graphite: #252525;

  /* Spacing */
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --cards-gap: 16px;
  --section-gap: 48px;
  --section-padding: 110px;

  /* Radius */
  --border-radius: 6px;
}

/* Section vertical rhythm — the ONE canonical top/bottom padding every <section>
   uses (padding-block: var(--section-pad-block)). A single site-wide ladder keeps
   the gaps between sections identical and steps them down on tablet/phone. Desktop
   seeds from the Figma --section-padding token when present, else 96px. */
:root { --section-pad-block: var(--section-padding, 96px); }
@media (max-width: 1023px) { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.7); } }
@media (max-width: 767px)  { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.5); } }

/* Typography */
.text-15px-text-headcase {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 21px;
}

.text-20px-text {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.text-64px-title {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 60.4px;
  letter-spacing: -0.018em;
}

.text-28px-title {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36.4px;
}

.text-32px-title {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
  letter-spacing: -0.02em;
}

.text-18px-text {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4px;
}

.text-18-px-button {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1px;
  letter-spacing: -0.01em;
}

.text-40px-title {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.018em;
}

.text-24px-title {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28.2px;
}

.text-48px-title {
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 57.6px;
  letter-spacing: -0.018em;
}

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a bright YELLOW (#ffd400) rectangle at a tight 6px radius with BLACK uppercase
      bold text (never white) and a small black trailing → arrow — yellow-on-black is the brand's
      conversion signal.
   2) Everything is SHARP and FLAT at one uniform 6px radius — buttons, cards, inputs and chips all
      share it; no pills, no soft blobs. Separation comes from surface steps (near-black --black3
      bands vs white/light cards), not from soft drop-shadows.
   3) Section labels / eyebrows are small "chip" badges with a 1.5px yellow (--brand-2) border and
      uppercase bold text — a recurring bordered-chip motif sitting above every heading.
   4) Icons sit inside a filled dark (--black3) rounded-square tile (~4px radius) — a dark chip
      behind the glyph, never a bare icon.
   5) Secondary button is deliberately NEUTRAL: white fill + thin 1px light-grey (--light3) border +
      black text — clearly lower priority than the solid yellow CTA. */

:root {
  /* Accent (CTA colour) — the design's primary CTA is the yellow --brand with BLACK text, solid
     (not a gradient), and NO resting shadow (the brand is flat/sharp). */
  --accent: var(--brand);            /* #ffd400 — the yellow the real CTA actually uses */
  --accent-2: var(--brand);          /* solid CTA → same as accent (no gradient end) */
  --accent-contrast: var(--black3);  /* readable text on yellow = near-black, NOT white */

  --btn-shadow: none;                /* flat brand — the CTA has no resting shadow */

  /* Radius scale — the design rounds nearly everything at the 6px --border-radius token; inner icon
     tiles are ~4px. Kept tight; no pills in this brand. */
  --radius-sm: 4px;                              /* icon tiles / tiny inner chips */
  --radius-md: var(--border-radius, 6px);        /* cards, inputs, chips — the main radius */
  --radius-lg: var(--border-radius, 6px);        /* large containers keep the same 6px */
  --radius-pill: 999px;                          /* fallback only — this brand doesn't use pills */
  --btn-radius: var(--border-radius, 6px);       /* the primary button's real radius (also shapes the shared slider arrows) */

  /* Letter case the design draws on buttons (uppercase, slight negative tracking). */
  --btn-transform: uppercase;
  --btn-tracking: -0.01em;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: var(--btn-height, 54px);
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 24px);
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--radius-md));
  font: inherit;
  font-size: var(--btn-font-size, 17px);
  font-weight: var(--btn-weight, 700);
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-tracking, -0.01em);
  font-variant-caps: var(--btn-caps, normal);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 200ms ease,
              box-shadow 200ms ease, filter 200ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — solid yellow fill, black label, flat (no resting shadow). */
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(0.94);   /* measured darken toward --brand-2, works through --btn-bg overrides */
  }
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.92); }

/* Secondary — neutral: white fill, thin light-grey border, black label. */
.btn-secondary {
  background-color: var(--btn-bg, var(--white));
  color: var(--btn-fg, var(--black3));
  border-color: var(--btn-accent, var(--light3));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--light1);
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover. */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black2, currentColor));
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 14%, transparent); }
}
.btn-ghost:active { transform: translateY(0); }

/* Icon button — square chip in the brand's 6px radius (not a circle — this brand is sharp). */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--btn-radius, var(--radius-md));
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  border: none; cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, filter 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { filter: brightness(0.94); transform: scale(1.06); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — only height + inline padding shrink. */
.btn--sm { min-height: var(--btn-height-sm, 42px); padding-inline: 18px; font-size: 15px; }

/* ───────────────── Hover vocabulary (utilities) ───────────────── */

/* 1. Powiększenie — scale */
.hover-scale { transition: transform 200ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

/* image zoom inside a clipped frame */
.media { overflow: hidden; border-radius: var(--radius-md); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover;
             transition: transform 400ms ease; }
@media (hover: hover) { .media:hover img { transform: scale(1.05); } }

/* 2. Uniesienie — lift + shadow (tinted, two-layer; subtle on this flat brand) */
.hover-lift { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease; }
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px color-mix(in srgb, var(--black3) 6%, transparent),
                0 14px 28px -12px color-mix(in srgb, var(--black3) 20%, transparent);
  }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — colour swap */
.hover-fill { transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast); }
}
.hover-tint { transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--brand); border-color: var(--brand); }
}

/* 4. Ruchoma strzałka — moving arrow (this brand's CTA arrow points →, so it slides right) */
.with-arrow { display: inline-flex; align-items: center; gap: 12px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); } }

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* 5. Dodanie podkreślenia — animated underline (inline text links) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 220ms ease, color 200ms ease;
  padding-bottom: 2px;
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 2px; color: var(--brand); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--brand); }
.link-underline-center { background-position: 50% 100%; }

/* ───────────────── Content icons (monochrome, recolorable) ───────────────── */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-color: var(--icon-color, var(--accent, var(--brand)));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* ───────────────── Step number badge ───────────────── */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-pill, 999px);
}
.step-num {
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ───────────────── Cards / tiles ───────────────── */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px color-mix(in srgb, var(--black3) 6%, transparent),
                0 14px 28px -12px color-mix(in srgb, var(--black3) 20%, transparent);
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* `.card` is padless so flush media reaches its edges; text goes in this padded wrapper. */
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* ───────────────── Inputs ───────────────── */
.field {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--light3, #bfc0c2);
  border-radius: var(--radius-sm, 4px);
  background: var(--white);
  color: var(--black2);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3); }
.field:hover { border-color: var(--brand); }
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }

/* ───────────────── Missing-data placeholder ───────────────── */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ───────────────── Reduced motion ───────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* hub: straż poziomu — nic nie poszerza strony w bok (base-stylesheet.ts) */
html, body { overflow-x: clip; }
