/* =========================================================
   InspireWeb — Homepage v2 overrides
   - fix hero visual layout (no overlaps)
   - new liquid/glass button across site
   - remove icon-like adornments where needed
   ========================================================= */

/* ---------- liquid / glass button (primary) ---------- */
.btn,
.cta,
.magnetic-btn{
  --iw-b: rgba(255,255,255,.16);
  --iw-bg: rgba(0,0,0,.18);
  --iw-txt: rgba(255,255,255,.92);
  --iw-s1: rgba(229,46,113,.38);
  --iw-s2: rgba(129,34,169,.38);
  --iw-s3: rgba(155,93,229,.30);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--iw-b);
  background: var(--iw-bg);
  color: var(--iw-txt);
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;

  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);

  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow: hidden;
}

/* liquid layer */
.btn::before,
.cta::before,
.magnetic-btn::before{
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(40% 35% at 30% 40%, var(--iw-s1), transparent 62%),
    radial-gradient(45% 40% at 65% 55%, var(--iw-s2), transparent 64%),
    radial-gradient(35% 30% at 55% 30%, var(--iw-s3), transparent 62%);
  filter: blur(14px);
  opacity: .55;
  transform: translate3d(-18%, 10%, 0) rotate(8deg);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

/* glass shine */
.btn::after,
.cta::after,
.magnetic-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity: .18;
  pointer-events: none;
}

.btn > *,
.cta > *,
.magnetic-btn > *{ position: relative; z-index: 1; }

.btn:hover,
.cta:hover,
.magnetic-btn:hover{
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}

.btn:hover::before,
.cta:hover::before,
.magnetic-btn:hover::before{
  opacity: .88;
  transform: translate3d(10%, -8%, 0) rotate(-12deg);
}

.btn:active,
.cta:active,
.magnetic-btn:active{
  transform: translateY(0) scale(.98);
}

.btn:active::before,
.cta:active::before,
.magnetic-btn:active::before{
  opacity: .98;
  transform: translate3d(16%, -12%, 0) rotate(-18deg);
}

.btn:focus-visible,
.cta:focus-visible,
.magnetic-btn:focus-visible{
  outline: 2px solid rgba(229,46,113,.55);
  outline-offset: 3px;
}

/* ghost variant used in nav */
.btn--ghost{
  --iw-bg: rgba(255,255,255,.04);
  --iw-b: rgba(255,255,255,.14);
}

/* keep footer exactly like old (footer-legacy.css loaded after, but we harden anyway) */
/* ---------- HERO VISUAL FIX (no overlaps) ---------- */
.hero__visual .frame__body{
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-auto-rows: min-content;
  gap: 14px;
  align-content: start;
  min-height: 360px;
}

.hero__visual .metric,
.hero__visual .shot,
.hero__visual .chips{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
}

.hero__visual .metric{ animation: floatCard 5.8s ease-in-out infinite; }
.hero__visual .metric--a{ grid-column: 1; grid-row: 1; }
.hero__visual .metric--b{ grid-column: 1; grid-row: 2; }
.hero__visual .metric--c{ grid-column: 1; grid-row: 3; }

.hero__visual .shot{
  grid-column: 2;
  grid-row: 1 / span 3;
  height: 100%;
  min-height: 260px;
}

.hero__visual .chips{
  grid-column: 1 / -1;
  grid-row: 4;
  justify-content: flex-start;
  margin-top: 2px;
}

@media (max-width: 980px){
  .hero__visual .frame__body{ grid-template-columns: 1fr; }
  .hero__visual .shot{ grid-column: 1; grid-row: 4; }
  .hero__visual .chips{ grid-row: 5; }
}

/* ---------- Remove any emoji-like prefixes if present ---------- */
.hero__proof .mini::before{ content: none !important; }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .btn, .cta, .magnetic-btn{ transition: none !important; }
  .btn::before, .cta::before, .magnetic-btn::before{ transition: none !important; }
  .metric, .shot__spark, .floatcard{ animation: none !important; }
}


/* =========================================================
   HERO VISUAL v2 (grid inside frame)
   ========================================================= */
.frame--v2 .frame__body.frame__grid{
  display:grid;
  grid-template-columns: .95fr 1.65fr;
  gap: 14px;
  align-items: stretch;
}
.frame--v2 .frame__col{ min-width:0; display:flex; flex-direction:column; gap:14px; }
.frame--v2 .frame__bottom{
  grid-column: 1 / -1;
  display:flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-top: 4px;
}

.metric-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  overflow:hidden;
}
.metric-card .metric__k{ color: rgba(255,255,255,.72); font-size: 12px; font-weight: 650; }
.metric-card .metric__v{ margin-top: 6px; font-size: 20px; font-weight: 900; }
.metric-card .metric__b{
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.metric-card .metric__b > span{
  display:block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(229,46,113,.85), rgba(155,93,229,.85), rgba(129,34,169,.85));
  box-shadow: 0 10px 22px rgba(229,46,113,.18);
}

.graph-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  overflow: visible;
}
.graph-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; gap: 10px; }
.graph-title{ font-size: 12px; color: rgba(255,255,255,.78); font-weight: 700; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.graph-badge{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);
  flex: 0 0 auto;
}

.hero-line-graph{
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
}
.hero-line-graph svg{ width:100%; height:100%; display:block; }
.hero-line-graph .grid line{ stroke: rgba(255,255,255,.10); stroke-width: 1; }
.hero-line-graph .line{
  fill: none;
  stroke: url(#iwStroke);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 18px rgba(229,46,113,.25));
}
.hero-line-graph .fill{ fill: url(#iwFill); }
.hero-line-graph .dot{
  fill: rgba(255,255,255,.92);
  stroke: rgba(229,46,113,.55);
  stroke-width: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}
.hero-line-graph .point{
  opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: center;
}
.hero-line-graph .point.is-active{ opacity: 1; transform: scale(1.15); }
.hero-line-graph .active-dot{ opacity: 1; }
.hero-line-graph .vline{
  stroke: rgba(255,255,255,.16);
  stroke-width: 1;
  opacity: 1;
}

.hero-line-graph .tooltip{
  position:absolute;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,14,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 8px 10px;
  pointer-events: none;
  transform: translate3d(0,0,0);
}
.hero-line-graph .tooltip .t1{ font-size: 11px; color: rgba(255,255,255,.65); }
.hero-line-graph .tooltip .t2{ font-size: 13px; font-weight: 800; color: rgba(255,255,255,.92); }

.shot-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  min-height: 170px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
}
.shot-card .shot__spark{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(55% 45% at 55% 55%, rgba(229,46,113,.35), transparent 60%),
    radial-gradient(55% 45% at 35% 50%, rgba(129,34,169,.35), transparent 60%),
    radial-gradient(45% 40% at 65% 40%, rgba(155,93,229,.25), transparent 60%);
  filter: blur(18px);
  opacity: .95;
}
.shot-card .shot__rows{
  position:absolute;
  inset: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  justify-content: center;
}
.shot-card .shot__rows span{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.shot-card .shot__rows span:nth-child(1){ width: 82%; }
.shot-card .shot__rows span:nth-child(2){ width: 66%; }
.shot-card .shot__rows span:nth-child(3){ width: 74%; }
.shot-card .shot__rows span:nth-child(4){ width: 54%; }

.chips--inside{ margin: 0; }
.footcards{ display:flex; gap: 12px; align-items:stretch; flex-wrap: wrap; justify-content: flex-end; }
.footcard{
  min-width: 220px;
  flex: 1 1 220px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 12px 12px;
}
.footcard__t{ font-weight: 800; color: rgba(255,255,255,.92); font-size: 13px; }
.footcard__p{ color: rgba(255,255,255,.65); font-size: 12px; margin-top: 4px; }

@media (max-width: 980px){
  .frame--v2 .frame__body.frame__grid{ grid-template-columns: 1fr; }
  .frame--v2 .frame__bottom{ flex-direction: column; align-items: stretch; }
}

/* =========================================================
   PROCESS: remove OL padding + stronger active/hover
   ========================================================= */
.process-nav{ padding-left: 0; margin-left: 0; }
.process-nav-item{
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.process-nav-item:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}
.process-nav-item.active{
  border-color: rgba(229,46,113,.40);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* =========================================================
   CONTACT (Oddzwonimy...) — dark glass styling
   ========================================================= */
.section.contact{
  position: relative;
}
.section.contact::before{
  content:"";
  position:absolute;
  inset: -140px -10% -140px -10%;
  background:
    radial-gradient(55% 45% at 20% 20%, rgba(129,34,169,.28), transparent 60%),
    radial-gradient(55% 45% at 80% 40%, rgba(229,46,113,.22), transparent 60%),
    radial-gradient(55% 45% at 55% 80%, rgba(155,93,229,.18), transparent 60%);
  filter: blur(30px);
  opacity: .9;
  pointer-events:none;
}
.contact-shell{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.contact-meta{ margin-top: 18px; display:flex; flex-direction:column; gap: 12px; }
.contact-meta-item{ display:flex; gap: 10px; align-items:flex-start; color: rgba(255,255,255,.72); line-height:1.5; }
.status-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(229,46,113,.9);
  box-shadow: 0 0 0 6px rgba(229,46,113,.16);
  flex: 0 0 auto;
  margin-top: 3px;
}
.status-dot.subtle{
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}

.contact-card{
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 22px 60px rgba(0,0,0,.30);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.contact-card::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(55% 45% at 30% 30%, rgba(229,46,113,.18), transparent 60%),
    radial-gradient(55% 45% at 70% 55%, rgba(129,34,169,.18), transparent 60%);
  filter: blur(22px);
  opacity: .65;
  pointer-events:none;
}
.contact-card > *{ position:relative; z-index:1; }

.preference-switch{
  position: relative;
  display:flex;
  gap: 6px;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  overflow:hidden;
}
.pref-btn{
  position: relative;
  z-index: 2;
  flex:1 1 auto;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.pref-btn.active{ color: rgba(255,255,255,.95); }
.pref-indicator{
  position:absolute;
  inset: 6px;
  width: calc(50% - 3px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.preference-switch[data-mode="email"] .pref-indicator{ transform: translateX(calc(100% + 6px)); }

.contact-fields{ margin-top: 14px; display:grid; gap: 12px; }
.form-group label{ display:block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.78); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  padding: 12px 12px;
  outline: none;
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color: rgba(229,46,113,.45);
  background: rgba(255,255,255,.05);
}

.contact-channel-stage{
  display:grid;
  gap: 0;
}
.contact-field-phone,
.contact-field-email{
  transition: opacity .18s ease, transform .18s ease;
}
.contact-field-phone:not(.is-active),
.contact-field-email:not(.is-active){
  opacity: 0;
  transform: translateY(-6px);
  height: 0;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}
.contact-field-phone.is-active,
.contact-field-email.is-active{
  opacity: 1;
  transform: translateY(0);
}

.contact-box{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 14px;
}
.contact-box ul{ margin: 10px 0 0; padding-left: 18px; color: rgba(255,255,255,.72); }
.contact-legal{ margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.62); }

.contact-success{
  display:none;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.contact-success h3{ margin: 0 0 6px; color: rgba(255,255,255,.92); }
.contact-success p{ margin: 0; color: rgba(255,255,255,.72); }

@media (max-width: 980px){
  .contact-shell{ grid-template-columns: 1fr; }
}


/* ---------- HERO MOCK v4 (requested layout) ---------- */
.hero__visual .frame__body.frame__body--v4{
    padding: 14px;
display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: unset;
  grid-template-columns: none;
  grid-auto-rows: unset;
}

.hero__visual .frame__stats-row{
  display:flex;
  gap: 12px;
  align-items: stretch;
}

.hero__visual .frame__stats-row .metric-card{
  flex: 1 1 0;
  min-width: 0;
}

.hero__visual .graph-card.graph-card--full{
  width:100%;
}

.hero__visual .heroGraphMount{
  height: 140px;
  width: 100%;
  border-radius: 14px;
  overflow: visible;
}

/* Bottom rows (green area -> row + second row) */
.frame__bottom.frame__bottom--v4{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 6px;
}

.frame__bottom--v4 .frame__row{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.frame__bottom--v4 .chips.chips--inside{
  flex: 1 1 280px;
}

.frame__bottom--v4 .footcards{
  flex: 1 1 320px;
  justify-content: flex-end;
}

/* React/Motion graph styling */
.heroGraphMount .iw-graph{
  position:relative;
  width:100%;
  height:140px;
  border-radius:14px;
  overflow: visible;
}
.heroGraphMount .iw-graph svg{ width:100%; height:100%; display:block; }
.heroGraphMount .iw-grid line{ stroke: rgba(255,255,255,.10); stroke-width:1; }
.heroGraphMount .iw-fill{ fill: url(#iwFill); }
.heroGraphMount .iw-line{
  fill:none;
  stroke: url(#iwStroke);
  stroke-width:3.2;
  stroke-linecap:round;
  filter: drop-shadow(0 10px 22px rgba(229,46,113,.22));
}
.heroGraphMount .iw-vline{ stroke: rgba(255,255,255,.14); stroke-width:1; }
.heroGraphMount .iw-dot{
  fill: rgba(255,255,255,.92);
  stroke: rgba(229,46,113,.55);
  stroke-width:2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}
.heroGraphMount .iw-halo{ fill: rgba(229,46,113,.10); stroke: rgba(229,46,113,.22); stroke-width:1; }

.heroGraphMount .iw-tip{
  position:absolute;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,10,14,.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 8px 10px;
  pointer-events:none;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  transform: translateZ(0);
}
.heroGraphMount .iw-tip .t1{ font-size:11px; color: rgba(255,255,255,.65); }
.heroGraphMount .iw-tip .t2{ font-size:13px; font-weight:750; color: rgba(255,255,255,.92); }

@media (max-width: 980px){
  .hero__visual .frame__stats-row{ flex-direction: column; }
  .frame__bottom--v4 .frame__row{ align-items: stretch; }
}


/* =========================================================
   Patch v5: hero graph visible without React/Motion (file:// safe)
   - better spacing for bottom row (blue)
   - remove second bottom row (green) already removed in HTML
   ========================================================= */

.hero__visual .hero-line-graph{
  position:relative;
  width:100%;
  height:140px;
  border-radius:14px;
  overflow:hidden;
}

.hero__visual .hero-line-graph svg{ width:100%; height:100%; display:block; }
.hero__visual .hero-line-graph .grid line{ stroke: rgba(255,255,255,.10); stroke-width:1; }

.hero__visual .hero-line-graph .fill{ fill: url(#iwFill); }
.hero__visual .hero-line-graph .line{
  fill:none;
  stroke: url(#iwStroke);
  stroke-width:3.2;
  stroke-linecap:round;
  filter: drop-shadow(0 10px 22px rgba(229,46,113,.22));
}

.hero__visual .hero-line-graph .vline{
  stroke: rgba(255,255,255,.14);
  stroke-width: 1;
  opacity: 0;
  transition: opacity .15s ease;
}

.hero__visual .hero-line-graph.is-hover .vline{ opacity: 1; }

.hero__visual .hero-line-graph .dot{
  fill: rgba(255,255,255,.92);
  stroke: rgba(229,46,113,.55);
  stroke-width: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}

.hero__visual .hero-line-graph .tooltip{
  position:absolute;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,10,14,.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 8px 10px;
  pointer-events:none;
  opacity: 0;
  transform: translate3d(0,6px,0) scale(.98);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.hero__visual .hero-line-graph.is-hover .tooltip{
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

.hero__visual .hero-line-graph .tooltip .t1{font-size:11px; color: rgba(255,255,255,.65);}
.hero__visual .hero-line-graph .tooltip .t2{font-size:13px; font-weight:750; color: rgba(255,255,255,.92);}

/* Blue section spacing improvements */
.frame__bottom--v4 .frame__row{
  align-items: flex-start;
  row-gap: 12px;
}

.frame__bottom--v4 .chips.chips--inside{
  gap: 10px;
}

.frame__bottom--v4 .footcards{
  gap: 12px;
  justify-content: flex-end;
}

.frame__bottom--v4 .footcard{
  min-width: 240px;
}



/* --- HERO bottom row spacing polish (blue area) --- */
.frame__bottom--v4 .frame__row{
  align-items: center;
  gap: 16px;
}
.frame__bottom--v4 .chips.chips--inside{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.frame__bottom--v4 .chips.chips--inside span{
  padding: 8px 12px;
  font-size: 12px;
}
.frame__bottom--v4 .footcards{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:stretch;
}
.frame__bottom--v4 .footcard{
  flex: 1 1 220px;
  min-width: 220px;
}
@media (max-width: 980px){
  .frame__bottom--v4 .footcards{justify-content:stretch;}
  .frame__bottom--v4 .footcard{min-width: 100%;}
}



/* === Motion React Line Graph (v8) === */
.hero__visual .heroGraphMount{
  height: 150px;
  width: 100%;
  border-radius: 16px;
  overflow: visible;
}

.heroGraphMount .iw-graph-wrap{
  position: relative;
  width: 100%;
  height: 100%;
}

.heroGraphMount .iw-graph-wrap svg{
  width: 100%;
  height: 100%;
  display: block;
}

.heroGraphMount .iw-grid line{
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}

.heroGraphMount .iw-area{
  fill: url(#iwFill);
}

.heroGraphMount .iw-line{
  fill: none;
  stroke: url(#iwStroke);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 10px 22px rgba(229,46,113,.22));
}

.heroGraphMount .iw-vline{
  stroke: rgba(255,255,255,.14);
  stroke-width: 1;
}

.heroGraphMount .iw-dot{
  fill: rgba(255,255,255,.92);
  stroke: rgba(229,46,113,.55);
  stroke-width: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
  cursor: pointer;
}

.heroGraphMount .iw-halo{
  fill: rgba(229,46,113,.10);
  stroke: rgba(229,46,113,.22);
  stroke-width: 1;
  pointer-events: none;
}

.heroGraphMount .iw-tooltip{
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,14,.60);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  padding: 8px 10px;
  pointer-events: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.heroGraphMount .iw-tt-label{
  font-size: 11px;
  color: rgba(255,255,255,.65);
}
.heroGraphMount .iw-tt-value{
  font-size: 13px;
  font-weight: 750;
  color: rgba(255,255,255,.92);
}

/* slightly more breathing room around the "blue" row */
.mock-mini-cards{
  gap: 12px;
}
.mock-mini{
  padding: 14px;
}
/* Graph clipping wrapper so tooltip can overflow outside card */
.heroGraphMount .iw-clip{
  position: relative;
  width:100%;
  height:100%;
  border-radius:14px;
  overflow:hidden;
}
.heroGraphMount .iw-tooltip{ z-index: 50; }



@keyframes iwShimmer{
  0%{ transform: translateX(-30%); opacity:.05; }
  50%{ opacity:.12; }
  100%{ transform: translateX(30%); opacity:.05; }
}
.heroGraphMount .iw-tooltip::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(229,46,113,.22) 35%, rgba(255,255,255,0) 70%);
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.08;
  animation: iwShimmer 1.2s ease-in-out infinite;
}


/* --- IW: Motion-like progress bar entrance --- */
.metric-card .metric__b > span{
  animation: iwProgressIn 900ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.frame__stats-row .metric-card:nth-child(1) .metric__b > span{ animation-delay: 80ms; }
.frame__stats-row .metric-card:nth-child(2) .metric__b > span{ animation-delay: 140ms; }
.frame__stats-row .metric-card:nth-child(3) .metric__b > span{ animation-delay: 200ms; }

@keyframes iwProgressIn{
  0%{ transform: scaleX(0); filter: saturate(1.1); }
  60%{ transform: scaleX(1.05); }
  100%{ transform: scaleX(1); filter: saturate(1); }
}

@media (prefers-reduced-motion: reduce){
  .metric-card .metric__b > span{ animation: none; transform: scaleX(1); }
}


/* ===== Progress bars: Motion-like entrance (Leady/Szybkość/SEO) ===== */
@keyframes iwBarIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Triggered by JS adding .bars-animate to .frame__stats-row */
.frame__stats-row.bars-animate .metric-card .metric__b > span{
  animation: iwBarIn 900ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.frame__stats-row.bars-animate .metric-card:nth-child(1) .metric__b > span{ animation-delay: 80ms; }
.frame__stats-row.bars-animate .metric-card:nth-child(2) .metric__b > span{ animation-delay: 160ms; }
.frame__stats-row.bars-animate .metric-card:nth-child(3) .metric__b > span{ animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce){
  .metric-card .metric__b > span{ transform: scaleX(1) !important; animation: none !important; }
}


/* ===== IW FIX: Hero metric bars fill to target % (Leady/Szybkość/SEO) =====
   The HTML sets --barW on each bar (e.g. style="--barW:72%"),
   JS toggles .bars-animate on .frame__stats-row.
   This approach is resilient and avoids keyframe/transform conflicts.
*/
.frame__stats-row .metric-card .metric__b > span{
  width: 0%;
  transform: none !important;
  animation: none !important;
  transition: width 1100ms cubic-bezier(.22, 1, .36, 1);
}
.frame__stats-row.bars-animate .metric-card .metric__b > span{
  width: var(--barW, 70%);
}
@media (prefers-reduced-motion: reduce){
  .frame__stats-row .metric-card .metric__b > span{
    transition: none !important;
    width: var(--barW, 70%) !important;
  }
}
