/* =========================================================
   Pricing Page Styles (payAi.html) - Enhanced for Dark Theme
   ========================================================== */

body.is-dark {
  --panel-2: #2a2a32; /* A slightly lighter panel color */
}

.pricing-hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.pricing-title {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -1px;
}

.pricing-sub {
  font-size: 18px;
  color: var(--text-muted); /* Using a more readable muted color */
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px;
  margin-bottom: 10px;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  font-weight: 700;
}

.save-tip {
  font-size: 14px;
  color: var(--primary); /* Using primary color for accent */
  margin-left: 20px;
  font-weight: 600;
}

.pricing {
  padding-bottom: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch; /* Make cards same height */
}

.price-card {
  background: var(--panel); /* Darker than bg-soft for contrast */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.25);
  transform: scale(1.05);
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.price-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
}

.price-name {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.price {
  font-size: 48px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--text-main);
}

.price .period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

.badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}

.feature-list li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary); /* Brighter than muted */
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.price-card .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

.price-card .btn-secondary {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.price-card .btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--border-hover);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: background 0.2s ease;
}

.faq-list details[open] {
  background: var(--bg-soft);
}

.faq-list summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.info-bar {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.info-bar a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.info-bar a:hover {
  text-decoration: underline;
}

.info-bar a::after {
  content: "→";
  margin-left: 8px;
  transition: margin-left 0.2s ease;
}

.info-bar a:hover::after {
  margin-left: 12px;
}
