/* Wintellisys Wingman Suite — Cookie-Gated Application Paywall & Standardized Vector Brand Logos
   Works orthogonally with Dark, Light, Obsidian Black, and Crisp Grey/White themes. */

/* Standardized Wintellisys Vector SVG Logo switching across Dark / Light themes */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand img.wm-logo-svg {
  height: 34px;
  width: auto;
  max-width: 158px;
  display: block;
  object-fit: contain;
}

.brand img.wm-logo-light {
  display: none;
}

html[data-theme="light"] .brand img.wm-logo-dark {
  display: none;
}

html[data-theme="light"] .brand img.wm-logo-light {
  display: block;
}

/* Hero Executive Video Briefing Spotlight */
.wm-hero-briefing {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(11, 17, 28, 0.78);
  border: 1px solid rgba(61, 155, 255, 0.32);
  backdrop-filter: blur(12px);
  max-width: 560px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .wm-hero-briefing {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 255, 0.24);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.wm-hero-briefing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7cc4ff;
  font-weight: 700;
}

html[data-theme="light"] .wm-hero-briefing-head {
  color: #0058d6;
}

.wm-hero-briefing video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #05070b;
  aspect-ratio: 16 / 9;
}

/* Product Subpage Overview Video Frame */
.wm-product-video-section {
  margin: 1.75rem 0 2rem;
}

.wm-product-video-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 15, 26, 0.76);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] .wm-product-video-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wm-product-video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.wm-product-video-meta {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.wm-product-video-meta p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Full Application Paywall Button & Nav Pass Pill */
.wm-full-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 600;
  cursor: pointer;
}

.wm-full-app-btn[data-wm-unlocked="true"] {
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.22);
}

.wm-pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(6, 78, 59, 0.35);
  color: #34d399;
  cursor: pointer;
}

html[data-theme="light"] .wm-pass-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* Paywall Modal Backdrop & Dialog */
.wm-paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wm-paywall-backdrop.is-open {
  display: flex;
}

.wm-paywall-dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border-radius: 18px;
  background: #0b101b;
  color: #f8fafc;
  border: 1px solid rgba(61, 155, 255, 0.32);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.68);
  padding: 1.6rem 1.75rem;
  position: relative;
}

html[data-theme="light"] .wm-paywall-dialog {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.2);
}

.wm-paywall-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.wm-paywall-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.wm-paywall-header img {
  height: 30px;
  width: auto;
}

.wm-paywall-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(61, 155, 255, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(61, 155, 255, 0.35);
}

html[data-theme="light"] .wm-paywall-badge {
  background: rgba(0, 102, 255, 0.1);
  color: #0052cc;
}

.wm-paywall-dialog h2 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.wm-paywall-lead {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

html[data-theme="light"] .wm-paywall-lead {
  color: #475569;
}

.wm-paywall-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.wm-paywall-tier {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

html[data-theme="light"] .wm-paywall-tier {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.wm-paywall-tier.featured {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.wm-paywall-tier h3 {
  margin: 0;
  font-size: 1.02rem;
}

.wm-paywall-tier p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.84;
  line-height: 1.45;
  flex: 1;
}

.wm-paywall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.wm-paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 0.95rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: inherit;
}

.wm-paywall-btn.primary {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
}

.wm-paywall-cookie-box {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.wm-paywall-cookie-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.wm-paywall-input-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.wm-paywall-input-row input {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(5, 8, 15, 0.65);
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

html[data-theme="light"] .wm-paywall-input-row input {
  background: #ffffff;
}

.wm-paywall-status {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  min-height: 1.15em;
}

.wm-paywall-status.ok {
  color: #34d399;
}

.wm-paywall-status.err {
  color: #fb7185;
}
