/* =============================================
   PRICING PAGE — Hero Section
   ============================================= */

.pricing-hero {
  padding-top: calc(96px + 60px);
  padding-bottom: 4rem;
  background: var(--color-bg-default);
}

.pricing-hero .hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-hero .hero-heading {
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-default);
}

.pricing-hero .hero-desc {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* =============================================
   PRICING PAGE — Interactive Toggles
   ============================================= */

.toggles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.toggle-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Save 20% badge */
.save-badge {
  position: absolute;
  top: -24px;
  right: 12px;
  background: #10b981; /* Green color for discount */
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.toggle-switch {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 100px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 100px;
  z-index: 2;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.toggle-btn.active {
  color: var(--color-text-default);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #ffffff;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.toggle-switch.yearly::after,
.toggle-switch.inr::after {
  transform: translateX(100%);
}

/* =============================================
   PRICING PAGE — Cards Grid
   ============================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
}

/* Top popular badge for Professional */
.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
}

.popular-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Highlight style for Professional Card */
.pricing-card.highlight {
  background: var(--color-bg-dark);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.15);
}

.pricing-card.highlight:hover {
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.25);
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-default);
}

.pricing-card.highlight .card-title {
  color: #ffffff;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  min-height: 72px; /* Keeps card heights aligned */
}

.pricing-card.highlight .card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.card-price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-card.highlight .card-price-container {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.card-price {
  font-family: var(--font-bricolage);
  font-size: clamp(3rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-default);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-card.highlight .card-price {
  color: #ffffff;
}

.card-period {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.pricing-card.highlight .card-period {
  color: rgba(255, 255, 255, 0.5);
}

.features-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-default);
  margin-bottom: 1.25rem;
}

.pricing-card.highlight .features-header {
  color: rgba(255, 255, 255, 0.9);
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-default);
}

.pricing-card.highlight .feature-item {
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon-wrapper {
  color: #10b981; /* Premium emerald check */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon-wrapper svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.card-action-btn {
  width: 100%;
  padding: 1.125rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  text-align: center;
  transition: all var(--transition-fast);
}

.pricing-card .card-action-btn {
  background: var(--color-text-default);
  color: #ffffff;
}

.pricing-card .card-action-btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.pricing-card.highlight .card-action-btn {
  background: #ffffff;
  color: var(--color-text-default);
}

.pricing-card.highlight .card-action-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* =============================================
   PRICING PAGE — Side-by-Side Comparison Matrix
   ============================================= */

.comparison-section {
  background: var(--color-bg-default);
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.comparison-header {
  text-align: center;
  margin-bottom: 4rem;
}

.comparison-header h2 {
  margin-bottom: 1rem;
}

.comparison-header .section-desc {
  max-width: 600px;
  margin: 0 auto;
}

.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  overflow-x: auto;
  scrollbar-width: thin;
  position: relative;
}

/* Scroll hint for mobile screens */
.scroll-hint {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-hint svg {
  width: 14px;
  height: 14px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 900px; /* Keep layout consistent on smaller viewports */
}

/* Base cells */
.comparison-table th, 
.comparison-table td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Column widths */
.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 34%;
  font-weight: 500;
  color: var(--color-text-default);
  padding-left: 2.5rem;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  width: 22%;
  text-align: center;
}

/* Table Header Row */
.comparison-table thead th {
  background: #ffffff;
  font-family: var(--font-bricolage);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-default);
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Highlight the Professional Column */
.comparison-table .col-highlight {
  background: rgba(37, 99, 235, 0.025);
  position: relative;
}

/* Header style inside highlighted column */
.comparison-table thead th.col-highlight {
  color: var(--color-primary);
}

/* Tick icons & dash formatting */
.table-check {
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-check svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.table-dash {
  color: rgba(0, 0, 0, 0.15);
  font-weight: 300;
}

/* Row Hover Effects */
.comparison-table tbody tr {
  transition: background-color var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.01);
}

.comparison-table tbody tr:hover .col-highlight {
  background-color: rgba(37, 99, 235, 0.04);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet landscape / Large tablet */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .pricing-card {
    padding: 2.5rem 1.5rem;
  }
  
  .card-desc {
    min-height: 88px;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 3rem;
  }
  
  .pricing-card.highlight {
    order: -1; /* Place professional card first on stacked layout */
  }
  
  .pricing-card {
    padding: 3rem 2.5rem;
  }
  
  .card-desc {
    min-height: auto;
  }

  .scroll-hint {
    display: flex;
  }
}

/* Mobile landscape / Large mobile */
@media (max-width: 768px) {
  .pricing-hero {
    padding-top: calc(80px + 40px);
  }
  
  .pricing-hero .hero-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
  
  .toggles-container {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .comparison-section {
    padding-bottom: 4rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .pricing-hero {
    padding-top: calc(60px + 30px);
  }
  
  .toggles-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .pricing-card {
    padding: 2.25rem 1.5rem;
  }
  
  .card-price {
    font-size: 2.75rem;
  }
  
  .comparison-table th, 
  .comparison-table td {
    padding: 1.25rem 1.25rem;
  }
  
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    padding-left: 1.25rem;
  }
}
