/* ==========================================================
   www24h – styles
   ========================================================== */
:root {
  --bg: #07070C;
  --bg-alt: #0B0B13;
  --panel: #10101A;
  --line: #2A2A40;
  --line-soft: #1B1B2B;
  --text: #F4F4F8;
  --text-2: #DADAE6;
  --muted: #B4B4C6;
  --muted-2: #A3A3B8;
  --dim: #8E8EA6;
  --magenta: #E040FB;
  --magenta-soft: #F0A8FC;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --cyan-soft: #7DE8F7;
  --grad: linear-gradient(90deg, #E040FB 0%, #8B5CF6 50%, #22D3EE 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Exo 2', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --cut: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  --cut-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cyan); }
a:hover { color: var(--cyan-soft); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.cyan { color: var(--cyan); }
.magenta { color: var(--magenta-soft); }
.cut { clip-path: var(--cut); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- effects ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none;
}
.glow { text-shadow: 0 0 18px rgba(224, 64, 251, .45), 0 0 44px rgba(34, 211, 238, .3); }
.glow .grad { text-shadow: none; }

.glitch { position: relative; display: inline-block; filter: drop-shadow(0 0 18px rgba(224, 64, 251, .45)); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  background: none; -webkit-text-fill-color: currentColor;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { color: var(--cyan); animation: gl1 4s infinite steps(1); }
.glitch::after  { color: var(--magenta); animation: gl2 4s infinite steps(1); }
@keyframes gl1 {
  0%, 86% { clip-path: inset(0 0 100% 0); transform: none; }
  88% { clip-path: inset(18% 0 58% 0); transform: translate(-6px, 0); }
  91% { clip-path: inset(62% 0 12% 0); transform: translate(5px, 0); }
  94% { clip-path: inset(38% 0 40% 0); transform: translate(-3px, 0); }
  97%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes gl2 {
  0%, 87% { clip-path: inset(0 0 100% 0); transform: none; }
  89% { clip-path: inset(50% 0 30% 0); transform: translate(6px, 0); }
  92% { clip-path: inset(10% 0 70% 0); transform: translate(-5px, 0); }
  95%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
}
.blink { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.topbar { position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); }
.topbar-rev { background: linear-gradient(90deg, #22D3EE, #8B5CF6, #E040FB); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  clip-path: var(--cut-sm);
  transition: filter .15s, background-color .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary, .btn-primary:hover { background: var(--cyan); color: var(--bg); }
.btn-light, .btn-light:hover { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: #3A3A55; clip-path: none; }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 12, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(34, 211, 238, .12);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.logo { display: flex; }
.logo img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.main-nav a { color: #C9C9D6; text-decoration: none; font-size: 15px; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
/* language hint bar (Polish home page, browser prefers EN/FR) – thin, above the header */
.lang-hint { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint-row { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.lang-hint p { color: var(--muted); }
.lang-hint-go { font-weight: 600; color: var(--cyan-soft); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, .5); }
.lang-hint-go:hover { color: var(--text); border-color: var(--cyan); }
.lang-hint-close { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--dim); }
.lang-hint-close:hover { color: var(--text); }
.lang-hint-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* language switch – small and quiet: "PL EN FR", the active one bright with a thin cyan underline */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a {
  position: relative; min-width: 30px; height: 32px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px/1 var(--mono); letter-spacing: .06em; color: var(--dim); text-decoration: none;
  transition: color .15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { color: var(--text); }
.lang-switch a.is-active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background-image:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 20%, rgba(224, 64, 251, .12), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
}
/* neon grid lit up under the pointer (main.js sets --px/--py/--spot) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 64, 251, .4) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(240px circle at var(--px, 50%) var(--py, 50%), #000, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--px, 50%) var(--py, 50%), #000, transparent 72%);
  opacity: var(--spot, 0); transition: opacity .5s;
}
/* parallax: --mx/--my go from -1 to 1 */
.speed {
  position: absolute; border-radius: 3px; pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * .4px), 0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.speed-1 { --d: 40; left: -40px; top: 120px; width: 46%; height: 3px; background: var(--magenta); opacity: .55; }
.speed-2 { --d: 70; left: 6%; top: 138px; width: 22%; height: 2px; background: var(--cyan); opacity: .5; }
.speed-3 { --d: -50; right: -60px; bottom: 90px; width: 40%; height: 3px; background: var(--cyan); opacity: .45; }
.speed-4 { --d: -80; right: 10%; bottom: 72px; width: 18%; height: 2px; background: var(--violet); opacity: .6; }
.hero-bg-text {
  position: absolute; right: -2%; top: 50%;
  transform: translate(calc(var(--mx, 0) * -24px), calc(-50% + var(--my, 0) * -14px));
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  font: italic 800 clamp(200px, 32vw, 460px)/1 var(--display); letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px rgba(34, 211, 238, .16); color: transparent;
  user-select: none; pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--magenta); color: var(--magenta-soft);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font: italic 800 clamp(44px, 6vw, 80px)/1.02 var(--display); letter-spacing: -.01em;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.timer {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 12px 18px; border: 1px solid var(--line); background: rgba(16, 16, 26, .8);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.timer-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.timer-clock { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}

/* ---------- hero motion ----------
   One page-load sequence: lines streak in, the price card arrives, the price drops 1099 → 499 (main.js),
   then only the light pulses on the speed lines and a slow scan beam keep moving. */
.intro-line { display: inline-block; }
.hero-scan { display: none; }
.speed { overflow: hidden; }
.promo .old-price { position: relative; text-decoration: none; }
.promo .old-price::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px;
  background: var(--magenta); box-shadow: 0 0 8px var(--magenta); transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
  .intro {
    animation: intro-up .7s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }
  .intro-line {
    animation: intro-streak .85s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }
  .intro-card { animation-name: intro-card; animation-duration: .9s; }
  .promo .topbar { transform-origin: left; animation: draw .7s ease-out 1s both; }
  .promo .old-price::after { animation: draw .45s ease-in 1.35s both; }
  .big-price.is-landed { animation: price-land .6s ease-out; }

  /* light pulses running along the speed lines */
  .speed::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    transform: translateX(-120%);
    animation: zip 3.6s cubic-bezier(.55, 0, .3, 1) infinite;
  }
  .speed-1::after { animation-delay: 1.2s; }
  .speed-2::after { animation-delay: 1.6s; animation-duration: 2.8s; }
  .speed-3::after { animation-delay: 2.3s; animation-direction: reverse; }
  .speed-4::after { animation-delay: 2.9s; animation-duration: 3s; animation-direction: reverse; }

  /* slow scan beam over the grid */
  .hero-scan {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .05) 85%, rgba(34, 211, 238, .22) 99%, transparent);
    animation: scan 7s linear 1.5s infinite both;
    will-change: top, opacity;
  }
}
@keyframes intro-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes intro-streak {
  0%   { opacity: 0; transform: translateX(-70px) skewX(-20deg); filter: blur(8px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { transform: none; }
}
@keyframes intro-card { from { opacity: 0; transform: translateX(70px) skewX(-6deg); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes price-land {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.08); text-shadow: 0 0 28px rgba(224, 64, 251, .9), 0 0 60px rgba(34, 211, 238, .6); }
  100% { transform: scale(1); }
}
@keyframes zip { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(480%); } }
@keyframes scan {
  0%   { top: -120px; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 120px); opacity: 0; }
}

.promo-wrap { filter: drop-shadow(0 0 30px rgba(224, 64, 251, .3)); }
.promo {
  position: relative; background: var(--panel); border: 1px solid #3A2A55;
  padding: 36px; display: flex; flex-direction: column; gap: 24px;
}
.promo-status { font-size: 12px; letter-spacing: .12em; color: var(--cyan-soft); }
.promo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-name { font: italic 700 24px var(--display); }
.tag-solid { padding: 6px 12px; background: var(--magenta); color: var(--bg); font-size: 13px; font-weight: 600; }
.promo-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.old-price { font-size: 22px; color: var(--dim); }
.big-price { display: inline-block; font: italic 800 clamp(64px, 8vw, 88px)/1 var(--display); }
.note { font-size: 13px; color: var(--dim); }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checks-sm { gap: 12px; padding-top: 20px; border-top: 1px solid #22223A; flex-grow: 1; }
.checks-sm li { font-size: 15px; gap: 10px; }
.checks-sm svg { width: 18px; height: 18px; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  width: 110%; margin-left: -5%;
  transform: rotate(-1.5deg);
  background: var(--magenta); color: var(--bg);
  padding: 14px 0; overflow: hidden;
  box-shadow: 0 0 40px rgba(224, 64, 251, .45);
}
.track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.track span { font-weight: 600; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 0 28px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 44rem; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { font: italic 800 clamp(32px, 4vw, 48px)/1.1 var(--display); }
.section h2.h2-xl { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.split-top { align-items: start; }

/* offer cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card-wrap { display: flex; }
.card-wrap.is-hot { filter: drop-shadow(0 0 26px rgba(224, 64, 251, .35)); }
.card {
  flex: 1 1 auto; position: relative;
  background: var(--panel); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.is-hot .card { border-color: var(--magenta); }
.card-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); min-height: 20px; }
.card-tag-start { color: var(--magenta-soft); }
.card-tag-custom { color: #B79CFB; }
.card-tag-shop { color: var(--cyan-soft); }
.card h3 { font: italic 700 28px var(--display); }
.card-desc { font-size: 16px; line-height: 1.6; color: var(--muted); min-height: 78px; }
.card-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-height: 48px; }
.card-price .old-price { font-size: 18px; }
.price { font: italic 800 40px/1 var(--display); }
.price-text { font-size: 26px; }
.price-pre { font-size: 16px; font-weight: 600; color: var(--text-2); }
.price-net { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.promo-price .price-net { font-size: 16px; }
.price-group { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.card-note { margin-top: -8px; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }

/* ---------- process ("Jak to działa") ----------
   Timeline (5 equal columns) + phase brackets + one panel per step: [head | Ty | My | Efekt].
   .is-enhanced is added by main.js – without it every panel is shown, one under another. */
.flow { --node: 56px; display: flex; flex-direction: column; }

/* timeline */
.flow-rail {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.flow-rail::before, .flow-rail::after {
  content: ""; position: absolute; height: 2px;
  top: calc(var(--node) / 2 - 1px); left: calc(var(--node) / 2);
}
.flow-rail::before { right: calc(20% - var(--node) / 2); background: var(--line); }
.flow-rail::after {
  width: var(--fill, 0px);
  background: linear-gradient(90deg, var(--magenta), var(--violet) 60%, var(--cyan));
  box-shadow: 0 0 12px rgba(224, 64, 251, .55);
  transition: width .5s cubic-bezier(.2, .7, .2, 1);
}
.flow-item { position: relative; min-width: 0; }
.flow-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding-right: 16px; color: var(--muted-2); text-decoration: none;
}
.flow-tab:hover { color: var(--text); }
.flow-tab:hover .flow-num { border-color: var(--muted-2); }
.flow-num {
  position: relative; z-index: 1;
  width: var(--node); height: var(--node); display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--line); clip-path: var(--cut-sm);
  font: italic 800 20px/1 var(--display); color: var(--dim);
  transition: background-color .25s, color .25s, border-color .25s;
}
.flow-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.flow-item.is-done .flow-num { border-color: var(--magenta); color: var(--magenta-soft); }
.flow-item.is-active .flow-num { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.flow-item.is-active .flow-name { color: var(--text); }
.flow-item-final .flow-name { font: italic 800 19px/1.3 var(--display); }

/* the moment the 24 h clock starts – a cyan gate on the line just before the last step */
.flow-item-final::after {
  content: ""; position: absolute; z-index: 1; left: -22px; top: calc(var(--node) / 2 - 13px);
  width: 2px; height: 26px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.flow-item-final::before {
  content: attr(data-clock);
  position: absolute; left: -21px; top: -22px; transform: translateX(-50%);
  font: 600 12px/1 var(--mono); color: var(--cyan-soft); white-space: pre;
}

/* phase brackets under the timeline */
.flow-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; }
.flow-phases span {
  padding-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border-top: 1px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flow-phase-prep { grid-column: 1 / 5; margin-right: 32px; border-color: var(--line); color: var(--dim); }
.flow-phase-build { grid-column: 5 / 6; border-color: var(--cyan); color: var(--cyan-soft); }

/* panels */
.flow-panels { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; min-width: 0; }
.flow-panel {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 40px; min-height: 300px;
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); grid-template-rows: auto 1fr;
  grid-template-areas: "head body" "nav body"; gap: 0 48px;
  scroll-margin-top: 110px;
}
.flow-panel.is-final { border-color: rgba(34, 211, 238, .45); }
.is-enhanced .flow-panel { display: none; }
.is-enhanced .flow-panel.is-active { display: grid; animation: flow-in-next .4s cubic-bezier(.2, .8, .2, 1); }
.is-enhanced.go-prev .flow-panel.is-active { animation-name: flow-in-prev; }
@keyframes flow-in-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes flow-in-prev { from { opacity: 0; transform: translateX(-28px); } }
.flow-panel:focus { outline: none; }

/* autoplay: the panel's top bar works as a progress bar (main.js listens for animationend) */
.flow.is-playing .flow-panel.is-active .topbar { transform-origin: left; animation: flow-progress 7s linear both; }
.flow.is-playing.is-paused .flow-panel.is-active .topbar,
.flow.is-playing:hover .flow-panel.is-active .topbar { animation-play-state: paused; }
@keyframes flow-progress { from { transform: scaleX(0); } }

/* panel – left column */
.flow-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.flow-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 10px;
  border: 1px solid var(--magenta); clip-path: var(--cut-sm);
  background: radial-gradient(circle, rgba(224, 64, 251, .2), transparent 70%);
}
.flow-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--magenta-soft); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(224, 64, 251, .8));
}
.is-final .flow-icon { border-color: var(--cyan); background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); }
.is-final .flow-icon svg { stroke: var(--cyan-soft); filter: drop-shadow(0 0 6px rgba(34, 211, 238, .9)); }
.is-enhanced .flow-panel.is-active .flow-icon svg { animation: icon-on .7s steps(1) .1s both; }
@keyframes icon-on { 0% { opacity: .2; } 20% { opacity: 1; } 35% { opacity: .35; } 50%, 100% { opacity: 1; } }
.flow-meta { font-size: 13px; color: var(--muted-2); }
.flow-panel h3 { font: italic 800 clamp(28px, 2.6vw, 34px)/1.1 var(--display); }
.flow-nav { grid-area: nav; align-self: end; padding-top: 24px; }
.flow-nav[hidden] { display: none; }

/* panel – right: three equal cells (Ty / My / Efekt, or clock / My / Efekt on the last step) */
.flow-body { grid-area: body; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-content: start; }
.flow-roles { display: contents; }
.flow-cell { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--line); }
.flow-cell dt { font-size: 13px; font-weight: 600; }
.flow-cell dd { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.flow-role-you { border-color: var(--magenta); }    .flow-role-you dt { color: var(--magenta-soft); }
.flow-role-we { border-color: var(--violet); }      .flow-role-we dt { color: #B79CFB; }
.flow-role-result { border-color: var(--cyan); }    .flow-role-result dt { color: var(--cyan-soft); }
.flow-role-result dd { color: var(--text); font-weight: 500; }
.flow-clock { border-color: var(--cyan); }
.flow-clock-time { font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.flow-clock-label { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* domain shortcut – a full-width row under the three cells */
.flow-domain {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px;
  padding: 16px 18px; border: 1px dashed #3A3A55; background: rgba(7, 7, 12, .5);
}
.flow-domain[hidden] { display: none; }
.flow-domain label { font-size: 15px; font-weight: 600; color: var(--text); }
.flow-domain .btn { height: 48px; }

@media (max-width: 1100px) {
  .flow-panel { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; grid-template-areas: "head nav" "body body"; gap: 28px 24px; }
  .flow-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; row-gap: 4px; }
  .flow-icon { grid-row: 1 / 3; margin: 0; }
  .flow-nav { align-self: center; padding: 0; }
}

@media (max-width: 820px) {
  .flow { --node: 44px; }
  .flow-name, .flow-phases, .flow-item-final::before { display: none; }
  .flow-tab { padding-right: 0; }
  .flow-item-final::after { left: -14px; top: 8px; height: calc(var(--node) - 16px); }
  .flow-panels { margin-top: 24px; }
  .flow-panel { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "body" "nav"; gap: 22px; padding: 26px 22px 24px; min-height: 0; }
  .flow-icon { width: 48px; height: 48px; }
  .flow-icon svg { width: 22px; height: 22px; }
  .flow-nav .btn { width: 100%; }
  .flow-body { grid-template-columns: 1fr; gap: 20px; }
  .flow-cell { padding-top: 14px; gap: 8px; }
  .flow-cell dd { font-size: 16px; }
  .flow-domain { grid-template-columns: 1fr; padding: 14px; }
  .flow-domain .btn { width: 100%; }
}
/* contact */
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; font-size: 17px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.contact-links a:hover { color: var(--cyan-soft); }
.ico { width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.cyan { stroke: var(--cyan); }
.ico.magenta { stroke: var(--magenta); }

.form {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 36px 32px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px;
}
.span-2 { grid-column: 1 / -1; }
.field-wrap { display: flex; flex-direction: column; gap: 8px; }
.field-wrap label { font-size: 14px; font-weight: 500; color: #C9C9D6; }
.field {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: #0D0D16; color: var(--text); font: inherit; font-size: 15px;
}
.field::placeholder { color: #6E6E86; }
.field:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
textarea.field { height: 120px; padding: 12px 14px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cyan); flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border: 1px solid; font-size: 15px; }
.alert-ok  { border-color: var(--cyan); color: var(--cyan-soft); background: rgba(34, 211, 238, .08); }
.alert-err { border-color: var(--magenta); color: var(--magenta-soft); background: rgba(224, 64, 251, .08); }

/* footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 32px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted-2); }
.footer-logo { height: 32px; width: auto; display: block; }
.footer-row a { color: var(--muted-2); }
.footer-info { display: flex; flex-direction: column; gap: 4px; }
.footer-company { font-size: 13px; color: var(--dim); }
.consent a { color: var(--cyan-soft); }

/* privacy policy (polityka-prywatnosci.php) */
.legal { padding: 64px 0 96px; }
.legal-wrap { max-width: 800px; display: flex; flex-direction: column; gap: 40px; }
.legal-back { align-self: flex-start; font-size: 15px; color: var(--muted-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.legal-back:hover { color: var(--text); border-color: var(--cyan); }
.legal-head { display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font: italic 800 clamp(38px, 5vw, 60px)/1.05 var(--display); }
.legal-updated { font-size: 13px; color: var(--dim); }
.legal-toc { padding: 22px 26px; border: 1px solid var(--line); border-top: 3px solid var(--violet); background: var(--panel); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.legal-toc li { padding: 4px 0; color: var(--dim); font-size: 15px; break-inside: avoid; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--cyan-soft); }
.legal-section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.legal-section h2 {
  display: flex; align-items: baseline; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font: italic 700 clamp(22px, 2.6vw, 28px)/1.2 var(--display);
}
.legal-num { font-size: 14px; font-style: normal; font-weight: 600; color: var(--magenta-soft); }
.legal-section p, .legal-section li { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 68ch; }
.legal-section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal-section li::marker { color: var(--cyan); }
.legal-section a { color: var(--cyan-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .main-nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
  .promo, .card { padding: 24px; }
  .form { padding: 28px 20px 20px; }
  .logo img { height: 36px; }
  .header-actions .btn { display: none; }
  .timer-clock { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glitch::before, .glitch::after, .track, .blink { animation: none; }
  .speed, .hero-bg-text, .flow-rail::after, .flow-num { transition: none !important; }
  .is-enhanced .flow-panel.is-active, .is-enhanced .flow-panel.is-active .flow-icon svg { animation: none; }
}
