:root {
  --bg: #FAFAF7;
  --bg-2: #F3F4EE;
  --surface: #FFFFFF;
  --border: #E3E6DC;
  --border-2: #CED4C2;
  --text: #0F130C;
  --text-dim: #5A6654;
  --text-faint: #8A9683;
  --accent: #1DA64A;
  --accent-2: #17C35B;
  --ink: #FFFFFF;
  --font: Verdana, Geneva, sans-serif;
  --display: Verdana, Geneva, sans-serif;
  --mono: Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============= NAV ============= */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 24px; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 20px; background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 999px;
  animation: navIn .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -20px); } }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.nav a, .nav-links a, .nav-cta, .nav-login { white-space: nowrap; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 8px 16px; background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .2s; }
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-login { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-login:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links, .nav-login { display: none; } }
.lang { display: flex; gap: 1px; background: var(--bg-2); border-radius: 999px; padding: 2px; font-size: 12px; }
.lang button { background: transparent; color: var(--text-faint); padding: 4px 8px; border-radius: 999px; }
.lang button.on { background: var(--surface); color: var(--text); }

/* ============= HERO ============= */
.hero { position: relative; padding: 160px 0 100px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -20% auto -20%; height: 140%;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 50%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 60%);
  pointer-events: none; opacity: 0.6;
}
.hero-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border: 1px solid var(--border);
  background: var(--bg-2); border-radius: 999px;
  font-size: 13px; color: var(--text-dim);
  animation: fadeUp .7s .1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-eyebrow .tag { padding: 2px 8px; background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

.hero h1 {
  position: relative; font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.03em;
  margin: 28px 0 0; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent-2); }

/* Typewriter h1 — reserve space for up to 3 lines (prefix may wrap on narrow
   viewports); keeps downstream layout (phone pin anchor) stable across phrases */
.tw-h1 { min-height: 2.85em; }
.tw-line { display: block; min-height: 0.95em; }
.tw-caret {
  display: inline-block;
  width: 0.09em;
  height: 0.92em;
  background: var(--accent-2);
  margin-left: 0.05em;
  vertical-align: -0.1em;
  animation: twBlink 1s steps(2, end) infinite;
}
@keyframes twBlink { 50% { opacity: 0; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.hero-sub { position: relative; margin: 28px auto 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.hero-ctas { position: relative; margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { position: relative; margin: 18px auto 0; max-width: 470px; font-size: 14px; line-height: 1.5; color: var(--text-faint); text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: all .2s; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in oklab, var(--accent) 40%, transparent); }
.btn-ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

/* Hero phone */
.hero-phone-wrap { position: relative; margin: 80px auto 0; width: fit-content;
  animation: fadeUp .7s .1s cubic-bezier(.2,.7,.2,1) both; }
.phone { position: relative; width: min(300px, 78vw); height: auto; aspect-ratio: 300 / 616; background: #1a1a1a; border-radius: 44px; padding: 9px;
  box-shadow: 0 0 0 1px #2a2a2a, 0 30px 60px rgba(15, 25, 12, 0.18), 0 60px 120px color-mix(in oklab, var(--accent) 20%, transparent);
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #000; border-radius: 20px; z-index: 3; }
.phone .cam-lens { position: absolute; top: 27px; left: calc(50% + 26px); width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3a3a 0%, #141414 60%, #050505 100%);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.18);
  z-index: 4; pointer-events: none; }
.phone .cam-lens::after { content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: #22c55e; opacity: 0; transition: opacity 0.22s ease-in-out; }
.phone .cam-lens.lit::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .phone .cam-lens::after { transition: none; } }
.phone .screen-stack { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone .screen-stack .status-clip { position: absolute; top: 0; left: 0; right: 0; height: 13%; overflow: hidden; z-index: 2; pointer-events: none; background: #fff; }
.phone .screen-stack .status-clip img { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; }
.phone .screen-stack .scroll-area { position: absolute; top: 13%; left: 0; right: 0; bottom: 0; overflow: hidden; }
.phone .screen-stack .scroll-area img { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; will-change: transform; margin-top: -25%; }
.phone .screen-stack .scroll-area img.screen-a { z-index: 2; }
.phone .screen-stack .scroll-area img.screen-b { z-index: 1; }
.phone .screen-stack .title-overlay { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; clip-path: inset(4.5% 0 88.5% 0); }
.phone .screen-stack .title-overlay .title-strip { position: absolute; inset: 0; will-change: opacity; }
.phone .screen-stack .title-overlay .title-strip img { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; }
.phone .screen-stack .title-overlay .title-strip-b { opacity: 0; }
.phone .screen-stack .phone-clock {
  position: absolute; top: 1.5%; left: 7.5%; z-index: 3; pointer-events: none;
  font-family: "Inter", -apple-system, "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: #000; background: #fff;
  padding: 3px 4px 2px;
}

/* Floating chip around hero */
.chip { position: absolute; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(15, 25, 12, 0.10);
  animation: floatIn 1s cubic-bezier(.2,.7,.2,1) both, bob 4s ease-in-out infinite; }
.chip-live { left: calc(50% - 260px); top: 60px; animation-delay: 1.1s, 2s; }
.chip-bt { right: calc(50% - 250px); top: 180px; animation-delay: 1.25s, 2.2s; }
.chip-pay { left: calc(50% - 240px); bottom: 140px; animation-delay: 1.4s, 2.4s; }

@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.chip-row { display: flex; align-items: center; gap: 10px; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.chip-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 600; }
.chip-main { font-family: var(--mono); font-size: 18px; margin-top: 4px; letter-spacing: -0.01em; }
.chip-main .unit { font-size: 12px; color: var(--text-dim); margin-left: 4px; }
.chip-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* poniżej ~820px chipy nie mieszczą się obok telefonu i zachodziły na ekran — chowamy je */
@media (max-width: 820px) { .chip { display: none; } }

/* ============= FEATURES ============= */
.features { padding: 100px 0; position: relative; }
.fhead { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 0; text-wrap: balance; }
.sub { margin-top: 14px; font-size: 17px; color: var(--text-dim); line-height: 1.55; text-wrap: pretty; }

.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard {
  position: relative; padding: 32px 28px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 20px;
  opacity: 0; transform: translateY(20px);
  transition: all .8s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.fcard.visible { opacity: 1; transform: translateY(0); }
.fcard:nth-child(2).visible { transition-delay: .1s; }
.fcard:nth-child(3).visible { transition-delay: .2s; }
.fcard:hover { background: var(--surface); border-color: var(--border-2); }
.fcard:hover .ficon { transform: scale(1.05); background: color-mix(in oklab, var(--accent) 25%, transparent); }

.ficon { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); display: grid; place-items: center; transition: all .3s; }
.fcard h3 { font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; margin: 20px 0 10px; font-weight: 400; }
.fcard p { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0; }

/* ============= WORKFLOW (animated demo) ============= */
.workflow { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .wgrid { grid-template-columns: 1fr; gap: 60px; } }
.wsteps { display: flex; flex-direction: column; gap: 4px; }
.wstep {
  position: relative; padding: 24px 28px 24px 72px; border-radius: 16px;
  cursor: pointer; transition: all .4s;
  border: 1px solid transparent;
}
.wstep::before {
  content: attr(data-n); position: absolute; left: 28px; top: 26px;
  font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  transition: color .3s;
}
.wstep::after {
  content: ''; position: absolute; left: 36px; top: 56px; bottom: -4px;
  width: 1px; background: var(--border);
}
.wstep:last-child::after { display: none; }
.wstep.active { background: var(--surface); border-color: var(--border-2); }
.wstep.active::before { color: var(--accent); }
.wstep h4 { font-size: 18px; margin: 0 0 6px; font-weight: 500; }
.wstep p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.5; }

.wvisual {
  position: relative; aspect-ratio: 1;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  display: grid; place-items: center;
}
.wvisual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* Scale demo */
.demo { position: relative; width: 70%; height: 70%; }
.demo-stage { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; opacity: 0; }
.demo-stage.on { opacity: 1; }

.scale-viz {
  position: relative; width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.scale-top {
  width: 80%; padding: 32px 0; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: 16px; text-align: center;
  box-shadow: 0 10px 24px rgba(15, 25, 12, 0.08);
}
.scale-val { font-family: var(--mono); font-size: clamp(32px, 6vw, 56px); font-weight: 500; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.scale-unit { font-size: 13px; color: var(--text-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.scale-base { margin-top: 10px; width: 90%; height: 18px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 6px; }

.card-viz { width: 72%; aspect-ratio: 1.6; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  color: #FFFFFF; position: relative; overflow: hidden; box-shadow: 0 16px 40px color-mix(in oklab, var(--accent) 35%, transparent);
}
.card-viz::before { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(0,0,0,0.08); }
.card-viz-hd { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.card-viz-n { font-family: var(--display); font-size: 28px; letter-spacing: -0.01em; }
.card-viz-id { font-family: var(--mono); font-size: 12px; }
.card-viz-qr { position: absolute; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; width: 60px; height: 60px; }
.card-viz-qr div { background: #FFFFFF; border-radius: 1px; opacity: 0.85; }

.batch-viz { width: 80%; display: flex; flex-direction: column; gap: 10px; }
.batch-viz-row { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; justify-content: space-between; align-items: center;
  opacity: 0; animation: batchIn .5s both;
}
.batch-viz-row:nth-child(1) { animation-delay: 0.1s; }
.batch-viz-row:nth-child(2) { animation-delay: 0.3s; }
.batch-viz-row:nth-child(3) { animation-delay: 0.5s; }
@keyframes batchIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.batch-viz-t { font-size: 13px; }
.batch-viz-s { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.batch-viz-w { font-family: var(--mono); font-weight: 500; color: var(--accent); }

.pay-viz { text-align: center; }
.pay-big { font-family: var(--display); font-size: clamp(56px, 10vw, 96px); color: var(--accent); letter-spacing: -0.03em; line-height: 1;
  animation: countUp 1.5s ease-out both; }
@keyframes countUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.pay-label { font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px; }

/* ============= MARQUEE of modules ============= */
.modules { padding: 100px 0; overflow: hidden; }
.mhead { text-align: center; margin-bottom: 48px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 16px; animation: scroll 30s linear infinite; width: max-content; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mpill { flex-shrink: 0; padding: 16px 24px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; gap: 12px; min-width: 220px;
}
.mpill-icon { width: 32px; height: 32px; border-radius: 8px; background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mpill-t { font-size: 14px; font-weight: 500; }
.mpill-d { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* ============= PRICING ============= */
.pricing { padding: 100px 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 48px auto 0; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; } }
.pcard {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px; position: relative;
  opacity: 0; transform: translateY(20px);
  transition: all .8s cubic-bezier(.2,.7,.2,1);
}
.pcard.visible { opacity: 1; transform: translateY(0); }
.pcard:nth-child(2).visible { transition-delay: .1s; }
.pcard:nth-child(3).visible { transition-delay: .2s; }
.pcard.hot { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px color-mix(in oklab, var(--accent) 15%, transparent); }
.pcard.hot::before {
  content: 'Polecany'; position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
html[lang="en"] .pcard.hot::before { content: 'Recommended'; }
.pnote { margin: 14px 0 0; font-size: 14px; color: var(--text-faint); }
.pname { font-family: var(--display); font-size: 28px; letter-spacing: -0.01em; }
.pprice { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pbig { font-family: var(--display); font-size: 38px; letter-spacing: -0.02em; line-height: 1; }
.pper { font-size: 13px; color: var(--text-faint); }
.pfeat { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pfeat li { font-size: 14px; color: var(--text-dim); display: flex; gap: 10px; align-items: flex-start; }
.pfeat li::before { content: ''; flex-shrink: 0; margin-top: 7px; width: 10px; height: 2px; background: var(--accent); }
.pcta { display: inline-flex; justify-content: center; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.pcta-hot { background: var(--accent); color: var(--ink); }
.pcta-hot:hover { background: var(--accent-2); }
.pcta-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }

/* Tier slider */
.tier-slider { padding: 14px 2px 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tier-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-dim); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.tier-label strong { color: var(--text); font-size: 18px; font-weight: bold; font-family: Verdana, sans-serif; }
.tier-track { position: relative; height: 6px; background: var(--border); border-radius: 999px; margin: 0 10px; }
.tier-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s cubic-bezier(.2,.7,.2,1); width: 0%; }
.tier-pip { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); transform: translate(-50%, -50%); cursor: pointer; padding: 0; transition: all .2s; }
.tier-pip[data-tier="0"] { left: 0%; }
.tier-pip[data-tier="1"] { left: 50%; }
.tier-pip[data-tier="2"] { left: 100%; }
.tier-pip:hover { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.tier-pip.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 20%, transparent); }
.tier-marks { display: flex; justify-content: space-between; margin: 10px 6px 0; font-size: 11px; color: var(--text-faint); font-weight: bold; }

/* ============= CTA ============= */
.cta-section { padding: 140px 0; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 60%);
  border-top: 1px solid var(--border);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(to right, color-mix(in oklab, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 100%, black 0%, transparent 70%);
}
.cta-title { position: relative; font-family: var(--display); font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.025em; line-height: 1; text-wrap: balance; margin: 0; }
.cta-title em { font-style: italic; color: var(--accent-2); }
.cta-sub { position: relative; margin: 20px auto 36px; font-size: 18px; color: var(--text-dim); max-width: 520px; }
.cta-buttons { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--text); color: #FFFFFF; border-radius: 14px; font-weight: 500; transition: transform .2s; }
.store-btn:hover { transform: translateY(-2px); }
.cta-stores { position: relative; margin-top: 40px; }
.store-btn.soon { opacity: 0.5; cursor: default; }
.store-btn.soon:hover { transform: none; }
.store-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.store-btn small { display: block; font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; }
.store-btn b { display: block; font-size: 16px; letter-spacing: -0.01em; font-weight: 500; }
.cta-note { position: relative; margin-top: 24px; font-size: 13px; color: var(--text-faint); }

/* ============= FOOTER ============= */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }
.fbar a { color: var(--text-dim); transition: color .2s; }
.fbar a:hover { color: var(--text); }

/* ============= RESPONSIVE ============= */
html { -webkit-text-size-adjust: 100%; }

/* --- Tablet poziomo / małe laptopy --- */
@media (max-width: 1040px) {
  .nav { gap: 16px; padding: 8px 8px 8px 16px; }
  .nav-links { gap: 18px; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .fgrid .fcard:last-child { grid-column: span 2; }
  .wgrid { gap: 48px; }
  /* nagłówek nigdy nie łamie się na 3 linie poniżej tej szerokości —
     nie trzeba rezerwować miejsca na trzecią */
  .tw-h1 { min-height: 2.2em; }
}

/* --- Tablet pionowo --- */
@media (max-width: 900px) {
  .hero { padding: 128px 0 72px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 72px); }
  .tw-h1 { min-height: 2.2em; }
  .hero-sub { margin-top: 22px; font-size: 17px; }
  .hero-ctas { margin-top: 28px; }
  .hero-phone-wrap { margin-top: 56px; }

  .features { padding: 72px 0; }
  .workflow { padding: 80px 0; }
  .modules { padding: 72px 0; }
  .pricing { padding: 72px 0; }
  .cta-section { padding: 96px 0; }
  .fhead { margin-bottom: 40px; }
  .mhead { margin-bottom: 32px; }

  .wgrid { gap: 40px; }
  .wvisual { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 3; }
  .demo { width: 62%; height: 82%; }
  .pgrid { max-width: 520px; margin-top: 36px; }
}

/* --- Duże telefony / mały tablet --- */
@media (max-width: 680px) {
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .fcard:last-child { grid-column: auto; }
}

/* --- Telefony --- */
@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .nav { gap: 10px; padding: 7px 7px 7px 14px; max-width: calc(100vw - 20px); }
  .logo { font-size: 14px; }
  .logo-mark { width: 24px; height: 24px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
  .lang { font-size: 11px; }
  .lang button { padding: 4px 7px; }

  .hero { padding: 104px 0 56px; }
  .hero-eyebrow { gap: 8px; padding: 6px 12px 6px 7px; font-size: 12px; }
  .hero-eyebrow .tag { font-size: 10px; }
  .hero h1 { margin-top: 22px; }
  .tw-h1 { min-height: 2.4em; }
  .hero-sub { margin-top: 18px; font-size: 16px; }
  .hero-note { margin-top: 14px; font-size: 13px; }
  .hero-ctas { gap: 10px; margin-top: 24px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .hero-phone-wrap { margin-top: 40px; }
  .phone .screen-stack .phone-clock { font-size: 11px; }

  .h2 { font-size: clamp(27px, 8vw, 40px); }
  .sub { font-size: 15px; }
  .features, .modules, .pricing { padding: 56px 0; }
  .workflow { padding: 60px 0; }
  .cta-section { padding: 76px 0; }
  .fhead { margin-bottom: 28px; }

  .fcard { padding: 24px 20px; }
  .fcard h3 { margin: 16px 0 8px; font-size: 22px; }

  .wsteps { gap: 2px; }
  .wstep { padding: 18px 16px 18px 52px; border-radius: 14px; }
  .wstep::before { left: 18px; top: 20px; }
  .wstep::after { left: 26px; top: 46px; }
  .wstep h4 { font-size: 17px; }
  .wvisual { aspect-ratio: 1; border-radius: 20px; }
  .demo { width: 74%; height: 74%; }

  .pgrid { gap: 14px; margin-top: 28px; }
  .pcard { padding: 24px 20px; }
  .pname { font-size: 24px; }
  .pbig { font-size: 34px; }
  .tier-pip { width: 26px; height: 26px; }

  .cta-sub { margin-bottom: 28px; font-size: 16px; }
  .cta-buttons { gap: 10px; }
  .cta-stores { margin-top: 28px; }
  .store-btn { padding: 12px 18px; }

  .footer { padding: 28px 0; }
  .fbar { flex-direction: column; gap: 14px; text-align: center; }
  .fbar > div:last-child { flex-wrap: wrap; justify-content: center; }
}

/* --- Najwęższe ekrany (320–400px) --- */
@media (max-width: 400px) {
  .hero h1 { font-size: 30px; }
  .tw-h1 { min-height: 2.5em; }
  .store-btn { width: 100%; justify-content: center; }
}

/* cena słowna ("Porozmawiajmy") — skaluje się, żeby nie wychodziła poza kartę */
.pbig.pbig-word { font-size: clamp(23px, 6.2vw, 36px); }

/* na bardzo wąskich ekranach zostaje samo logo — inaczej pasek nawigacji nie mieści CTA */
@media (max-width: 380px) {
  .nav .logo-word { display: none; }
  .nav { gap: 8px; padding: 7px 7px 7px 8px; }
  .nav-cta { padding: 9px 12px; }
}
