/* Support plan comparison — lane styles shared by the product page's
   compare-plans modal (.support-modal, shell in alpha-cube.css) and the legal
   pages' standalone in-place modal (.support-plans-modal, shell below). Lane
   markup is rendered by assets/scripts/support-lanes.mjs for both. */

.support-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 2px 0 6px;
}

.support-lane {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: var(--surface-raised);
}

/* Neither tier owns a hue: Concierge and Command are the same product at two
   service levels, and a color per tier would read as good/bad. The only ruby
   in the support UI is the selected plan option (.support-option.is-selected). */
.support-lane-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Published base per-Cube rates from SUPPORT_MONTHLY_RATES — on the product
   page filtered to the model(s) in the cart (mixed cart shows both, empty
   cart shows both); the legal pages always show both. See support-lanes.mjs. */
.support-lane-rates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 2px;
}

.support-lane-rate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.support-lane-rate-model {
  font-size: 12px;
  color: var(--text-muted);
}

.support-lane-rate-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.support-lane-rate-value small {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-tertiary);
  margin-left: 3px;
}

.support-lane-gist {
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.support-lane-plus {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.support-lane-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-lane-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.support-lane-tick {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

/* Standalone shell for the legal pages' in-place modal. Mirrors the product
   page's .specs-overlay/.specs-modal treatment (alpha-cube.css) but carries no
   dependency on it — the legal pages do not load that stylesheet. */
.support-plans-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.support-plans-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.support-plans-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(680px, 100vw - 32px);
  max-height: min(80vh, 760px);
  overflow: hidden;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%);
  transition:
    transform 0.26s var(--ease-out-quart),
    opacity 0.22s ease;
}

.support-plans-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.support-plans-header {
  padding: 28px 32px 0;
}

.support-plans-eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.support-plans-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.support-plans-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.16s var(--ease-out-quart),
    border-color 0.16s var(--ease-out-quart);
}

.support-plans-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.support-plans-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 32px 8px;
}

.support-plans-foot {
  padding: 14px 32px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.support-plans-foot a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Scroll lock while the modal is open. Applied to <html> by
   support-plans-modal.mjs; fixed-position body keeps the page from scrolling
   underneath without a body.style.overflow write. */
html.is-support-plans-open,
html.is-support-plans-open body {
  overflow: hidden;
}

@media (max-width: 620px) {
  .support-lanes {
    grid-template-columns: 1fr;
  }

  .support-plans-modal .support-plans-header {
    padding: 28px 20px 0;
  }

  .support-plans-modal .support-plans-body {
    padding: 12px 20px 8px;
  }

  .support-plans-modal .support-plans-foot {
    padding: 14px 20px 18px;
  }
}
