/* ============================================
   RetailAI — Pricing page styles
   ============================================ */

/* ── Pricing hero ────────────────────────────────────────── */
.pricing-hero {
  padding: 4rem 0 3rem;
  background-image: radial-gradient(circle, #d4d4d4 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg);
  text-align: center;
}

.pricing-hero-title {
  margin: 0 0 1.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

/* ── Billing toggle ──────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.billing-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.billing-btn.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.billing-btn:hover:not(.active) {
  color: var(--text);
}

.save-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* ── Trial notice ────────────────────────────────────────── */
.trial-notice {
  margin-bottom: 1.5rem;
}

.trial-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.trial-sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Contact selector ────────────────────────────────────── */
.contact-selector {
  margin-bottom: 2.5rem;
}

.contact-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.contact-pills {
  display: inline-flex;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-pill {
  padding: 0.5rem 1.125rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.contact-pill.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.contact-pill:hover:not(.active) {
  color: var(--text);
}

/* ── Pricing cards row ───────────────────────────────────── */
.pricing-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 960px) {
  .pricing-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pricing-cards-row {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: var(--border-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(99, 102, 241, 0.12);
}

.price-card-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 36px rgba(99, 102, 241, 0.16);
}

.price-card-badge {
  position: absolute;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.price-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-card-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-value,
.price-value-custom {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  transition: opacity 0.15s ease;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-card-yearly-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.25rem 0 0;
  font-size: 0.8125rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

.price-yearly-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.price-card-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.price-card-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .price-card { transition: none; }
  .price-value { transition: none; }
}

/* ── Comparison table ────────────────────────────────────── */
.comparison-section {
  padding: 4rem 0;
  background: var(--white);
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-bottom: 2px solid var(--border);
  z-index: 2;
}

.ct-feature-col {
  text-align: left !important;
  min-width: 15rem;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
}

.ct-plan-col {
  width: 10rem;
}

.ct-plan-featured {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}

/* Category rows */
.ct-category-row td {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

.ct-category-icon {
  margin-right: 0.5rem;
}

/* Feature cells */
.ct-feature {
  color: var(--text);
  font-weight: 500;
}

.ct-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.ct-coming-soon {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ca8a04;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.ct-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Value cells */
.ct-value {
  text-align: center;
  font-weight: 500;
  color: var(--text);
}

.ct-col-featured {
  background: rgba(238, 242, 255, 0.45);
}

.ct-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.ct-dash {
  color: var(--border-dark);
  font-size: 1rem;
}

/* Last row in each tbody */
.comparison-table tbody:last-child tr:last-child td {
  border-bottom: none;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-header .section-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-dark);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 1.25rem 1rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
  .faq-question { transition: none; }
  .faq-question::after { transition: none; }
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 640px) {
  .pricing-hero {
    padding: 3rem 0 2rem;
  }

  .billing-toggle {
    flex-direction: column;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 20rem;
  }

  .billing-btn {
    width: 100%;
  }

  .contact-pills {
    width: 100%;
    max-width: 20rem;
  }

  .contact-pill {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }

  .comparison-table-wrap {
    margin: 0 -0.75rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
