/* Strona "Jak to działa" — samodzielny arkusz strony (wzorem dla-firm.css).
   Navbar to współdzielony ciemny fragment (stylowany w main.css). */

/* ══ HERO ══ */
.hero {
  background: linear-gradient(135deg, #0B1527 0%, #0F1E38 55%, #1A1035 100%);
  position: relative; overflow: hidden; padding: 90px 28px 100px;
}
.hero::before {
  content: ''; position: absolute; right: -200px; top: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,77,0,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: -100px; bottom: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 460px; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,77,0,.15); border: 1px solid rgba(255,77,0,.3); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
.hero-eyebrow svg { width: 13px; height: 13px; }
.hero-title { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 36px; max-width: 490px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.55); }
.trust-item svg { width: 14px; height: 14px; color: #059669; flex-shrink: 0; }

/* btn extras (reused across landing pages) */
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: 13px; font-weight: 900; }

/* ══ HERO VISUAL — mini "sygnał" zlecenia płynącego przez platformę ══ */
.hero-visual { position: relative; }
@keyframes float { 0%,100%{transform: translateY(0)} 50%{transform: translateY(-10px)} }
.sig-card { position: relative; z-index: 1; background: rgba(255,255,255,.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; animation: float 5.5s ease-in-out infinite; }
.sig-row { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 13px 15px; }
.sig-row.accent { border-color: rgba(5,150,105,.4); background: rgba(5,150,105,.1); }
.sig-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sig-icon svg { width: 18px; height: 18px; }
.sig-title { font-size: 13.5px; font-weight: 800; color: #fff; }
.sig-sub { font-size: 11.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.sig-connector { display: flex; align-items: center; gap: 8px; padding: 8px 0 8px 18px; margin-left: 18px; border-left: 2px dashed rgba(255,255,255,.16); font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); }
.sig-connector svg { width: 12px; height: 12px; color: var(--orange); flex-shrink: 0; }

/* Floating toasts (identycznie jak na innych stronach marketingowych) */
.toast { position: absolute; z-index: 2; background: rgba(255,255,255,.95); border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 12px; font-weight: 600; color: var(--dark); white-space: nowrap; }
.toast-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 16px; height: 16px; }
.toast-sub { font-size: 10px; font-weight: 500; color: var(--gray); margin-top: 1px; }
.toast-1 { top: -22px; right: -18px; animation: float 4.5s ease-in-out infinite .8s; }
.toast-2 { bottom: -20px; left: -22px; animation: float 5.5s ease-in-out infinite 1.4s; }

/* ══ SECTION SCAFFOLD ══ */
.section { padding: 80px 28px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--orange); display: block; }
.section-title { font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin-bottom: 16px; }
.section-sub   { font-size: 17px; color: var(--gray); line-height: 1.65; max-width: 580px; }
.section-head  { margin-bottom: 52px; }
.section-head-centered { text-align: center; }
.section-head-centered .section-eyebrow { justify-content: center; }
.section-head-centered .section-eyebrow::before { display: none; }
.section-head-centered .section-sub { margin: 0 auto; }

/* ══ PRZEPŁYW — oś czasu całego procesu ══ */
.flow-section { background: var(--surface); }
.flow { position: relative; max-width: 880px; margin: 0 auto; }
.flow-line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; background: repeating-linear-gradient(180deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px); z-index: 0; }
.flow-step { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: start; gap: 0 26px; margin-bottom: 34px; }
.flow-step:last-child { margin-bottom: 0; }
.flow-node { grid-column: 2; display: flex; justify-content: center; }
.flow-num { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: var(--gray-light); transition: border-color .3s, color .3s; }
.flow-card { grid-column: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.03); transition: box-shadow .25s, transform .25s, border-color .25s; }
.flow-step.flow-right .flow-card { grid-column: 3; }
.flow-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #D1D5DB; }
.flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.flow-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-icon svg { width: 17px; height: 17px; }
.flow-actor { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.flow-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.flow-desc  { font-size: 14px; color: var(--gray); line-height: 1.6; }
.flow-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--bg); color: var(--mid); border: 1px solid var(--border); }
.chip svg { width: 12px; height: 12px; }

/* Kolory wg aktora kroku */
.flow-step.actor-buyer  .flow-num  { border-color: var(--orange); color: var(--orange); }
.flow-step.actor-buyer  .flow-icon { background: var(--orange-pale); color: var(--orange); }
.flow-step.actor-buyer  .flow-actor{ color: var(--orange); }
.flow-step.actor-system .flow-num  { border-color: #2563EB; color: #2563EB; }
.flow-step.actor-system .flow-icon { background: #EFF6FF; color: #2563EB; }
.flow-step.actor-system .flow-actor{ color: #2563EB; }
.flow-step.actor-vendor .flow-num  { border-color: #9333EA; color: #9333EA; }
.flow-step.actor-vendor .flow-icon { background: #FDF4FF; color: #9333EA; }
.flow-step.actor-vendor .flow-actor{ color: #9333EA; }
.flow-step.actor-both   .flow-num  { border-color: #059669; color: #059669; }
.flow-step.actor-both   .flow-icon { background: #ECFDF5; color: #059669; }
.flow-step.actor-both   .flow-actor{ color: #059669; }

/* ══ WIADOMOŚCI I PRYWATNOŚĆ ══ */
.msg-section { background: var(--bg); }
.msg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.msg-features { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.sf-item { display: flex; gap: 14px; }
.sf-icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-icon-wrap svg { width: 22px; height: 22px; }
.sf-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.sf-desc  { font-size: 14px; color: var(--gray); line-height: 1.55; }

/* Podgląd czatu z możliwością ujawnienia numeru telefonu */
.chat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.chat-head { background: #0B1527; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head-avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg,#FF6B2B,#FF3200); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 13px; flex-shrink: 0; }
.chat-head-name { font-size: 14px; font-weight: 800; color: #fff; }
.chat-head-sub { font-size: 11px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.chat-head-sub svg { width: 11px; height: 11px; color: #34D399; flex-shrink: 0; }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.chat-msg { max-width: 84%; }
.chat-msg-out { align-self: flex-end; }
.chat-bubble { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; color: var(--dark); text-align: left; }
.chat-msg-out .chat-bubble { background: var(--orange); color: #fff; border-color: var(--orange); border-radius: 14px 14px 4px 14px; }
.chat-meta { display: block; font-size: 11px; color: var(--gray-light); margin-top: 5px; }
.chat-msg-out .chat-meta { text-align: right; }
.contact-mask { display: inline-flex; align-items: center; background: rgba(0,0,0,.06); padding: 2px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .04em; transition: background .25s, color .25s; }
.chat-msg-out .contact-mask { background: rgba(255,255,255,.22); }
.contact-mask.revealed { background: #ECFDF5; color: #059669; }
.chat-foot { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.reveal-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1.5px solid var(--border); border-radius: 11px; padding: 12px; font-size: 13.5px; font-weight: 700; color: var(--mid); cursor: pointer; font-family: inherit; transition: all .18s; }
.reveal-btn:hover { border-color: var(--orange); color: var(--orange); }
.reveal-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.reveal-btn .ico-eye-off { display: none; }
.reveal-btn.is-revealed { border-color: #059669; color: #059669; background: #ECFDF5; }
.reveal-btn.is-revealed .ico-eye { display: none; }
.reveal-btn.is-revealed .ico-eye-off { display: block; }
.chat-hint { font-size: 11.5px; color: var(--gray-light); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ══ FINAL CTA ══ */
.cta-section { background: linear-gradient(135deg,#0B1527 0%,#0F1E38 50%,#1A1035 100%); padding: 100px 28px; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 800px; height: 800px; background: radial-gradient(circle,rgba(255,77,0,.12) 0%,transparent 60%); pointer-events: none; }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: 46px; font-weight: 900; letter-spacing: -.05em; color: #fff; line-height: 1.1; margin-bottom: 18px; }
.cta-title em { font-style: normal; color: var(--orange); }
.cta-sub { font-size: 17px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 40px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-trust-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.cta-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.5); }
.cta-trust-item svg { width: 14px; height: 14px; color: #059669; flex-shrink: 0; }

/* ══ REVEAL on scroll ══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }

/* ══ RWD ══ */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .msg-grid { grid-template-columns: 1fr; gap: 40px; }
  .msg-grid > div:last-child { max-width: 440px; margin: 0 auto; width: 100%; }
  .section { padding: 60px 24px; }
}
@media (max-width: 767px) {
  .hero { padding: 60px 16px 72px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .cta-title { font-size: 30px; }
  .section-title { font-size: 28px; }
  .section { padding: 48px 16px; }

  /* Oś czasu: jedna kolumna, węzły po lewej */
  .flow-line { left: 27px; }
  .flow-step, .flow-step.flow-right { grid-template-columns: 56px 1fr; gap: 0 16px; }
  .flow-step .flow-node, .flow-step.flow-right .flow-node { grid-column: 1; }
  .flow-step .flow-card, .flow-step.flow-right .flow-card { grid-column: 2; }
  .flow-num { width: 44px; height: 44px; font-size: 16px; }
}
@media (max-width: 479px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; justify-content: center; }
}
