/* IELTS Core — Comprehensive Pricing Page Styles */
.pricing-page {
  background: #f8fafc;
  color: var(--v4-ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.pricing-container {
  padding-top: 36px;
  padding-bottom: 90px;
}

/* Pricing Hero */
.pricing-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.pricing-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  margin-bottom: 18px;
}

.pricing-pill-badge .material-symbols-outlined {
  font-size: 15px;
}

.pricing-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--v4-ink);
  margin: 0 0 16px;
  line-height: 1.08;
}

.pricing-subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto 24px;
  max-width: 680px;
}

.pricing-guarantees {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 14px;
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.guarantee-item .material-symbols-outlined {
  font-size: 17px;
  color: var(--v4-blue);
}

/* Billing Cycle Switcher */
.billing-switcher-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 36px 0 28px;
}

.switcher-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}

.billing-switcher {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  gap: 4px;
}

.billing-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-tab:hover {
  color: var(--v4-ink);
  background: #f1f5f9;
}

.billing-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.billing-tab-tag {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.billing-tab-tag.rec {
  background: #e11d48;
  color: #ffffff;
}

.billing-tab-tag.best {
  background: #f59e0b;
  color: #0f172a;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 26px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.pricing-card.featured {
  border: 2px solid #1468f3;
  box-shadow: 0 16px 40px rgba(20, 104, 243, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.pricing-card-top-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pricing-card-top-tag.popular {
  background: linear-gradient(135deg, #1468f3, #0b50c4);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(20, 104, 243, 0.35);
}

.pricing-card-top-tag.value {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.pricing-card-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.plan-name-row h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--v4-ink);
  margin: 0;
}

.plan-tag-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.plan-tag-sub.popular {
  background: rgba(20, 104, 243, 0.1);
  color: var(--v4-blue);
}

.plan-tag-sub.value {
  background: #fef3c7;
  color: #92400e;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-value {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--v4-ink);
  line-height: 1;
}

.price-currency {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

.price-currency small {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.price-old {
  font-size: 14px;
  color: #94a3b8;
  margin-left: auto;
  font-weight: 600;
}

.plan-billed-note {
  font-size: 12px;
  color: #64748b;
}

.pricing-card-action {
  margin-bottom: 24px;
}

.pricing-select-btn {
  width: 100%;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
}

.pricing-card-features {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.features-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.features-list .material-symbols-outlined {
  font-size: 17px;
  color: #10b981;
  flex: 0 0 17px;
  margin-top: 1px;
}

/* Promo Code Box */
.pricing-promo-section {
  margin: 20px 0 54px;
}

.promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.promo-box-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 104, 243, 0.1);
  color: var(--v4-blue);
  font-size: 26px;
  flex: 0 0 48px;
}

.promo-box-copy h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--v4-ink);
}

.promo-box-copy p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.promo-box-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
}

.promo-box-form input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font: 700 13px/1 'DM Sans', sans-serif;
  color: var(--v4-ink);
  text-transform: uppercase;
}

.promo-box-form input:focus {
  outline: none;
  border-color: var(--v4-blue);
  box-shadow: 0 0 0 3px rgba(20, 104, 243, 0.15);
}

.promo-feedback {
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.promo-feedback.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.promo-feedback.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Business Section */
.pricing-business-section,
.pricing-materials-section,
.pricing-comparison-section,
.pricing-faq-section {
  margin-top: 64px;
}

.section-badge-center {
  text-align: center;
  margin-bottom: 12px;
}

.section-badge-center span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--v4-blue);
  background: rgba(20, 104, 243, 0.08);
}

.section-title-center {
  text-align: center;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--v4-ink);
  margin: 0 0 10px;
}

.section-desc-center {
  text-align: center;
  font-size: 14.5px;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 36px;
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.business-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.business-badge {
  display: inline-block;
  width: max-content;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.business-badge.teacher {
  background: #e0e7ff;
  color: #4338ca;
}

.business-badge.center {
  background: #fef3c7;
  color: #92400e;
}

.business-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.business-icon {
  font-size: 24px;
  color: var(--v4-blue);
}

.business-title-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--v4-ink);
}

.business-price {
  font-size: 15px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 18px;
}

.business-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 22px;
  font-weight: 800;
}

.business-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #334155;
}

.business-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.business-features .material-symbols-outlined {
  font-size: 16px;
  color: #10b981;
}

/* Materials Pack Showcase */
.materials-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.material-pack-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease;
}

.material-pack-card:hover {
  transform: translateY(-3px);
}

.pack-cover {
  padding: 24px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.pack-cover.reading {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.pack-cover.listening {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.pack-cover.writing {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

.pack-cover.speaking {
  background: linear-gradient(135deg, #854d0e 0%, #a16207 100%);
}

.pack-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  width: max-content;
  margin-bottom: 10px;
}

.pack-cover h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pack-cover p {
  margin: 0;
  font-size: 11.5px;
  opacity: 0.85;
}

.pack-meta {
  padding: 12px 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pack-meta strong {
  font-size: 12px;
  color: var(--v4-ink);
}

.pack-meta span {
  font-size: 11px;
  color: #64748b;
}

.materials-cta-row {
  text-align: center;
  margin-top: 16px;
}

/* Feature Comparison Table */
.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table th.premium-col {
  color: var(--v4-blue);
  background: rgba(20, 104, 243, 0.05);
}

.comparison-table tbody tr:hover td {
  background: #fafcff;
}

.table-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #059669;
  font-weight: 700;
}

.table-cross {
  color: #94a3b8;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.faq-item summary {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--v4-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #64748b;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .business-grid {
    grid-template-columns: 1fr;
  }
  .materials-pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-box {
    flex-direction: column;
    align-items: stretch;
  }
  .promo-box-form {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .materials-pack-grid {
    grid-template-columns: 1fr;
  }
  .billing-switcher {
    flex-direction: column;
    border-radius: 16px;
  }
}
