/* =========================================================================
   Access tiers (BRIEF §17): the shared Members-only screen, the inline
   teaser and the nav lock marks.
   Styled per docs/DESIGN.md: navy-50 badge circle, 16px cards, 48px primary,
   tabular figures on prices, red is NOT used (a lock is not an error).
   Token-driven (var(--surface), var(--ink), …) so light and dark both work.
   ========================================================================= */

/* ---------------------------------------------------------- nav lock mark */

.tab.is-locked .tab-icon { opacity: .72; }
.tab-lock {
  position: absolute;
  top: 5px;
  right: calc(50% - 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-strong);
  pointer-events: none;
}
.tab-lock svg { width: 12px; height: 12px; display: block; }
.rail .tab-lock {
  position: static;
  margin-left: auto;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .86);
  box-shadow: none;
}

.more-tile.is-locked .more-tile-icon { opacity: .72; }
.more-tile-lock {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.more-tile-lock svg { width: 12px; height: 12px; }

/* ------------------------------------------------------ Members-only view */

.locked {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s-2) 0 var(--s-6);
}

.locked-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-6) var(--s-4) var(--s-5);
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--s-4);
  border-radius: 999px;
  background: #edf6ff; /* navy-50 */
  color: #2858b0;      /* navy-600 */
  box-shadow: inset 0 0 0 1px rgba(0, 32, 96, .08);
}
.locked-badge svg { width: 34px; height: 34px; }

.locked-overline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--s-2);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2858b0;
}
.locked-overline-icon svg { width: 12px; height: 12px; display: block; }

.locked-title {
  margin: 0 0 var(--s-2);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.locked-lead {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

.locked-card { padding: var(--s-5); border-radius: 16px; }

.locked-points {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.locked-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: var(--s-3);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}
.locked-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf6ff;
  color: #0f6b41;
}
.locked-point-icon svg { width: 16px; height: 16px; }

.locked-price {
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
  border-radius: 12px;
  background: var(--surface-2);
}
.locked-price-label {
  margin: 0 0 var(--s-3);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}
.locked-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.locked-price-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.locked-price-cell.is-member { border-color: #2858b0; box-shadow: inset 0 0 0 1px #2858b0; }
.locked-price-tier { font-size: .75rem; font-weight: 600; color: var(--muted); }
.locked-price-amount {
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.locked-price-save {
  margin: var(--s-3) 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: #0f6b41;
}

.locked-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.locked-actions .btn { min-height: 48px; width: 100%; justify-content: center; border-radius: 12px; }

.locked-fine {
  max-width: 44ch;
  margin: var(--s-4) auto 0;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ------------------------------------------------------- inline teaser */

.locked-teaser { border-radius: 16px; border: 1px dashed var(--line-strong); }
.locked-teaser-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-3);
  align-items: start;
  margin-bottom: var(--s-4);
}
.locked-teaser-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #edf6ff;
  color: #2858b0;
}
.locked-teaser-title { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.locked-teaser-body { margin: var(--s-1) 0 0; font-size: .9375rem; color: var(--ink-2); }
.locked-teaser .locked-points { margin-bottom: var(--s-4); }
.locked-teaser.is-compact .locked-teaser-head { margin-bottom: var(--s-3); }
@media (min-width: 600px) {
  .locked-teaser .locked-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .locked-teaser .locked-actions .btn { width: auto; padding-inline: var(--s-5); }
}

/* a small lock chip other screens can put on a member-only row */
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.lock-chip svg { width: 12px; height: 12px; }

/* rate chips for member / non-member prices */
.rate-note {
  display: block;
  margin-top: 2px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rate-note.is-save { color: var(--success); }

/* ------------------------------------------------ Become-a-member (Home) */

.home-join {
  position: relative;
  padding: var(--s-5);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 15% 0%, #123e8d 0, transparent 60%),
    radial-gradient(100% 100% at 85% 100%, #001043 0, transparent 55%),
    linear-gradient(160deg, #06296a, #002060);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), var(--sh-2);
}
.home-join-overline {
  margin: 0 0 var(--s-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c1dbff;
}
.home-join-title { margin: 0 0 var(--s-2); font-size: 1.375rem; line-height: 1.25; font-weight: 700; color: #fff; padding-right: 36px; }
.home-join-body { margin: 0 0 var(--s-4); color: rgba(255, 255, 255, .84); font-size: .9375rem; line-height: 1.45; }
.home-join-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.home-join-actions .btn { min-height: 44px; }
.home-join .btn.primary { background: #fff; color: #002060; }
.home-join .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.home-join-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.home-join-close:hover { background: rgba(255, 255, 255, .12); }
.home-hello-role {
  display: inline-flex;
  margin-top: var(--s-2);
  padding: 2px var(--s-2);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 600;
}

