/* =====================================================================
   SKLEPIX — landing.css
   Hand-rolled, framework-free, mobile-first. BEM-ish naming.
   Section map:
     1.  Design tokens (:root)
     2.  Reset & base elements
     3.  Layout primitives (.container / .section / .eyebrow)
     4.  Buttons
     5.  Header & navigation
     6.  Hero
     7.  Services grid
     8.  Why Sklepix (proof points)
     9.  How we work (steps)
     10. Before / After slider
     11. FAQ accordion
     12. Contact form
     13. Footer
     14. Media queries (tablet / desktop)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   Breakpoints (used in media queries at bottom — CSS vars can't drive
   @media): mobile < 640px · tablet 640–1023px · desktop >= 1024px.
   --------------------------------------------------------------------- */
:root {
  /* Brand — single cyan family, one primary action color */
  --color-brand:        #0284c7;
  --color-brand-600:    #0369a1;   /* hover / active */
  --color-brand-700:    #075985;   /* pressed / dark text on tint */
  --color-brand-100:    #e0f2fe;   /* chips, borders */
  --color-brand-50:     #f0f9ff;   /* tinted surfaces */

  /* Neutrals */
  --color-ink:          #0f172a;   /* primary text / headings */
  --color-ink-2:        #334155;   /* body text */
  --color-muted:        #64748b;   /* secondary / captions */
  --color-line:         #e2e8f0;   /* hairline borders */
  --color-line-2:       #cbd5e1;   /* stronger borders / inputs */
  --color-surface:      #ffffff;   /* cards */
  --color-surface-2:    #f8fafc;   /* page tint sections */
  --color-bg:           #ffffff;

  /* Semantic */
  --color-success:      #16a34a;
  --color-success-bg:   #f0fdf4;
  --color-error:        #dc2626;
  --color-warning:      #d97706;
  --color-info:         var(--color-brand);

  /* Typography — system fonts only (CSP-safe, no web fonts) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Segoe UI Mono", Menlo,
               Consolas, monospace;

  --fs-h1:    clamp(2rem, 1.35rem + 2.7vw, 3.25rem);   /* 32 → 52 */
  --fs-h2:    clamp(1.5rem, 1.18rem + 1.4vw, 2.125rem); /* 24 → 34 */
  --fs-h3:    1.25rem;     /* 20 */
  --fs-h4:    1.0625rem;   /* 17 */
  --fs-body:  1rem;        /* 16 */
  --fs-small: 0.875rem;    /* 14 */
  --fs-mono:  0.8125rem;   /* 13 */

  --lh-tight: 1.12;
  --lh-snug:  1.35;
  --lh-body:  1.6;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  --tracking-eyebrow: 0.06em;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 80 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadow — one elevated, one popover */
  --shadow-elevated: 0 1px 2px rgba(15,23,42,.04), 0 6px 16px rgba(15,23,42,.08);
  --shadow-popover:  0 12px 32px rgba(15,23,42,.14), 0 3px 8px rgba(15,23,42,.08);

  /* Layout */
  --container: 1120px;
  --header-h: 64px;
  --focus-ring: 0 0 0 3px rgba(2,132,199,.40);
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink-2);
  background-color: #fafdff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Aurora gradient as a fixed pseudo-element.
   Why: iOS Safari ignores `background-attachment: fixed` (the gradient
   scrolls with content, breaking the "page-wide ambient glow" effect).
   A `position: fixed` element actually sits in the viewport on iOS.
   How to apply: keep this pseudo behind everything via z-index: -1; the
   body already has a flat fallback `background-color` for cases where
   the pseudo can't render. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(60% 50% at 12% 18%, rgba(2,132,199,.18), transparent 70%),
    radial-gradient(55% 45% at 88% 35%, rgba(125,211,252,.22), transparent 72%),
    radial-gradient(50% 45% at 30% 78%, rgba(14,165,233,.14), transparent 70%),
    radial-gradient(50% 40% at 75% 92%, rgba(2,132,199,.12), transparent 70%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
  animation: aurora-shimmer 22s ease-in-out infinite;
}
@keyframes aurora-shimmer {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
  }
  25% {
    background-position: 20% 15%, 80% -10%, 15% 85%, 90% 110%;
  }
  50% {
    background-position: 40% 30%, 60% 20%, 30% 70%, 70% 95%;
  }
  75% {
    background-position: 15% 25%, 90% 10%, 5% 95%, 95% 85%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Visible focus everywhere — WCAG AA */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-2); text-decoration: none; }

/* ---------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-12); }
/* .section--tint used to paint a flat tinted background. With the body
   aurora gradient now sitting behind everything, we keep the class for
   semantic grouping but skip the override — the aurora itself provides
   visual rhythm between sections. */
.section--tint { background: transparent; }
.section__head { max-width: 56ch; margin-bottom: var(--space-8); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand-600);
}

.lead { font-size: 1.0625rem; color: var(--color-ink-2); }

/* Reusable price chip / pills */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--color-brand-700);
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
  border-radius: 999px;
  padding: 2px var(--space-3);
}

/* ---------------------------------------------------------------------
   4. BUTTONS — one primary action color, plus a neutral secondary
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--color-brand); color: #fff; }
.btn--primary:hover { background: var(--color-brand-600); text-decoration: none; }
.btn--primary:active { background: var(--color-brand-700); }
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line-2);
}
.btn--secondary:hover { border-color: var(--color-brand); color: var(--color-brand-700); text-decoration: none; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   5. HEADER & NAVIGATION (sticky)
   --------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, .12), 0 1px 2px rgba(15, 23, 42, .04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.brand:hover {
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(2, 132, 199, .18), 0 1px 2px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}
.brand__dot { color: var(--color-brand); }

.nav { margin-left: auto; }
/* mobile: nav links live inside a <details> disclosure.
   min-height enforces a 44×44 touch target per Apple HIG so a thumb tap
   doesn't fall outside the affordance. */
.nav__menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__list {
  position: absolute;
  left: 0; right: 0;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-popover);
}
.nav__link {
  display: block;
  padding: var(--space-3) 0;
  min-height: 44px;
  color: var(--color-ink-2);
  font-weight: var(--fw-medium);
}
.nav__link:hover { color: var(--color-brand-700); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

/* Language switch — 4 segmented buttons. min-height 44px gives a fat
   enough touch target for thumbs; on very narrow phones we drop font
   size and tighten padding so the row still fits beside the brand. */
.lang { display: inline-flex; border: 1px solid var(--color-line-2); border-radius: var(--radius-sm); overflow: hidden; }
.lang__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 36px;
  padding: 0 var(--space-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-muted);
  background: var(--color-surface);
}
.lang__opt:hover { color: var(--color-ink); text-decoration: none; }
.lang__opt[aria-current="true"] { background: var(--color-brand-50); color: var(--color-brand-700); }

/* Narrow phones (iPhone Mini, small Androids): shrink lang buttons
   horizontally so the header doesn't wrap. Touch height stays 44px.
   Also relaxes container side-padding, drops categories to a single
   column (so lifestyle photos read at usable size), and trims hero
   verticals so the CTA stays above the fold. */
@media (max-width: 480px) {
  .container { padding-inline: var(--space-5); }

  .lang__opt {
    min-width: 32px;
    padding: 0 8px;
    font-size: 0.8125rem;
  }
  .header__inner { gap: var(--space-3); }

  .hero { min-height: auto; padding-block: var(--space-10) var(--space-10); }
  .hero__scroll { display: none; }

  .cats-grid { grid-template-columns: 1fr; }
}

/* Phones (all of them): kill the hero illustration's idle float —
   combined with scroll-driven motion elsewhere it can feel busy on
   small screens, and on coarse-pointer devices the hover-only SVG
   interactions never fire, so the float adds noise with no payoff. */
@media (max-width: 639px), (pointer: coarse) {
  .hero__media { animation: hero-fade 0.9s ease-out .35s both; }
}

/* CTA in header hidden on smallest screens to avoid crowding */
.header__cta { display: none; }

/* ---------------------------------------------------------------------
   6. HERO — full-viewport dynamic screen
   Occupies the first paint (viewport minus the sticky header). Entrance
   animations fire once on load; content gently floats afterwards. The
   scroll-indicator at the bottom invites the visitor below the fold.
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--space-12) var(--space-12);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative dotted grid layered on top of the body aurora. The
   .hero__bg element used to carry its own radial halos; those moved to
   the page-wide body gradient, so only the subtle dotted pattern stays
   here for depth in the first viewport. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(2,132,199,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%);
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  width: 100%;
}
.hero__eyebrow { animation: hero-fade 0.7s ease-out both; }
.hero__h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  animation: hero-fade 0.7s ease-out .1s both;
}
.hero__sub {
  font-size: clamp(1rem, .92rem + .4vw, 1.18rem);
  color: var(--color-ink-2);
  max-width: 56ch;
  line-height: 1.55;
  animation: hero-fade 0.7s ease-out .2s both;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7, 28px);
  animation: hero-fade 0.7s ease-out .3s both;
}

/* Hero illustration — fades in slightly later, then floats gently */
.hero__media {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  animation:
    hero-fade 0.9s ease-out .35s both,
    hero-float 6s ease-in-out 1.3s infinite;
}
.hero__media > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 24px 48px rgba(2,132,199,.10));
}

/* Per-object hover interactions on the inline SVG groups */
.hero-svg__bad,
.hero-svg__arrow,
.hero-svg__good,
.hero-svg__sparkle {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  transform-box: fill-box;
  transform-origin: center;
}
.hero-svg__bad:hover { animation: hero-bad-shake .55s ease-in-out; }
@keyframes hero-bad-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%      { transform: translateX(-3px) rotate(-2deg); }
  40%      { transform: translateX(3px)  rotate(2deg); }
  60%      { transform: translateX(-2px) rotate(-1deg); }
  80%      { transform: translateX(2px)  rotate(1deg); }
}
.hero-svg__arrow:hover { transform: translateX(6px); }
.hero-svg__dot {
  animation: hero-dot-pulse 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-svg__dot--2 { animation-delay: .25s; }
.hero-svg__dot--3 { animation-delay: .5s; }
.hero-svg__arrow:hover .hero-svg__dot--1,
.hero-svg__arrow:hover .hero-svg__dot--2,
.hero-svg__arrow:hover .hero-svg__dot--3 {
  animation-duration: .8s;
}
@keyframes hero-dot-pulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1.25); }
}
.hero-svg__good:hover { transform: translateY(-6px) scale(1.04); }
.hero-svg__sparkle {
  animation: hero-sparkle-pulse 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-svg__sparkle:hover { animation: hero-sparkle-spin 1.2s ease-in-out; }
@keyframes hero-sparkle-pulse {
  0%, 100% { transform: scale(1)   rotate(0deg); opacity: .9; }
  50%      { transform: scale(1.18) rotate(15deg); opacity: 1; }
}
@keyframes hero-sparkle-spin {
  from { transform: scale(1)    rotate(0deg); }
  to   { transform: scale(1.25) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-svg__bad:hover,
  .hero-svg__arrow:hover,
  .hero-svg__good:hover,
  .hero-svg__sparkle,
  .hero-svg__sparkle:hover,
  .hero-svg__dot {
    animation: none !important;
    transform: none !important;
  }
}


/* Scroll cue — sits centered at the bottom of the hero, bouncing gently */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: var(--space-6);
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column;
  align-items: center; gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-decoration: none;
  letter-spacing: .03em;
  animation:
    hero-fade 0.6s ease-out 1s both,
    hero-scroll-bounce 2.2s ease-in-out 1.6s infinite;
}
.hero__scroll:hover { color: var(--color-brand-600); text-decoration: none; }
.hero__scroll svg { width: 22px; height: 22px; }

/* Bigger CTA variant — only used in hero to make the call-to-action
   visually anchor the lower half of the headline column. */
.btn--lg {
  padding: var(--space-4) var(--space-7, 28px);
  font-size: 1rem;
  border-radius: 12px;
}
.btn--lg svg { width: 18px; height: 18px; }
.btn--primary { box-shadow: 0 6px 18px rgba(2,132,199,.28); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(2,132,199,.36); transform: translateY(-1px); }

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Honour reduced-motion preferences — disable all hero animations */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__h1, .hero__sub, .hero__ctas,
  .hero__media, .hero__scroll {
    animation: none !important;
  }
  .btn--primary:hover { transform: none; }
}

/* Scroll-driven parallax: landing.js writes --parallax (e.g. -16px) onto
   .hero__media on every scroll frame. We translate the illustration by
   that amount on top of the idle float keyframe. */
.hero__media-img {
  transform: translateY(var(--parallax, 0));
  will-change: transform;
}

/* Reveal-on-scroll: elements with .reveal start invisible + 16px down.
   landing.js adds .is-visible when the element enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .55s ease-out,
    transform .55s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Scroll-spy: the nav link whose section is currently in view gets
   .is-active set by landing.js. */
.nav__link.is-active {
  color: var(--color-brand-700);
  font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------------
   7. SERVICES GRID (2×2 desktop, stacked mobile)
   --------------------------------------------------------------------- */
.cards { display: grid; gap: var(--space-4); }
.card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--color-brand); box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.card__art {
  width: 120px;
  height: 120px;
  object-fit: cover;          /* tightly cropped — fills the badge fully */
  object-position: center;
  background: linear-gradient(135deg, var(--color-brand-50), #fff);
  border: 1px solid var(--color-brand-100);
  border-radius: var(--radius-md);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.card__title { margin: 0; font-size: var(--fs-h4); }
.card__desc  { margin: 0; color: var(--color-ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }
.card__price { margin-top: var(--space-2); align-self: flex-start; }

/* ---------------------------------------------------------------------
   8. WHY SKLEPIX (proof points, 2×2)
   --------------------------------------------------------------------- */
.proofs { display: grid; gap: var(--space-6); }
.proof { padding-left: var(--space-6); border-left: 2px solid var(--color-brand-100); }
.proof__title {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--fs-h4);
}
.proof__title svg { width: 18px; height: 18px; color: var(--color-brand); flex: none; }
.proof__desc { margin: 0; color: var(--color-ink-2); }

/* ---------------------------------------------------------------------
   9. HOW WE WORK (steps; horizontal row on desktop)
   --------------------------------------------------------------------- */
.steps { display: grid; gap: var(--space-6); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin-bottom: var(--space-3);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--color-brand);
  border-radius: 50%;
}
.step__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
}
.step__title { margin: 2px 0 var(--space-2); font-size: var(--fs-h4); }
.step__desc { margin: 0; color: var(--color-ink-2); }

/* ---------------------------------------------------------------------
   10. BEFORE / AFTER SLIDER (input[type=range] + clip-path, no library)
   Without JS it rests at 50% via the inline --pos default.
   --------------------------------------------------------------------- */
.ba {
  position: relative;
  --pos: 50%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  user-select: none;
}
/* ---------------------------------------------------------------------
   9.5 CATEGORIES — 6-up icon grid showing Allegro reach
   --------------------------------------------------------------------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.cat {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cat:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}
.cat__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--color-surface-2);
}
.cat__body {
  padding: var(--space-4) var(--space-6) var(--space-6);
}
.cat__title { margin: 0 0 var(--space-2); font-size: var(--fs-h4); color: var(--color-ink); }
.cat__desc  { margin: 0; color: var(--color-ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }

/* ---------------------------------------------------------------------
   9.6 CENNIK / PRICING
   Layout order:
     1. section head (centered)
     2. trust strip (3 mini props)
     3. tier cards (primary anchor — Profi is featured)
     4. setup-fee inline pill
     5. add-on band (chat)
     6. calculator (demoted "configure your fit")
     7. à la carte muted line
   --------------------------------------------------------------------- */

/* Center-aligned section head used in #cennik */
.section__head--center {
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-8);
}
.section__head--center .lead { margin-inline: auto; }

/* --- Trust strip: 3 mini props between head and tiers ---------------- */
.trust-strip {
  list-style: none;
  margin: 0 0 var(--space-10);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-ink-2);
  font-weight: var(--fw-medium);
}
.trust-strip svg {
  width: 18px; height: 18px;
  color: var(--color-brand);
  flex-shrink: 0;
}

/* --- Tier cards ------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tier:hover {
  border-color: var(--color-brand-100);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.tier--featured {
  border-color: var(--color-brand);
  border-width: 2px;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
  box-shadow: 0 16px 40px rgba(2, 132, 199, .18), 0 2px 4px rgba(15, 23, 42, .04);
  transform: translateY(-6px);
}
.tier--featured:hover {
  border-color: var(--color-brand);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(2, 132, 199, .22);
}
.tier__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, .4);
  white-space: nowrap;
}

.tier__head { margin-bottom: var(--space-5); }
.tier__name {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.tier__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
  min-height: 2.4em;
}

/* Stripe-style large price typography: big bold number + small muted unit. */
.tier__price {
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.tier__amount {
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier__unit {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: var(--fw-medium);
}
.tier--featured .tier__amount { color: var(--color-brand-700); }

.tier__includes {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-brand-700);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.005em;
}
.tier__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-7);
  display: grid;
  gap: var(--space-3);
}
.tier__features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-2);
  align-items: start;
  color: var(--color-ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tier__features svg {
  width: 20px; height: 20px;
  color: var(--color-brand);
  margin-top: 2px;
}
.tier__cta { margin-top: auto; }

/* --- Inline informational pills -------------------------------------- */
.cennik-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-12);
  padding: var(--space-3) var(--space-5);
  background: var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--color-brand-700);
  text-align: center;
  font-weight: var(--fw-medium);
}
.cennik-pill svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.cennik-pill--muted {
  background: transparent;
  border: 1px dashed var(--color-line-2);
  color: var(--color-muted);
  padding: var(--space-4) var(--space-7);
  margin-top: var(--space-10);
  margin-bottom: 0;
}

/* --- Pricing configurator (v3 — full rebuild) -----------------------
   Fill-progress slider + tier-segment labels under the axis. Right
   pane is a Stripe-style quote preview with the monthly total as the
   visual anchor. Two-column 1.3:1 on tablet+. */
.config {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-8);
  margin: 0 0 var(--space-12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05), 0 2px 4px rgba(15, 23, 42, .04);
}
.config__head {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 56ch;
  margin-inline: auto;
}
.config__head h3 {
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--fs-h3);
  color: var(--color-ink);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
}
.config__head p {
  margin: 0;
  color: var(--color-ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.config__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

/* --- Form (sliders) ------------------------------------------------- */
.config__form {
  display: grid;
  gap: var(--space-10);
  align-content: start;
}
.config__field { display: grid; gap: var(--space-4); }
.config__field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.config__label {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-ink);
}
.config__value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--color-brand-700);
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 4ch;
  text-align: right;
}

/* Fill-progress slider — cyan up to the thumb, neutral after.
   --fill is updated by JS on every `input` event (e.g. "12%"). */
.config__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--color-brand) 0%,
    var(--color-brand) var(--fill, 0%),
    var(--color-line) var(--fill, 0%),
    var(--color-line) 100%
  );
  cursor: pointer;
  outline: none;
}
.config__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  background: #fff;
  border: 3px solid var(--color-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(2, 132, 199, .35);
  cursor: grab;
  transition: transform .12s ease, box-shadow .12s ease;
}
.config__slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(2, 132, 199, .5);
}
.config__slider:active::-webkit-slider-thumb { cursor: grabbing; }
.config__slider::-moz-range-thumb {
  width: 26px; height: 26px;
  background: #fff;
  border: 3px solid var(--color-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(2, 132, 199, .35);
  cursor: grab;
}
.config__slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* Tier-segment labels under the slider track.
   Each <span> has `--w: <relative-width>` matching its value range. */
.config__ranges {
  display: flex;
  font-size: 0.7rem;
  font-weight: var(--fw-medium);
  color: var(--color-muted);
  letter-spacing: 0.005em;
}
.config__range {
  flex: var(--w);
  padding: var(--space-3) 4px 0;
  text-align: center;
  border-left: 1px solid var(--color-line);
  position: relative;
  transition: color .15s ease;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.config__range:first-child { border-left: none; }
.config__range::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background-color .2s ease;
}
.config__range.is-active {
  color: var(--color-brand-700);
  font-weight: var(--fw-bold);
}
.config__range.is-active::before { background: var(--color-brand); }

/* --- Preview (quote card) ------------------------------------------- */
.config__preview {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid var(--color-brand-100);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.config__preview .eyebrow {
  margin-bottom: var(--space-2);
  color: var(--color-brand-600);
}
.config__plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-1) 0;
}
.config__plan[hidden] { display: none; }
.config__plan-name {
  font-size: 1.625rem;
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.config__plan-price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--color-ink-2);
}
.config__plan--secondary .config__plan-name {
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  color: var(--color-ink-2);
}
.config__plan--secondary .config__plan-price {
  font-size: 0.9375rem;
  color: var(--color-muted);
}
.config__overage {
  font-size: var(--fs-small);
  color: var(--color-ink-2);
  background: rgba(254, 243, 199, .7);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid #f59e0b;
}
.config__total {
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(2, 132, 199, .18);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.config__total-label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}
.config__total-big {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.config__total-vat {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: var(--space-2);
}
.config__total-vat strong { color: var(--color-ink-2); font-weight: var(--fw-semibold); }
.config__cta { margin-top: var(--space-6); }

/* Tablet+: 2-column layout, form gets slightly more space than preview */
@media (min-width: 768px) {
  .config { padding: var(--space-10); }
  .config__body { grid-template-columns: 1.3fr 1fr; gap: var(--space-10); }
  .config__form { gap: var(--space-12); }
  .config__preview { padding: var(--space-8) var(--space-8); }
}

/* --- Compact chat-tier reference strip ------------------------------- */
.chat-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: 0 0 var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--color-ink-2);
}
.chat-ref__label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
}
.chat-ref__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.chat-ref__item strong {
  color: var(--color-ink);
  font-weight: var(--fw-semibold);
}
.chat-ref__price {
  font-family: var(--font-mono);
  color: var(--color-brand-700);
  font-weight: var(--fw-semibold);
}
.chat-ref__sep { color: var(--color-line-2); }
.chat-ref__desc { color: var(--color-muted); }

.ba-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
.ba-copy { max-width: 52ch; }
.ba-copy h2 { margin-top: var(--space-3); margin-bottom: var(--space-4); }
.ba-copy .lead { margin-bottom: var(--space-6); color: var(--color-ink-2); }
.ba-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.ba-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-ink);
  font-size: var(--fs-body);
}
.ba-bullets svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  padding: 3px;
  background: var(--color-brand-50);
  color: var(--color-brand-600);
  border-radius: 50%;
}

.ba__pane { position: relative; aspect-ratio: 3 / 2; }
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Real images shipped by the build; text inside the markup is for screen
   readers / no-CSS fallback only. */
.ba__img > * { position: absolute; left: -10000px; }
.ba__img--after  { background-image: url("/static/images/landing/after.webp"); background-color: var(--color-brand-50); }
.ba__img--before {
  background-image: url("/static/images/landing/before.webp");
  background-color: var(--color-surface-2);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__tag {
  position: absolute; top: var(--space-3);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  background: rgba(15,23,42,.78); color: #fff;
  padding: 2px var(--space-3); border-radius: 999px;
}
.ba__tag--before { left: var(--space-3); }
.ba__tag--after  { right: var(--space-3); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--color-brand); transform: translateX(-1px); }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  background: #fff; border: 2px solid var(--color-brand);
  border-radius: 50%; box-shadow: var(--shadow-elevated);
  display: grid; place-items: center; color: var(--color-brand);
  pointer-events: none;
}
/* the actual control sits on top, transparent track, accessible */
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; background: transparent; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 40px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba__range:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.ba__caption {
  margin-top: var(--space-3);
  text-align: left;
  color: var(--color-muted);
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ba__caption::before {
  content: "↔";
  color: var(--color-brand);
  font-weight: var(--fw-bold);
}

/* ---------------------------------------------------------------------
   11. FAQ (native <details>, no aria gymnastics)
   --------------------------------------------------------------------- */
/* FAQ — Stripe-style: centered headline + flat divider-line accordion.
   Single column, max-width capped for comfortable reading line length,
   no per-item card bordering (which felt fragmented in v1). */
.faq-head {
  max-width: 56ch;
  margin: 0 auto var(--space-8);
  text-align: center;
}
.faq-head h2 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.faq-head .lead { color: var(--color-ink-2); }

.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
}
.faq__item {
  border-bottom: 1px solid var(--color-line);
  transition: background-color .12s ease;
}
.faq__item:hover { background: rgba(15, 23, 42, .015); }
.faq__item[open] { background: rgba(2, 132, 199, .025); }
.faq__q {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: 1.0625rem;       /* ≈17px — comfortable scanning */
  line-height: 1.4;
  color: var(--color-ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { flex: 1; min-width: 0; }
.faq__chev {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--color-muted);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), color .15s ease;
}
.faq__item[open] .faq__chev {
  transform: rotate(180deg);
  color: var(--color-brand);
}
.faq__a {
  padding: 0 0 var(--space-5);
  color: var(--color-ink-2);
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: 62ch;
}

.faq-leadback {
  max-width: 760px;
  margin: var(--space-8) auto 0;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--fs-small);
}
.faq-leadback a {
  color: var(--color-brand-600);
  font-weight: var(--fw-semibold);
  margin-left: var(--space-2);
}
.faq-leadback a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   12. CONTACT — asymmetric 2-col: marketing copy + 3-step left,
       elevated form card right with submit-reassurance footer.
   --------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-copy h2 { margin-top: var(--space-3); margin-bottom: var(--space-4); }
.contact-copy .lead { color: var(--color-ink-2); margin-bottom: var(--space-6); }

.contact-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-5);
}
.contact-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.contact-step__num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50%;
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(2,132,199,.25);
}
.contact-step__title { margin: 4px 0 var(--space-1); font-size: var(--fs-h4); color: var(--color-ink); }
.contact-step__desc  { margin: 0; color: var(--color-ink-2); font-size: var(--fs-small); line-height: var(--lh-body); }

.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-elevated);
}

.flash {
  display: flex; gap: var(--space-3); align-items: flex-start;
  text-align: left;
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  color: #14532d;
}
.flash svg { width: 20px; height: 20px; color: var(--color-success); flex: none; margin-top: 2px; }

.form { text-align: left; display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field--row { grid-template-columns: 1fr; gap: var(--space-4); }
.label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--color-ink); }
.label__req { color: var(--color-error); }
.label__opt { color: var(--color-muted); font-weight: var(--fw-regular); }
.input, .select, .textarea {
  font: inherit;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
}
.textarea { resize: vertical; min-height: 120px; }
.form__submit {
  margin-top: var(--space-3);
  align-self: flex-start;
  padding-inline: var(--space-8);
}
.contact-reassurance {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
  color: var(--color-muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
.footer {
  background: var(--color-ink);
  color: #cbd5e1;
  padding-block: var(--space-12);
  font-size: var(--fs-small);
}
.footer a { color: #e2e8f0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--space-8); }
.footer__brand { font-size: 1.25rem; font-weight: var(--fw-bold); color: #fff; }
.footer__tagline { margin-top: var(--space-2); max-width: 40ch; color: #94a3b8; }
.footer__h { color: #fff; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); margin-bottom: var(--space-3); }
.footer__list { display: grid; gap: var(--space-2); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}
.footer .lang { border-color: #334155; }
.footer .lang__opt { background: transparent; color: #94a3b8; }
.footer .lang__opt[aria-current="true"] { background: #1e293b; color: #fff; }

/* ---------------------------------------------------------------------
   13.5  LEGAL PAGES (regulamin, polityka prywatnosci)
   --------------------------------------------------------------------- */
.container--narrow { max-width: 760px; }

.legal {
  padding-block: var(--space-12) var(--space-16, 80px);
  color: var(--color-ink-2);
}
.legal__back { margin-bottom: var(--space-6); font-size: var(--fs-small); }
.legal__back a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-muted);
}
.legal__back a:hover { color: var(--color-brand-700); text-decoration: none; }

.legal__title {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  margin: 0 0 var(--space-3);
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.legal__updated {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-small);
  color: var(--color-muted);
}
.legal__updated-label { font-weight: var(--fw-medium); }

.legal__intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink-2);
  margin: 0 0 var(--space-8);
}

.legal__section { margin-bottom: var(--space-8); }
.legal__h2 {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
.legal__section p {
  margin: 0 0 var(--space-3);
  line-height: 1.7;
  color: var(--color-ink-2);
}
.legal__section p:last-child { margin-bottom: 0; }

/* Discreet staff-login link in the footer bottom row. Sized smaller than
   the lang switcher so it reads as utility, not marketing. */
.footer__staff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer__staff:hover {
  color: #fff;
  border-color: var(--color-brand);
  background: rgba(2,132,199,.10);
  text-decoration: none;
}
.footer__staff svg { flex-shrink: 0; opacity: .8; }

/* ---------------------------------------------------------------------
   14. MEDIA QUERIES (mobile-first; tablet >= 640, desktop >= 1024)
   --------------------------------------------------------------------- */
@media (min-width: 640px) {
  .section { padding-block: var(--space-20); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proofs { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-8); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .ba-layout { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .contact-layout { grid-template-columns: 0.85fr 1fr; gap: var(--space-12); }
  .field--row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  /* Nav becomes an inline row; the disclosure summary disappears */
  .nav__menu > summary { display: none; }
  .nav__list {
    position: static;
    flex-direction: row;
    gap: var(--space-6);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__link { padding: 0; }

  .hero { padding-block: var(--space-20); }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); }

  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
  /* connector line between step numbers */
  .step:not(:last-child) .step__num::after {
    content: ""; position: absolute; top: 18px; left: 44px;
    width: calc(100% - 44px); height: 2px; background: var(--color-brand-100);
  }

  .tiers { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
