/* ==========================================================================
   PanoRA Pricing Page Stylesheet (marketing/pricing.css)
   Clean, Accessible, High-Contrast Dark Theme with Vercel Guidelines
   ========================================================================== */

/* --- Pricing Hero --- */
.pricing-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.pricing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.pricing-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  text-wrap: balance;
}

.pricing-title span {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  text-wrap: balance;
}

/* --- Trust & Guarantee Banner --- */
.pricing-guarantee-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(15, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  max-width: fit-content;
  margin: 0 auto 48px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.guarantee-item svg {
  width: 16px;
  height: 16px;
  stroke: #818cf8;
  flex-shrink: 0;
}

/* --- Pricing Cards Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 72px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease-premium), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* Featured Pro Card */
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(24, 28, 48, 0.9) 0%, rgba(13, 16, 28, 0.95) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.22);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 0 44px rgba(99, 102, 241, 0.35);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.card-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 40px;
  line-height: 1.45;
}

.card-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 6px;
  font-variant-numeric: tabular-nums;
}

.card-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.card-original-price {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 500;
}

.card-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-cta-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  transition: background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
}

.card-cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.pricing-card.featured .card-cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.pricing-card.featured .card-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

/* Feature Bullet List */
.card-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  flex-grow: 1;
  text-align: left;
}

.card-features-list li {
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  text-align: left;
  width: 100%;
}

.card-features-list .check-icon {
  width: 16px;
  height: 16px;
  stroke: #818cf8;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-features-list li strong,
.card-features-list li span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.card-features-list li strong span {
  display: inline;
}

[dir="rtl"] .card-features-list,
[dir="rtl"] .card-features-list li,
[dir="rtl"] .card-features-list li strong,
[dir="rtl"] .card-features-list li span {
  text-align: right;
}

/* --- Feature Comparison Matrix --- */
.matrix-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.matrix-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-table thead th {
  background: rgba(15, 20, 34, 0.95);
  font-weight: 700;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1.5px solid rgba(99, 102, 241, 0.3);
}

.matrix-table thead th:not(:first-child) {
  text-align: center;
  width: 20%;
}

.matrix-table thead th.featured-col {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
}

.matrix-category-row td {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  padding-top: 18px;
  padding-bottom: 10px;
}

.matrix-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table tbody td:not(:first-child) {
  text-align: center;
}

.matrix-table tbody td.featured-col {
  background: rgba(99, 102, 241, 0.04);
}

.matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
}

.matrix-check svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.matrix-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--text-dim);
}

.matrix-cross svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- Pricing FAQ --- */
.pricing-faq-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 28px 20px;
  }
  .card-features-list {
    gap: 10px;
  }
  .card-features-list li {
    font-size: 0.84rem;
  }
  .pricing-title {
    font-size: 2.1rem;
  }
  .pricing-guarantee-bar {
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .matrix-table th,
  .matrix-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* --- Savings & Value Banner --- */
.savings-banner {
  margin-top: 16px;
  margin-bottom: 72px;
}

.savings-banner-inner {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15) 0%, rgba(15, 20, 34, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.savings-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.savings-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.savings-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 10px;
}

.savings-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.savings-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.savings-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.savings-item:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.savings-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.savings-item-icon svg {
  width: 22px;
  height: 22px;
}

/* 1. Clipboard Icon */
.savings-item-icon.icon-clipboard {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.savings-item:hover .savings-item-icon.icon-clipboard {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}

/* 2. Video Studio Icon */
.savings-item-icon.icon-video {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.savings-item:hover .savings-item-icon.icon-video {
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
  transform: scale(1.05);
}

/* 3. OCR Text Grabber Icon */
.savings-item-icon.icon-ocr {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.savings-item:hover .savings-item-icon.icon-ocr {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: scale(1.05);
}

/* 4. Scrolling Capture Icon */
.savings-item-icon.icon-scroll {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.08) 100%);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}
.savings-item:hover .savings-item-icon.icon-scroll {
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  transform: scale(1.05);
}

/* 5. Annotator Icon */
.savings-item-icon.icon-annotator {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, rgba(244, 63, 94, 0.08) 100%);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.savings-item:hover .savings-item-icon.icon-annotator {
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
  transform: scale(1.05);
}

/* 6. Color Picker Icon */
.savings-item-icon.icon-picker {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.savings-item:hover .savings-item-icon.icon-picker {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

/* 7. Drag & Drop Shelf Icon */
.savings-item-icon.icon-shelf {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.savings-item:hover .savings-item-icon.icon-shelf {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

/* 8. Sticky Notes & Tasks Icon */
.savings-item-icon.icon-sticky {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}
.savings-item:hover .savings-item-icon.icon-sticky {
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

.savings-item-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.savings-item-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.savings-item-cost {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.savings-summary-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 28px;
  max-width: fit-content;
  margin: 0 auto;
}

.savings-calc {
  text-align: right;
}

.calc-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.calc-old-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fca5a5;
}

.savings-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.savings-arrow svg {
  width: 22px;
  height: 22px;
  stroke: #818cf8;
}

.savings-result {
  text-align: left;
}

.calc-new-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-strikethrough {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 500;
}

.price-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: normal;
}

@media (max-width: 900px) {
  .savings-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .savings-summary-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .savings-calc, .savings-result {
    text-align: center;
  }
  .savings-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 550px) {
  .savings-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Numeric alignment for prices & matrix comparisons */
.card-price,
.card-original-price,
.calc-new-price,
.price-strikethrough,
.savings-item-cost,
.pricing-matrix-table td {
  font-variant-numeric: tabular-nums;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

