/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Section */
.section { padding: 80px 0; }
.section-gray { background: #f8fafc; }
.section-dark { background: #0f172a; color: #e2e8f0; }
.section-dark .section-header p { color: #94a3b8; }
.section-blue { background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%); color: #fff; }
.section-blue .section-header p { color: #bfdbfe; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-header p { color: #64748b; font-size: 1.1rem; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #1e293b; }
.nav-logo { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #475569; transition: color 0.2s; }
.nav-links a:hover { color: #2563eb; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #334155; margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; border-radius: 8px; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent; text-align: center;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: #2563eb; border-color: #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 50%, #f8fafc 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; background: #dbeafe; color: #1e40af;
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #0f172a; }
.hero-sub { font-size: 1.2rem; color: #475569; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img {
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
}

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Problem cards */
.problem-card {
  background: #fff; border-radius: 12px; padding: 32px; text-align: center;
  border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.problem-icon { font-size: 2.5rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.problem-card p { color: #64748b; font-size: 0.95rem; }

/* Flow */
.flow {
  display: flex; align-items: flex-start; justify-content: center; gap: 12px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.flow-step {
  text-align: center; flex: 0 0 180px;
  background: #fff; border-radius: 12px; padding: 24px 16px;
  border: 1px solid #e2e8f0;
}
.flow-num {
  width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 12px;
}
.flow-label { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.flow-desc { font-size: 0.85rem; color: #64748b; }
.flow-arrow { font-size: 1.5rem; color: #94a3b8; margin-top: 32px; }
.flow-image { text-align: center; }
.flow-image img {
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0; max-width: 900px; margin: 0 auto;
}
.img-caption { margin-top: 12px; font-size: 0.9rem; color: #64748b; }

/* Feature cards */
.feature-card {
  background: #fff; border-radius: 12px; padding: 28px;
  border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 10px; background: #eff6ff; color: #2563eb;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-card ul { padding: 0; }
.feature-card li {
  font-size: 0.9rem; color: #475569; padding: 4px 0 4px 20px;
  position: relative;
}
.feature-card li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: #2563eb; opacity: 0.5;
}

/* Screenshot tabs */
.screenshot-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.tab {
  padding: 8px 20px; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; color: #475569; transition: all 0.2s;
}
.tab:hover { border-color: #2563eb; color: #2563eb; }
.tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.screenshot-panel { display: none; text-align: center; }
.screenshot-panel.active { display: block; }
.screenshot-panel img {
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0; max-width: 900px; margin: 0 auto;
}
.screenshot-panel p { margin-top: 16px; font-size: 0.95rem; color: #64748b; }

/* Hardware cards */
.hw-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 28px; text-align: center;
  transition: background 0.2s;
}
.hw-card:hover { background: rgba(255,255,255,0.1); }
.hw-icon { color: #60a5fa; margin-bottom: 16px; display: flex; justify-content: center; }
.hw-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #f1f5f9; }
.hw-card p { font-size: 0.9rem; color: #94a3b8; }

/* Role cards */
.role-card {
  background: #fff; border-radius: 12px; padding: 28px; text-align: center;
  border: 1px solid #e2e8f0; transition: transform 0.2s;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.role-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; font-weight: 800; color: #fff;
  margin: 0 auto 16px;
}
.role-supervisor { background: #2563eb; }
.role-cutting { background: #059669; }
.role-operator { background: #d97706; }
.role-admin { background: #7c3aed; }
.role-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.role-card p { font-size: 0.9rem; color: #64748b; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 800px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; margin-bottom: 4px; }
.stat-label { font-size: 0.95rem; color: #bfdbfe; font-weight: 500; }

/* Tech cards */
.tech-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border-radius: 12px; padding: 24px;
  border: 1px solid #e2e8f0;
}
.tech-icon { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.tech-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tech-card p { font-size: 0.9rem; color: #64748b; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px; color: #2563eb;
}
.contact-item div { color: #1e293b; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-item p { color: #475569; margin: 0; }
.contact-form {
  background: #fff; border-radius: 12px; padding: 32px;
  border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
  background: #f9fafb;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; }
.form-note { text-align: center; margin-top: 12px; font-size: 0.85rem; color: #94a3b8; }

/* Footer */
.footer { background: #0f172a; color: #94a3b8; padding: 48px 0 24px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: #f1f5f9; font-size: 1.1rem; margin-bottom: 4px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand + p { color: #64748b; margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.footer-links a { font-size: 0.9rem; color: #64748b; transition: color 0.2s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom { display: flex; justify-content: center; gap: 24px; font-size: 0.85rem; color: #475569; border-top: 1px solid #1e293b; padding-top: 24px; }

/* Video section */
.video-wrapper-yt {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: min(56.25%, 540px); /* 16:9 capped at 540px height */
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.video-wrapper-yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade { cursor: pointer; }
.video-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.85;
}
.video-facade:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }

/* Comparison Section */
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 900px; margin: 0 auto 56px;
}
.compare-card {
  border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0;
  background: #fff;
}
.compare-highlight {
  border: 2px solid #2563eb; box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}
.compare-header {
  padding: 18px 24px; text-align: center;
}
.compare-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.compare-them { background: #f1f5f9; color: #475569; }
.compare-us { background: #2563eb; color: #fff; }
.compare-list { padding: 20px 24px; }
.compare-list li {
  padding: 8px 0 8px 28px; position: relative; font-size: 0.9rem; color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.compare-list li:last-child { border-bottom: none; }
.compare-bad::before {
  content: '\2717'; position: absolute; left: 0; color: #ef4444; font-weight: 700; font-size: 1rem;
}
.compare-good::before {
  content: '\2713'; position: absolute; left: 0; color: #22c55e; font-weight: 700; font-size: 1rem;
}

/* Differentiators */
.differentiators { margin-top: 16px; }
.diff-title {
  text-align: center; font-size: 1.3rem; font-weight: 800; margin-bottom: 32px; color: #0f172a;
}
.diff-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px;
  text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.diff-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.diff-icon { font-size: 2rem; margin-bottom: 12px; }
.diff-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.diff-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-size: 0.95rem; color: #1e293b;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 600; color: #2563eb; flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 18px; color: #475569; font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* Gamification Section */
.gamification-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start;
}
.mock-leaderboard {
  background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); overflow: hidden;
}
.mock-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.mock-header-left { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.mock-trophy { font-size: 1.2rem; }
.mock-tabs { display: flex; gap: 4px; }
.mock-tab {
  padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: #64748b; background: #fff; border: 1px solid #e2e8f0;
}
.mock-tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Podium */
.mock-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  padding: 24px 20px 0; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.podium-item { text-align: center; flex: 1; max-width: 120px; }
.podium-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin: 0 auto 6px;
}
.podium-gold { background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.podium-silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); box-shadow: 0 4px 12px rgba(148,163,184,0.3); }
.podium-bronze { background: linear-gradient(135deg, #fed7aa, #ea580c); box-shadow: 0 4px 12px rgba(234,88,12,0.3); }
.podium-name { font-weight: 700; font-size: 0.85rem; color: #1e293b; }
.podium-stat { font-weight: 800; font-size: 1.05rem; color: #059669; }
.podium-pieces { font-size: 0.75rem; color: #64748b; margin-bottom: 8px; }
.podium-bar { border-radius: 6px 6px 0 0; width: 100%; }
.bar-1 { height: 80px; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.bar-2 { height: 60px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.bar-3 { height: 44px; background: linear-gradient(180deg, #fdba74, #ea580c); }

/* Leaderboard rows */
.mock-rows { padding: 0 20px; }
.mock-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9; font-size: 0.88rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-row-you { background: #eff6ff; border-radius: 8px; border: 1px solid #bfdbfe; }
.mock-rank { font-weight: 800; color: #475569; min-width: 28px; }
.mock-name { font-weight: 600; color: #1e293b; flex: 1; }
.mock-streak-badge { font-size: 0.8rem; padding: 2px 8px; background: #fff7ed; border-radius: 10px; border: 1px solid #fed7aa; }
.mock-row-you .mock-streak-badge { background: #fef3c7; border-color: #fbbf24; }
.mock-earning { font-weight: 700; color: #059669; text-align: right; }
.mock-earning small { color: #94a3b8; font-weight: 500; display: block; font-size: 0.75rem; }
.mock-footer {
  padding: 12px 20px; background: #eff6ff; text-align: center;
  font-size: 0.85rem; font-weight: 600; color: #2563eb;
}

/* Gamification info */
.gamification-info { display: flex; flex-direction: column; gap: 28px; }
.gami-block { background: #f8fafc; border-radius: 12px; padding: 24px; border: 1px solid #e2e8f0; }
.gami-block h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.gami-block p { font-size: 0.92rem; color: #475569; line-height: 1.6; margin-bottom: 16px; }

/* Streak tiers */
.streak-tiers { display: flex; gap: 8px; flex-wrap: wrap; }
.streak-tier {
  display: flex; align-items: center; gap: 8px; background: #fff;
  padding: 8px 14px; border-radius: 10px; border: 1px solid #e2e8f0;
  flex: 1; min-width: 110px;
}
.tier-badge { font-size: 1.5rem; }
.streak-tier strong { display: block; font-size: 0.85rem; color: #1e293b; }
.tier-days { font-size: 0.75rem; color: #64748b; }

/* Gamification list */
.gami-list { padding: 0; margin: 0; }
.gami-list li {
  font-size: 0.9rem; color: #475569; padding: 5px 0 5px 20px; position: relative;
}
.gami-list li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; opacity: 0.7;
}

/* Gamification results */
.gami-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gami-result-item {
  display: flex; align-items: flex-start; gap: 10px; background: #fff;
  padding: 16px; border-radius: 10px; border: 1px solid #e2e8f0;
}
.gami-result-icon { font-size: 1.3rem; flex-shrink: 0; }
.gami-result-item strong { display: block; font-size: 0.88rem; color: #1e293b; margin-bottom: 2px; }
.gami-result-item p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.4; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gamification-layout { grid-template-columns: 1fr; }
  .gami-result { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header { margin-bottom: 32px; }

  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 12px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 88px 0 48px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { margin: 0 auto 24px; font-size: 1.05rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-image { border-radius: 12px; overflow: hidden; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gamification-layout { grid-template-columns: 1fr; }
  .gami-result { grid-template-columns: 1fr 1fr; }
  .streak-tiers { gap: 6px; }
  .streak-tier { min-width: 90px; }
  .mock-header { flex-direction: column; gap: 8px; }
  .mock-podium { gap: 8px; padding: 16px 12px 0; }

  .video-wrapper-yt { border-radius: 8px; padding-bottom: 56.25%; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

  .flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 0; }
  .flow-step { flex: none; width: 100%; max-width: 300px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 1.8rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .comparison-grid { grid-template-columns: 1fr; }

  /* BA slider mobile */
  .ba-wrapper { border-radius: 12px; overflow: hidden; }
  .ba-slider { height: 460px; border-radius: 12px; }
  .ba-hint { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.45rem; }
  .gami-result { grid-template-columns: 1fr; }
}

/* ── HERO CTA SUB ── */
.hero-cta-sub {
  margin-top: 12px; font-size: 0.82rem; color: #64748b;
}

/* ── TESTIMONIALS ── */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.testimonial-card-featured {
  border-color: #2563eb; border-width: 2px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  position: relative;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem; color: #334155; line-height: 1.7;
  flex: 1; font-style: italic;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.testimonial-meta { font-size: 0.75rem; color: #64748b; margin-top: 2px; }
.testimonial-result {
  display: inline-block; background: #dcfce7; color: #166534;
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; align-self: flex-start;
}
@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ── GUARANTEE STRIP ── */
.guarantee-strip {
  background: #0f172a; padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guarantee-items {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.guarantee-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.guarantee-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.guarantee-title { font-size: 0.88rem; font-weight: 700; color: #f1f5f9; margin-bottom: 3px; }
.guarantee-sub { font-size: 0.75rem; color: #64748b; line-height: 1.4; }
@media (max-width: 768px) {
  .guarantee-items { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .guarantee-items { grid-template-columns: 1fr; }
}

/* ── PRICING CTA NOTE ── */
.pricing-cta-note {
  text-align: center; font-size: 0.8rem; color: #94a3b8; margin-top: 12px;
}

/* ── PRICING TEASER ── */
.pricing-teaser {
  display: flex; align-items: stretch; gap: 0;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
  overflow: hidden; margin-bottom: 32px;
}
.pt-card {
  flex: 1; padding: 28px 24px; text-align: center;
  border-right: 1px solid #e2e8f0;
}
.pt-card:last-child { border-right: none; }
.pt-card-highlight { background: #eff6ff; }
.pt-plus {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #cbd5e1; padding: 0 4px; flex-shrink: 0;
}
.pt-label { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pt-optional { font-weight: 400; color: #94a3b8; text-transform: none; }
.pt-amount { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 6px; }
.pt-amount span { font-size: 0.85rem; font-weight: 500; color: #64748b; }
.pt-desc { font-size: 0.78rem; color: #64748b; line-height: 1.4; }

/* Machine tiers on page */
.pricing-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.pricing-tier {
  border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px 16px;
  text-align: center; background: #fff;
}
.pricing-tier-highlight {
  border-color: #2563eb; border-width: 2px;
  background: #eff6ff; box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}
.tier-machines { font-size: 0.95rem; font-weight: 700; color: #334155; margin-bottom: 10px; }
.tier-monthly { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 6px; }
.tier-monthly span { font-size: 0.8rem; font-weight: 500; color: #64748b; }
.tier-year { font-size: 0.75rem; color: #64748b; margin-bottom: 10px; }
.tier-year strong { color: #0f172a; }
.tier-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: #2563eb; background: #eff6ff; padding: 3px 10px; border-radius: 20px; }
.pricing-tier-highlight .tier-tag { background: #2563eb; color: #fff; }

.pricing-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ── PRICING MODAL ── */
.pm-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
  animation: pmFadeIn 0.2s ease;
}
.pm-overlay.pm-open { display: flex; }
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pm-box {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 860px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  animation: pmSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pmSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 32px 20px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.pm-title { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.pm-sub { font-size: 0.88rem; color: #64748b; }
.pm-close {
  background: #f1f5f9; border: none; border-radius: 50%; width: 36px; height: 36px;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s; color: #475569;
}
.pm-close:hover { background: #e2e8f0; }

.pm-body { overflow-y: auto; padding: 28px 32px 32px; }

.pm-section-title {
  font-size: 0.72rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.pm-section-sub { font-size: 0.85rem; color: #64748b; margin-bottom: 16px; margin-top: -6px; }

/* One-time */
.pm-onetime { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pm-onetime-card {
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px;
  background: #f8fafc;
}
.pm-ot-highlight { border-color: #2563eb; background: #eff6ff; }
.pm-ot-label { font-size: 0.72rem; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pm-ot-opt { font-weight: 400; color: #94a3b8; }
.pm-ot-amount { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 12px; }
.pm-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pm-list li { font-size: 0.82rem; color: #334155; }

/* Tiers */
.pm-tiers { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.pm-tier {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 12px;
  text-align: center; background: #fff; position: relative;
}
.pm-tier-highlight { border-color: #2563eb; border-width: 2px; background: #eff6ff; }
.pm-tier-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #2563eb; color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.pm-tier-name { font-size: 0.7rem; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.pm-tier-machines { font-size: 0.85rem; font-weight: 700; color: #334155; margin-bottom: 8px; }
.pm-tier-price { font-size: 1.5rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 4px; }
.pm-tier-price span { font-size: 0.72rem; font-weight: 500; color: #64748b; }
.pm-tier-year { font-size: 0.7rem; color: #64748b; }
.pm-tier-year strong { color: #0f172a; }

/* Compare table */
.pm-compare { overflow-x: auto; margin-top: 4px; }
.pm-compare-table { min-width: 660px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.pm-ct-row { display: grid; grid-template-columns: 1.8fr 0.9fr 0.9fr 0.7fr 0.8fr 0.85fr; }
.pm-ct-row > div { padding: 10px 12px; font-size: 0.8rem; color: #475569; border-bottom: 1px solid #f1f5f9; }
.pm-ct-row > div small { display: block; font-size: 0.68rem; color: #94a3b8; }
.pm-ct-head > div { font-size: 0.68rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; background: #f8fafc; }
.pm-ct-us > div { background: #eff6ff; color: #1e40af; font-weight: 600; border-bottom: 2px solid #bfdbfe; }
.pm-yes { color: #059669 !important; }
.pm-no  { color: #dc2626; }

/* Savings */
.pm-savings { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 24px; }
.pm-saving { text-align: center; padding: 16px 10px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }
.pm-saving-num { font-size: 1.2rem; font-weight: 800; color: #2563eb; margin-bottom: 4px; }
.pm-saving-label { font-size: 0.72rem; color: #64748b; line-height: 1.4; }

.pm-footer-cta { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid #f1f5f9; }
.pm-footer-cta p { margin-top: 10px; font-size: 0.82rem; color: #94a3b8; }

@media (max-width: 900px) {
  .pricing-tiers { grid-template-columns: repeat(2, 1fr); }
  .pricing-teaser { flex-direction: column; }
  .pt-plus { padding: 4px 0; transform: rotate(90deg); }
  .pt-card { border-right: none; border-bottom: 1px solid #e2e8f0; }
  .pt-card:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .pricing-tiers { grid-template-columns: 1fr 1fr; }
  .pm-box { border-radius: 16px; }
  .pm-header { padding: 20px 20px 16px; }
  .pm-body { padding: 20px; }
  .pm-onetime { grid-template-columns: 1fr; }
  .pm-tiers { grid-template-columns: 1fr 1fr; }
  .pm-savings { grid-template-columns: 1fr 1fr; }
  .pricing-cta-row { flex-direction: column; align-items: center; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── 1. LIVE FACTORY WIDGET (fixed bottom-left) ── */
.live-bar {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  width: 300px;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: simAppear 0.7s cubic-bezier(0.34,1.56,0.64,1) 1.2s both;
}
.live-bar-inner {
  display: flex; flex-direction: column; gap: 10px;
}
.live-bar-status {
  display: flex; align-items: center; gap: 8px;
}
.live-bar-label {
  font-size: 0.7rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.06em; flex: 1;
}
.live-bar-feed {
  display: flex; flex-direction: column; gap: 4px;
}
.sim-feed-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 8px;
  font-size: 0.74rem; color: #e2e8f0; line-height: 1.3;
  animation: feedSlideIn 0.35s ease both;
}
.live-bar-counters {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px;
}
.live-bar-counter {
  text-align: center;
}
.live-bar-counter .sim-counter-val {
  display: block; font-size: 0.88rem; font-weight: 700; color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}
.live-bar-unit {
  font-size: 0.6rem; color: #64748b; display: block; margin-top: 1px;
}
@media (max-width: 768px) {
  .live-bar { display: none; }
}
@keyframes simAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sim-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.sim-clock { font-size: 0.7rem; color: #64748b; font-variant-numeric: tabular-nums; flex-shrink: 0; }
@keyframes feedSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sim-feed-scan     { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); }
.sim-feed-complete { background: rgba(37,99,235,0.15);  border: 1px solid rgba(59,130,246,0.3); }
.sim-feed-alert    { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3); }
.sim-feed-resolve  { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); }
.sim-feed-milestone{ background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); }

/* ── 2. FLOW STEPS SEQUENTIAL ── */
.flow-step-anim { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s, box-shadow 0.4s; }
.flow-step-anim.flow-active { opacity: 1; transform: translateY(0); }
.flow-step-anim.flow-active .flow-num {
  background: #2563eb; color: #fff;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.2);
  animation: numPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes numPop {
  0%  { transform: scale(0.6); }
  70% { transform: scale(1.15); }
  100%{ transform: scale(1); }
}
.flow-arrow-anim { opacity: 0; transform: scaleX(0); transform-origin: left; transition: opacity 0.4s ease, transform 0.4s ease; color: #2563eb; font-size: 1.5rem; }
.flow-arrow-anim.flow-active { opacity: 1; transform: scaleX(1); }

/* ── 3. TOAST NOTIFICATIONS ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #0f172a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px 16px; min-width: 280px; max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3); pointer-events: auto;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}
.toast.toast-show { transform: translateX(0); opacity: 1; }
.toast.toast-hide { transform: translateX(120%); opacity: 0; transition-timing-function: ease-in; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 0.78rem; font-weight: 700; color: #f1f5f9; margin-bottom: 2px; }
.toast-msg   { font-size: 0.72rem; color: #94a3b8; line-height: 1.4; }
.toast-bar   { height: 2px; background: #2563eb; border-radius: 2px; margin-top: 8px; animation: toastProgress linear forwards; }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }
.toast-success .toast-bar { background: #10b981; }
.toast-warning .toast-bar { background: #f59e0b; }
.toast-info    .toast-bar { background: #3b82f6; }

/* ── 4. BEFORE / AFTER SLIDER ── */
.ba-wrapper { position: relative; }
.ba-slider {
  position: relative; overflow: hidden; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15); height: 380px;
  cursor: ew-resize; user-select: none;
}
.ba-panel { position: absolute; top: 0; height: 100%; overflow: hidden; }
.ba-before { left: 0; right: 0; background: #fff; }
.ba-after  { left: 0; right: 0; background: #f0f9ff; clip-path: inset(0 0 0 50%); transition: clip-path 0.05s; }
.ba-panel-label {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; z-index: 2;
}
.ba-label-before { left: 12px; background: #fee2e2; color: #dc2626; }
.ba-label-after  { right: 12px; background: #dcfce7; color: #16a34a; }
.ba-content { padding: 48px 20px 16px; height: 100%; overflow: hidden; }
.ba-excel-header { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 12px; padding: 8px; background: #f1f5f9; border-radius: 6px; }
.ba-excel-icon { font-size: 1.1rem; }
.ba-excel-badge { margin-left: auto; background: #fee2e2; color: #dc2626; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.ba-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.ba-table th { background: #f8fafc; padding: 6px 8px; text-align: left; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.ba-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.ba-cross { text-decoration: line-through; color: #94a3b8; }
.ba-handwrite { color: #dc2626; font-style: italic; margin-left: 4px; }
.ba-error { color: #dc2626; font-weight: 600; }
.ba-uncertain { color: #d97706; }
.ba-absent td { color: #94a3b8; font-style: italic; background: #fef9c3; }
.ba-footer-bad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 0.68rem; color: #94a3b8; }
.ba-erp-header { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: #1e293b; margin-bottom: 12px; padding: 8px 12px; background: #eff6ff; border-radius: 8px; border: 1px solid #bfdbfe; }
.ba-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: livePulse 1.5s ease-in-out infinite; flex-shrink: 0; }
.ba-erp-time { margin-left: auto; font-size: 0.7rem; color: #64748b; font-variant-numeric: tabular-nums; }
.ba-operator-list { display: flex; flex-direction: column; gap: 6px; }
.ba-op { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: #f8fafc; font-size: 0.78rem; }
.ba-op-active { background: #f0fdf4; }
.ba-op-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ba-op-dot.green  { background: #10b981; }
.ba-op-dot.orange { background: #f59e0b; }
.ba-op-name { flex: 1; font-weight: 600; color: #334155; }
.ba-op-pieces { color: #64748b; font-size: 0.72rem; }
.ba-op-pay { color: #10b981; font-weight: 700; margin-left: auto; }
.ba-footer-good { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 0.68rem; color: #64748b; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 40px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0; z-index: 10; pointer-events: none;
}
.ba-handle-line { flex: 1; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(37,99,235,0.4); }
.ba-handle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid #2563eb;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3); color: #2563eb; flex-shrink: 0;
}
.ba-hint { text-align: center; font-size: 0.82rem; color: #94a3b8; margin-top: 14px; }
.ba-hint-mobile { display: none; }
@media (max-width: 768px) {
  .ba-hint-desktop { display: none; }
  .ba-hint-mobile { display: inline; }
}

/* ── Section Header Reveal ── */
.reveal-section-header { overflow: hidden; }
.reveal-section-header h2 {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-section-header p {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease 0.15s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s;
}
.reveal-section-header.revealed h2,
.reveal-section-header.revealed p { opacity: 1; transform: translateY(0); }

/* ── BA Wrapper Reveal ── */
.ba-wrapper {
  opacity: 0; transform: translateY(30px) scale(0.98);
  transition: opacity 0.7s ease 0.25s, transform 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.25s;
}
.ba-wrapper.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ── 5. FEATURE CARDS STAGGERED REVEAL ── */
.reveal-card {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-card.revealed { opacity: 1; transform: translateY(0); }

/* ── BUNDLE JOURNEY TRACKER ── */
.bj-wrapper {
  margin-top: 56px; background: #0f172a; border-radius: 20px;
  padding: 28px 32px; position: relative; overflow: hidden;
}
.bj-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.bj-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.bj-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  animation: livePulse 1.5s ease-in-out infinite; flex-shrink: 0;
}
.bj-title { font-size: 0.85rem; font-weight: 600; color: #94a3b8; flex: 1; }
.bj-title span { color: #60a5fa; font-weight: 700; }
.bj-loop-badge {
  font-size: 0.65rem; color: #475569; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 20px;
}
.bj-track { position: relative; padding-bottom: 8px; }
.bj-stations {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0;
  position: relative; z-index: 1;
}
.bj-station {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 0 0 auto; width: 80px; transition: transform 0.3s ease;
}
.bj-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.bj-station.bj-active .bj-icon {
  background: rgba(37,99,235,0.2); border-color: #3b82f6;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.15), 0 0 20px rgba(59,130,246,0.3);
  transform: scale(1.15);
  animation: bjPulse 1s ease-in-out;
}
.bj-station.bj-done .bj-icon {
  background: rgba(16,185,129,0.15); border-color: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.2);
}
@keyframes bjPulse {
  0%   { transform: scale(1.15); box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  50%  { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
  100% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(59,130,246,0.15); }
}
.bj-station-name { font-size: 0.72rem; font-weight: 700; color: #64748b; text-align: center; transition: color 0.3s; }
.bj-station.bj-active .bj-station-name { color: #93c5fd; }
.bj-station.bj-done .bj-station-name { color: #34d399; }
.bj-station-sub { font-size: 0.62rem; color: #334155; text-align: center; line-height: 1.3; transition: color 0.3s; }
.bj-station.bj-active .bj-station-sub,
.bj-station.bj-done .bj-station-sub { color: #475569; }

.bj-connector {
  flex: 1; height: 2px; background: rgba(255,255,255,0.08);
  margin-top: 23px; position: relative; border-radius: 2px; overflow: hidden;
}
.bj-connector-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 2px; transition: width 0.6s ease;
}
.bj-connector-fill.filled { width: 100%; }

.bj-status {
  text-align: center; font-size: 0.78rem; color: #475569; margin-top: 16px;
  min-height: 20px; transition: color 0.3s;
}
.bj-status.active { color: #60a5fa; }
.bj-status.done { color: #34d399; }

@media (max-width: 768px) {
  .bj-wrapper { padding: 20px 16px; }
  .bj-station { width: 52px; }
  .bj-icon { width: 36px; height: 36px; font-size: 1rem; }
  .bj-station-sub { display: none; }
  .bj-station-name { font-size: 0.6rem; }
}

/* ── QR CODE GENERATOR ANIMATION ── */
.qrgen-wrapper {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
  align-items: center; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 32px 40px; margin-bottom: 56px;
}
.qrgen-title {
  font-size: 0.72rem; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.qrgen-fields { display: flex; flex-direction: column; gap: 8px; }
.qrgen-field {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #fff; border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.qrgen-field.qf-highlight {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.qrgen-key { font-size: 0.72rem; font-weight: 600; color: #94a3b8; width: 72px; flex-shrink: 0; }
.qrgen-val {
  font-size: 0.82rem; font-weight: 700; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.qrgen-val.qv-typed::after { content: '|'; animation: blink 0.7s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.qrgen-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0.3; transition: opacity 0.4s ease;
}
.qrgen-arrow.qga-active { opacity: 1; }
.qrgen-arrow-line {
  width: 2px; height: 32px; background: linear-gradient(180deg, #3b82f6, #10b981);
  border-radius: 2px; transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s ease;
}
.qrgen-arrow.qga-active .qrgen-arrow-line { transform: scaleY(1); }
.qrgen-arrow-head { font-size: 1.2rem; color: #10b981; }
.qrgen-arrow-label { font-size: 0.65rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.qrgen-right { display: flex; justify-content: center; }
.qrgen-label-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; text-align: center; width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  opacity: 0; transform: translateX(20px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.qrgen-label-card.qgl-visible { opacity: 1; transform: translateX(0) scale(1); }
.qrgen-label-header {
  font-size: 0.65rem; font-weight: 800; color: #2563eb;
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.qrgen-canvas { display: block; margin: 0 auto 8px; image-rendering: pixelated; }
.qrgen-label-text { font-size: 0.6rem; font-weight: 700; color: #0f172a; margin-bottom: 3px; word-break: break-all; }
.qrgen-label-sub { font-size: 0.58rem; color: #64748b; }

@media (max-width: 768px) {
  .qrgen-wrapper { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .qrgen-arrow { flex-direction: row; }
  .qrgen-arrow-line { width: 32px; height: 2px; transform: scaleX(0); transform-origin: left; }
  .qrgen-arrow.qga-active .qrgen-arrow-line { transform: scaleX(1); }
  .qrgen-right { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .factory-sim { max-width: 100%; margin-top: 20px; }
  .ba-slider { height: 420px; }
  .ba-content { padding-top: 44px; }
  .toast { min-width: 240px; max-width: 280px; }
  .toast-container { bottom: 16px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SCROLL BUNDLE JOURNEY
   ═══════════════════════════════════════════════════════════════════════════════ */
.sbj-section { background: #020817; position: relative; }
.sbj-outer { height: 580vh; position: relative; }
.sbj-sticky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  will-change: transform;
}
.sbj-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  height: calc(100vh - 64px);
  padding-top: 80px;
  padding-bottom: 32px;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

/* ── Timeline ── */
.sbj-timeline {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sbj-node {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.28;
  transition: opacity 0.35s ease;
}
.sbj-node.sbj-done, .sbj-node.sbj-active { opacity: 1; }
.sbj-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #1e293b;
  background: #0a0f1e;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.35s ease;
  position: relative;
}
.sbj-node.sbj-done .sbj-icon-wrap { border-color: #10b981; background: #022c22; }
.sbj-node.sbj-done .sbj-icon-wrap::after {
  content: '✓';
  position: absolute; inset: 0;
  background: #022c22; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #10b981; font-weight: 800;
}
.sbj-node.sbj-active .sbj-icon-wrap {
  border-color: #3b82f6; background: #0c1f45;
  box-shadow: 0 0 0 5px rgba(59,130,246,0.15), 0 0 18px rgba(59,130,246,0.3);
}
.sbj-node.sbj-active .sbj-icon-wrap span { animation: sbjIconBounce 1.8s ease-in-out infinite; }
@keyframes sbjIconBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.sbj-node-info { display: flex; flex-direction: column; min-width: 0; }
.sbj-nname { font-size: 0.78rem; font-weight: 700; color: #475569; transition: color 0.3s; white-space: nowrap; }
.sbj-node.sbj-done .sbj-nname { color: #10b981; }
.sbj-node.sbj-active .sbj-nname { color: #93c5fd; font-size: 0.82rem; }
.sbj-nsub { font-size: 0.65rem; color: #1e293b; transition: color 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbj-node.sbj-active .sbj-nsub { color: #334155; }

.sbj-vline { width: 2px; height: 20px; background: #0f172a; margin-left: 16px; border-radius: 2px; flex-shrink: 0; overflow: hidden; }
.sbj-vline-fill { width: 100%; height: 0%; background: linear-gradient(180deg, #3b82f6, #10b981); border-radius: 2px; transition: height 0.3s ease; }

/* ── Detail column ── */
.sbj-detail-col { display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.sbj-top-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sbj-chip {
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; border: 1px solid;
}
.sbj-chip-blue { background: rgba(59,130,246,0.1); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.sbj-chip-green { background: rgba(16,185,129,0.08); color: #34d399; border-color: rgba(16,185,129,0.2); }
.sbj-chip-green b { color: #6ee7b7; }

.sbj-main-heading { font-size: 1.75rem; font-weight: 800; color: #f1f5f9; line-height: 1.25; margin: 0; }

.sbj-card {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 16px;
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sbj-card-icon {
  font-size: 1.75rem; background: #1e293b; width: 50px; height: 50px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sbj-card-body { flex: 1; min-width: 0; }
.sbj-card-station { font-size: 0.95rem; font-weight: 700; color: #60a5fa; margin-bottom: 4px; }
.sbj-card-desc { font-size: 0.8rem; color: #94a3b8; line-height: 1.55; margin-bottom: 10px; }
.sbj-card-log {
  display: block; font-size: 0.66rem; color: #22c55e;
  background: #010c05; border: 1px solid #0a2410; padding: 6px 10px;
  border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Courier New', monospace; letter-spacing: 0.02em;
}

.sbj-foot { display: flex; align-items: center; gap: 12px; }
.sbj-progress-track { flex: 1; height: 5px; background: #1e293b; border-radius: 3px; overflow: hidden; }
.sbj-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #3b82f6, #10b981); border-radius: 3px; transition: width 0.25s ease; }
.sbj-step-label { font-size: 0.75rem; color: #334155; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbj-step-label span { color: #93c5fd; font-weight: 700; }

.sbj-hint { font-size: 0.76rem; color: #334155; margin: 0; animation: sbjHintFloat 2.2s ease-in-out infinite; }
@keyframes sbjHintFloat { 0%,100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(4px); opacity: 1; } }
.sbj-hint.sbj-done-hint { animation: none; color: #10b981; }

@media (max-width: 900px) {
  .sbj-outer { height: 440vh; }
  .sbj-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 72px;
    padding-bottom: 16px;
    align-items: start;
    overflow: hidden;
  }
  .sbj-main-heading { font-size: 1.25rem; }
  .sbj-timeline {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    height: auto;
  }
  .sbj-node { flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
  .sbj-node-info { display: none; }
  .sbj-icon-wrap { width: 26px; height: 26px; font-size: 0.72rem; }
  .sbj-vline { width: auto; height: 3px; margin-left: 0; flex: 1; min-width: 6px; }
  .sbj-vline-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #3b82f6, #10b981); transition: width 0.3s ease; }
  .sbj-card { flex-direction: column; gap: 10px; }
  .sbj-card-icon { width: 40px; height: 40px; font-size: 1.3rem; }
  .sbj-detail-col { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INTERACTIVE PRODUCT DEMO
   ═══════════════════════════════════════════════════════════════════════════════ */
.ipd-section.section-dark { padding: 80px 0; }
.ipd-wrapper { display: flex; align-items: center; gap: 64px; max-width: 900px; margin: 0 auto; }

/* Phone frame */
.ipd-phone-frame {
  flex-shrink: 0; width: 262px;
  background: #0f172a; border-radius: 42px;
  border: 5px solid #1e2d42;
  box-shadow: 0 28px 64px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 38px 8px 18px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.ipd-phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 14px; background: #1e2d42; border-radius: 8px;
}
.ipd-screen-area {
  width: 100%; height: 440px; border-radius: 22px; overflow: hidden;
  position: relative; background: #020817;
}
.ipd-home-bar { width: 80px; height: 4px; background: #1e2d42; border-radius: 2px; margin-top: 10px; }

/* Screens */
.ipd-screen {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.34,1.4,0.64,1);
  pointer-events: none;
}
.ipd-screen.ipd-screen-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ipd-screen.ipd-screen-exit { opacity: 0; transform: translateX(-28px); transition: opacity 0.22s ease, transform 0.22s ease; }

/* Screen 0 — QR Scan */
.ipd-scan-ui {
  width: 100%; height: 100%; background: #020817;
  padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ipd-scan-header-text { color: #64748b; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; align-self: flex-start; }
.ipd-viewfinder {
  flex: 1; width: 100%; background: #010c14; border-radius: 10px;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ipd-vf-corner { position: absolute; width: 18px; height: 18px; border-color: #3b82f6; border-style: solid; }
.ipd-vf-corner.tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-radius: 3px 0 0 0; }
.ipd-vf-corner.tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-radius: 0 3px 0 0; }
.ipd-vf-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-radius: 0 0 0 3px; }
.ipd-vf-corner.br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-radius: 0 0 3px 0; }
.ipd-qr-grid {
  width: 88px; height: 88px; border-radius: 4px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 11px 11px;
  background-position: 0 0, 0 5.5px, 5.5px -5.5px, -5.5px 0;
  position: relative; z-index: 1;
}
.ipd-scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.8) 30%, #3b82f6 50%, rgba(59,130,246,0.8) 70%, transparent 100%);
  animation: ipdScanSweep 2.2s ease-in-out infinite; z-index: 2;
}
@keyframes ipdScanSweep { 0% { top: 8%; opacity: 0; } 5% { opacity: 1; } 48% { top: 92%; opacity: 1; } 50% { top: 92%; opacity: 0; } 100% { top: 8%; opacity: 0; } }
.ipd-scan-status { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: #60a5fa; font-weight: 600; }
.ipd-blink-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; animation: ipdDotPulse 1s ease-in-out infinite; }
@keyframes ipdDotPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.65); } }
.ipd-scan-result-pill {
  font-size: 0.7rem; font-weight: 700; color: #10b981;
  background: rgba(16,185,129,0.1); padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(16,185,129,0.3);
  animation: ipdPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes ipdPop { from { transform: scale(0.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Screen 1 — Work Assigned */
.ipd-work-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0c1f45 0%, #0f172a 100%);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.ipd-work-topbar { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: #60a5fa; }
.ipd-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: ipdDotPulse 1s ease-in-out infinite; }
.ipd-work-card { flex: 1; background: #1e293b; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ipd-work-component { font-size: 1.05rem; font-weight: 800; color: #f1f5f9; letter-spacing: 0.03em; }
.ipd-work-machine-tag {
  font-size: 0.7rem; font-weight: 700; color: #93c5fd;
  background: rgba(59,130,246,0.12); padding: 3px 8px; border-radius: 4px;
  align-self: flex-start; border: 1px solid rgba(59,130,246,0.2);
}
.ipd-work-meta { display: flex; gap: 8px; font-size: 0.68rem; color: #475569; }
.ipd-work-meta span + span::before { content: '·'; margin-right: 8px; }
.ipd-work-operator { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 0.7rem; color: #94a3b8; }
.ipd-op-avatar { width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ipd-start-btn-ui {
  background: #10b981; color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 11px; border-radius: 10px; text-align: center; letter-spacing: 0.04em;
  cursor: pointer;
}

/* Screen 2 — Complete */
.ipd-complete-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #022c22 0%, #0f172a 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px;
}
.ipd-check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: #10b981; color: #fff; font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(16,185,129,0.15);
  animation: checkPop 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes checkPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ipd-complete-title { font-size: 1rem; font-weight: 700; color: #f1f5f9; text-align: center; }
.ipd-complete-stats { display: flex; gap: 10px; }
.ipd-cstat { text-align: center; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.18); border-radius: 10px; padding: 10px 12px; }
.ipd-cstat span { display: block; font-size: 0.95rem; font-weight: 800; color: #34d399; }
.ipd-cstat label { font-size: 0.6rem; color: #374151; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; display: block; }
.ipd-done-badge { background: rgba(16,185,129,0.12); color: #10b981; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(16,185,129,0.25); }

/* Screen 3 — Payment */
.ipd-pay-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0c1d4a 0%, #1e1b4b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px;
}
.ipd-pay-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: #818cf8; font-weight: 600; }
.ipd-pay-amount { font-size: 2.8rem; font-weight: 900; color: #f1f5f9; letter-spacing: -0.02em; }
.ipd-pay-breakdown { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 10px 14px; font-size: 0.68rem; color: #94a3b8; line-height: 1.9; width: 100%; border: 1px solid rgba(255,255,255,0.06); }
.ipd-pay-breakdown b { color: #a5b4fc; }
.ipd-pay-credited { font-size: 0.76rem; color: #10b981; font-weight: 600; }

/* Screen 4 — CTA */
.ipd-cta-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
}
.ipd-cta-logo-text { font-size: 0.68rem; font-weight: 800; color: rgba(255,255,255,0.6); letter-spacing: 0.14em; text-transform: uppercase; }
.ipd-cta-headline { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.3; }
.ipd-cta-points { font-size: 0.72rem; color: rgba(255,255,255,0.78); line-height: 2.1; text-align: left; align-self: flex-start; padding-left: 4px; }
.ipd-cta-action {
  display: block; background: #fff; color: #1e3a8a;
  font-size: 0.82rem; font-weight: 700; padding: 10px 24px; border-radius: 25px;
  margin-top: 4px; transition: transform 0.2s, box-shadow 0.2s;
}
.ipd-cta-action:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* Description panel */
.ipd-desc-panel { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.ipd-step-dots { display: flex; gap: 8px; align-items: center; }
.ipd-dot { width: 8px; height: 8px; border-radius: 50%; background: #334155; cursor: pointer; transition: all 0.25s ease; }
.ipd-dot.ipd-dot-active { width: 26px; border-radius: 4px; background: #3b82f6; }
.ipd-step-title { font-size: 1.45rem; font-weight: 800; color: #f1f5f9; margin: 0; transition: opacity 0.2s ease; }
.ipd-step-desc { color: #94a3b8; font-size: 0.92rem; line-height: 1.65; margin: 0; transition: opacity 0.2s ease; }
.ipd-nav-row { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.ipd-btn-prev, .ipd-btn-next {
  padding: 10px 22px; border-radius: 8px; font-family: inherit;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
}
.ipd-btn-next { background: #2563eb; color: #fff; border-color: #2563eb; }
.ipd-btn-next:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); }
.ipd-btn-prev { background: transparent; color: #64748b; border-color: #1e293b; }
.ipd-btn-prev:hover:not(:disabled) { border-color: #334155; color: #94a3b8; }
.ipd-btn-prev:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 768px) {
  .ipd-wrapper { flex-direction: column-reverse; gap: 28px; }
  .ipd-phone-frame { width: 228px; }
  .ipd-screen-area { height: 380px; }
  .ipd-pay-amount { font-size: 2.2rem; }
  .ipd-step-title { font-size: 1.2rem; }
  .ipd-desc-panel { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ROI CALCULATOR
   ═══════════════════════════════════════════════════════════════════════════════ */
.roi-section { background: #f0f7ff; }
.roi-eyebrow {
  display: inline-block; background: #dbeafe; color: #1e40af;
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.roi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Inputs ── */
.roi-inputs { display: flex; flex-direction: column; gap: 28px; }
.roi-field { display: flex; flex-direction: column; gap: 10px; }
.roi-field-header { display: flex; justify-content: space-between; align-items: center; }
.roi-field-header label { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.roi-val {
  font-size: 1.1rem; font-weight: 800; color: #2563eb;
  min-width: 48px; text-align: right;
}
.roi-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #2563eb var(--pct, 20%), #dbeafe var(--pct, 20%));
  outline: none; cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #2563eb; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35); cursor: pointer;
  transition: transform 0.15s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #2563eb; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35); cursor: pointer;
}
.roi-range-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #94a3b8; }

.roi-assumptions {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.6;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 16px; margin-top: 4px;
}
.roi-assumptions b { color: #64748b; }

/* ── Results ── */
.roi-results { display: flex; flex-direction: column; gap: 14px; }
.roi-result-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 14px; padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.roi-result-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.roi-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.roi-card-body { flex: 1; min-width: 0; }
.roi-card-label { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.roi-card-value { font-size: 1.5rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.roi-card-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }
.roi-highlight { color: #10b981; }

.roi-card-green { border-left: 4px solid #10b981; }
.roi-card-blue  { border-left: 4px solid #3b82f6; }
.roi-card-purple{ border-left: 4px solid #8b5cf6; }

.roi-result-total {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 16px; padding: 24px; text-align: center; color: #fff;
  margin-top: 4px;
}
.roi-total-label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.roi-total-value { font-size: 2.8rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 6px; }
.roi-total-sub { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.roi-total-sub span { color: rgba(255,255,255,0.9); font-weight: 600; }
.roi-cta-btn {
  background: #fff !important; color: #1e3a8a !important;
  border-color: #fff !important; font-size: 0.9rem !important;
}
.roi-cta-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important; }

@media (max-width: 768px) {
  .roi-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .roi-total-value { font-size: 2.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STICKY CTA BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #0f172a; border-top: 1px solid #1e293b;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1);
}
.sticky-cta.sticky-cta-visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sticky-cta-text {
  flex: 1; display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: #cbd5e1; min-width: 200px;
}
.sticky-cta-flag { font-size: 1rem; }
.sticky-cta-text b { color: #f1f5f9; }
.sticky-cta-btn {
  background: #10b981; color: #fff;
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.2s; white-space: nowrap;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer;
}
.sticky-cta-btn:hover { background: #059669; transform: translateY(-1px); }
.sticky-cta-close {
  background: none; border: none; color: #475569; font-size: 1.4rem;
  cursor: pointer; padding: 2px 6px; line-height: 1;
  transition: color 0.2s; flex-shrink: 0;
}
.sticky-cta-close:hover { color: #94a3b8; }
@media (max-width: 640px) {
  .sticky-cta-inner { padding: 10px 16px; gap: 10px; }
  .sticky-cta-text { font-size: 0.78rem; }
  .sticky-cta-btn { font-size: 0.78rem; padding: 8px 16px; }
}

/* ═══════════════════════════════════════
   FACTORY HEALTH QUIZ
═══════════════════════════════════════ */
.quiz-section {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
}
.quiz-wrapper {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Entry */
.quiz-entry-badge {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  color: #60a5fa;
  border: 1px solid rgba(37,99,235,0.35);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.quiz-entry h2 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}
.quiz-entry > p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.quiz-entry-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}
.quiz-entry-stat {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quiz-entry-stat span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}

/* Questions panel */
.quiz-questions {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 32px 32px;
  text-align: left;
}
.quiz-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}
.quiz-step-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  text-align: right;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quiz-slide {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.quiz-slide.quiz-slide-in {
  opacity: 1;
  transform: translateX(0);
}
.quiz-q {
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 20px;
  line-height: 1.45;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: #cbd5e1;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.quiz-option:hover:not(:disabled) {
  background: rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.45);
  color: #fff;
  transform: translateX(4px);
}
.quiz-option.selected {
  background: rgba(37,99,235,0.25);
  border-color: #3b82f6;
  color: #fff;
}
.quiz-option:disabled { cursor: default; }
.quiz-option.selected:disabled { opacity: 1; }

/* Result */
.quiz-result { padding: 8px 0 4px; }
.quiz-score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}
.quiz-score-circle svg { display: block; }
.quiz-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.quiz-score-sub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 22%);
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.quiz-tier-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.quiz-tier-badge.tier-red    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.quiz-tier-badge.tier-yellow { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.quiz-tier-badge.tier-green  { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
#quizResultHeadline {
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.35;
}
#quizResultSub {
  font-size: 14px;
  color: #94a3b8;
  max-width: 460px;
  margin: 0 auto 22px;
  line-height: 1.65;
}
.quiz-loss-card {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 12px;
  padding: 14px 28px;
  margin-bottom: 18px;
  display: inline-block;
}
.quiz-loss-label {
  font-size: 11px;
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.quiz-loss-amount {
  font-size: 38px;
  font-weight: 800;
  color: #ef4444;
  line-height: 1.1;
}
.quiz-pain-points {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  text-align: left;
}
.quiz-pain-title {
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.quiz-pain-item {
  font-size: 13.5px;
  color: #e2e8f0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.4;
}
.quiz-pain-item:last-child { border-bottom: none; padding-bottom: 0; }
.quiz-wa-btn { display: block; margin-bottom: 14px; }
.quiz-retake {
  background: none;
  border: none;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.quiz-retake:hover { color: #94a3b8; }

@media (max-width: 640px) {
  .quiz-questions { padding: 20px 18px 24px; }
  .quiz-entry-stats { gap: 20px; }
  .quiz-entry-stat span { font-size: 18px; }
  .quiz-loss-amount { font-size: 30px; }
}
