/* Acquisition flow — onboarding wizard, demo report preview, pricing */

.ir-acq-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(165deg, #f8f7fa 0%, #eef0ff 45%, #f8f7fa 100%);
}

.ir-acq-card {
  width: 100%;
  max-width: 34rem;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(47, 43, 61, 0.08);
  overflow: hidden;
}

.ir-acq-card--wide {
  max-width: 42rem;
}

.ir-acq-card-body {
  padding: 2rem 2rem 1.75rem;
}

@media (max-width: 575.98px) {
  .ir-acq-card-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

.ir-acq-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.ir-acq-brand img {
  height: 1.75rem;
  width: auto;
}

.ir-acq-brand span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.ir-acq-progress {
  margin-bottom: 1.75rem;
}

.ir-acq-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.12);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ir-acq-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--bs-primary);
  transition: width 0.35s ease;
}

.ir-acq-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.ir-acq-step-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.ir-acq-step-hint {
  font-size: 0.9375rem;
  color: var(--bs-secondary-color);
  margin: 0 0 1.5rem;
}

.ir-acq-options {
  display: grid;
  gap: 0.65rem;
}

.ir-acq-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ir-acq-option:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.08);
}

.ir-acq-option.is-selected {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.06);
  box-shadow: 0 0 0 1px var(--bs-primary);
}

.ir-acq-option-label {
  font-weight: 500;
  color: var(--bs-heading-color);
}

.ir-acq-option-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--bs-border-color);
  flex-shrink: 0;
  margin-left: 0.75rem;
  transition: all 0.15s ease;
}

.ir-acq-option.is-selected .ir-acq-option-check {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  box-shadow: inset 0 0 0 3px #fff;
}

.ir-acq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color);
}

.ir-acq-nav .btn {
  min-width: 7rem;
}

/* Demo report wizard panels */
.ir-acq-report-panel {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
  min-height: 14rem;
}

.ir-acq-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.ir-acq-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.ir-acq-kpi {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
  font-weight: 500;
}

.ir-acq-req-table {
  width: 100%;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.ir-acq-req-table th,
.ir-acq-req-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bs-border-color);
  text-align: left;
}

.ir-acq-req-table tr:last-child td {
  border-bottom: 0;
}

.ir-acq-status-ok { color: #28c76f; font-weight: 500; }
.ir-acq-status-warn { color: #ff9f43; font-weight: 500; }

.ir-acq-finish-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 199, 111, 0.12);
  color: #28c76f;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Pricing (shown after trial) */
.ir-acq-pricing-page {
  min-height: 100vh;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(165deg, #f8f7fa 0%, #eef0ff 50%, #f8f7fa 100%);
}

.ir-acq-pricing-header {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ir-acq-pricing-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ir-acq-pricing-grid {
  max-width: 56rem;
  margin: 0 auto;
}

.ir-pricing-card {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ir-pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 43, 61, 0.08);
}

.ir-pricing-card.is-featured {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 1px var(--bs-primary), 0 12px 32px rgba(var(--bs-primary-rgb), 0.12);
}

.ir-pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin: 0.75rem 0;
}

.ir-pricing-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.ir-pricing-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.ir-pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bs-primary);
  font-weight: 700;
}

/* Nav upgrade CTA + trial pill — global styles in iregg-theme.css */

.ir-acq-pricing-page .alert {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy aliases */
.ir-auth-wrap--wide { max-width: 42rem; margin-inline: auto; }

.ir-mock-readonly {
  pointer-events: none;
  user-select: none;
}

/* ── Onboarding completion reveal ── */
.ir-acq-page--leaving {
  pointer-events: none;
  animation: irAcqPageLeave 0.55s ease forwards;
}

@keyframes irAcqPageLeave {
  to {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(6px);
  }
}

.ir-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.ir-reveal-overlay.is-active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.ir-reveal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a1f3a 0%, #0d0f18 55%, #050508 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ir-reveal-overlay.is-active .ir-reveal-backdrop {
  opacity: 1;
}

.ir-reveal-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(105, 108, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(0, 207, 232, 0.2) 0%, transparent 40%);
  opacity: 0;
  animation: irRevealAurora 4s ease-in-out infinite alternate;
}

.ir-reveal-overlay.is-expand .ir-reveal-aurora {
  opacity: 1;
  transition: opacity 0.8s ease;
}

@keyframes irRevealAurora {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.08) rotate(3deg); }
}

.ir-reveal-ring {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 2px solid rgba(105, 108, 255, 0.5);
  opacity: 0;
  transform: scale(0.3);
}

.ir-reveal-ring--delay {
  border-color: rgba(0, 207, 232, 0.35);
  animation-delay: 0.15s;
}

.ir-reveal-overlay.is-expand .ir-reveal-ring {
  animation: irRevealRing 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ir-reveal-overlay.is-expand .ir-reveal-ring--delay {
  animation: irRevealRing 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes irRevealRing {
  0% {
    opacity: 0.9;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(4.5);
  }
}

.ir-reveal-core {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 28rem;
  opacity: 0;
  transform: scale(0.85) translateY(12px);
}

.ir-reveal-overlay.is-expand .ir-reveal-core {
  animation: irRevealCoreIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes irRevealCoreIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ir-reveal-logo-wrap {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(105, 108, 255, 0.25), rgba(0, 207, 232, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(105, 108, 255, 0.35);
  animation: irRevealLogoPulse 2s ease-in-out infinite;
}

@keyframes irRevealLogoPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(105, 108, 255, 0.35); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(105, 108, 255, 0.5); }
}

.ir-reveal-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.ir-reveal-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 207, 232, 0.95);
  margin: 0 0 0.5rem;
}

.ir-reveal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.ir-reveal-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

.ir-reveal-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9) 0%, transparent 55%);
  opacity: 0;
  pointer-events: none;
}

.ir-reveal-overlay.is-exit .ir-reveal-flash {
  animation: irRevealFlash 0.55s ease-out forwards;
}

@keyframes irRevealFlash {
  0% { opacity: 0; }
  25% { opacity: 0.85; }
  100% { opacity: 0; }
}

.ir-reveal-wipe {
  position: absolute;
  inset: 0;
  background: #f8f7fa;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

.ir-reveal-overlay.is-exit .ir-reveal-wipe {
  animation: irRevealWipe 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.08s forwards;
}

@keyframes irRevealWipe {
  to {
    clip-path: circle(150% at 50% 50%);
  }
}

/* Main app entrance after reveal */
html.ir-app-enter-pending .layout-wrapper {
  opacity: 0;
}

.layout-wrapper.ir-app-enter {
  animation: irAppEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.layout-wrapper.ir-app-enter.ir-app-enter--done {
  animation: none;
}

@keyframes irAppEnter {
  from {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ir-reveal-overlay.is-active { opacity: 1; }
  .ir-reveal-ring,
  .ir-reveal-aurora,
  .ir-reveal-logo-wrap { animation: none !important; }
  .layout-wrapper.ir-app-enter { animation: none; opacity: 1; }
}

