/* pricing.css - Enhanced styles for Pricing page */

/* Hero Section */
.hero-section {
  background: transparent;
  color: #fff;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4rem 0 2.5rem;
    margin-bottom: 3rem;
  }
}

.hero-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem; 
}

@media (min-width: 640px) {
  .hero-container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .hero-container {
    padding: 0 3rem;
  }
}

.hero-title { 
  font-size: 1.75rem; 
  line-height: 1.1; 
  margin-bottom: 0.75rem; 
  font-weight: 700; 
  letter-spacing: -0.03em;
  color: white;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Signup Credit Note */
.hero-signup-credit {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-signup-credit {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }
}

.hero-text p { 
  color: rgba(255,255,255,0.85); 
  max-width: 800px; 
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-text p {
    font-size: 1rem;
  }
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Plans Grid */
.plan-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.25rem; 
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .plan-grid {
    gap: 1.75rem;
  }
}

.plan-card { 
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  padding: 1.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* Featured plan styling */
.plan-card:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .plan-card:nth-child(2) {
    transform: scale(1.03);
  }
  
  .plan-card:nth-child(2):hover {
    transform: scale(1.03) translateY(-4px);
  }
}

.plan-header { 
  display: flex; 
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-name { 
  font-weight: 700; 
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.plan-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.plan-badge { 
  display: inline-block;
  background: white;
  color: #040b1d;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 0.375rem;
}

.plan-price {
  font-size: 1.375rem;
  color: white;
  font-weight: 700;
  margin-top: 0.375rem;
  letter-spacing: -0.02em;
}

.plan-features { 
  margin: 0 0 1.75rem 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.plan-features li { 
  padding: 0.625rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 500;
  position: relative;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: none;
}

/* Feature item with checkmark and info icon */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: 100%;
}

.feature-check {
  color: #10b981;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  text-align: center;
  line-height: 1.125rem;
}

.feature-text {
  flex: 1;
}

.feature-info-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  margin-left: 0.375rem;
  font-size: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.feature-info-btn i {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-info-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.feature-info-btn:focus {
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Info Popover */
.info-popover {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.info-popover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(15, 23, 42, 0.98);
}

.feature-info-btn:hover .info-popover,
.feature-info-btn:focus .info-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
  pointer-events: auto;
}

/* Adjust popover position for items near top of card */
.plan-features li:nth-child(-n+2) .info-popover {
  bottom: auto;
  top: calc(100% + 0.5rem);
}

.plan-features li:nth-child(-n+2) .info-popover::before {
  top: auto;
  bottom: 100%;
  border-top: none;
  border-bottom: 6px solid rgba(15, 23, 42, 0.98);
}

/* Mobile adjustments for popover */
@media (max-width: 768px) {
  .info-popover {
    left: auto;
    right: 0;
    transform: none;
    min-width: 200px;
    max-width: 240px;
  }
  
  .info-popover::before {
    left: auto;
    right: 1rem;
    transform: none;
  }
  
  .feature-info-btn:hover .info-popover,
  .feature-info-btn:focus .info-popover {
    transform: translateY(-4px);
  }
}

/* Buttons */
.btn-primary { 
  background: white;
  color: #040b1d;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: rgb(243, 244, 246);
  transform: translateY(-1px);
}

.btn-secondary { 
  background: transparent;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

.section {
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

/* Features Comparison Table */
.features-comparison {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.features-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .features-title {
    font-size: 2rem;
  }
}

.features-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .features-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: 0 -1rem;
  padding: 0 1rem;
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .comparison-table-wrapper {
    margin: 0;
    padding: 0;
  }
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  min-width: 650px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  color: white;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th:last-child {
  border-right: none;
}

@media (min-width: 768px) {
  .comparison-table th {
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
  }
}

.comparison-table th.feature-category {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .comparison-table th.feature-category {
    font-size: 0.9375rem;
  }
}

.comparison-table th.plan-column {
  text-align: center;
  min-width: 130px;
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
  .comparison-table th.plan-column {
    min-width: 150px;
  }
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table td:last-child {
  border-right: none;
}

@media (min-width: 768px) {
  .comparison-table td {
    padding: 1.125rem 2rem;
    font-size: 0.9375rem;
  }
}

.comparison-table .category-row {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table .category-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.comparison-table .category-row td {
  padding: 1rem 1.5rem;
  border-bottom: none;
  border-right: none;
}

@media (min-width: 768px) {
  .comparison-table .category-row td {
    padding: 1.125rem 2rem;
  }
}

.comparison-table .category-header {
  font-weight: 700;
  font-size: 0.9375rem;
  color: white;
  letter-spacing: -0.01em;
  background: transparent;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
  .comparison-table .category-header {
    font-size: 0.875rem;
  }
}

.comparison-table .feature-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  position: relative;
}

.comparison-table .feature-value {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Table Info Button */
.table-info-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  font-size: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.table-info-btn i {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-info-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.table-info-btn:focus {
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Table Info Popover */
.table-info-popover {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s.ease, transform 0.2s ease;
  pointer-events: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  font-weight: 400;
  white-space: normal;
}

.table-info-popover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 1.5rem;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(15, 23, 42, 0.98);
}

.table-info-btn:hover .table-info-popover,
.table-info-btn:focus .table-info-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-4px);
  pointer-events: auto;
}

/* Mobile adjustments for table popover */
@media (max-width: 768px) {
  .table-info-popover {
    left: auto;
    right: 0;
    min-width: 220px;
    max-width: 260px;
  }
  
  .table-info-popover::before {
    left: auto;
    right: 1rem;
  }
}

.comparison-table .check {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comparison-table .check i {
  font-size: 1.5rem;
}

.comparison-table .minus {
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.25rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comparison-table .minus i {
  font-size: 1.5rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
  .comparison-table {
    min-width: 600px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }
  
  .comparison-table th.plan-column {
    min-width: 100px;
  }
  
  .comparison-table .check i,
  .comparison-table .minus i {
    font-size: 1.25rem;
  }
  
  .table-info-btn {
    width: 1rem;
    height: 1rem;
  }
  
  .table-info-btn i {
    font-size: 1rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.content-block {
  max-width: 1200px;
  margin: 0 auto;
}

/* FAQs Section */
.faqs {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faqs-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .faqs-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.0625rem;
  }
}

.faq-question:hover {
  color: rgba(255, 255, 255, 0.95);
}

.faq-question:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.02);
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 400;
  text-align: left;
}

@media (min-width: 768px) {
  .faq-answer p {
    padding: 0 2rem 2rem 2rem;
    font-size: 1rem;
    text-align: left;
  }
}

.faq-answer a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.faq-answer a:hover {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .plan-card {
    padding: 1.5rem 1.25rem;
  }
  
  .plan-name {
    font-size: 1.375rem;
  }
  
  .plan-price {
    font-size: 1.125rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .faqs h3 {
    font-size: 1.375rem;
  }
  
  .features-title {
    font-size: 1.375rem;
  }
  
  .features-subtitle {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
  }
  
  .info-popover {
    font-size: 0.75rem;
    min-width: 180px;
    max-width: 220px;
    padding: 0.75rem 0.875rem;
  }
}
