/* ============================================================
   invoice-ocr.css
   Dedicated custom styles for Pixl Invoice OCR Page
   ============================================================ */

/* --- Custom Border Grid (reused for Processing Flow) --- */
.vp-border-grid {
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}
.vp-border-cell {
  position: relative;
  padding: 40px 32px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  background: #ffffff;
  transition: background 0.3s ease;
}
.vp-border-cell:hover {
  background: rgba(246, 99, 32, 0.02);
}

/* --- Feature Specs & Icons --- */
.vp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(246, 99, 32, 0.06);
  border: 1px solid rgba(246, 99, 32, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondaryMastercolor);
  transition: all 0.3s ease;
}
.vp-border-cell:hover .vp-feature-icon {
  background: rgba(246, 99, 32, 0.12);
  border-color: rgba(246, 99, 32, 0.35);
  transform: scale(1.05);
}

/* --- Timeline Specs --- */
.vp-timeline-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondaryMastercolorLite);
  line-height: 1;
  display: block;
}
.vp-timeline-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--primaryTextColor);
}

/* --- Custom B2B Cards (.vp-uc-card) --- */
.vp-uc-card {
  background: #ffffff;
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.vp-uc-card:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 12px 30px rgba(246, 99, 32, 0.05) !important;
  transform: translateY(-3px);
}
.vp-uc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(246, 99, 32, 0.06);
  color: var(--secondaryMastercolor);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.vp-uc-card:hover .vp-uc-icon {
  background: var(--secondaryMastercolor);
  color: #ffffff;
}
.vp-uc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primaryTextColor);
  margin-bottom: 8px;
}
.vp-uc-desc {
  font-size: 13px;
  color: var(--primaryTextColor);
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Live AI Invoice Scanning Console --- */
.invoice-console {
  border: 1.5px solid var(--layoutBorderColor) !important;
  transition: all 0.3s ease;
  background: #ffffff;
}
.invoice-console:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 20px 40px rgba(246, 99, 32, 0.05) !important;
}

.scan-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.mock-invoice-card {
  border: 1px solid #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 18px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Simulated laser scan bar animation */
.scan-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondaryMastercolor), transparent);
  box-shadow: 0 0 10px var(--secondaryMastercolor);
  animation: scanLoop 3s infinite ease-in-out;
  pointer-events: none;
  z-index: 10;
}
@keyframes scanLoop {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Invoice Mockup Details */
.invoice-header-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 9px;
  line-height: 1.3;
}
.invoice-meta-label {
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 8px;
}
.invoice-meta-val {
  color: #1e293b;
  font-weight: 700;
}

.invoice-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}
.invoice-table th {
  background: #e2e8f0;
  color: #475569;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  text-align: left;
}
.invoice-table td {
  font-size: 9px;
  font-weight: 600;
  color: #334155;
  padding: 6px;
  border: 1px solid #e2e8f0;
}

.invoice-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 10px;
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  font-size: 9px;
}

/* Real-Time Extraction Results overlay */
.extraction-results {
  background: #0f172a;
  border-radius: 6px;
  padding: 12px;
  margin-top: 14px;
}
.extraction-field {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 4px;
  font-family: monospace;
}
.extraction-field:last-child {
  margin-bottom: 0;
}
.extraction-key {
  color: #94a3b8;
}
.extraction-val {
  color: #38bdf8;
  font-weight: 700;
}

/* --- Cognitive Ingestion Value Grid --- */
.value-driver-card {
  background: #ffffff;
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
}
.value-driver-card:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 10px 24px rgba(246, 99, 32, 0.04) !important;
  transform: translateY(-2px);
}
.value-driver-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.value-driver-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}
.value-driver-desc {
  font-size: 12.5px;
  color: var(--primaryTextColor);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover, .faq-item.active {
  border-color: var(--secondaryMastercolor);
}
.faq-trigger {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  outline: none;
  cursor: pointer;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--mastercolor);
  margin: 0;
}
.faq-icon-wrapper {
  color: var(--secondaryMastercolor);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.faq-answer {
  padding: 0 28px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--primaryTextColor);
  margin: 0;
}

/* --- Form Frame & Mockups --- */
.ctf-frame-card {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
}
.ctf-frame-header {
  padding: 14px 20px;
  background: var(--secondaryMastercolorLite);
}
.ctf-frame-dot {
  width: 9px;
  height: 9px;
}
.ctf-dot-red { background: #ff5f56; }
.ctf-dot-yellow { background: #ffbd2e; }
.ctf-dot-green { background: #27c93f; }

.trust-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.trust-card:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 12px 24px rgba(246, 99, 32, 0.04) !important;
  transform: translateY(-2px);
}

/* Pulsing Connection Dot Animation */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}
