/* ============================================
   HARA — Pricing Page Styles
   Token-gated pricing display
   ============================================ */

/* --- Gate State (invalid/no token) --- */

.prices-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--bg-primary);
}

.prices-gate__card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: var(--space-4xl) var(--space-3xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.prices-gate__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2xl);
  opacity: 0.7;
}

.prices-gate__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.prices-gate__body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.prices-gate__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--accent);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
}

.prices-gate__cta:hover {
  background: var(--accent);
  color: var(--ivory);
}

/* --- Loading State --- */

.prices-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.prices-loading__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: prices-spin 0.8s linear infinite;
}

@keyframes prices-spin {
  to { transform: rotate(360deg); }
}

/* --- Valid State: Pricing Display --- */

.prices-page {
  background: var(--bg-primary);
  min-height: 100vh;
  --sticky-search-h: 52px;
  --sticky-group-h: 115px;
}

/* Minimal header */
.prices-header {
  padding: var(--space-lg) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prices-header__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.prices-header__updated {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Search bar — full-width sticky band so the bg covers the whole row */
.prices-search {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--space-md) var(--container-padding);
  background: var(--dark);
  transition: background 0.3s ease;
}

/* Inner container mirrors .prices-group sizing so the right edge of the
   updated text lines up with the right edge of the price cards. */
.prices-search__inner {
  max-width: var(--container-max);
  margin-inline: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.prices-search__updated {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--stone);
  opacity: 0.7;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color var(--duration-base) var(--ease-out);
}

.prices-search--wellness .prices-search__updated {
  color: var(--gray);
  opacity: 0.85;
}

.prices-search--wellness {
  background: var(--ivory);
}

.prices-search--wellness .prices-search__input {
  background: rgba(58, 69, 52, 0.06);
  border-color: rgba(136, 146, 109, 0.2);
  color: var(--dark);
}

.prices-search--wellness .prices-search__input::placeholder {
  color: var(--gray);
}

.prices-search--wellness .prices-search__icon {
  color: var(--gray);
}

.prices-search--wellness .prices-search__clear {
  color: var(--gray);
}

.prices-search--wellness .prices-search__clear:hover {
  color: var(--dark);
}

.prices-search__wrap {
  position: relative;
  max-width: 480px;
}

.prices-search__icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--stone);
  opacity: 0.5;
  pointer-events: none;
}

.prices-search__input {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  padding-left: calc(var(--space-md) + 26px);
  padding-right: calc(var(--space-md) + 26px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ivory);
  background: rgba(241, 235, 223, 0.05);
  border: 1px solid rgba(193, 194, 176, 0.12);
  border-radius: var(--radius-full);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.prices-search__input:focus {
  border-color: var(--accent);
}

.prices-search__input::placeholder {
  color: var(--stone);
  opacity: 0.5;
}

.prices-search__clear {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--stone);
  font-size: var(--text-lg);
  cursor: pointer;
  padding: 0 var(--space-xs);
  display: none;
  line-height: 1;
  transition: color var(--duration-fast);
}

.prices-search__clear:hover {
  color: var(--ivory);
}

/* No results */
.prices-no-results {
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--stone);
  opacity: 0.6;
}

/* Filter hidden */
.prices-hidden {
  display: none !important;
}

/* Brand sections */
.prices-brand-section {
  padding: var(--space-3xl) var(--container-padding) var(--space-4xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.prices-brand-section--clinic {
  background: var(--dark);
  color: var(--ivory);
}

.prices-brand-section--clinic .prices-group__title,
.prices-brand-section--clinic .prices-treatment__title,
.prices-brand-section--clinic .prices-subgroup__title {
  color: var(--ivory);
}

.prices-brand-section--clinic .prices-treatment__desc,
.prices-brand-section--clinic .desc-formatted,
.prices-brand-section--clinic .prices-breakdown__label,
.prices-brand-section--clinic .prices-tier__label,
.prices-brand-section--clinic .prices-notes__item {
  color: var(--stone);
}

.prices-brand-section--clinic .prices-treatment {
  background: rgba(91, 97, 83, 0.35);
  border-color: rgba(193, 194, 176, 0.12);
}

.prices-brand-section--clinic .prices-treatment__price {
  color: var(--accent);
}

.prices-brand-section--clinic .prices-treatment__price-label,
.prices-brand-section--clinic .prices-breakdown__title,
.prices-brand-section--clinic .prices-tiers__title,
.prices-brand-section--clinic .prices-packages__title {
  color: var(--stone);
}

.prices-brand-section--clinic .prices-breakdown__price,
.prices-brand-section--clinic .prices-tier__price {
  color: var(--ivory);
}

.prices-brand-section--clinic .prices-package {
  background: rgba(136, 146, 109, 0.12);
  border-color: rgba(136, 146, 109, 0.2);
}

.prices-brand-section--clinic .prices-package__name,
.prices-brand-section--clinic .prices-package__desc {
  color: var(--stone);
}

.prices-brand-section--clinic .prices-package__price {
  color: var(--accent);
}

.prices-brand-section--wellness {
  background: var(--ivory);
  border: 1px solid rgba(136, 146, 109, 0.15);
  color: var(--dark);
}

.prices-brand-section--wellness .prices-group__title,
.prices-brand-section--wellness .prices-treatment__title,
.prices-brand-section--wellness .prices-subgroup__title {
  color: var(--dark);
}

.prices-brand-section--wellness .prices-group__desc,
.prices-brand-section--wellness .prices-treatment__desc,
.prices-brand-section--wellness .prices-subgroup__desc,
.prices-brand-section--wellness .desc-formatted,
.prices-brand-section--wellness .prices-breakdown__label,
.prices-brand-section--wellness .prices-tier__label,
.prices-brand-section--wellness .prices-notes__item {
  color: var(--gray);
}

.prices-brand-section--wellness .prices-treatment__price {
  color: var(--accent);
}

.prices-brand-section--wellness .prices-treatment {
  background: rgba(193, 194, 176, 0.15);
  border-color: rgba(193, 194, 176, 0.25);
}

.prices-brand-section--wellness .prices-breakdown__price,
.prices-brand-section--wellness .prices-tier__price {
  color: var(--dark);
}

.prices-brand-section--wellness .prices-breakdown__title,
.prices-brand-section--wellness .prices-tiers__title,
.prices-brand-section--wellness .prices-packages__title,
.prices-brand-section--wellness .prices-treatment__price-label {
  color: var(--gray);
}

.prices-brand-section--wellness .prices-package {
  background: rgba(136, 146, 109, 0.08);
  border-color: rgba(136, 146, 109, 0.15);
}

.prices-brand-section--wellness .prices-package__name {
  color: var(--dark);
}

.prices-brand-section--wellness .prices-package__price {
  color: var(--accent);
}

.prices-brand-section--wellness .prices-package__desc {
  color: var(--gray);
}

.prices-brand-section--wellness .prices-brand-label {
  color: var(--olive);
}

.prices-brand-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-2xl);
}

/* Group */
.prices-group {
  max-width: var(--container-max);
  margin-inline: 0 auto;
  margin-bottom: var(--space-3xl);
}

.prices-group:last-child {
  margin-bottom: 0;
}

.prices-group__header {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: sticky;
  top: var(--sticky-search-h, 52px);
  z-index: 5;
  padding: var(--space-md) 0;
  margin-top: calc(-1 * var(--space-md));
  border-bottom: 1px solid rgba(193, 194, 176, 0.1);
}

.prices-brand-section--clinic .prices-group__header {
  background: var(--dark);
}

.prices-brand-section--wellness .prices-group__header {
  background: var(--ivory);
}

.prices-group__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  line-height: 1.2;
}

.prices-group__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* Status badge */
.prices-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--ivory);
  white-space: nowrap;
}

.prices-badge--discount {
  background: rgba(136, 146, 109, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Discount row — two-tone pill + computed price */
.prices-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.prices-discount__pill {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.prices-discount__tag {
  background: var(--accent);
  color: var(--ivory);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  display: flex;
  align-items: center;
}

.prices-discount__label {
  background: rgba(136, 146, 109, 0.12);
  color: var(--accent);
  padding: 3px 12px;
  display: flex;
  align-items: center;
}

.prices-discount__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--accent);
  font-weight: 600;
}

/* Treatment cards */
.prices-treatments {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.prices-treatment {
  padding: var(--space-xl) var(--space-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--duration-base) var(--ease-out);
}

.prices-treatment:hover {
  transform: translateY(-2px);
}

.prices-treatment__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.prices-treatment__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
}

.prices-treatment__price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.prices-treatment__price-option {
  text-align: right;
  margin-bottom: var(--space-md);
}

.prices-treatment__price-option:last-child {
  margin-bottom: 0;
}

.prices-treatment__price-option .prices-treatment__price {
  display: block;
}

.prices-treatment__price-option .prices-treatment__price-label {
  display: block;
  margin-bottom: 0;
  margin-top: 2px;
}

.prices-treatment__price-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: lowercase;
}

.prices-treatment__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--accent);
  font-weight: 700;
}

.prices-treatment__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* Formatted descriptions (smart bullets & numbered lists) */
.desc-formatted {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.desc-bullet,
.desc-numbered {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.2em;
}

.desc-bullet__icon,
.desc-num__icon {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85em;
  line-height: 1.8;
}

.desc-line {
  display: block;
}

/* Breakdown table */
.prices-breakdown {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}

.prices-breakdown__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.prices-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.prices-breakdown__label {
  color: var(--text-secondary);
}

.prices-breakdown__price {
  color: var(--text-primary);
  font-weight: 500;
}

/* Doctor tiers */
.prices-tiers {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}

.prices-tiers__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.prices-tier__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.prices-tier__label {
  color: var(--text-secondary);
}

.prices-tier__price {
  color: var(--text-primary);
  font-weight: 500;
}

/* Packages */
.prices-packages {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}

.prices-packages__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.prices-packages__grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.prices-package {
  flex: 1;
  min-width: 140px;
  padding: var(--space-md);
  background: rgba(136, 146, 109, 0.08);
  border: 1px solid rgba(136, 146, 109, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
}

.prices-package__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.prices-package__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
  font-weight: 700;
}

.prices-package__desc {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* Notes */
.prices-notes {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
}

.prices-notes__item {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.prices-notes__item::before {
  content: '* ';
}

/* Subgroup */
.prices-subgroup {
  margin-top: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent);
}

.prices-subgroup__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  position: sticky;
  top: var(--sticky-group-h, 115px);
  z-index: 4;
  padding: var(--space-md) 0 var(--space-sm) 0;
  /* Extend background to cover the subgroup's left padding + border */
  margin-left: calc(-1 * var(--space-lg) - 2px);
  padding-left: calc(var(--space-lg) + 2px);
}

.prices-brand-section--clinic .prices-subgroup__title {
  background: var(--dark);
}

.prices-brand-section--wellness .prices-subgroup__title {
  background: var(--ivory);
}

.prices-subgroup__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Footer */
.prices-footer {
  text-align: center;
  padding: var(--space-2xl) var(--container-padding);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-primary);
}

.prices-footer a {
  color: var(--accent);
  text-decoration: none;
}

.prices-footer a:hover {
  text-decoration: underline;
}

/* --- Sidebar Table-of-Contents --- */

.prices-toc {
  position: fixed;
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  font-family: var(--font-body);
  /* Defaults tuned for the clinic (dark) section */
  --toc-text: rgba(241, 235, 223, 0.42);
  --toc-text-hover: var(--ivory);
  --toc-text-active: var(--ivory);
  --toc-heading: rgba(193, 194, 176, 0.5);
  --toc-border: rgba(193, 194, 176, 0.18);
  --toc-active-bg: rgba(136, 146, 109, 0.12);
  --toc-divider: rgba(193, 194, 176, 0.12);
  transition: color var(--duration-base) var(--ease-out);
}

.prices-toc--wellness {
  --toc-text: rgba(58, 69, 52, 0.62);
  --toc-text-hover: var(--dark);
  --toc-text-active: var(--dark);
  --toc-heading: var(--dark);
  --toc-border: rgba(58, 69, 52, 0.28);
  --toc-active-bg: rgba(136, 146, 109, 0.14);
  --toc-divider: rgba(58, 69, 52, 0.18);
}

.prices-toc__inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.prices-toc__inner::-webkit-scrollbar { display: none; }

.prices-toc__section + .prices-toc__section {
  padding-top: var(--space-md);
  border-top: 1px solid var(--toc-divider);
}

.prices-toc__heading {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--toc-heading);
  padding-left: 8px;
  margin-bottom: var(--space-sm);
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-out);
}

.prices-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prices-toc__item {
  position: relative;
}

.prices-toc__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--toc-text);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.prices-toc__num {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 1.6em;
  transition: color var(--duration-fast) var(--ease-out);
}

.prices-toc__label {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.5;
  transition: opacity var(--duration-base) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

/* Hover/focus brightens all labels slightly */
.prices-toc:hover .prices-toc__label,
.prices-toc:focus-within .prices-toc__label {
  opacity: 0.8;
}

/* Hover state on individual items */
.prices-toc__link:hover,
.prices-toc__link:focus-visible {
  color: var(--toc-text-hover);
  outline: none;
}

.prices-toc__link:hover .prices-toc__num,
.prices-toc__link:focus-visible .prices-toc__num {
  color: var(--accent);
}

/* Active item — always reveals its label */
.prices-toc__item--active .prices-toc__link {
  color: var(--toc-text-active);
  border-color: var(--accent);
  background: var(--toc-active-bg);
}

.prices-toc__item--active .prices-toc__num {
  color: var(--accent);
  font-weight: 600;
}

.prices-toc__item--active .prices-toc__label {
  opacity: 1;
  font-weight: 500;
}

/* Default: short brand letter only used on mobile collapsed state */
.prices-toc__heading-short { display: none; }

/* --- Mobile/tablet: docks to the right, collapses to a thin spine --- */
@media (max-width: 1100px) {
  .prices-toc {
    left: auto;
    right: var(--space-md);
    z-index: 25;
  }

  .prices-toc__inner {
    background: var(--dark);
    border: 1px solid rgba(193, 194, 176, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-xs);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    max-height: 80vh;
    transition: padding var(--duration-base) var(--ease-out);
  }

  .prices-toc--wellness .prices-toc__inner {
    background: var(--ivory);
    border-color: rgba(58, 69, 52, 0.25);
    box-shadow: 0 8px 32px rgba(58, 69, 52, 0.18);
  }

  /* Collapsed state — thin spine showing brand letter + numbers */
  .prices-toc__heading {
    text-align: center;
    padding-left: 0;
    margin-bottom: var(--space-xs);
  }

  .prices-toc__heading-full { display: none; }
  .prices-toc__heading-short {
    display: inline;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  .prices-toc__link {
    padding: 10px 6px;
    justify-content: center;
    gap: 0;
  }

  .prices-toc__num {
    width: auto;
    text-align: center;
  }

  .prices-toc__label { display: none; }

  /* Expanded state — full panel slides into view */
  .prices-toc--expanded .prices-toc__inner {
    padding: var(--space-md);
  }

  .prices-toc--expanded .prices-toc__heading {
    text-align: left;
    padding-left: 8px;
    margin-bottom: var(--space-sm);
  }

  .prices-toc--expanded .prices-toc__heading-full { display: inline; }
  .prices-toc--expanded .prices-toc__heading-short { display: none; }

  .prices-toc--expanded .prices-toc__link {
    padding: 10px 10px;
    justify-content: flex-start;
    gap: var(--space-sm);
  }

  .prices-toc--expanded .prices-toc__num {
    width: 1.6em;
    text-align: left;
  }

  .prices-toc--expanded .prices-toc__label {
    display: inline;
    max-width: 220px;
    opacity: 1;
  }
}

/* Desktop gutter — give the TOC its own column so content doesn't sit under it */
@media (min-width: 1101px) {
  .prices-page { --toc-gutter: 320px; }

  .prices-header,
  .prices-search,
  .prices-brand-section { padding-left: var(--toc-gutter); }
}

/* Mobile gutter — reserve space on the right so the docked TOC spine
   doesn't sit on top of the price content */
@media (max-width: 1100px) {
  .prices-header,
  .prices-search,
  .prices-brand-section { padding-right: 64px; }
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .prices-gate__card {
    padding: var(--space-3xl) var(--space-xl);
  }

  .prices-treatment__header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .prices-treatment__price-wrap {
    text-align: left;
  }

  .prices-treatment__price-option {
    text-align: left;
  }

  .prices-discount {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .prices-packages__grid {
    flex-direction: column;
  }

  .prices-package {
    min-width: unset;
  }

  .prices-header {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
  }

  .prices-search__updated {
    display: none;
  }

  .prices-subgroup {
    padding-left: var(--space-md);
  }

  /* sticky offsets are measured by JS for both desktop and mobile */

  .prices-search__input {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-lg);
    padding-left: calc(var(--space-md) + 22px);
    padding-right: calc(var(--space-md) + 22px);
  }

  .prices-search__icon {
    width: 15px;
    height: 15px;
  }

  .prices-group__title {
    font-size: var(--text-xl);
  }

  .prices-subgroup__title {
    font-size: var(--text-lg);
    margin-left: calc(-1 * var(--space-md) - 2px);
    padding-left: calc(var(--space-md) + 2px);
  }
}
