/* ==========================================================================
   HIGSDALE RESEARCH — INSTITUTIONAL THEME STYLESHEET
   Domain: higsdaleresearch.com
   Designed for: Ghost.org CMS
   ========================================================================== */

:root {
  --bg-primary: #070c18;
  --bg-secondary: #0d172a;
  --bg-tertiary: #132238;
  --bg-card: #0f1c32;
  --bg-card-hover: #162846;
  --border-color: #1e3352;
  --border-subtle: #17263d;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Menlo, monospace;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.site-wrapper {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Tabular figures for numbers */
.num, .metric-val, td, .stat-value {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #7dd3fc;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 36px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-shrink: 1;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Hamburger Button */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(15, 28, 50, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-down Drawer */
.mobile-nav-drawer {
  display: none;
  background: rgba(7, 12, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
}

.mobile-nav-drawer.open {
  max-height: 580px;
}

.mobile-nav-inner {
  padding: 16px 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.mobile-nav-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  padding-left: 18px;
}

.mobile-nav-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-text-full {
  display: inline;
}

.btn-text-mobile {
  display: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 28, 50, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 85px 24px 90px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.15), transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-headline {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 22px;
}

.hero-headline span {
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.highlight-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}

.hero-visual-card {
  background: linear-gradient(145deg, #0f1c32 0%, #0a1324 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #10b981, #f59e0b);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.card-header-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* System mini stats grid inside hero visual */
.system-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 12, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: var(--transition);
}

.system-mini-row:hover {
  border-color: var(--accent-cyan);
  background: rgba(15, 28, 50, 0.9);
}

.mini-name-col {
  display: flex;
  flex-direction: column;
}

.mini-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mini-archetype {
  font-size: 11px;
  color: var(--text-muted);
}

.mini-metric-col {
  text-align: right;
}

.mini-cagr {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-emerald);
}

.mini-sharpe {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   PHILOSOPHY / INSTITUTIONAL CALLOUT (NOT A STOCK PICKER)
   ========================================================================== */
.philosophy-section {
  padding: 70px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.pillar-num {
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 14px;
  opacity: 0.8;
}

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.pillar-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

/* ==========================================================================
   SYSTEMS SHOWCASE SECTION
   ========================================================================== */
.systems-section {
  padding: 85px 24px;
  background: var(--bg-primary);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 45px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.system-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.system-badge-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.tag-cyan { background: rgba(56, 189, 248, 0.12); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.system-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.system-script-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  opacity: 0.9;
  margin-bottom: 14px;
}

.system-summary-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Metrics 4-cell table inside system card */
.system-metrics-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(7, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 22px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.val-green { color: var(--accent-emerald) !important; }
.val-cyan { color: var(--accent-cyan) !important; }
.val-amber { color: var(--accent-amber) !important; }

/* Specification bullets */
.system-specs-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.system-specs-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.spec-icon {
  color: var(--accent-cyan);
  font-size: 12px;
  margin-top: 2px;
}

.system-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   POSITION SIZING CALCULATOR ENGINE
   ========================================================================== */
.calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 26px;
}

.calc-title-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.calc-title-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.calc-system-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.input-tip {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}

.calc-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 32px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
}

.calc-input.no-prefix {
  padding-left: 14px;
}

.calc-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.calc-results-col {
  background: rgba(7, 12, 24, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-hero-metric {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.hero-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.hero-shares-value {
  font-size: 44px;
  font-weight: 900;
  color: var(--accent-emerald);
  line-height: 1;
}

.hero-shares-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.results-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.result-row-label {
  color: var(--text-secondary);
}

.result-row-value {
  font-weight: 700;
  color: #ffffff;
}

.rule-compliance-box {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #a7f3d0;
}

.rule-compliance-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

/* ==========================================================================
   WAITLIST & COHORT ENROLMENT SECTION
   ========================================================================== */
.waitlist-section {
  padding: 90px 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(2, 132, 199, 0.12), transparent 80%), var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.waitlist-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.1);
  position: relative;
}

.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-amber);
  margin-bottom: 20px;
}

.waitlist-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
}

.waitlist-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 20px;
}

.waitlist-form-inputs {
  display: flex;
  gap: 12px;
  width: 100%;
}

.waitlist-input {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  color: #ffffff;
  font-size: 15px;
  transition: var(--transition);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.waitlist-form .btn-text-loading {
  display: none;
}

.waitlist-form.loading .btn-text-default {
  display: none;
}

.waitlist-form.loading .btn-text-loading {
  display: inline-block;
}

.waitlist-form.loading button {
  opacity: 0.8;
  cursor: wait;
}

.waitlist-form .message-success,
.waitlist-form .message-error {
  display: none;
}

.waitlist-form.success .waitlist-form-inputs {
  display: none;
}

.waitlist-form.success .message-success {
  display: block;
}

.waitlist-form.error .message-error {
  display: block;
}

.waitlist-footnote {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   PERFORMANCE REPORT MODAL & EMBED CONTAINER
   ========================================================================== */
.report-embed-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 25px;
}

.report-embed-toolbar {
  background: var(--bg-tertiary);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.report-embed-frame {
  width: 100%;
  height: 750px;
  border: none;
  background: #0f172a;
}

/* ==========================================================================
   MEMBERS MULTI-SYSTEM SELECTION & DASHBOARD
   ========================================================================== */
.member-selector-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.selector-label-group {
  display: flex;
  flex-direction: column;
}

.selector-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.selector-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.system-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-chip {
  padding: 7px 15px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.toggle-chip:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.toggle-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.toggle-chip.active .chip-status {
  background-color: var(--accent-emerald);
}

.chip-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

/* Signals Table */
.signals-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.signals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.signals-table th {
  background: #091222;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border-color);
}

.signals-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #ffffff;
}

.signals-table tr:hover td {
  background: var(--bg-card-hover);
}

.action-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.action-buy { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.action-pyramid { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.action-exit { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }

/* ==========================================================================
   FOOTER & LEGAL DISCLAIMER
   ========================================================================== */
.site-footer {
  background: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 24px 40px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.footer-disclaimer-box {
  background: rgba(13, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 30px;
}

.disclaimer-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (ZERO MOBILE HORIZONTAL OVERFLOW)
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-container {
    gap: 20px;
  }
  .brand-logo {
    margin-right: 20px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .nav-toggle-btn {
    display: inline-flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .nav-container {
    gap: 16px;
    padding: 14px 20px;
  }
  .brand-logo {
    margin-right: 0;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .systems-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Viewport & Header Containment */
  .site-header {
    width: 100%;
    max-width: 100vw;
  }
  .nav-container {
    padding: 12px 16px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .brand-logo {
    margin-right: 0;
    gap: 10px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .brand-title {
    font-size: 15px;
    letter-spacing: 0.8px;
  }
  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 1.6px;
  }
  .nav-cta-group {
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-cta-group .btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Section Containers */
  .section-container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hero Section */
  .hero-section {
    padding: 55px 16px 60px;
  }
  .hero-headline {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-subhead {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
  }
  .highlight-value {
    font-size: 18px;
  }
  .highlight-label {
    font-size: 10.5px;
    letter-spacing: 0.4px;
  }

  /* Philosophy & Systems */
  .philosophy-section,
  .systems-section,
  .waitlist-section {
    padding: 55px 16px;
  }
  .section-title {
    font-size: clamp(24px, 6vw, 30px);
  }
  .section-description {
    font-size: 14.5px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pillar-card {
    padding: 20px 16px;
  }
  .system-card {
    padding: 22px 16px;
  }
  .system-title {
    font-size: 22px;
  }
  .system-metrics-quad {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .metric-val {
    font-size: 16px;
  }
  .system-action-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Position Sizing Calculator */
  .calc-container {
    padding: 20px 14px;
  }
  .calc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .calc-results-col {
    padding: 18px 14px;
  }

  /* Signals & Comparison Tables */
  .signals-table-wrap {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: block;
  }
  .signals-table {
    min-width: 580px;
  }

  /* Waitlist Form */
  .waitlist-box {
    padding: 32px 18px;
  }
  .waitlist-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .waitlist-form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  .waitlist-form-inputs {
    flex-direction: column;
    width: 100%;
  }
  .waitlist-input {
    width: 100%;
    box-sizing: border-box;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-container {
    padding: 40px 16px 20px;
  }

  /* Collapsible multi-column grids (inline style resilience) */
  .grid-2col,
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:auto 1fr"],
  div[style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Ghost Koenig wide/full cards mobile normalization */
  .kg-width-wide,
  .kg-width-full {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  /* Ultra-Compact Mobile Header */
  .nav-container {
    padding: 10px 12px;
    gap: 6px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    border-radius: 6px;
  }
  .brand-title {
    font-size: 13.5px;
    letter-spacing: 0.5px;
  }
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .nav-cta-group {
    gap: 6px;
  }
  .nav-cta-group .btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 4px;
  }
  .nav-toggle-btn {
    width: 32px;
    height: 32px;
    padding: 6px 4px;
    gap: 4px;
  }
  .hamburger-bar {
    width: 17px;
  }
  .btn-text-full {
    display: none !important;
  }
  .btn-text-mobile {
    display: inline !important;
  }

  /* Hero Highlights & Badge */
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 10px;
    white-space: normal;
  }
  .hero-visual-card {
    padding: 16px 12px;
  }
  .system-mini-row {
    padding: 10px;
  }
  .system-mini-grid {
    gap: 8px;
  }
  .pricing-card {
    padding: 24px 16px;
  }
  .member-selector-bar {
    padding: 14px 12px;
  }
  .system-toggles {
    gap: 6px;
  }
  .toggle-chip {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Inline 3-column grids on small mobile */
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ==========================================================================
   PRICING PAGE STYLING
   ========================================================================== */
.pricing-tiers-section {
  padding: 10px 24px 70px;
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-tiers-section {
    padding: 10px 14px 50px;
  }
  .pricing-tiers-section .section-container {
    padding-left: 0;
    padding-right: 0;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-card {
    padding: 24px 18px;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pricing-card.featured {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.15);
}

.pricing-featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: #04130c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-tier-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.pricing-tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 40px;
}

.pricing-price-wrap {
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.pricing-amount sup {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  vertical-align: super;
}

.pricing-cycle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-annual-total {
  font-size: 12.5px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 6px;
  font-family: var(--font-mono);
}

.pricing-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  color: var(--accent-emerald);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 10px;
}

.pricing-savings-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.pricing-features-wrap {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.pricing-check-icon {
  color: var(--accent-emerald);
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta-wrap {
  margin-top: auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .pricing-faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trial-guarantee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
}

.pricing-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 50px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 640px) {
  .trial-guarantee-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 16px;
    margin-top: 36px;
    text-align: center;
    justify-items: center;
  }
  .pricing-matrix-card {
    padding: 22px 14px;
    margin-top: 36px;
  }
}

/* ==========================================================================
   INTERACTIVE SUITE CUSTOMIZER STYLING
   ========================================================================== */
.customizer-header-wrap {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 36px;
}

.customizer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.customizer-headline {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.customizer-subheadline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 24px;
}

.customizer-presets {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.presets-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.preset-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.preset-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.preset-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* 4 Strategy Selection Grid */
.suite-systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .suite-systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .suite-systems-grid {
    grid-template-columns: 1fr;
  }
}

.suite-system-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.suite-system-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.suite-system-card.selected {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07) 0%, var(--bg-card) 45%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.suite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.suite-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sys-code-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.sys-code-wc {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.sys-code-ue {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.sys-code-tc {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sys-code-pr {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sys-regime-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.suite-checkbox-indicator {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.suite-checkbox-indicator .check-mark {
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  transition: color 0.15s ease;
}

.suite-system-card.selected .suite-checkbox-indicator {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.suite-system-card.selected .suite-checkbox-indicator .check-mark {
  color: var(--accent-emerald);
}

.suite-sys-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.suite-sys-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 48px;
  margin-bottom: 16px;
}

.suite-sys-specs {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.spec-label {
  color: var(--text-muted);
}

.spec-val {
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-indigo { color: #c084fc !important; }
.text-amber { color: #fbbf24 !important; }

.suite-toggle-action {
  margin-top: auto;
}

.suite-select-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.suite-system-card.selected .suite-select-btn {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.suite-system-card .btn-state-selected { display: none; }
.suite-system-card .btn-state-unselected { display: inline; }
.suite-system-card.selected .btn-state-selected { display: inline; }
.suite-system-card.selected .btn-state-unselected { display: none; }

/* The Suite Cockpit / Dynamic Calculation Bar */
.suite-cockpit {
  background: var(--bg-card);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.1);
  margin-top: 10px;
}

@media (max-width: 980px) {
  .suite-cockpit {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}

.cockpit-header {
  margin-bottom: 24px;
}

.cockpit-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cockpit-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cockpit-systems-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cockpit-sys-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.cockpit-sys-chip .remove-chip {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: bold;
}
.cockpit-sys-chip .remove-chip:hover {
  color: #ef4444;
}

/* Stepper / Volume Discount Progress */
.discount-stepper {
  margin: 28px 0;
  padding: 16px 0 6px;
}

.stepper-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.stepper-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  border-radius: 3px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 8px;
}

.step-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.step-point.active {
  opacity: 1;
}

.step-point .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.step-point.active .step-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.step-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.step-disc {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Dynamic Specs Grid */
.cockpit-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .cockpit-specs-grid {
    grid-template-columns: 1fr;
  }
}

.cockpit-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cockpit-spec-item .spec-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.spec-item-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.spec-item-val {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Right Price Card */
.cockpit-price-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.cockpit-savings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
  align-self: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.cockpit-pricing-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 4px;
}

.cockpit-orig-price {
  font-size: 22px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
  font-weight: 600;
}

.cockpit-price {
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1.5px;
  line-height: 1;
}

.cockpit-price sup {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cyan);
  vertical-align: super;
}

.cockpit-annual-total {
  font-size: 13.5px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 22px;
}

.cockpit-cta-wrap {
  margin-bottom: 14px;
}

.cockpit-submit-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.35;
}

.cockpit-guarantee-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

.cockpit-guarantee-note span {
  color: var(--accent-emerald);
  font-weight: bold;
}

/* Featured All-Access Suite Banner */
.suite-all-access-card {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.95) 45%, rgba(56, 189, 248, 0.06) 100%);
  border: 2px solid var(--accent-emerald);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.2);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.suite-all-access-card > * {
  min-width: 0;
  max-width: 100%;
}

.all-access-badge-pill {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--accent-emerald);
  color: #04130c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
  z-index: 2;
  box-sizing: border-box;
}

.all-access-suite-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.all-access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.all-access-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.all-access-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.all-access-features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  .suite-all-access-card {
    grid-template-columns: 1fr;
    padding: 34px 24px 28px;
    gap: 28px;
  }
  .all-access-badge-pill {
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 90%;
    font-size: 10.5px;
    padding: 5px 14px;
    top: -13px;
  }
  .all-access-suite-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .suite-all-access-card {
    padding: 32px 16px 20px;
    gap: 22px;
    margin-top: 28px;
  }
  .all-access-badge-pill {
    max-width: 92%;
    font-size: 10px;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
  .all-access-suite-title {
    font-size: 24px;
  }
  .all-access-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cockpit-price-card {
    padding: 20px 14px;
  }
  .cockpit-price {
    font-size: 38px;
  }
  .cockpit-orig-price {
    font-size: 18px;
  }
  .cockpit-savings-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  .cockpit-submit-btn {
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   GHOST KOENIG EDITOR & CARDS SUPPORT (GScan Compliance)
   ========================================================================== */

.kg-width-wide {
  position: relative;
  width: 75vw;
  min-width: 100%;
  margin-left: calc(50% - 37.5vw);
  margin-right: calc(50% - 37.5vw);
  transform: translateX(0);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card,
.kg-callout-card,
.kg-toggle-card,
.kg-header-card,
.kg-product-card,
.kg-audio-card,
.kg-video-card,
.kg-button-card,
.kg-file-card {
  margin: 1.75em 0;
}

.kg-image-card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.kg-width-wide img {
  max-width: 100%;
}

.kg-width-full img {
  max-width: 100%;
  width: 100%;
}

.kg-card figcaption {
  padding: 0.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Callout Card */
.kg-callout-card {
  display: flex;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.kg-callout-emoji {
  font-size: 1.35rem;
  margin-right: 0.85rem;
  line-height: 1.4;
}

.kg-callout-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Bookmark Card */
.kg-bookmark-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  color: inherit;
  text-decoration: none;
  min-height: 110px;
}

.kg-bookmark-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.kg-bookmark-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.kg-bookmark-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}

.kg-bookmark-thumbnail {
  position: relative;
  min-width: 33%;
  max-height: 100%;
}

.kg-bookmark-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Card */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
}

/* Button Card */
.kg-button-card {
  display: flex;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  justify-content: center;
}

.kg-btn {
  display: inline-flex;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  background: var(--accent-blue);
  color: #ffffff;
  transition: var(--transition);
}

.kg-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* System Allocation Console & Inactive Model State */
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.tier-pill.tier-all-access {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.system-inactive-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  margin-top: 14px;
}

.system-inactive-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.system-inactive-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.system-inactive-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.allocation-toggle {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.allocation-toggle.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
}

/* FIRST-LOGIN ONBOARDING STRATEGY ALLOCATION MODAL */
.allocation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.25s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.allocation-modal-card {
  background: #0d1527;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.08);
}

.allocation-modal-header {
  margin-bottom: 24px;
}

.allocation-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 8px 0;
  letter-spacing: -0.3px;
}

.allocation-modal-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.allocation-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .allocation-modal-grid {
    grid-template-columns: 1fr;
  }
  .allocation-modal-card {
    padding: 20px;
  }
}

.modal-system-card {
  display: flex;
  position: relative;
  background: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.modal-system-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
}

.modal-system-card.selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.modal-system-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border-subtle);
}

.modal-system-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-card-indicator {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #475569;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-system-card.selected .modal-card-indicator {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.modal-system-card.selected .modal-card-indicator::after {
  content: "✓";
  color: #030712;
  font-size: 13px;
  font-weight: 800;
}

.modal-card-body {
  flex: 1;
}

.modal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.modal-model-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-model-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.modal-model-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.modal-model-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.allocation-commitment-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.allocation-commitment-notice .notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.allocation-commitment-notice .notice-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
}

.allocation-commitment-notice strong {
  color: #fbbf24;
}

.allocation-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.selection-status-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.btn-emerald:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
