/**
 * DataIntellit — Utility & Component Supplements
 * Adds the Bootstrap-style spacing / display / text-color utilities referenced by the
 * static markup but not declared in the core design system, plus the small interactive
 * components (OS badge, FAQ accordion, ROI calculator, pricing badge, reveal helpers).
 * Loaded after style.css so it composes cleanly on top of the token palette.
 */

/* ===== Spacing Utilities (0.25rem / 4px scale) ===== */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 0.75rem !important; }
.m-4 { margin: 1rem !important; }
.m-5 { margin: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }

/* Padding Utilities */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.p-mono { font-family: var(--font-mono); }

/* ===== Display Utilities ===== */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-md-inline-flex { display: none !important; }
.d-md-block { display: none !important; }
@media (min-width: 768px) {
  .d-md-inline-flex { display: inline-flex !important; }
  .d-md-block { display: block !important; }
}

/* ===== Width / Height ===== */
.w-100 { width: 100% !important; }
.w-50 { width: 50% !important; }
.h-100 { height: 100% !important; }

/* ===== Text Colors ===== */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-muted { color: #6b7280 !important; }
.text-success { color: #10b981 !important; }
.text-info { color: #06b6d4 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-light { color: #f1f5f9 !important; }

/* ===== OS Detection Badge ===== */
.os-detected-badge .bi { font-size: 0.9rem; }

/* ===== Active OS download highlight ===== */
.active-os { position: relative; }
.active-os::after {
  content: "Recommended";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  border-radius: 9999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ===== FAQ Accordion ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.faq-question::after {
  content: "\f07b"; /* Bootstrap-icons chevron-down */
  font-family: "Bootstrap-icons";
  margin-left: auto;
  transition: transform var(--transition-fast);
  color: var(--text-tertiary);
}
.faq-item.open .faq-question::after { transform: rotate(-180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer p {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
}

/* ===== ROI Calculator ===== */
.roi-calculator {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border-color: var(--border-accent);
}
.roi-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.roi-stat-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roi-stat-val {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.roi-stat-val.roi-total { color: var(--rf-emerald-light); }

/* ===== Pricing Discount Badge ===== */
.pricing-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--accent-amber);
  border-radius: 9999px;
  padding: 4px 10px;
}

/* ===== Scroll-reveal helper ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus ring for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-indigo);
  outline-offset: 2px;
}
