/* ===== Strona „Funkcje": każda funkcja + graficzny przykład działania ===== */
/* Wizualnie spójna z landingiem i panelami (Przegląd / Zarządzanie / Płatności / Analityka). */

/* ---------- hero ---------- */
.ft-hero { text-align: center; max-width: 820px; margin: 44px auto 0; }
.ft-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 18px; font-weight: 800; }
.ft-hero h1 .accent { color: var(--accent); }
.ft-hero p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 auto 28px; max-width: 620px; }
.ft-hero .lp-actions { justify-content: center; }

.ft-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* ---------- feature section: text + graphic demo ---------- */
.fx-sec { margin-top: 12vh; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 46px; align-items: center; }
.fx-sec.rev .fx-text { order: 2; }

.fx-text h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 12px; }
.fx-text > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; max-width: 480px; }
.fx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fx-list li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fx-list li b { color: var(--text); font-weight: 700; }
.fx-list svg { width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- demo column ---------- */
.fx-demo { min-width: 0; }
.fx-cap { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 14px; padding-left: 2px; }

/* window-like frame around each mock */
.fx-frame {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: rgba(18, 18, 18, 0.92);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  transition: border-color .2s, box-shadow .2s;
}
.fx-sec:hover .fx-frame { border-color: rgba(198, 255, 0, 0.3); }
.fx-bar { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.fx-dots { display: inline-flex; gap: 6px; }
.fx-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.fx-bar-t { font-size: 12px; color: var(--muted); font-weight: 600; }
.fx-pad { padding: 18px; }
.fx-block-t { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }

/* ============ 1. Wyszukiwanie ============ */
.fx-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--field); border: 1px solid rgba(198, 255, 0, 0.28); }
.fx-search svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.fx-typed { font-size: 14px; color: var(--text); }
.fx-caret { width: 1.5px; height: 16px; background: var(--accent); animation: fx-blink 1.1s step-end infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }
.fx-hit { font-size: 12px; color: var(--muted); margin: 12px 2px 10px; }
.fx-res { display: flex; flex-direction: column; gap: 8px; }
.fx-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.fx-item.best { border-color: rgba(198, 255, 0, 0.45); background: rgba(198, 255, 0, 0.07); box-shadow: inset 0 0 0 1px rgba(198, 255, 0, 0.12); }
.fx-thumb { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; background: linear-gradient(135deg, #2a2a2a, #1a1a1a); border: 1px solid var(--border); }
.fx-item.best .fx-thumb { background: linear-gradient(135deg, rgba(198, 255, 0, 0.35), rgba(198, 255, 0, 0.08)); }
.fx-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fx-item-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-item-sub { font-size: 11.5px; color: var(--muted); }
.fx-item-tag { font-size: 11px; font-weight: 700; color: var(--accent); }
.fx-price { font-size: 13px; font-weight: 700; color: #34d399; flex-shrink: 0; }

/* ============ 2. Przegląd sklepu ============ */
.fx-info { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); margin-bottom: 14px; }
.fx-info-name { font-size: 15px; font-weight: 700; }
.fx-info-line { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.fx-info-dim { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.fx-vec { color: #34d399; }
.fx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.fx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-badge.ok { color: #34d399; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }

.fx-stat { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: rgba(255, 255, 255, 0.02); }
.fx-stat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fx-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx-big { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-top: 3px; }
.fx-cur { font-size: 15px; color: var(--muted); font-weight: 700; }
.fx-stat-r { text-align: right; }
.fx-big2 { font-size: 20px; font-weight: 800; margin-top: 3px; }
.fx-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.fx-tabs { display: flex; gap: 6px; margin: 2px 0 10px; }
.fx-tab { font-size: 11px; padding: 4px 12px; border-radius: 999px; color: var(--muted); border: 1px solid var(--border); }
.fx-tab.on { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; font-weight: 700; }
.fx-plot { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: stretch; }
.fx-yaxis { display: flex; flex-direction: column; justify-content: space-between; font-size: 9.5px; color: var(--muted); text-align: right; padding: 2px 0; }
.fx-chart { width: 100%; height: 96px; display: block; overflow: visible; }
.fx-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.fx-area { fill: url(#fx-area); stroke: none; }
.fx-line { fill: none; stroke: #f5c342; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(245, 195, 66, 0.4)); }
.fx-line.dim { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.6; filter: none; }
.fx-xrow { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin: 6px 0 0 40px; }
.fx-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0 40px; font-size: 11px; color: var(--muted); }
.fx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx-lg { width: 14px; height: 3px; border-radius: 2px; }
.fx-lg.amber { background: #f5c342; }
.fx-lg.dim { background: rgba(255, 255, 255, 0.28); }
.fx-sec.anim.in .fx-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 1.4s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
.fx-sec.anim.in .fx-area { clip-path: inset(0 100% 0 0); animation: fx-fill 1.4s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-fill { to { clip-path: inset(0 0 0 0); } }
.fx-top3 { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fx-top3-t { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fx-top3-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fx-rank { width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(198, 255, 0, 0.16); color: var(--accent); flex-shrink: 0; }
.fx-top3-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-top3-c { font-weight: 700; color: #34d399; flex-shrink: 0; }

/* ============ 3. Strojenie / AI Tuning ============ */
.fx-knobs { display: flex; flex-direction: column; gap: 18px; }
.fx-knob-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.fx-knob-top b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.fx-track { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.fx-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.fx-handle { position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); transform: translate(-50%, -50%); }
.fx-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; opacity: .7; }
.fx-at { margin-top: 20px; }
.fx-at-btn { width: 100%; padding: 11px; font-size: 13px; font-weight: 700; border-radius: 11px; border: 1px solid var(--border); background: transparent; color: var(--muted); box-shadow: none; cursor: default; opacity: 1; }
.fx-at-box { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(198, 255, 0, 0.28); border-radius: 12px; background: rgba(198, 255, 0, 0.04); }
.fx-at-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.fx-chip { font-size: 12px; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }
.fx-chip b { color: var(--accent); }
.fx-at-ok { font-size: 13px; font-weight: 700; color: #7bc62d; }

/* ============ 4. Analityka ============ */
.fx-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fx-kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); }
.fx-kpi.accent { border-color: rgba(198, 255, 0, 0.32); background: rgba(198, 255, 0, 0.05); }
.fx-kpi-l { font-size: 11px; color: var(--muted); }
.fx-kpi-v { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; margin-top: 5px; }
.fx-kpi-v small { font-size: 12px; color: var(--muted); font-weight: 700; }
.fx-kpi-s { font-size: 11px; color: var(--muted); margin-top: 3px; }
.fx-kpi.accent .fx-kpi-s { color: var(--accent); }
.fx-src { margin-bottom: 12px; }
.fx-src-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.fx-src-head span:first-child { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.fx-dot { width: 9px; height: 9px; border-radius: 50%; }
.fx-dot.search { background: var(--accent); }
.fx-dot.direct { background: #7a7a7a; }
.fx-src-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fx-src-bar span { display: block; height: 100%; border-radius: 999px; }
.fx-src-bar span.search { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.fx-src-bar span.direct { background: #6a6a6a; }
.fx-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-term { font-size: 12.5px; color: var(--text); background: rgba(198, 255, 0, 0.1); border: 1px solid rgba(198, 255, 0, 0.26); border-radius: 999px; padding: 5px 11px; display: inline-flex; align-items: center; gap: 7px; }
.fx-term b { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ============ 5. Zarządzanie / klucze ============ */
.fx-field { margin-bottom: 14px; }
.fx-field-l { font-size: 12.5px; color: var(--text); margin-bottom: 7px; }
.fx-field-l span { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.fx-field-c { display: flex; gap: 8px; align-items: stretch; }
.fx-input { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 12px; font-size: 12.5px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fx-eye { display: grid; place-items: center; width: 42px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--field); }
.fx-eye svg { width: 16px; height: 16px; }
.fx-mini { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 12.5px; font-weight: 700; border-radius: 10px; white-space: nowrap; }
.fx-mini.green { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.fx-mini.ghost { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.fx-mini.dark { color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.fx-mini.pick { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 9px 18px; }
.fx-manage-actions { display: flex; gap: 10px; margin-top: 16px; }
.fx-manage-actions .fx-mini { padding: 10px 16px; }

/* ============ 6. Płatności ============ */
.fx-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fx-step { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.fx-step .fx-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.fx-step.done .fx-num { background: rgba(52, 211, 153, 0.18); color: #34d399; }
.fx-step.done { color: var(--text); }
.fx-step.active .fx-num { background: var(--accent); color: var(--accent-ink); }
.fx-step.active { color: var(--text); }
.fx-step-line { flex: 1; height: 1px; background: var(--border); }
.fx-card { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.fx-brand { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #1a1f71; background: #fff; padding: 6px 10px; border-radius: 7px; }
.fx-card-txt { flex: 1; }
.fx-card-num { font-size: 14px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fx-card-exp { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fx-pill { font-size: 11px; font-weight: 700; color: #34d399; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 999px; padding: 4px 11px; }
.fx-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.fx-plan-name { font-size: 14px; font-weight: 700; }
.fx-plan-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.fx-plan-cta { display: flex; align-items: center; gap: 12px; }
.fx-plan-price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.fx-plan-price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.fx-secured { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11.5px; color: #7a7a7a; }
.fx-secured b { color: #9a9a9a; font-weight: 700; }

/* ============ 7. Bezpieczeństwo: flaga domeny ============ */
.fx-flag { border: 1px solid rgba(220, 70, 60, 0.55); border-radius: 12px; padding: 15px 16px; background: rgba(220, 70, 60, 0.07); }
.fx-flag-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fx-flag-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: #dc4640; }
.fx-flag-head b { font-size: 13.5px; }
.fx-flag-sub { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.fx-flag-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.fx-flag-tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 11px; }
.fx-flag-tbl td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text); }
.fx-flag-tbl td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ============ 8. Integracja · Synchronizacja (panel) ============ */
.fx-syncp-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 0 18px; }
.fx-syncp-rows { display: flex; flex-direction: column; }
.fx-syncp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 14.5px; }
.fx-syncp-row + .fx-syncp-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fx-syncp-row span { color: var(--muted); }
.fx-syncp-row b { color: var(--text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fx-syncp-row b.on { color: #34d399; }
.fx-syncp-btn { margin-top: 20px; padding: 12px 20px; font-size: 14px; font-weight: 700; border: none; border-radius: 11px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); cursor: default; }
.fx-syncp-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 16px; }

/* ---------- final CTA band ---------- */
.ft-cta { margin: 13vh 0 0; text-align: center; border: 1px solid var(--border); border-radius: 24px; padding: 46px 24px; background: radial-gradient(620px 320px at 50% -30%, rgba(198, 255, 0, 0.10), transparent 60%); }
.ft-cta h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 12px; }
.ft-cta p { color: var(--muted); font-size: 15px; margin: 0 auto 22px; max-width: 460px; }
.ft-cta .lp-actions { justify-content: center; }

/* ---------- on-scroll reveal (reuses kf-reveal from landing.css) ---------- */
.fx-sec.anim .fx-text, .fx-sec.anim .fx-demo { opacity: 0; }
.fx-sec.anim.in .fx-text { animation: kf-reveal .6s ease-out both; }
.fx-sec.anim.in .fx-demo { animation: kf-reveal .6s ease-out .1s both; }
.ft-cta.anim { opacity: 0; }
.ft-cta.anim.in { animation: kf-reveal .6s ease-out both; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fx-sec { grid-template-columns: 1fr; gap: 26px; margin-top: 10vh; }
  .fx-sec.rev .fx-text { order: 0; }
  .fx-text > p { max-width: none; }
  .ft-hero { margin-top: 26px; }
}
@media (max-width: 560px) {
  .fx-sec { margin-top: 8vh; }
  .fx-pad { padding: 15px; }
  .fx-stat, .fx-info { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 460px) {
  .fx-kpis { grid-template-columns: 1fr; }
  .fx-field-c { flex-wrap: wrap; }
  .fx-manage-actions { flex-wrap: wrap; }
  .fx-manage-actions .fx-mini { flex: 1; }
  /* keep the security "obca domena" table from overflowing narrow phones */
  .fx-flag-tbl { font-size: 11px; }
  .fx-flag-tbl th, .fx-flag-tbl td { padding: 6px 5px; }
  .fx-syncp-btn { width: 100%; text-align: center; }
  .fx-syncp-row { font-size: 13.5px; }
}
