/* =========================================================
   Sheepmatic — style strony
   Tokeny = brand sheet Sheepmatic (kolory, typografia, odstępy).
   Motyw: jasny domyślnie, ciemny wg systemu albo przełącznika.
   ========================================================= */

/* ---------- Fonty (lokalnie, bez Google Fonts = bez przekazywania IP do Google) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeny ---------- */
:root {
  --fleece: #F6F5F0;
  --fleece-raised: #FFFFFF;
  --fleece-sunk: #ECEAE2;
  --ink: #1A1C21;
  --ink-muted: #565962;
  --line: #D9D6CC;
  --line-strong: #1A1C21;
  --pasture: #1E6B4B;
  --pasture-deep: #134732;
  --on-pasture: #FFFFFF;
  --on-pasture-deep: #FFFFFF;
  --volt: #FFD43B;
  --on-volt: #1A1C21;
  --muzzle: #FF8FA3;
  --danger: #B42318;
  --focus-ring: #1E6B4B;
  --code-bg: #1A1C21;
  --code-fg: #F3F2EC;
  --code-dim: #A9ABB2;
  --code-green: #4CC38A;
  --shadow-ink: #1A1C21;
  --shadow-pop: 4px 4px 0 var(--shadow-ink);
  --shadow-pop-lg: 8px 8px 0 var(--shadow-ink);

  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --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-sm: 8px; --radius-md: 16px; --radius-lg: 28px; --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 76px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --fleece: #121418;
  --fleece-raised: #1B1E24;
  --fleece-sunk: #0C0E11;
  --ink: #F3F2EC;
  --ink-muted: #A9ABB2;
  --line: #2C3038;
  --line-strong: #727784;
  --pasture: #4CC38A;
  --pasture-deep: #1B5A40;
  --on-pasture: #0D2A1D;
  --on-pasture-deep: #F3F2EC;
  --muzzle: #FF9CAE;
  --danger: #FF8A7A;
  --focus-ring: #FFD43B;
  --code-bg: #0C0E11;
  --shadow-ink: #000000;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fleece: #121418;
    --fleece-raised: #1B1E24;
    --fleece-sunk: #0C0E11;
    --ink: #F3F2EC;
    --ink-muted: #A9ABB2;
    --line: #2C3038;
    --line-strong: #727784;
    --pasture: #4CC38A;
    --pasture-deep: #1B5A40;
    --on-pasture: #0D2A1D;
    --on-pasture-deep: #F3F2EC;
    --muzzle: #FF9CAE;
    --danger: #FF8A7A;
    --focus-ring: #FFD43B;
    --code-bg: #0C0E11;
    --shadow-ink: #000000;
    color-scheme: dark;
  }
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fleece);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--pasture); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--volt); color: var(--on-volt); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section-y); }
.section--sunk { background: var(--fleece-sunk); }
.section--flush-top { padding-top: 0; }
.section--raised { background: var(--fleece-raised); border-block: 2px solid var(--line-strong); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--volt); color: var(--on-volt);
  border: 2px solid var(--on-volt); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pasture);
}
.h1 { font-size: clamp(42px, 6.4vw, 86px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
.h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-muted); max-width: 36em; }
.muted { color: var(--ink-muted); }
.mark { background: var(--volt); color: var(--on-volt); padding: 0 .12em; border-radius: 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font: 600 17px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--line-strong); border-radius: var(--radius-md);
  background: transparent; color: var(--ink);
  transition: transform .14s ease-out, box-shadow .14s ease-out, background-color .14s ease-out;
}
.btn:hover { color: var(--ink); background: var(--fleece-sunk); }
.btn--primary { background: var(--volt); color: var(--on-volt); border-color: #1A1C21; box-shadow: var(--shadow-pop); }
.btn--primary:hover { background: var(--volt); color: var(--on-volt); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-ink); }
.btn--primary:active { transform: translate(4px, 4px); box-shadow: none; }
.btn--secondary { background: var(--pasture); color: var(--on-pasture); border-color: var(--pasture); }
.btn--secondary:hover { background: var(--pasture-deep); border-color: var(--pasture-deep); color: var(--on-pasture-deep); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: var(--radius-sm); box-shadow: 3px 3px 0 var(--shadow-ink); }
.btn__arrow { font-family: var(--font-mono); font-weight: 600; transition: transform .14s ease-out; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Tagi ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--fleece-raised); color: var(--ink);
  font: 600 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tag--pasture { background: var(--pasture); border-color: var(--pasture); color: var(--on-pasture); }
.tag--volt { background: var(--volt); border-color: #1A1C21; color: var(--on-volt); }
.tag--muzzle { background: var(--muzzle); border-color: #1A1C21; color: #1A1C21; transform: rotate(3deg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pasture); flex: none; }


/* ---------- Owca (znak) inline: kolory z tokenów, więc sama zmienia motyw ---------- */
:root { --sheep-fleece: var(--pasture); --sheep-ink: var(--ink); --sheep-eye: #FFD43B; --sheep-bulb-stroke: var(--ink); }
:root[data-theme="dark"] { --sheep-eye: #121418; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sheep-eye: #121418; } }
.sheep { aspect-ratio: 128 / 104; height: auto; }
.sheep .sh-fleece { fill: var(--sheep-fleece); }
.sheep .sh-ink { fill: var(--sheep-ink); }
.sheep .sh-eye { fill: var(--sheep-eye); }
.sheep .sh-bulb { fill: #FFD43B; stroke: var(--sheep-bulb-stroke); stroke-width: 3; }
.sheep--light { --sheep-fleece: #1E6B4B; --sheep-ink: #1A1C21; --sheep-eye: #FFD43B; --sheep-bulb-stroke: #1A1C21; }
.sheep--dark { --sheep-fleece: #4CC38A; --sheep-ink: #F3F2EC; --sheep-eye: #121418; --sheep-bulb-stroke: #F3F2EC; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fleece) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line-strong);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--fleece); } }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 49px; height: 40px; flex: none; }
.logo__word { font: 800 28px/1 var(--font-display); letter-spacing: -.03em; }
.logo__word b { font-weight: 800; color: var(--pasture); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav__link:hover { color: var(--ink); background: var(--fleece-sunk); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--fleece-raised); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--fleece-sunk); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .nav__cta { display: none; }
  .nav__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--fleece); border-bottom: 2px solid var(--line-strong);
    padding: 12px max(var(--gutter), env(safe-area-inset-left, 0px)) 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .js .nav__panel:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { font-size: 20px; min-height: 56px; border-bottom: 2px dashed var(--line); border-radius: 0; }
  .nav__panel .btn { width: 100%; margin-top: 16px; }
}
@media (min-width: 921px) {
  .nav__panel { display: flex; align-items: center; gap: 16px; }
  .nav__panel .nav__mobile-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy > .tag { align-self: flex-start; white-space: normal; }
@media (max-width: 480px) { .tag__extra { display: none; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero__note { font-size: 15px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }

/* Demo przepływu */
.flow {
  position: relative; background: #1E6B4B; color: #FFFFFF;
  border: 2px solid #1A1C21; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop-lg);
  padding: clamp(20px, 3vw, 32px) clamp(18px, 2.6vw, 28px) clamp(20px, 2.6vw, 28px);
  display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0;
}
.flow__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.flow__tab {
  min-height: 40px; padding: 6px 12px; border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,.55); background: transparent; color: #FFFFFF;
  font: 600 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.flow__tab:hover { border-color: #FFFFFF; }
.flow__tab[aria-pressed="true"] { background: #FFD43B; border-color: #1A1C21; color: #1A1C21; }
.flow__tab:focus-visible { outline-color: #FFD43B; }
.flow__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow__title { font: 600 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.flow__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: #FFD43B; color: #1A1C21; font: 600 12px/16px var(--font-mono); }
.flow__status .dot { background: #1E6B4B; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.flow__step { display: flex; flex-direction: column; }
.flow__step + .flow__step::before { content: ""; align-self: center; width: 4px; height: 16px; border-radius: 4px; background: rgba(255,255,255,.35); transition: background-color .3s; }
.flow__step.is-done + .flow__step::before, .flow__step.is-active::before { background: #FFD43B; }
.flow__card {
  display: flex; align-items: center; gap: 14px;
  background: #FFFFFF; color: #1A1C21;
  border: 2px solid #1A1C21; border-radius: var(--radius-md); padding: 12px 14px;
  box-shadow: 4px 4px 0 #1A1C21;
  transition: transform .25s ease-out, opacity .25s ease-out;
}
.flow__step:nth-child(even) .flow__card { margin-left: clamp(0px, 3vw, 28px); }
.js .flow__step:not(.is-done):not(.is-active) .flow__card { opacity: .55; transform: scale(.98); }
.flow__step.is-active .flow__card { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1A1C21; }
.flow__icon { flex: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #1A1C21; border-radius: var(--radius-sm); background: #FFD43B; color: #1A1C21; }
.flow__icon svg { width: 22px; height: 22px; }
.flow__check { position: absolute; right: -8px; bottom: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #1E6B4B; color: #FFFFFF; border: 2px solid #1A1C21; transform: scale(0); transition: transform .2s ease-out; }
.flow__check svg { width: 11px; height: 11px; }
.flow__step.is-done .flow__check { transform: scale(1); }
.flow__text { display: flex; flex-direction: column; min-width: 0; }
.flow__text strong { font-weight: 600; line-height: 1.3; }
.flow__text span { font-size: 14px; line-height: 20px; color: #565962; }
.flow__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.flow__quip { font: 700 clamp(19px, 1.8vw, 22px)/1.3 var(--font-display); max-width: 14em; }
.flow__sheep { flex: none; padding: 10px; background: #F6F5F0; border: 2px solid #1A1C21; border-radius: 20px; transform: rotate(-4deg); }
.flow__sheep svg { width: clamp(84px, 9vw, 112px); height: auto; }
@media (max-width: 420px) { .flow__sheep { display: none; } }

/* mrugnięcie maskotki */
.sheep-eye { transform-box: fill-box; transform-origin: center; }
.is-blinking .sheep-eye { animation: blink .18s ease-in-out 2; }
@keyframes blink { 50% { transform: scaleY(.1); } }

/* ---------- Pas narzędzi ---------- */
.tools { background: var(--fleece-raised); border-block: 2px solid var(--line-strong); }
.tools__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 22px; }
.tools__label { font-weight: 600; font-size: 15px; color: var(--ink-muted); }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---------- Bóle ---------- */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.pain { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--fleece); border: 2px solid var(--line-strong); border-radius: var(--radius-md); font-size: 18px; line-height: 1.5; }
.pain__x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #1A1C21; border-radius: var(--radius-sm); background: var(--muzzle); color: #1A1C21; font: 600 14px/1 var(--font-mono); }

/* ---------- Usługi ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; padding: 0 8px 8px 0; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--fleece-raised); color: var(--ink);
  border: 2px solid var(--line-strong); border-radius: var(--radius-md);
  padding: clamp(22px, 2.4vw, 28px); box-shadow: var(--shadow-pop);
}
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; background: #FFD43B; color: #1A1C21; border: 2px solid #1A1C21; border-radius: var(--radius-sm); }
.card__icon svg { width: 24px; height: 24px; }
.card__body { color: var(--ink-muted); }
.card__list { margin: auto 0 0; padding: 16px 0 0; list-style: none; display: flex; flex-direction: column; gap: 8px; border-top: 2px dashed var(--line); font-size: 15px; line-height: 1.45; }
.card__list li { display: flex; gap: 8px; }
.card__list li::before { content: "→"; font: 600 15px/1.45 var(--font-mono); color: var(--pasture); }
.card--featured { background: #1E6B4B; color: #FFFFFF; border-color: #1A1C21; box-shadow: var(--shadow-pop-lg); }
.card--featured .card__body { color: #FFFFFF; }
.card--featured .card__list { border-top-color: rgba(255,255,255,.6); }
.card--featured .card__list li::before { color: #FFD43B; }
.card__badge { position: absolute; top: -15px; right: 20px; }

/* ---------- Co automatyzujemy ---------- */
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.idea { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--fleece-raised); border: 2px solid var(--line-strong); border-radius: var(--radius-md); }
.idea__name { font: 700 19px/1.25 var(--font-display); }
.idea__flow { font: 500 13px/1.5 var(--font-mono); color: var(--ink-muted); }
.idea__flow b { color: var(--pasture); font-weight: 600; }

/* ---------- Proces ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 4px solid var(--line-strong); }
.step:last-child { border-top-color: var(--volt); }
.step__num { font: 600 14px/20px var(--font-mono); color: var(--pasture); }
.step__title { font: 700 24px/1.25 var(--font-display); }
.step p { color: var(--ink-muted); }

/* ---------- Ta strona to demo ---------- */
.showcase {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); background: #FFD43B; color: #1A1C21;
  border: 2px solid #1A1C21; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop-lg);
}
.showcase .eyebrow { color: #1A1C21; }
.showcase__copy { display: flex; flex-direction: column; gap: 14px; }
.showcase__copy p { font-size: 18px; line-height: 1.55; }
.code-figure { margin: 0; min-width: 0; }
.code {
  margin: 0; min-width: 0; overflow-x: auto;
  background: var(--code-bg); color: var(--code-fg);
  border: 2px solid #1A1C21; border-radius: var(--radius-md);
  padding: 20px 22px; font: 500 14px/1.75 var(--font-mono);
}
.code .c { color: var(--code-dim); }
.code .g { color: var(--code-green); }
.code .y { color: #FFD43B; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--fleece-raised); border: 2px solid var(--line-strong); border-radius: var(--radius-md); }
.faq details[open] { box-shadow: var(--shadow-pop); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; min-height: 56px; font: 700 clamp(18px, 1.6vw, 20px)/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 2px solid #1A1C21; border-radius: var(--radius-sm); background: #FFD43B; color: #1A1C21;
  font: 600 18px/1 var(--font-mono); transition: transform .15s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--radius-md); }
.faq__answer { padding: 0 22px 22px; color: var(--ink-muted); max-width: 70ch; }
.faq__answer p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { background: var(--pasture-deep); color: var(--on-pasture-deep); border-block: 2px solid #1A1C21; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 8vw, 96px); }
.cta__copy { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.cta__copy p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.cta__action { display: flex; align-items: center; gap: 24px; }
.cta__sheep { width: 120px; flex: none; }
.cta .btn--primary { box-shadow: 4px 4px 0 #000000; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__list { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: baseline; }
.contact__list dt { font: 600 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.contact__list dd { margin: 0; font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.booking { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; background: var(--fleece-sunk); border: 2px solid var(--line-strong); border-radius: var(--radius-md); }
.booking__title { font: 700 22px/1.25 var(--font-display); }
.booking .btn { margin-top: 6px; }
.copy-btn { margin-left: 8px; vertical-align: middle; min-height: 32px; padding: 2px 10px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--fleece-raised); color: var(--ink); font: 600 12px/1 var(--font-mono); cursor: pointer; }
.copy-btn:hover { background: var(--fleece-sunk); }

.form {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  background: var(--fleece-raised); border: 2px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop-lg); padding: clamp(20px, 3vw, 32px);
}
.form__fields { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 15px; line-height: 20px; font-weight: 600; }
.field__label .opt { font-weight: 400; color: var(--ink-muted); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 16px/1.5 var(--font-sans); color: var(--ink);
  background: var(--fleece-raised); border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
}
.input::placeholder { color: var(--ink-muted); opacity: 1; }
.input:focus-visible { outline-offset: 2px; border-radius: var(--radius-sm); }
textarea.input { min-height: 128px; resize: vertical; }
.field__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.field--error .input { border-color: var(--danger); }
.field__error { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-weight: 600; }
.form__status.is-error { color: var(--danger); }
.form__success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form__success svg { width: 96px; height: auto; }
.spinner { width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stopka ---------- */
.site-footer { background: #1A1C21; color: #F3F2EC; }
.site-footer a { color: #F3F2EC; text-decoration: none; }
.site-footer a:hover { color: #FFD43B; text-decoration: underline; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer__brand .logo { color: #F3F2EC; }
.footer__brand .logo__mark { width: 69px; height: 56px; }
.footer__brand .logo__word { font-size: 38px; }
.footer__brand .logo__word b { color: #4CC38A; }
.footer__brand p { color: #A9ABB2; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font: 600 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #A9ABB2; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 2px solid #2C3038; font-size: 14px; color: #A9ABB2; }
.site-footer :focus-visible { outline-color: #FFD43B; }

/* ---------- Strony tekstowe (polityka, 404) ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose__back { margin-top: 40px; }
.not-found__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }
.prose .note { margin: 24px 0; padding: 16px 20px; background: var(--fleece-sunk); border: 2px solid var(--line-strong); border-radius: var(--radius-md); }
.not-found { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
@media (max-width: 760px) { .not-found { grid-template-columns: minmax(0, 1fr); } }
.not-found svg { width: min(280px, 60vw); height: auto; }

/* ---------- Ruch ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn--primary:hover, .btn--primary:active, .flow__step.is-active .flow__card { transform: none; }
}

@media print {
  .site-header, .cta, .form, .flow__tabs, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
