/* ==========================================================================
   Pricing v2: plan lists, programs, services table, advisory levels
   Uses the tokens declared in style.css (--purple-blast, --deep-gray, ...)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Plan cards: inclusion lists ---------- */
.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-list {
  list-style: none;
  margin: 1.4rem 0 2rem;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.plan-cta {
  margin-top: auto;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--black-magic);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition-property: background-color;
  transition-duration: 0.2s;
}

.plan-cta:hover { background: var(--gold); }
.plan-cta:active { opacity: 0.85; }
.plan-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.plan-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.plan-card .plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Shared section frame ---------- */
.more-ways {
  background: var(--white);
  padding: var(--section-gap) 1.5rem;
}

.more-ways.alt {
  background: var(--surface-alt);
}

.more-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.more-ways h2 {
  font-family: var(--font-display);
  font-size: var(--text-section);
  color: var(--deep-gray);
  text-align: center;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.more-sub {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--deep-gray);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Programs (Boost-Brand, Boost-rent) ---------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.prog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.prog-head {
  background: var(--purple-blast);
  color: var(--white);
  padding: 1.75rem 2rem;
}

.prog-body {
  padding: 1.75rem 2rem 2rem;
}

.prog-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.prog-for {
  color: var(--deep-gray);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.prog-price {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0;
}

.prog-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.prog-card li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
  color: var(--deep-gray);
}

.prog-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid var(--purple-blast);
  border-bottom: 2px solid var(--purple-blast);
  transform: rotate(-45deg);
}

/* ---------- Services table ---------- */
.price-table-wrap {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-table);
  overflow: hidden;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--deep-gray);
}

.price-table thead th {
  background: var(--purple-blast);
  color: var(--white);
  font-weight: 700;
  padding: 0.9rem 1.25rem;
}

.price-table tbody th,
.price-table tbody td {
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

.price-table tbody th {
  font-weight: 700;
  width: 26%;
}

.price-table .price-cell {
  font-weight: 700;
  color: var(--purple-blast);
  width: 24%;
  font-variant-numeric: tabular-nums;
}

.price-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

/* ---------- Advisory levels ---------- */
.levels-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--deep-gray);
  text-align: center;
  margin: 3.5rem 0 1.5rem;
}

.level-grid {
  counter-reset: level;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.level-card {
  counter-increment: level;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  color: var(--deep-gray);
  line-height: 1.55;
  box-shadow: var(--shadow-table);
}

/* Numbered steps: the last level is the full accompaniment, so it is filled */
.level-card::before {
  content: counter(level);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--purple-a18);
  margin-bottom: 0.5rem;
}

.level-card:last-child { background: var(--purple-blast); color: var(--white); }
.level-card:last-child::before { color: var(--white-a35); }
.level-card:last-child h4,
.level-card:last-child .level-price { color: var(--white); }

.level-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--purple-blast);
}

.level-card p { margin: 0 0 0.6rem; }
.level-card p:last-of-type { margin-bottom: 1.25rem; }

.level-price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--deep-gray);
}

.level-mode {
  font-weight: 700;
  font-size: 0.9rem;
}

.more-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .plan-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .prog-grid,
  .level-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .more-ways { padding: var(--section-gap) 1.1rem; }
  .prog-head { padding: 1.5rem; }
  .prog-body { padding: 1.5rem; }

  .price-table thead { display: none; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); }
  .price-table tbody th,
  .price-table tbody td { padding: 0.15rem 0; border: 0; width: 100%; }
}

.more-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: var(--purple-blast);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition-property: transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.more-btn:hover { box-shadow: var(--shadow-btn); }
.more-btn:active { transform: scale(0.97); }
.more-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .more-btn:active { transform: none; }
}

/* Secondary action under each plan: details open the modal */
.plan-details {
  margin-top: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.plan-details:hover { color: var(--gold); }
.plan-details:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Primary action on the programs */
.prog-cta {
  margin: 0 2rem 2rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--purple-blast);
  border-radius: 10px;
  background: var(--purple-blast);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition-property: background-color, border-color;
  transition-duration: 0.2s;
}

.prog-cta:hover { background: var(--black-magic); border-color: var(--black-magic); }
.prog-cta:active { opacity: 0.85; }
.prog-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 640px) {
  .prog-cta { margin: 0 1.5rem 1.5rem; }
}

/* Request buttons: one per service row and per advisory level */
.price-table .row-action { width: 1%; white-space: nowrap; text-align: right; vertical-align: middle; }

.svc-cta,
.level-cta {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--purple-blast);
  border-radius: 10px;
  background: transparent;
  color: var(--purple-blast);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition-property: background-color, color;
  transition-duration: 0.2s;
}

.svc-cta:hover,
.level-cta:hover { background: var(--purple-blast); color: var(--white); }
.svc-cta:active,
.level-cta:active { opacity: 0.85; }
.svc-cta:focus-visible,
.level-cta:focus-visible { outline: 3px solid var(--purple-blast); outline-offset: 3px; }

.level-cta { margin-top: auto; width: 100%; }

/* The filled level sits on purple, so its button inverts */
.level-card:last-child .level-cta { border-color: var(--white); color: var(--white); }
.level-card:last-child .level-cta:hover { background: var(--white); color: var(--purple-blast); }
.level-card:last-child .level-cta:focus-visible { outline-color: var(--gold); }

@media (max-width: 640px) {
  .price-table .price-cell,
  .price-table tbody th { width: 100%; }
  .price-table .row-action { width: 100%; text-align: left; padding-top: 0.6rem; }
  .svc-cta { width: 100%; }
}
