/* Pricing & course-details — homepage parity (use with body.page-home) */

body.page-home.page-pricing .info-page-wrap,
body.page-home.page-course-details .info-page-wrap {
  max-width: 1160px;
}

body.page-home.page-pricing .info-page-main,
body.page-home.page-course-details .info-page-main {
  padding: 96px var(--pad-section) 80px;
}

body.page-home .info-hero .section-title {
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

body.page-home .info-hero .section-title em {
  font-style: italic;
  color: var(--yellow);
}

body.page-home .info-lead,
body.page-home .pricing-simple-lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
}

body.page-home .info-lead--tight {
  margin-bottom: 20px;
}

body.page-home .about-values-heading {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 40px 0 20px;
}

body.page-home .about-values-heading:first-of-type {
  margin-top: 8px;
}

body.page-home .info-card,
body.page-home .course-subject-card,
body.page-home .course-meta-card,
body.page-home .course-session-step,
body.page-home .about-mission-block {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-home .course-subject-card:hover,
body.page-home .course-meta-card:hover,
body.page-home .course-session-step:hover,
body.page-home .about-mission-block:hover {
  box-shadow: var(--s2);
  transform: translateY(-4px);
}

body.page-home .sitelink-final-cta {
  margin: 0 var(--pad-section) var(--section-pad-sm);
  border-radius: 32px;
  padding: 52px var(--pad-section);
  text-align: left;
}

body.page-home .sitelink-final-cta .final-cta-inner {
  max-width: 1160px;
  margin: 0;
  text-align: left;
}

body.page-home .sitelink-final-cta .section-title {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 12px;
}

body.page-home .sitelink-final-cta .cta-proof {
  max-width: 520px;
  margin-bottom: 24px;
}

body.page-home .sitelink-final-cta .cta-buttons {
  justify-content: flex-start;
  max-width: none;
}

/* Pricing — rate table */
.pricing-reg-note {
  background: var(--yellow-soft);
  border-radius: var(--r-card);
  padding: 16px 20px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 48rem;
  box-shadow: var(--s1);
  border: none;
}

.pricing-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.pricing-tier-row label {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.pricing-tier-select {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--white);
  box-shadow: var(--s1);
  min-width: 200px;
  cursor: pointer;
}

.pricing-tier-select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.rate-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--s1);
  margin-bottom: 16px;
  border: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.rate-table-wrap::after {
  content: '';
  position: sticky;
  right: 0;
  top: 0;
  float: right;
  width: 32px;
  height: 100%;
  margin-left: -32px;
  pointer-events: none;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rate-table-wrap.is-scrollable::after {
  opacity: 1;
}

.rate-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.rate-table-caption {
  caption-side: top;
  padding: 20px 24px 16px;
  text-align: left;
  background: var(--white);
}

.rate-table-caption-title {
  display: block;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
  line-height: 1.3;
}

.rate-table-caption-meta {
  display: block;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  line-height: 1.5;
}

.rate-table thead th {
  padding: 16px 12px;
  text-align: center;
  vertical-align: bottom;
  border: none;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
}

.rate-table .rate-th-board {
  text-align: left;
  padding-left: 24px;
  min-width: 128px;
  border-radius: var(--r-card) 0 0 0;
}

.rate-table thead th:last-child {
  border-radius: 0 var(--r-card) 0 0;
}

.rate-table .rate-th-grade {
  min-width: 96px;
}

.rate-table .rate-th-line {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.rate-table .rate-th-range {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
}

.rate-table tbody th,
.rate-table tbody td {
  padding: 18px 12px;
  text-align: center;
  vertical-align: middle;
  border: none;
  transition: background 0.15s ease;
}

.rate-table tbody tr:nth-child(odd) th,
.rate-table tbody tr:nth-child(odd) td.rate-num {
  background: var(--cream);
}

.rate-table tbody tr:nth-child(even) th,
.rate-table tbody tr:nth-child(even) td.rate-num {
  background: var(--white);
}

.rate-table tbody tr:hover th,
.rate-table tbody tr:hover td.rate-num {
  background: var(--yellow-soft);
}

.rate-table tbody tr:last-child .rate-board {
  border-radius: 0 0 0 var(--r-card);
}

.rate-table tbody tr:last-child td.rate-num:last-child {
  border-radius: 0 0 var(--r-card) 0;
}

.rate-table .rate-board {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  padding-left: 24px;
  padding-right: 20px;
  min-width: 128px;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow-soft);
  box-shadow: 8px 0 16px -8px rgba(0, 0, 0, 0.08);
}

.rate-table tbody tr:hover .rate-board {
  background: color-mix(in srgb, var(--yellow-soft) 70%, var(--yellow) 30%);
}

.rate-table .rate-num {
  min-width: 96px;
  font-variant-numeric: tabular-nums;
}

.rate-table .rate-price {
  display: inline-block;
  text-align: center;
}

.rate-table .rate-value {
  display: block;
  font-family: var(--f-ui);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rate-table .rate-unit {
  display: block;
  margin-top: 2px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .rate-table-wrap {
    overflow-x: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .rate-table-wrap::after {
    display: none;
  }

  .rate-table {
    min-width: 0;
    display: block;
  }

  .rate-table-caption {
    padding: 0 0 16px;
    background: transparent;
  }

  .rate-table thead {
    display: none;
  }

  .rate-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .rate-table tbody tr {
    display: block;
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--s1);
    overflow: hidden;
  }

  .rate-table tbody tr:hover th,
  .rate-table tbody tr:hover td.rate-num {
    background: var(--white);
  }

  .rate-table .rate-board {
    position: static;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    background: var(--ink);
    color: var(--white);
    font-size: 16px;
    border-radius: 0;
    box-shadow: none;
  }

  .rate-table tbody tr:hover .rate-board {
    background: var(--ink);
  }

  .rate-table tbody tr:last-child .rate-board {
    border-radius: 0;
  }

  .rate-table .rate-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 14px 20px;
    background: var(--white);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
  }

  .rate-table tbody tr:nth-child(odd) .rate-num,
  .rate-table tbody tr:nth-child(even) .rate-num {
    background: var(--white);
  }

  .rate-table .rate-num::before {
    content: attr(data-label);
    font-family: var(--f-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--body);
    flex: 1;
    text-align: left;
  }

  .rate-table .rate-num {
    flex-wrap: nowrap;
  }

  .rate-table .rate-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    text-align: right;
  }

  .rate-table .rate-value {
    display: inline;
    font-size: 18px;
  }

  .rate-table .rate-unit {
    display: inline;
    margin-top: 0;
    font-size: 14px;
  }
}

.pricing-sticky-cta {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--ink);
  color: var(--cream);
  padding: 16px;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  z-index: 9999;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.pricing-sticky-cta:hover {
  color: var(--cream);
  opacity: 0.92;
}

.pricing-faq-heading {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -0.025em;
}

.pricing-faq-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-faq-item {
  border: none;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--s1);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pricing-faq-item[open] {
  box-shadow: var(--s2);
}

.pricing-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pricing-faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}

.pricing-faq-item[open] summary::after {
  content: '−';
}

.pricing-faq-item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq-answer {
  border: none;
  padding: 0 24px 20px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.65;
}

.pricing-features li::before {
  content: '✓';
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body.page-home.page-pricing .info-page-main,
  body.page-home.page-course-details .info-page-main {
    padding: 80px 24px 64px;
  }

  body.page-pricing.pricing-sticky-on {
    padding-bottom: 56px;
  }

  body.page-pricing.pricing-sticky-on .whatsapp-float {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .pricing-sticky-cta.is-visible {
    display: flex;
  }

  body.page-home .sitelink-final-cta {
    margin-left: 24px;
    margin-right: 24px;
    padding: 40px 28px;
    text-align: center;
  }

  body.page-home .sitelink-final-cta .final-cta-inner,
  body.page-home .sitelink-final-cta .cta-buttons {
    text-align: center;
    justify-content: center;
  }
}
