/* =============================================================
   join.teamgm.in/lifestyle — page-specific classes only.
   Uses website.css tokens (var(--ws-*)) exclusively. No new colours/fonts.
   ============================================================= */

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

/* ── Plan segment toggle ─────────────────────────────────── */
.ws-segment {
  display: inline-flex;
  background: var(--ws-card2);
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}
.ws-segment__btn {
  border: none;
  background: transparent;
  color: var(--ws-muted2);
  font-family: var(--ws-font-b);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
}
.ws-segment__btn[aria-selected="true"] {
  background: #fff;
  color: var(--ws-bg);
}

/* ── Plan cards ──────────────────────────────────────────── */
.ws-plans-g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.ws-plan-card { position: relative; text-align: center; }
.ws-plan-card--highlight { order: -1; }
@media (min-width: 641px) {
  .ws-plan-card--highlight { order: 0; transform: scale(1.03); }
}
.ws-plan-card__pill {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
}
.ws-plan-card__weeks {
  font-family: var(--ws-font-h);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ws-muted2);
  margin-top: 6px;
  margin-bottom: 12px;
}
.ws-price-was {
  display: block;
  font-size: 13px;
  color: var(--ws-muted);
  margin-bottom: 2px;
}
.ws-price-was s { text-decoration: line-through; }
.ws-plan-card .ws-price { display: block; }
.ws-plan-card__note {
  font-size: 13px;
  color: var(--ws-muted2);
  margin-top: 12px;
  line-height: 1.5;
}
.ws-plan-card__cta { margin-top: 18px; }
.ws-plan-card__link {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ws-muted2);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ws-font-b);
}
.ws-plan-card__pending {
  font-size: 11px;
  color: var(--ws-muted);
  margin-top: 6px;
}

/* ── Sticky mobile buy bar ───────────────────────────────── */
.ws-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: #000;
  border-top: 1px solid var(--ws-line);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ws-sticky-cta.is-visible { display: flex; }
.ws-sticky-cta__text { font-size: 13px; line-height: 1.3; }
.ws-sticky-cta__text strong { display: block; font-size: 14px; }
.ws-sticky-cta .ws-btn { padding: 10px 20px; font-size: 13px; }
@media (min-width: 641px) { .ws-sticky-cta { display: none !important; } }

/* ── Buy sheet / panel ───────────────────────────────────── */
.ws-sheet-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 300;
}
.ws-sheet-backdrop.is-open { display: block; }
.ws-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--ws-card);
  border-top: 1px solid var(--ws-line);
  border-radius: 16px 16px 0 0;
  padding: 22px 22px 28px;
  z-index: 301;
  transform: translateY(100%);
  transition: transform .22s ease;
}
.ws-sheet.is-open { transform: translateY(0); }
@media (min-width: 960px) {
  .ws-sheet {
    left: auto;
    top: 0; bottom: 0;
    width: 420px;
    max-height: none;
    border-radius: 0;
    border-left: 1px solid var(--ws-line);
    border-top: none;
    transform: translateX(100%);
  }
  .ws-sheet.is-open { transform: translateX(0); }
}
.ws-sheet__handle {
  width: 36px; height: 4px;
  background: var(--ws-line);
  border-radius: 2px;
  margin: 0 auto 14px;
}
@media (min-width: 960px) { .ws-sheet__handle { display: none; } }
.ws-sheet__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--ws-muted2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.ws-sheet__header { margin-bottom: 22px; padding-right: 30px; }
.ws-sheet__plan { font-family: var(--ws-font-h); font-size: 18px; text-transform: uppercase; }
.ws-sheet__price { font-family: var(--ws-font-h); font-size: 28px; color: var(--ws-red); margin-top: 4px; }

.ws-field { margin-bottom: 16px; }
.ws-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-muted2);
  margin-bottom: 6px;
}
.ws-field input,
.ws-field select {
  width: 100%;
  background: var(--ws-card2);
  border: 1px solid var(--ws-line);
  border-radius: 6px;
  color: #fff;
  font-family: var(--ws-font-b);
  font-size: 15px;
  padding: 12px 14px;
}
.ws-field input:focus,
.ws-field select:focus { outline: 2px solid var(--ws-red); outline-offset: 1px; }
.ws-field[aria-invalid="true"] input,
.ws-field[aria-invalid="true"] select { border-color: var(--ws-red); }
.ws-field__error { display: none; font-size: 12px; color: var(--ws-red); margin-top: 6px; }
.ws-field[aria-invalid="true"] .ws-field__error { display: block; }
.ws-field--phone { display: flex; gap: 8px; }
.ws-field--phone select { flex: 0 0 90px; }
.ws-field--phone input { flex: 1; }

.ws-checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.ws-checkbox-row input { margin-top: 3px; }
.ws-checkbox-row label { font-size: 13px; color: var(--ws-muted2); line-height: 1.5; }
.ws-checkbox-row a { color: var(--ws-red); text-decoration: none; }
.ws-checkbox-row a:hover { text-decoration: underline; }

.ws-sheet__notice {
  display: none;
  font-size: 13px;
  color: var(--ws-muted2);
  background: var(--ws-card2);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 14px;
}
.ws-sheet__notice.is-shown { display: block; }

@media (max-width: 640px) {
  .ws-plans-g3 { grid-template-columns: 1fr; }
  .ws-plan-card--highlight { transform: none; }
}

/* Essential vs Premium comparison: table on desktop, two stacked cards on phones (owner 2026-09-29) */
.ws-compare-cards { display: none; }
.ws-compare-card + .ws-compare-card { margin-top: 16px; }
.ws-compare-card dl { margin: 0; }
.ws-compare-card dt { color: var(--ws-muted2); font-size: 13px; margin-top: 12px; }
.ws-compare-card dt:first-child { margin-top: 0; }
.ws-compare-card dd { margin: 2px 0 0; color: #fff; }
@media (max-width: 640px) {
  .ws-compare-cards { display: block; }
  .ws-compare-table { display: none; }
}

/* ── call-with-dr-gm.html — page-local additions ────────────── */
.cwgm-hero { align-items: start; padding: 0 24px; } /* keep .ws-wrap side gutter; .ws-section already gives vertical space */
.cwgm-form-col { position: sticky; top: 24px; align-self: start; }
.cwgm-alt-link { text-align: center; margin-top: 16px; font-size: 13px; }
.cwgm-alt-link a { color: var(--ws-muted2); text-decoration: underline; }
.cwgm-alt-link a:hover { color: #fff; }
.cwgm-preview-switcher { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ws-muted); }
.cwgm-preview-switcher a { color: var(--ws-muted); text-decoration: underline; margin: 0 4px; }
@media (max-width: 960px) {
  .cwgm-form-col { position: static; }
  .cwgm-hero { padding: 0 16px; }
}

/* ── lifestyle.html — simplified header/footer (owner-approved restyle 2026-09-29) ── */
/* website.css hides .ws-nav__ctas below 640px alongside the removed hamburger menu;
   this page has no hamburger anymore, so keep the single "See plans" CTA visible. */
@media (max-width: 640px) {
  .ws-nav__ctas { display: flex; }
}
.ws-footer__grid--simple {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
@media (max-width: 640px) {
  .ws-footer__grid--simple { grid-template-columns: 1fr; text-align: center; }
}

/* ux-auditor fixes 2026-09-29: keyboard focus, 44px touch targets, readable logo */
.ws-btn:focus-visible, .ws-segment__btn:focus-visible, a:focus-visible, .ws-field input[type="checkbox"]:focus-visible {
  outline: 2px solid #fff; outline-offset: 3px;
}
.ws-nav img { height: 44px; width: auto; }
.ws-nav .ws-btn, .ws-segment__btn { min-height: 44px; }
.ws-plan-card a:not(.ws-btn), .cwgm-alt-link a, .ws-footer a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
}

.ws-plan-card__link { display: flex; align-items: center; justify-content: center; min-height: 44px; }

/* Dr GM headshot (owner photo, 2026-09-29) */
.cwgm-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; border: 2px solid var(--ws-line); }
.join-gm-photo { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 640px) { .join-gm-photo { max-width: 240px; margin: 0 auto; } }

/* Meet the coaches (2026-09-29) */
.ws-coaches__head { text-align: center; margin-bottom: 32px; }
.ws-coaches__head .ws-h2 { margin: 8px 0 12px; }
.ws-coaches__head .ws-lead-sm { max-width: 620px; margin: 0 auto; }
.ws-coaches__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ws-coach { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; }
.ws-coach__body { padding: 20px; }
.ws-coach__photo { aspect-ratio: 1 / 1; background: var(--ws-card2); position: relative; }
.ws-coach__photo::before { content: attr(data-initials); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--ws-font-h); font-weight: 700; font-size: 36px; color: var(--ws-muted); }
.ws-coach__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ws-coach__title { font-size: 13px; color: var(--ws-muted2); margin: 4px 0 0; }
.ws-coach__more .ws-lead-sm { margin: 10px 0 0; }
.ws-coach__more .ws-lead-sm:first-child { margin-top: 14px; }
.ws-coach--lead { flex-basis: 100%; display: grid; grid-template-columns: 300px 1fr; }
.ws-coach--lead .ws-coach__body { padding: 28px; }
.ws-coach__call { background: var(--ws-card2); border: 1px solid var(--ws-line); border-left: 3px solid var(--ws-red); border-radius: 8px; padding: 14px 16px; margin-top: 16px; font-size: 14px; color: var(--ws-muted2); }
.ws-coach__call strong { color: #fff; font-weight: 600; font-size: 13px; }
.ws-coach__cert { font-size: 12px; color: var(--ws-muted); border-top: 1px solid var(--ws-line); padding-top: 12px; margin: 14px 0 0; }
@media (prefers-reduced-motion: no-preference) { .ws-coach { transition: border-color .2s; } .ws-coach:hover { border-color: var(--ws-muted); } }
@media (max-width: 960px) { .ws-coach { flex-basis: calc((100% - 20px) / 2); } .ws-coach--lead { flex-basis: 100%; grid-template-columns: 240px 1fr; } }
@media (max-width: 640px) {
  .ws-coaches__grid { gap: 12px; }
  .ws-coach, .ws-coach--lead { flex-basis: 100%; display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; padding: 16px; }
  .ws-coach__body, .ws-coach--lead .ws-coach__body { display: contents; padding: 0; }
  .ws-coach__photo { border-radius: 10px; overflow: hidden; }
  .ws-coach__head { align-self: center; }
  .ws-coach__more { grid-column: 1 / -1; }
}
