/* ═══════════════════════════════════════════════════════════════════════════
   CONCIERGE TRACK WAITLIST — tile accents + modal (all three protocol pages)

   Namespace is wl-*, deliberately NOT .moc-modal-* / .modal-trigger: those
   classes are auto-bound by menu-of-care.js and mixing owners of the open
   state is how modals break. The visuals mirror the moc modal on purpose —
   same scrim, easing, sheet choreography, radii — so it reads as one system.

   Every form-control property is set explicitly on a class. On
   surya-namaskar.html the compiled Tailwind preflight (loaded last, position
   load-bearing) resets input/select/button ELEMENT defaults; class selectors
   out-rank element selectors regardless of order, so nothing here may lean on
   a UA or element default.

   Font stacks copy menu-of-care.css verbatim — var(--f-sans, 'Lato',
   sans-serif) / var(--f-serif, 'Cormorant Garamond', serif) — so the modal
   matches the tier cards on every page's token set (soft-cycle defines only
   --sc-* font tokens; the fallback carries it there).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tile accents (dark Tier 03 card) ─── */

/* Capacity band (redesigned 2026-08-31, third pass): a full-width strip
   across the very top of the dark card — architecture, not a sticker. The
   two earlier forms (outlined pill, then a solid pill in the body stack)
   both interrupted the eyebrow → name → price rhythm the three tiles share
   and out-shouted the $999. Full-bleed defines the card's top edge, so it
   cannot sit "misaligned"; cream-on-ink stays the deliberate inverse of
   Tier 2's charcoal "Most Chosen" pill (most chosen vs most exclusive), and
   Tier 2 keeps the only floating badge. Type matches .moc-card__badge
   (menu-of-care.css:253): 0.75rem — also the documented 12px floor — /700/
   0.18em. The card's overflow:hidden + 20px radius clip the band's corners. */
.wl-capacity-band {
  width: 100%;
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  background: var(--cream, #F9F8F2);
  color: var(--charcoal, #2C2C2C);
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.wl-season-note {
  margin: 0.65rem 0 0.15rem;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(249, 248, 242, 0.5);
}

/* ─── Utility: visually hidden (clip-rect — honeypot must NOT be display:none,
       bots skip those) ─── */
.wl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── Overlay ─── */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(42, 42, 42, 0.4);
  transition: opacity 0.6s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1)), visibility 0.6s;
  /* On the base rule deliberately, matching .moc-modal-overlay: scoping the
     blur to .is-open drops it in one frame at close while the scrim is still
     opaque — the page shows sharply through a 40% wash for the whole fade. */
  backdrop-filter: var(--glass-blur-lg, blur(24px));
  -webkit-backdrop-filter: var(--glass-blur-lg, blur(24px));
}
.wl-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  will-change: opacity;
}

body.wl-modal-open {
  overflow: hidden;
}

/* ─── Panel — MOBILE: bottom sheet (auto height; this is a short form,
       not the 90svh video modal) ─── */
.wl-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  max-height: 90svh;
  background: var(--cream, #F9F8F2);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.6s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}
.wl-overlay.is-open .wl-panel {
  transform: translateY(0);
  will-change: transform;
}

/* ─── Close — 44×44 min ─── */
.wl-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  z-index: 10;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 42, 42, 0.06);
  margin: 0.75rem 0.75rem 0 0;
  flex-shrink: 0;
  transition: background 0.3s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.wl-close svg {
  width: 18px;
  height: 18px;
  color: var(--charcoal, #2C2C2C);
}
.wl-close:hover {
  background: rgba(42, 42, 42, 0.12);
}

/* ─── Scroll area ─── */
.wl-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 2rem;
}
.wl-overlay,
.wl-panel,
.wl-scroll {
  overscroll-behavior: contain;
}

/* ─── Copy ─── */
.wl-eyebrow {
  display: block;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep, #5A6457);
  margin-bottom: 0.75rem;
}
.wl-heading {
  font-family: var(--f-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 1.4vw + 1.3rem, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal, #2C2C2C);
  margin: 0 0 0.6rem;
}
.wl-subline {
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(44, 44, 44, 0.75);
  margin: 0 0 0.5rem;
}

/* ─── Form ─── */
.wl-field {
  margin-top: 1.25rem;
}
.wl-label {
  display: block;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal, #2C2C2C);
  margin-bottom: var(--field-gap, 0.5rem);
}
.wl-input {
  display: block;
  width: 100%;
  min-height: var(--field-height, 48px);
  padding: 0 var(--field-pad-x, 1rem);
  background: var(--field-bg, #FDFDFB);
  border: 1px solid var(--field-border, rgba(44, 44, 44, 0.55));
  border-radius: var(--field-radius, 16px);
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 1rem; /* 16px floor — anything smaller makes iOS Safari zoom the page on focus */
  font-weight: 300;
  color: var(--charcoal, #2C2C2C);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.wl-input:hover {
  border-color: var(--field-border-hover, rgba(44, 44, 44, 0.70));
}
.wl-input[aria-invalid="true"] {
  border-color: var(--field-error, #5C4033);
}
/* Focus ring is the sitewide :focus-visible rule in style.css — nothing extra here. */

.wl-select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232C2C2C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.wl-error {
  margin: 0.5rem 0 0;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--field-error, #5C4033);
}
.wl-error--form {
  margin-top: 1rem;
  text-align: center;
}

.wl-microcopy {
  margin: 1.5rem 0 0;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: var(--fs-micro, 0.75rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(44, 44, 44, 0.6);
}

.wl-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--charcoal, #2C2C2C);
  color: var(--cream, #F9F8F2);
  border: none;
  border-radius: 14px;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.wl-submit:hover {
  opacity: 0.92;
}
.wl-submit:disabled {
  opacity: 0.75;
  cursor: default;
}

/* ─── Success state ─── */
.wl-state--success {
  text-align: center;
  padding-top: 0.5rem;
}
.wl-success-heading {
  font-family: var(--f-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 1.4vw + 1.3rem, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal, #2C2C2C);
  margin: 0 0 0.75rem;
  outline: none;
}
.wl-success-body {
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(44, 44, 44, 0.8);
  margin: 0 auto;
  max-width: 40ch;
}
.wl-divider {
  width: 48px;
  height: 1px;
  border: none;
  background: rgba(44, 44, 44, 0.15);
  margin: 1.75rem auto;
}
.wl-bridge-line {
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(44, 44, 44, 0.7);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
}
.wl-bridge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--charcoal, #2C2C2C);
  border: 1.5px solid var(--charcoal, #2C2C2C);
  border-radius: 14px;
  font-family: var(--f-sans, 'Lato', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s var(--moc-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}
.wl-bridge:hover {
  opacity: 0.8;
}

/* ─── Desktop: centered float ─── */
@media (min-width: 768px) {
  .wl-panel {
    position: absolute;
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    width: 92%;
    max-width: 560px;
    max-height: 85svh;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  }
  .wl-overlay.is-open .wl-panel {
    transform: translate(-50%, -50%) translateY(0);
  }
  .wl-scroll {
    padding: 0 2.5rem 2.5rem;
  }
}

/* ─── Reduced motion: end states, no travel ─── */
@media (prefers-reduced-motion: reduce) {
  .wl-overlay,
  .wl-panel,
  .wl-close,
  .wl-input,
  .wl-submit,
  .wl-bridge {
    transition: none;
  }
  .wl-panel {
    transform: translateY(0);
  }
  @media (min-width: 768px) {
    .wl-panel,
    .wl-overlay.is-open .wl-panel {
      transform: translate(-50%, -50%);
    }
  }
}
