/* BL-001 R1 corrective: pricing-page-scoped presentation for the consulting
 * comparison table on narrow screens. Loaded ONLY by the two pricing templates.
 * Everything is scoped to .pricing-comparison* classes; generic comparison
 * tables (blog, other pages) and shared controls are untouched. */

/* The running-cost note is rendered OUTSIDE the scrollable wrapper by the
 * pricing templates, so it stays visible independently of any table scrolling. */
.pricing-cost-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  /* Stacked card presentation: no inner horizontal scrolling, every value
   * and action inside the viewport, readable without panning. */
  .pricing-comparison-wrapper {
    overflow-x: visible;
    border: none;
  }

  .pricing-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .pricing-comparison,
  .pricing-comparison tbody,
  .pricing-comparison tr,
  .pricing-comparison td {
    display: block;
    width: 100%;
  }

  .pricing-comparison tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 1rem;
  }

  .pricing-comparison tr:hover td {
    background: transparent;
  }

  .pricing-comparison td {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
  }

  .pricing-comparison tr td:last-child {
    border-bottom: none;
  }

  .pricing-comparison td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
  }

  /* Comfortable touch/keyboard target for the row action. */
  .pricing-comparison td.pricing-cta-cell {
    padding: 0.85rem 1rem 0.75rem;
  }

  .pricing-comparison td.pricing-cta-cell a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
  }
}

/* BL-001: Personal AI Session card grid. Sits directly above the group grid;
 * the shared .pricing-grid gap does not separate ADJACENT grid containers, so
 * this scoped rule supplies the same 1.25rem card spacing between them.
 * Loaded only by the two pricing templates; no other grid is affected. */
.pricing-grid-personal { margin-bottom: 1.25rem; }

/* BL-001 corrective: Personal card price hierarchy + feature-list measure.
 * The qualifier span carries the accepted key's own parenthetical in
 * supporting type beneath the prominent amount (single source string). */
.pricing-amount .pricing-amount-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Constrain the Personal feature list to a comfortable desktop reading
 * measure inside the full-width card; centered; no effect at mobile widths
 * (card inner width < 46rem). Pricing-scoped; other grids untouched. */
.pricing-grid-personal .pricing-features {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
