/* ==========================================================================
   Protectors — Onsite
   Mobile app-shell style companion page: Home / Schedule / Smart Badge screens,
   switched by URL hash. Centered 440px column at every viewport width,
   matching the reference mockup exactly.
   ========================================================================== */

.onsite-page * {
  box-sizing: border-box;
}

body.onsite-template {
  margin: 0;
  background: #03000f;
  -webkit-font-smoothing: antialiased;
}

.onsite-page a {
  text-decoration: none;
}

.onsite-page {
  position: relative;
  min-height: 100vh;
  background: #03000f;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: clip;
}

.onsite-page .onsite-bg-art {
  position: fixed;
  left: 50%;
  top: -6%;
  transform: translateX(-50%);
  width: min(160vw, 1300px);
  height: auto;
  opacity: 0.13;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}

.onsite-page .onsite-bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 15% 8%, rgba(103, 38, 255, 0.3) 0%, transparent 70%),
    radial-gradient(50% 35% at 90% 22%, rgba(255, 46, 0, 0.14) 0%, transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(181, 38, 188, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.onsite-page .onsite-shell {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(14px, 2.6vh, 28px) 20px clamp(12px, 2vh, 24px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* ── Header: home variant ─────────────────────────────────────────────── */
.onsite-page .onsite-header-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.onsite-page .onsite-header-home[hidden] {
  display: none;
}
.onsite-page .onsite-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.onsite-page .onsite-logo-link img {
  height: 32px;
  width: auto;
  display: block;
}
.onsite-page .onsite-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.onsite-page .onsite-powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.onsite-page .onsite-powered-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 0.95;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.onsite-page .onsite-powered img {
  height: 26px;
  width: auto;
}

/* ── Header: sub-screen variant (sticky, with back link) ─────────────── */
.onsite-page .onsite-header-sub {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: calc(-1 * clamp(14px, 2.6vh, 28px)) -20px 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(3, 0, 15, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.onsite-page .onsite-header-sub[hidden] {
  display: none;
}
.onsite-page .onsite-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.onsite-page .onsite-back:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.onsite-page .onsite-back svg {
  display: block;
}
.onsite-page .onsite-header-sub .onsite-logo-link {
  gap: 9px;
  min-width: 0;
}
.onsite-page .onsite-header-sub .onsite-logo-link img {
  height: 20px;
}
.onsite-page .onsite-header-sub .onsite-divider {
  height: 14px;
}
.onsite-page .onsite-header-sub .onsite-powered img {
  height: 17px;
}

/* ── Views ─────────────────────────────────────────────────────────────── */
.onsite-page .onsite-view[hidden] {
  display: none;
}

/* ── Home screen ───────────────────────────────────────────────────────── */
.onsite-page #view-home {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
  gap: clamp(14px, 2.4vh, 22px);
  padding: clamp(4px, 1vh, 10px) 0;
  text-align: center;
}

.onsite-page .onsite-hero {
  padding: 0;
}
.onsite-page .onsite-hero-eyebrow {
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #86a0f0;
}
.onsite-page .onsite-hero-title {
  margin: 20px 0 0;
  margin-top: clamp(10px, 1.8vh, 20px);
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(28px, 9vw, 40px);
}
.onsite-page .onsite-gradient-text {
  white-space: nowrap;
  background: linear-gradient(95deg, #ff2e00, #ff3564 40%, #b526bc 75%, #923ef0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.onsite-page .onsite-hero-meta {
  margin-top: clamp(10px, 1.8vh, 18px);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: clamp(12.5px, 3.7vw, 15px);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}
.onsite-page .onsite-hero-meta span:first-child,
.onsite-page .onsite-hero-meta span:last-child {
  white-space: nowrap;
}
.onsite-page .onsite-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff3564;
}

/* Home tiles */
.onsite-page .onsite-tiles {
  display: grid;
  grid-template-columns: repeat(var(--onsite-cols, 4), minmax(0, 1fr));
  gap: 4px;
}
.onsite-page .onsite-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.5vh, 12px);
  color: #fff;
  min-width: 0;
}
.onsite-page .onsite-tile:hover {
  color: #fff;
}
.onsite-page .onsite-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(50px, 8.4vh, 58px);
  height: clamp(50px, 8.4vh, 58px);
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(150deg, var(--tile-start), var(--tile-end)) border-box;
  box-shadow: 0 14px 32px -18px var(--tile-shadow);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s;
}
.onsite-page .onsite-tile:hover .onsite-tile-icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px var(--tile-shadow);
}
.onsite-page .onsite-tile-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.onsite-page .onsite-tile--app {
  --tile-start: #ff2e00;
  --tile-end: #ff3564;
  --tile-shadow: rgba(255,46,0,.95);
}
.onsite-page .onsite-tile--schedule {
  --tile-start: #ff3564;
  --tile-end: #923ef0;
  --tile-shadow: rgba(255,53,100,.95);
}
.onsite-page .onsite-tile--map {
  --tile-start: #923ef0;
  --tile-end: #3332ff;
  --tile-shadow: rgba(146,62,240,.95);
}
.onsite-page .onsite-tile--assistant {
  --tile-start: #86a0f0;
  --tile-end: #6726ff;
  --tile-shadow: rgba(103,38,255,.95);
}
.onsite-page .onsite-tile-label {
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(7.5px, 2.3vw, 9.5px);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Wi-Fi */
.onsite-page .onsite-wifi {
  padding: 0;
  text-align: left;
}
.onsite-page .onsite-wifi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}
.onsite-page .onsite-wifi-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.onsite-page .onsite-wifi-heading span {
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.onsite-page .onsite-wifi-list {
  position: relative;
  text-align: left;
}
.onsite-page .onsite-wifi-list::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,53,100,.5), rgba(146,62,240,.22) 45%, rgba(255,255,255,.07));
}
.onsite-page .onsite-wifi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(46px, 6.8vh, 56px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.onsite-page .onsite-wifi-row:last-child {
  border-bottom: none;
}
.onsite-page .onsite-wifi-label {
  flex: none;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.onsite-page .onsite-wifi-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.onsite-page .onsite-copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.onsite-page .onsite-copy-btn:hover {
  background: rgba(146,62,240,.08);
  border-color: rgba(146,62,240,.5);
}
.onsite-page .onsite-copy-btn:active {
  transform: scale(.96);
}
.onsite-page .onsite-copy-btn svg {
  display: block;
}
.onsite-page .onsite-copied-msg {
  font-size: 12.5px;
  color: #86a0f0;
}

/* Smart Badge home card */
.onsite-page .onsite-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2.2vh, 18px) 16px clamp(14px, 2.2vh, 18px) 18px;
  border-radius: 16px;
  text-align: left;
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(120deg, rgba(255,53,100,.85), rgba(146,62,240,.85) 50%, rgba(51,50,255,.85)) border-box;
  box-shadow: 0 20px 50px -26px rgba(146,62,240,.85);
  transition: transform .25s, box-shadow .25s;
}
.onsite-page .onsite-badge-card:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 24px 56px -24px rgba(146,62,240,1);
}
.onsite-page .onsite-badge-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.onsite-page .onsite-badge-card-title {
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(10.5px, 2.9vw, 12px);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  text-wrap: balance;
}
.onsite-page .onsite-badge-card-copy {
  font-size: clamp(13px, 3.6vw, 14px);
  line-height: 1.45;
  color: rgba(255,255,255,.72);
  text-wrap: pretty;
}
.onsite-page .onsite-badge-play {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(135deg, #ff3564, #923ef0) border-box;
}
.onsite-page .onsite-badge-play svg {
  display: block;
  margin-left: 2px;
}

/* ── Schedule screen heading ──────────────────────────────────────────── */
.onsite-page .onsite-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.onsite-page .onsite-section-title {
  margin: 12px 0 0;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

/* ── Schedule screen ───────────────────────────────────────────────────── */
.onsite-page #view-schedule {
  padding-top: 28px;
}
.onsite-page #view-schedule .onsite-section-eyebrow {
  color: #86a0f0;
}
.onsite-page #view-schedule .onsite-section-title {
  font-size: clamp(30px, 9.6vw, 42px);
}

.onsite-page .onsite-day-tabs {
  position: sticky;
  top: 61px;
  z-index: 10;
  margin: 22px -20px 0;
  padding: 0 20px;
  background: rgba(3, 0, 15, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.onsite-page .onsite-day-tabs-row {
  display: grid;
  grid-template-columns: repeat(var(--onsite-day-count, 3), minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.onsite-page .onsite-day-tab {
  position: relative;
  padding: 14px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
}
.onsite-page .onsite-day-tab.is-active {
  color: #ffffff;
}
.onsite-page .onsite-day-tab-label {
  display: block;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.onsite-page .onsite-day-tab-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #86a0f0;
}
.onsite-page .onsite-day-tab-bar {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff2e00, #ff3564, #923ef0);
  opacity: 0;
}
.onsite-page .onsite-day-tab.is-active .onsite-day-tab-bar {
  opacity: 1;
}

.onsite-page .onsite-sessions {
  display: flex;
  flex-direction: column;
}
.onsite-page .onsite-day-group[hidden] {
  display: none;
}
.onsite-page .onsite-session {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.onsite-page .onsite-session-time {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #86a0f0;
}
.onsite-page .onsite-session-title {
  margin-top: 6px;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}
.onsite-page .onsite-session-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  min-width: 0;
}
.onsite-page .onsite-session-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86a0f0;
}
.onsite-page .onsite-session-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.onsite-page .onsite-no-sessions {
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
}

.onsite-page .onsite-schedule-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(95deg, #ff2e00, #ff3564 55%, #923ef0);
  color: #fff;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 14px 36px -14px rgba(255, 46, 0, 0.7);
}
.onsite-page .onsite-schedule-cta:hover {
  color: #ffffff;
}
.onsite-page .onsite-schedule-cta svg {
  display: block;
}


/* Smart Badge screen */
.onsite-page .onsite-gradient-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.onsite-page .onsite-connect {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(14px, 2.4vh, 22px);
  padding: clamp(4px, 1vh, 10px) 0 0;
}
.onsite-page .onsite-badge-hero {
  padding: 0;
}
.onsite-page .onsite-connect .onsite-section-eyebrow {
  color: #86a0f0;
  font-size: 10.5px;
}
.onsite-page .onsite-connect .onsite-section-title {
  margin-top: clamp(8px, 1.4vh, 12px);
  line-height: .98;
  font-size: clamp(22px, min(7.6vw, 4.2vh), 34px);
}
.onsite-page .onsite-badge-intro {
  margin: clamp(8px, 1.6vh, 14px) 0 0;
  font-size: clamp(14px, 2vh, 16px);
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  text-wrap: pretty;
}
.onsite-page .onsite-badge-video {
  position: relative;
  width: min(100%, calc(30vh * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(120deg, rgba(255,53,100,.85), rgba(146,62,240,.85) 50%, rgba(51,50,255,.85)) border-box;
  box-shadow: 0 20px 50px -26px rgba(146,62,240,.85);
}
.onsite-page .onsite-badge-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.onsite-page .onsite-badge-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.onsite-page .onsite-badge-steps::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: clamp(20px, 3.2vh, 23px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,53,100,.55), rgba(146,62,240,.45) 50%, rgba(51,50,255,.55));
}
.onsite-page .onsite-badge-steps:empty {
  display: none;
}
.onsite-page .onsite-badge-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.onsite-page .onsite-badge-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6.4vh, 46px);
  height: clamp(40px, 6.4vh, 46px);
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(150deg, #ff2e00, #ff3564) border-box;
}
.onsite-page .onsite-badge-step-icon--connect {
  background: linear-gradient(#000, #000) padding-box, linear-gradient(150deg, #ff3564, #923ef0) border-box;
}
.onsite-page .onsite-badge-step-icon--app {
  background: linear-gradient(#000, #000) padding-box, linear-gradient(150deg, #923ef0, #3332ff) border-box;
}
.onsite-page .onsite-badge-step-title {
  margin-top: clamp(8px, 1.4vh, 12px);
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.onsite-page .onsite-badge-step-copy {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255,255,255,.68);
  text-wrap: balance;
}
.onsite-page .onsite-badge-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px;
}
.onsite-page .onsite-badge-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: clamp(44px, 6.2vh, 48px);
  border-radius: 12px;
  color: #fff;
  font-family: "Termina", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.onsite-page .onsite-badge-app {
  border: 1.5px solid transparent;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(120deg, #ff2e00, #ff3564 40%, #923ef0) border-box;
  box-shadow: 0 16px 36px -20px rgba(255,53,100,.9);
  transition: box-shadow .25s, transform .25s;
}
.onsite-page .onsite-badge-app:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px -18px rgba(255,53,100,1);
}
.onsite-page .onsite-badge-learn {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.6);
  transition: border-color .25s, background .25s;
}
.onsite-page .onsite-badge-learn:hover {
  border-color: rgba(146,62,240,.55);
  background: rgba(146,62,240,.08);
}
.onsite-page a:focus-visible, .onsite-page button:focus-visible {
  outline: 2px solid #86a0f0;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .onsite-page *, .onsite-page *::before, .onsite-page *::after {
    transition: none;
  }
}
