/* ===== FEATURES — side-by-side cards with animations ===== */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: visible;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card.reverse { flex-direction: row-reverse; }
.feature-num {
  position: absolute;
  top: -44px;
  right: 14px;
  font-size: 90px;
  font-weight: 900;
  color: #000;
  opacity: 0.07;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.feature-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: #000;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.feature-demo {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card-body { flex: 1; }
.feature-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--text-3); line-height: 1.55; }

/* --- F01 Auto-trim --- */
.trim-wrap { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.trim-border { position: absolute; top:0; left:0; right:0; bottom:0; border: 2.5px dashed rgba(0,0,0,0.2); border-radius: 10px; background: repeating-conic-gradient(#f0f0f0 0deg 90deg, #fafafa 90deg 180deg) 0 0/8px 8px; animation: f01-shrink 3s ease-in-out infinite; }
.trim-box { position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
@keyframes f01-shrink { 0%,25% { top:0;left:0;right:0;bottom:0;opacity:1; } 55% { top:12px;left:12px;right:12px;bottom:12px;opacity:0.5; } 65%,80% { top:16px;left:16px;right:16px;bottom:16px;opacity:0; } 100% { top:0;left:0;right:0;bottom:0;opacity:0; } }

/* --- F02 Auto-nesting --- */
.nest-wrap { position: relative; width: 76px; height: 50px; }
.nest-a { position: absolute; width: 34px; height: 24px; border-radius: 4px; background: linear-gradient(135deg,#ec4899,#be185d); box-shadow: 0 1px 4px rgba(236,72,153,0.3); animation: f02-a 4s ease-in-out infinite; }
.nest-b { position: absolute; border-radius: 4px; background: linear-gradient(135deg,#8b5cf6,#7c3aed); box-shadow: 0 1px 4px rgba(139,92,246,0.3); animation: f02-b 4s ease-in-out infinite; }
.nest-c { position: absolute; width: 20px; height: 20px; border-radius: 4px; background: linear-gradient(135deg,#eab308,#ca8a04); box-shadow: 0 1px 4px rgba(234,179,8,0.3); animation: f02-c 4s ease-in-out infinite; }
@keyframes f02-a { 0%,20% { top:10px; left:0; } 50%,80% { top:0; left:0; } 100% { top:10px; left:0; } }
@keyframes f02-b { 0%,20% { top:0; left:46px; width:18px; height:36px; } 50%,80% { top:0; left:35px; width:36px; height:18px; } 100% { top:0; left:46px; width:18px; height:36px; } }
@keyframes f02-c { 0%,20% { top:28px; left:36px; } 50%,80% { top:25px; left:0; } 100% { top:28px; left:36px; } }

/* --- F03 Web-based --- */
.device { position: relative; border: 2px solid #ddd; display: flex; flex-direction: column; overflow: hidden; animation: f03-morph 4s ease-in-out infinite; }
.device-bar { height: 10px; min-height: 10px; background: #f3f3f3; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 3px; padding-left: 4px; }
.device-dot { width: 3px; height: 3px; border-radius: 50%; background: #ccc; }
.device-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.device-check { font-size: 20px; font-weight: 900; color: #00D26A; }
@keyframes f03-morph { 0%,5% { width:60px; height:44px; border-radius:6px; opacity:0; } 15%,40% { width:60px; height:44px; border-radius:6px; opacity:1; } 55%,80% { width:34px; height:56px; border-radius:8px; opacity:1; } 95%,100% { width:34px; height:56px; border-radius:8px; opacity:0; } }

/* --- F04 DPI Guardian --- */
.dpi-row { display: flex; gap: 4px; }
.dpi-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dpi-box { width: 24px; height: 24px; border-radius: 4px; }
.dpi-lbl { font-size: 7px; font-weight: 800; padding: 1px 4px; border-radius: 3px; color: #fff; font-family: monospace; }
.dpi-r .dpi-box { background: linear-gradient(135deg,#dc2626,#b91c1c); } .dpi-r .dpi-lbl { background: #dc2626; }
.dpi-o .dpi-box { background: linear-gradient(135deg,#f97316,#ea580c); } .dpi-o .dpi-lbl { background: #f97316; }
.dpi-g .dpi-box { background: linear-gradient(135deg,#22c55e,#16a34a); } .dpi-g .dpi-lbl { background: #16a34a; }
.dpi-r { animation: f04-pop 3s ease-in-out 0s infinite; }
.dpi-o { animation: f04-pop 3s ease-in-out 0.4s infinite; }
.dpi-g { animation: f04-pop 3s ease-in-out 0.8s infinite; }
@keyframes f04-pop { 0%,25% { opacity:0.5; transform:scale(0.9); } 45%,60% { opacity:1; transform:scale(1.05); } 80%,100% { opacity:0.5; transform:scale(0.9); } }

/* --- F05 ID Labels --- */
.label-wrap { position: relative; width: 64px; height: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.label-strip { width: 64px; height: 12px; background: rgba(0,0,0,0.05); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 5.5px; font-weight: 700; color: #999; letter-spacing: 0.04em; font-family: monospace; }
.label-top { animation: f05-strip 3s ease-in-out infinite; }
.label-bot { animation: f05-strip 3s ease-in-out 0.3s infinite; }
.label-item { width: 50px; height: 34px; border-radius: 4px; background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 0 2px 6px rgba(34,197,94,0.25); }
@keyframes f05-strip { 0%,15% { opacity:0; transform:scaleX(0.4); } 30%,70% { opacity:1; transform:scaleX(1); } 85%,100% { opacity:0; transform:scaleX(0.4); } }

/* --- F06 PNG+TIFF Export --- */
.export-wrap { position: relative; width: 72px; height: 60px; }
.export-file { position: absolute; width: 30px; height: 38px; border-radius: 4px; border: 2px solid; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.export-file span { font-size: 7px; font-weight: 800; font-family: monospace; }
.export-png { border-color: #0A84FF; background: rgba(10,132,255,0.06); animation: f06-png 3.5s ease-in-out infinite; }
.export-png span { color: #0A84FF; }
.export-tiff { border-color: #8b5cf6; background: rgba(139,92,246,0.06); animation: f06-tiff 3.5s ease-in-out infinite; }
.export-tiff span { color: #8b5cf6; }
@keyframes f06-png { 0%,15% { top:10px; left:20px; opacity:0; } 30% { top:10px; left:20px; opacity:1; } 50%,80% { top:4px; left:2px; opacity:1; } 95%,100% { top:4px; left:2px; opacity:0; } }
@keyframes f06-tiff { 0%,20% { top:10px; left:20px; opacity:0; } 35% { top:10px; left:20px; opacity:1; } 55%,80% { top:14px; left:38px; opacity:1; } 95%,100% { top:14px; left:38px; opacity:0; } }

/* --- F07 Send to printer --- */
.send-wrap { position: relative; width: 70px; height: 50px; }
.send-item { position: absolute; top:8px; left:0; width: 34px; height: 34px; border-radius: 5px; background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 0 2px 6px rgba(34,197,94,0.25); }
.send-plane { position: absolute; top:16px; left:18px; font-size: 22px; color: #0A84FF; animation: f07-fly 3s ease-in-out infinite; }
@keyframes f07-fly { 0%,25% { left:18px; top:16px; opacity:0; transform:scale(0.6); } 35% { left:18px; top:16px; opacity:1; transform:scale(1); } 65%,70% { left:52px; top:4px; opacity:1; transform:scale(1); } 85%,100% { left:64px; top:-2px; opacity:0; transform:scale(0.6); } }

/* --- F08 Cost calculator --- */
.bar-wrap { display: flex; align-items: flex-end; gap: 5px; height: 60px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bar { width: 18px; border-radius: 3px 3px 0 0; }
.bar-lbl { font-size: 6px; font-weight: 700; color: #aaa; }
.bar-sell { background: #ddd; animation: f08-sell 3s ease-in-out infinite; }
.bar-cost { background: #f97316; animation: f08-cost 3s ease-in-out infinite; }
.bar-profit { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.3); animation: f08-profit 3s ease-in-out infinite; }
@keyframes f08-sell { 0%,15% { height:0; } 35%,80% { height:44px; } 95%,100% { height:0; } }
@keyframes f08-cost { 0%,20% { height:0; } 40%,80% { height:28px; } 95%,100% { height:0; } }
@keyframes f08-profit { 0%,25% { height:0; } 45%,80% { height:52px; } 95%,100% { height:0; } }

/* --- F09 Bulk resize --- */
.resize-wrap { display: flex; align-items: flex-end; gap: 5px; }
.resize-box { border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.resize-a { width: 24px; background: linear-gradient(135deg,#ec4899,#be185d); animation: f09-a 3.5s ease-in-out infinite; }
.resize-b { width: 20px; background: linear-gradient(135deg,#8b5cf6,#7c3aed); animation: f09-b 3.5s ease-in-out infinite; }
.resize-c { width: 28px; background: linear-gradient(135deg,#eab308,#ca8a04); animation: f09-c 3.5s ease-in-out infinite; }
@keyframes f09-a { 0%,20% { height:50px; } 50%,80% { height:36px; } 100% { height:50px; } }
@keyframes f09-b { 0%,20% { height:28px; } 50%,80% { height:36px; } 100% { height:28px; } }
@keyframes f09-c { 0%,20% { height:42px; } 50%,80% { height:36px; } 100% { height:42px; } }

/* --- F10 Auto-split --- */
.cut-wrap { position: relative; width: 50px; height: 74px; }
.cut-top { position: absolute; left:0; width:50px; height:22px; border-radius:4px 4px 0 0; background:linear-gradient(135deg,#22c55e,#16a34a); box-shadow:0 1px 4px rgba(34,197,94,0.25); animation: f10-top 4s ease-in-out infinite; }
.cut-bot { position: absolute; left:0; width:50px; height:22px; border-radius:0 0 4px 4px; background:linear-gradient(135deg,#16a34a,#15803d); box-shadow:0 1px 4px rgba(34,197,94,0.25); animation: f10-bot 4s ease-in-out infinite; }
.cut-lbl { position: absolute; width:100%; text-align:center; font-size:7px; font-weight:800; color:#fff; font-family:monospace; opacity:0; }
.cut-lbl-1 { top:7px; animation: f10-lbl 4s ease-in-out infinite; }
.cut-lbl-2 { top:7px; animation: f10-lbl2 4s ease-in-out infinite; }
@keyframes f10-top { 0%,25% { top:16px; border-radius:4px 4px 0 0; } 50%,80% { top:10px; border-radius:4px; } 100% { top:16px; border-radius:4px 4px 0 0; } }
@keyframes f10-bot { 0%,25% { top:38px; border-radius:0 0 4px 4px; } 50%,80% { top:44px; border-radius:4px; } 100% { top:38px; border-radius:0 0 4px 4px; } }
@keyframes f10-lbl { 0%,40% { opacity:0; } 55%,80% { opacity:1; } 95%,100% { opacity:0; } }
@keyframes f10-lbl2 { 0%,45% { opacity:0; } 58%,80% { opacity:1; } 95%,100% { opacity:0; } }

/* --- F11 Multi-language --- */
.lang-wrap { position: relative; width: 48px; height: 48px; }
.lang-item { position: absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:900; letter-spacing:-0.02em; border-radius:8px; color:#fff; opacity:0; }
.lang-pl { background:#000; animation: f11-cycle 7.5s ease-in-out 0s infinite both; }
.lang-nl { background:#f97316; animation: f11-cycle 7.5s ease-in-out 1.5s infinite both; }
.lang-en { background:#0A84FF; animation: f11-cycle 7.5s ease-in-out 3s infinite both; }
.lang-de { background:#dc2626; animation: f11-cycle 7.5s ease-in-out 4.5s infinite both; }
.lang-es { background:#22c55e; animation: f11-cycle 7.5s ease-in-out 6s infinite both; }
@keyframes f11-cycle { 0%,3% { opacity:0; transform:translateY(8px); } 8%,16% { opacity:1; transform:translateY(0); } 22%,100% { opacity:0; transform:translateY(-8px); } }

/* --- F12 Your branding --- */
.brand-tag { width:56px; height:56px; border-radius:10px; border:2px solid #e0e0e0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; position:relative; }
.brand-icon { width:20px; height:20px; border-radius:50%; background:#000; opacity:0; animation: f12-pop 3.5s ease-in-out infinite; }
.brand-name { font-size:7px; font-weight:900; color:#000; letter-spacing:0.06em; opacity:0; animation: f12-pop 3.5s ease-in-out 0.3s infinite; }
.brand-tag::after { content:'✓'; position:absolute; top:-6px; right:-6px; width:16px; height:16px; border-radius:50%; background:#22c55e; color:#fff; font-size:9px; font-weight:900; display:flex; align-items:center; justify-content:center; opacity:0; animation: f12-pop 3.5s ease-in-out 0.6s infinite; }
@keyframes f12-pop { 0%,20% { opacity:0; transform:scale(0.7); } 35%,70% { opacity:1; transform:scale(1); } 85%,100% { opacity:0; transform:scale(0.7); } }

/* --- F13 Free demo --- */
.lock-wrap { position: relative; width: 40px; height: 54px; }
.lock-body { position: absolute; bottom:0; left:0; width:40px; height:30px; border-radius:6px; background:#000; display:flex; align-items:center; justify-content:center; }
.lock-hole { width:8px; height:8px; border-radius:50%; background:#fff; }
.lock-hook { position:absolute; top:0; left:10px; width:20px; height:22px; border:3.5px solid #000; border-bottom:none; border-radius:10px 10px 0 0; transform-origin:right bottom; animation: f13-open 3s ease-in-out infinite; }
.lock-free { position:absolute; top:-2px; right:-14px; font-size:9px; font-weight:800; color:#22c55e; opacity:0; animation: f13-lbl 3s ease-in-out infinite; }
@keyframes f13-open { 0%,25% { transform:rotate(0deg); } 45%,75% { transform:rotate(-30deg); } 95%,100% { transform:rotate(0deg); } }
@keyframes f13-lbl { 0%,30% { opacity:0; } 50%,75% { opacity:1; } 90%,100% { opacity:0; } }

/* --- F14 Pricing --- */
.price-wrap { display:flex; flex-direction:column; align-items:center; gap:4px; }
.price-old { font-size:9px; font-weight:700; color:#ccc; text-decoration:line-through; opacity:0; animation: f14-old 4s ease-in-out infinite; }
.price-new { font-size:22px; font-weight:900; color:#000; letter-spacing:-0.03em; opacity:0; animation: f14-new 4s ease-in-out infinite; }
.price-sub { font-size:8px; font-weight:700; color:#22c55e; opacity:0; animation: f14-sub 4s ease-in-out infinite; }
@keyframes f14-old { 0%,10% { opacity:0; } 20%,35% { opacity:1; } 45%,100% { opacity:0.3; } }
@keyframes f14-new { 0%,30% { opacity:0; transform:scale(0.8); } 45%,80% { opacity:1; transform:scale(1); } 95%,100% { opacity:0; transform:scale(0.8); } }
@keyframes f14-sub { 0%,40% { opacity:0; } 55%,80% { opacity:1; } 95%,100% { opacity:0; } }

/* --- F15 AI Support --- */
.chat-wrap { position: relative; }
.chat-bubble { width:56px; height:38px; background:#000; border-radius:12px 12px 12px 4px; display:flex; align-items:center; justify-content:center; gap:4px; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.chat-dot { width:6px; height:6px; border-radius:50%; background:#fff; animation: f15-typing 1.4s ease-in-out infinite; }
.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }
.chat-label { position:absolute; bottom:-12px; left:4px; font-size:7px; font-weight:800; color:#888; letter-spacing:0.04em; }
@keyframes f15-typing { 0%,60%,100% { transform:translateY(0); opacity:0.4; } 30% { transform:translateY(-4px); opacity:1; } }

/* --- Responsive --- */
@media (max-width: 600px) {
  .feature-card { gap: 16px; padding: 20px; }
  .feature-demo { width: 76px; height: 76px; }
  .feature-num { font-size: 70px; top: -34px; }
}

/* ============================================================
   FEATURE CARD #16 — OPTIMA (Misja 3, 28.05.2026)
   Highlighted card. Green border, NEW tag, green number.
   All optima-* selectors scoped under .feature-card-optima to avoid
   colliding with studio.js's own .optima-bar (different component, same name).
   ============================================================ */

.feature-card-optima {
  border: 2px solid #00D26A;
}
.feature-card-optima .feature-num-optima {
  color: #00D26A;
}
.feature-tag-new {
  background: #00D26A;
  color: #000;
}

/* Demo: two bars with an arrow + saved label. ScaleY animates when
   .feature-card.visible triggers (IntersectionObserver in landing.js). */
.feature-card-optima .optima-demo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  justify-content: center;
}
.feature-card-optima .optima-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.feature-card-optima .optima-bar {
  width: 28px;
  height: 80px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* Reset any inheritance from studio's .optima-bar — those rules use
     flex-row layouts; here we want plain block-style bars. */
  flex-direction: column;
  padding: 0;
}
.feature-card-optima .optima-fill {
  width: 100%;
  border-radius: 6px;
  background: #6B7280;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s ease-out;
}
.feature-card-optima .optima-fill-green {
  background: #00D26A;
  transition-delay: 0.4s;
}
.feature-card.visible .optima-fill {
  transform: scaleY(1);
}
.feature-card-optima .optima-bar-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
}
.feature-card-optima .optima-label-green {
  color: #00D26A;
}
.feature-card-optima .optima-arrow {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-3);
  padding-bottom: 20px;
}
.feature-card-optima .optima-saved {
  font-size: 11px;
  font-weight: 800;
  color: #00D26A;
  text-align: center;
  line-height: 1.3;
  padding-bottom: 16px;
}

/* =====================================================================
   MISJA 8 — Hybrid feature section. Two variants share this base;
   .hx-sr = scroll-reveal (normal flow), .hx-sp = sticky-pipeline.
   Reuses live --vars + existing .feature-demo/.optima-* visuals.
   ===================================================================== */
.features-hx .container{position:relative;z-index:2}
.hx-track{max-width:1120px;margin:0 auto;padding:0 24px}
.hx-group{position:relative;padding:36px 0;opacity:0;transform:translateY(34px);transition:opacity .6s ease,transform .6s ease}
.hx-group.in{opacity:1;transform:none}
.hx-gnum{position:absolute;top:-6px;right:0;font-weight:900;font-size:clamp(90px,16vw,200px);line-height:.8;letter-spacing:-.04em;color:var(--text);opacity:.04;z-index:0;pointer-events:none;user-select:none}
.hx-gbody{position:relative;z-index:1}
.hx-glabel{color:var(--blue);font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:20px}
.hx-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hx-cards-hero{grid-template-columns:1fr}
.hx-cards-multi{grid-template-columns:repeat(3,1fr)}
.hx-card{position:relative;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px;overflow:hidden;transition:box-shadow .25s ease,border-color .25s ease,transform .25s ease}
.hx-card:hover{box-shadow:var(--shadow-lg);border-color:var(--border-2);transform:translateY(-4px)}
.hx-card .hx-num{position:absolute;top:14px;right:18px;font-weight:900;font-size:13px;color:var(--text-3);opacity:.5}
.hx-card .feature-demo{min-height:72px;display:flex;align-items:center;margin-bottom:14px}
.hx-card h3{font-weight:800;letter-spacing:-.02em;font-size:18px;margin-bottom:6px;color:var(--text)}
.hx-card p{color:var(--text-2);font-weight:400;font-size:14px;line-height:1.5}
/*hero no-clip*/.hx-card-hero{overflow:visible;display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(20px,4vw,48px);align-items:center;padding:clamp(26px,3vw,40px)}
.hx-card-hero .feature-demo{min-height:clamp(120px,18vh,180px);justify-content:center;align-items:center;padding:8px 18px;overflow:visible}
.hx-card-hero .feature-demo>*{transform:scale(1.3);transform-origin:center}
.hx-card-hero .optima-demo{justify-content:center}
.hx-card-hero h3{font-size:clamp(22px,2.6vw,30px);font-weight:900;letter-spacing:-.03em}
.hx-card-hero p{font-size:clamp(15px,1.4vw,17px);max-width:36ch}
.hx-card.feature-card-optima{border:2px solid var(--green)}

/* SR — scroll-reveal: normal flow, comfortable on mobile (solves PC/mobile split) */
.hx-sr .hx-group{border-top:1px solid var(--border)}
.hx-sr .hx-group:first-child{border-top:0}

/* SP — sticky-pipeline: groups stack as you scroll (bold, ~1 screen each) */
.hx-sp .hx-track{padding-bottom:10vh}
.hx-sp .hx-group{position:sticky;top:84px;min-height:80vh;display:flex;flex-direction:column;justify-content:center;background:var(--bg);border-top:1px solid var(--border);box-shadow:0 -16px 40px rgba(0,0,0,.04)}
.hx-sp .hx-group.active .hx-glabel{color:var(--blue)}
.hx-sp .hx-group:not(.active){opacity:.55}
.hx-sp .hx-group.in{opacity:1}
.hx-sp .hx-group:not(.active).in{opacity:.55;transition:opacity .4s ease}

@media(max-width:760px){
.hx-card-hero .feature-demo{justify-content:center;overflow:hidden}
.hx-card-hero .optima-demo{transform:scale(.8);transform-origin:center;margin:0 auto}
.hx-card-hero .feature-demo>*{transform:scale(1)}
.hx-card-hero .feature-demo{padding:6px 26px}
.hx-card-hero .optima-demo{gap:6px}
  .hx-cards,.hx-cards-multi{grid-template-columns:1fr}
  .hx-card-hero{grid-template-columns:1fr;gap:18px}
  .hx-card-hero .feature-demo{transform:scale(1.25)}
  .hx-sp .hx-group{position:static;min-height:0;padding:28px 0;opacity:1;box-shadow:none}
  .hx-sp .hx-group:not(.active){opacity:1}
  .hx-gnum{font-size:34vw}
}
@media(prefers-reduced-motion:reduce){
  .hx-group{opacity:1;transform:none}
  .hx-sp .hx-group{position:static;min-height:0;opacity:1}
}


/* ── Misja 8 FINAL mobile hero reset (last-wins; kills optima-demo overflow) ── */
@media(max-width:760px){
  .hx-card-hero{grid-template-columns:1fr !important;overflow:hidden}
  .hx-card-hero .feature-demo{width:100% !important;min-height:120px;justify-content:center !important;align-items:center;padding:4px 0 !important;overflow:hidden}
  .hx-card-hero .feature-demo>*{transform:none !important}
  .hx-card-hero .optima-demo{transform:scale(.92) !important;transform-origin:center;max-width:100%}
}
