/* ============================================================
   Wayvr — Public (attendee-facing) styles
   Mobile-first, single column, max 480px centred.
   Requires wayvr-tokens.css to be loaded first.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── Page shell ──────────────────────────────────────────────── */
.wv-pub-page { background: var(--wv-bg); min-height: 100vh; }
.wv-pub-wrap { max-width: 1920px; margin: 0 auto; padding: var(--wv-space-6) var(--wv-space-5) var(--wv-space-20); }

/* ── Event hero ──────────────────────────────────────────────── */
.wv-event-hero { padding: var(--wv-space-8) 0 var(--wv-space-5); }
.wv-event-hero__eyebrow { font: var(--wv-text-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: var(--wv-fg-muted); margin-bottom: var(--wv-space-2); }
.wv-event-hero__title { font: var(--wv-text-h1); letter-spacing: -0.01em; margin-bottom: var(--wv-space-3); color: var(--wv-fg); }
.wv-event-hero__desc { font-size: 15px; color: var(--wv-fg-muted); line-height: 1.55; }

/* ── Cards ───────────────────────────────────────────────────── */
.wv-card { background: var(--wv-bg-elevated); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: var(--wv-space-6); box-shadow: var(--wv-shadow-sm); margin-bottom: var(--wv-space-4); }
.wv-card h2 { font: var(--wv-text-h2); letter-spacing: -0.01em; margin-bottom: var(--wv-space-4); color: var(--wv-fg); }
.wv-card h3 { font: var(--wv-text-h3); margin-bottom: var(--wv-space-3); color: var(--wv-fg); }
.wv-card p { font-size: 15px; color: var(--wv-fg-muted); line-height: 1.55; margin-bottom: var(--wv-space-3); }
.wv-card p:last-child { margin-bottom: 0; }

/* ── Waiver checklist (event landing) ───────────────────────── */
.wv-waiver-list { list-style: none; margin: var(--wv-space-4) 0; display: flex; flex-direction: column; gap: var(--wv-space-2); }
.wv-waiver-item { display: flex; align-items: center; gap: var(--wv-space-3); padding: var(--wv-space-3) var(--wv-space-4); background: var(--wv-ink-050); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); }
.wv-waiver-item__name { font-size: 14px; font-weight: 600; color: var(--wv-fg); flex: 1; }

/* ── CTA section (event landing) ────────────────────────────── */
.wv-cta-section { display: flex; flex-direction: column; gap: var(--wv-space-3); margin-top: var(--wv-space-5); }
.wv-cta-divider { text-align: center; font-size: 13px; color: var(--wv-fg-subtle); }

/* ── Buttons ─────────────────────────────────────────────────── */
.wv-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--wv-space-2); font: var(--wv-text-button); border: none; border-radius: var(--wv-radius-md); cursor: pointer; text-decoration: none; transition: background var(--wv-dur-base) var(--wv-ease), opacity var(--wv-dur-base) var(--wv-ease); white-space: nowrap; padding: var(--wv-space-3) var(--wv-space-5); }
.wv-btn:hover { text-decoration: none; }
.wv-btn--primary { background: var(--wv-bg-dark); color: #fff; }
.wv-btn--primary:hover { background: var(--wv-ink-800); color: #fff; }
.wv-btn--brand { background: var(--wv-gradient); color: #fff; box-shadow: var(--wv-shadow-brand); }
.wv-btn--brand:hover { opacity: 0.9; color: #fff; }
.wv-btn--secondary { background: transparent; color: var(--wv-fg); border: 1px solid var(--wv-border-strong); }
.wv-btn--secondary:hover { background: var(--wv-bg-hover); color: var(--wv-fg); }
.wv-btn--ghost { background: transparent; color: var(--wv-fg-muted); font-size: 14px; }
.wv-btn--ghost:hover { color: var(--wv-fg); text-decoration: underline; }
.wv-btn--block { width: 100%; padding: 14px var(--wv-space-6); font-size: 16px; }
.wv-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Form fields ─────────────────────────────────────────────── */
.wv-field { display: flex; flex-direction: column; gap: var(--wv-space-2); margin-bottom: var(--wv-space-4); }
.wv-field:last-of-type { margin-bottom: 0; }
.wv-label { font-size: 13px; font-weight: 600; color: var(--wv-fg); }
.wv-input, .wv-textarea, .wv-select { width: 100%; padding: var(--wv-space-3) 12px; border: 1px solid var(--wv-border-strong); border-radius: var(--wv-radius-md); font: var(--wv-text-body); background: var(--wv-bg-elevated); color: var(--wv-fg); outline: none; transition: border-color var(--wv-dur-base) var(--wv-ease), box-shadow var(--wv-dur-base) var(--wv-ease); }
.wv-input:focus, .wv-textarea:focus, .wv-select:focus { border-color: var(--wv-border-focus); box-shadow: var(--wv-shadow-focus); }
.wv-input::placeholder, .wv-textarea::placeholder { color: var(--wv-fg-subtle); }

/* ── Waiver form ─────────────────────────────────────────────── */
.wv-waiver-progress { display: flex; align-items: center; gap: var(--wv-space-3); margin-bottom: var(--wv-space-6); }
.wv-waiver-progress__label { font-size: 13px; font-weight: 600; color: var(--wv-fg-muted); white-space: nowrap; }
.wv-waiver-progress__bar { flex: 1; height: 4px; background: var(--wv-border); border-radius: var(--wv-radius-pill); overflow: hidden; }
.wv-waiver-progress__fill { height: 100%; background: var(--wv-gradient); border-radius: var(--wv-radius-pill); }
.wv-section-header { margin-bottom: var(--wv-space-5); }
.wv-section-header h1 { font: var(--wv-text-h1); letter-spacing: -0.01em; color: var(--wv-fg); margin-bottom: var(--wv-space-1); }
.wv-section-header p { font-size: 14px; color: var(--wv-fg-muted); }
.wv-waiver-text { background: var(--wv-ink-050); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); padding: var(--wv-space-4); font-size: 13px; line-height: 1.7; max-height: 280px; overflow-y: auto; margin-bottom: var(--wv-space-4); color: var(--wv-fg-muted); }
.wv-agree-row { display: flex; align-items: flex-start; gap: var(--wv-space-3); padding: var(--wv-space-4); background: var(--wv-bg-elevated); border: 2px solid var(--wv-border); border-radius: var(--wv-radius-md); cursor: pointer; transition: border-color var(--wv-dur-base) var(--wv-ease), background var(--wv-dur-base) var(--wv-ease); }
.wv-agree-row:has(input:checked) { border-color: var(--wv-electric-indigo); background: var(--wv-brand-soft); }
.wv-agree-row input[type=checkbox] { accent-color: var(--wv-electric-indigo); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.wv-agree-row__text { font-size: 14px; font-weight: 600; color: var(--wv-fg); }
.wv-checkbox-row { display: flex; align-items: flex-start; gap: var(--wv-space-3); cursor: pointer; }
.wv-checkbox-row input[type=checkbox] { accent-color: var(--wv-electric-indigo); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.wv-checkbox-row span { font-size: 14px; color: var(--wv-fg); }
.wv-attendee-recap { font-size: 14px; color: var(--wv-fg-muted); background: var(--wv-ink-050); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); padding: var(--wv-space-4); margin-bottom: var(--wv-space-4); }
.wv-attendee-recap strong { color: var(--wv-fg); }
.wv-attendee-block { background: var(--wv-ink-050); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); padding: var(--wv-space-5); margin-top: var(--wv-space-3); }
.wv-attendee-block__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--wv-space-4); }
.wv-attendee-block h3 { font: var(--wv-text-h3); margin: 0; }
.wv-form-actions { display: flex; flex-direction: column; gap: var(--wv-space-3); margin-top: var(--wv-space-6); }

/* ── Payment ─────────────────────────────────────────────────── */
.wv-attendee-tickets { display: flex; flex-direction: column; gap: var(--wv-space-4); margin-bottom: var(--wv-space-6); }
.wv-attendee-ticket { border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); overflow: hidden; }
.wv-attendee-ticket__header { padding: var(--wv-space-3) var(--wv-space-4); background: var(--wv-ink-050); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wv-fg-muted); border-bottom: 1px solid var(--wv-border); }
.wv-attendee-ticket__body { padding: var(--wv-space-3) var(--wv-space-4); background: var(--wv-bg-elevated); display: flex; flex-direction: column; gap: var(--wv-space-2); }
.wv-ticket-option { display: block; }
.wv-ticket-option input[type=radio] { display: none; }
.wv-ticket-option__card { display: flex; justify-content: space-between; align-items: center; padding: var(--wv-space-3) var(--wv-space-4); border: 2px solid var(--wv-border); border-radius: var(--wv-radius-sm); cursor: pointer; transition: border-color var(--wv-dur-base) var(--wv-ease), background var(--wv-dur-base) var(--wv-ease); }
.wv-ticket-option input:checked + .wv-ticket-option__card { border-color: var(--wv-electric-indigo); background: var(--wv-brand-soft); }
.wv-ticket-option__name { font-size: 14px; font-weight: 600; color: var(--wv-fg); }
.wv-ticket-option__price { font-size: 14px; font-weight: 700; color: var(--wv-fg); }
.wv-payment-methods { display: flex; flex-direction: column; gap: var(--wv-space-3); margin-bottom: var(--wv-space-5); }
.wv-payment-method { display: block; }
.wv-payment-method input[type=radio] { display: none; }
.wv-payment-method__card { display: flex; align-items: center; gap: var(--wv-space-3); padding: var(--wv-space-4); border: 2px solid var(--wv-border); border-radius: var(--wv-radius-md); cursor: pointer; transition: border-color var(--wv-dur-base) var(--wv-ease), background var(--wv-dur-base) var(--wv-ease); }
.wv-payment-method input:checked + .wv-payment-method__card { border-color: var(--wv-electric-indigo); background: var(--wv-brand-soft); }
.wv-payment-method__label { font-weight: 600; font-size: 15px; color: var(--wv-fg); }
.wv-payment-method__sub { font-size: 13px; color: var(--wv-fg-muted); }
.wv-payment-total { display: flex; justify-content: space-between; align-items: center; padding: var(--wv-space-4); background: var(--wv-bg-elevated); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-md); margin-bottom: var(--wv-space-5); }
.wv-payment-total__label { font-size: 14px; font-weight: 600; color: var(--wv-fg-muted); }
.wv-payment-total__amount { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--wv-fg); }
#card-container { margin: var(--wv-space-4) 0; }
#payment-status-container { min-height: 1.5rem; font-size: 14px; color: var(--wv-danger-ink); }

/* ── Confirmation / Success card ─────────────────────────────── */
.wv-success-card { background: var(--wv-ink-900); color: #fff; border-radius: var(--wv-radius-xl); padding: var(--wv-space-8); box-shadow: var(--wv-shadow-lg); position: relative; overflow: hidden; margin-bottom: var(--wv-space-5); }
.wv-success-card::before { content: ''; position: absolute; inset: 0; background: var(--wv-gradient-diag); opacity: 0.12; pointer-events: none; }
.wv-success-card__check { position: relative; width: 52px; height: 52px; background: var(--wv-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--wv-space-5); color: #fff; }
.wv-success-card h1 { position: relative; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: var(--wv-space-3); }
.wv-success-card__body { position: relative; font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: var(--wv-space-5); }
.wv-success-card__meta { position: relative; padding-top: var(--wv-space-4); border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: var(--wv-space-5); flex-wrap: wrap; }
.wv-success-card__meta-item { display: flex; flex-direction: column; gap: 3px; }
.wv-success-card__meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.45); font-weight: 600; }
.wv-success-card__meta-value { font-size: 14px; font-weight: 600; color: #fff; }

/* ── Status pills ────────────────────────────────────────────── */
.wv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.wv-pill::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wv-pill--signed { background: var(--wv-success-soft); color: var(--wv-success-ink); }
.wv-pill--signed::before { background: var(--wv-success); }
.wv-pill--pending { background: var(--wv-warning-soft); color: var(--wv-warning-ink); }
.wv-pill--pending::before { background: var(--wv-warning); }

/* ── Banner alerts ───────────────────────────────────────────── */
.wv-banner { display: flex; align-items: flex-start; gap: var(--wv-space-3); padding: var(--wv-space-4); border-radius: var(--wv-radius-md); font-size: 14px; line-height: 1.5; }
.wv-banner--warning { background: var(--wv-warning-soft); color: var(--wv-warning-ink); border: 1px solid var(--wv-warning); }
.wv-banner p { margin: 0; color: inherit; }

/* ── Misc public pages (return, link expired, etc.) ──────────── */
.wv-pub-center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--wv-space-12) 0; gap: var(--wv-space-4); }
.wv-pub-center h1 { font: var(--wv-text-h1); letter-spacing: -0.01em; color: var(--wv-fg); }
.wv-pub-center p { font-size: 15px; color: var(--wv-fg-muted); max-width: 340px; }
.wv-pub-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--wv-brand-soft); display: flex; align-items: center; justify-content: center; color: var(--wv-electric-indigo); }


/* ── Home page ───────────────────────────────────────────────── */
.wv-home { background: var(--wv-bg); min-height: 100vh; font-family: var(--wv-font-sans); }

/* Nav */
.wv-home-nav { background: var(--wv-bg-dark); display: flex; align-items: center; padding: 0 var(--wv-space-8); height: 64px; gap: var(--wv-space-3); }
.wv-home-nav__logo { height: 28px; display: block; }
.wv-home-nav__spacer { flex: 1; }
.wv-home-nav__link { color: rgba(255,255,255,0.72); font-size: 14px; font-weight: 500; text-decoration: none; padding: var(--wv-space-2) var(--wv-space-3); border-radius: var(--wv-radius-sm); transition: color var(--wv-dur-fast) var(--wv-ease), background var(--wv-dur-fast) var(--wv-ease); }
.wv-home-nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.wv-home-nav__cta { background: var(--wv-gradient); color: #fff; padding: var(--wv-space-2) var(--wv-space-4); border-radius: var(--wv-radius-md); font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity var(--wv-dur-fast) var(--wv-ease); }
.wv-home-nav__cta:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* Hero */
.wv-home-hero { background: var(--wv-bg-dark); padding: var(--wv-space-20) var(--wv-space-8) var(--wv-space-16); text-align: center; }
.wv-home-hero__inner { max-width: 680px; margin: 0 auto; }
.wv-home-hero__eyebrow { font: var(--wv-text-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wv-aqua-mint); margin-bottom: var(--wv-space-5); }
.wv-home-hero__title { font: 800 52px/1.1 var(--wv-font-display); color: #fff; margin-bottom: var(--wv-space-5); letter-spacing: -0.02em; }
.wv-home-hero__sub { font-size: 18px; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto var(--wv-space-8); line-height: 1.65; }
.wv-home-hero__ctas { display: flex; gap: var(--wv-space-3); justify-content: center; flex-wrap: wrap; }
.wv-btn--lg { padding: 14px var(--wv-space-8); font-size: 16px; border-radius: var(--wv-radius-md); }

/* Features */
.wv-home-features { padding: var(--wv-space-16) var(--wv-space-8); }
.wv-home-features__inner { max-width: 1040px; margin: 0 auto; }
.wv-home-section-eyebrow { font: var(--wv-text-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wv-fg-muted); text-align: center; }
.wv-home-features__heading { font: var(--wv-text-h2); letter-spacing: -0.01em; text-align: center; margin-top: var(--wv-space-3); margin-bottom: var(--wv-space-10); color: var(--wv-fg); }
.wv-home-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--wv-space-6); }
.wv-home-feature { background: var(--wv-bg-elevated); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: var(--wv-space-8); box-shadow: var(--wv-shadow-sm); }
.wv-home-feature__icon { width: 44px; height: 44px; border-radius: var(--wv-radius-md); background: var(--wv-brand-soft); display: flex; align-items: center; justify-content: center; margin-bottom: var(--wv-space-5); color: var(--wv-brand); }
.wv-home-feature h3 { font: var(--wv-text-h3); margin-bottom: var(--wv-space-3); color: var(--wv-fg); }
.wv-home-feature p { font-size: 14px; color: var(--wv-fg-muted); line-height: 1.65; }

/* Sign-in section */
.wv-home-signin { background: var(--wv-ink-100); border-top: 1px solid var(--wv-border); border-bottom: 1px solid var(--wv-border); padding: var(--wv-space-16) var(--wv-space-8); }
.wv-home-signin__inner { max-width: 440px; margin: 0 auto; text-align: center; }
.wv-home-signin__inner h2 { font: var(--wv-text-h2); letter-spacing: -0.01em; margin-bottom: var(--wv-space-3); color: var(--wv-fg); }
.wv-home-signin__inner > p { color: var(--wv-fg-muted); font-size: 15px; margin-bottom: var(--wv-space-6); }
.wv-home-signin__form { display: flex; gap: var(--wv-space-3); margin-bottom: var(--wv-space-4); }
.wv-home-signin__email { flex: 1; }
.wv-home-signin__error { font-size: 14px; color: var(--wv-danger-ink); background: var(--wv-danger-soft); border: 1px solid var(--wv-danger); border-radius: var(--wv-radius-md); padding: var(--wv-space-3) var(--wv-space-4); margin-bottom: var(--wv-space-4); }
.wv-home-signin__new { font-size: 14px; color: var(--wv-fg-muted); }
.wv-home-signin__new a { color: var(--wv-link); }

/* Footer */
.wv-home-footer { background: var(--wv-bg-dark); padding: var(--wv-space-10) var(--wv-space-8); text-align: center; }
.wv-home-footer__logo { height: 24px; opacity: 0.45; display: inline-block; }
.wv-home-footer__copy { font-size: 13px; color: rgba(255,255,255,0.3); margin-top: var(--wv-space-3); }

/* ── Attendee page header ─────────────────────────────────── */
.wv-pub-header {
  display: flex; align-items: center;
  padding: 14px 20px;
  background: #fff; border-bottom: 1px solid var(--wv-border);
  position: sticky; top: 0; z-index: 40;
}
.wv-pub-header__brand { display: inline-flex; text-decoration: none; }
.wv-pub-header__logo { height: 22px; width: auto; display: block; }
.wv-pub-header__event {
  margin-left: auto;
  font-size: 13px; font-weight: 600; color: var(--wv-fg-muted);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
