/* ============================================================
   Mi6 Helix — interactive DNA of the Deal
   Every rule scoped under .mi6-helix so it can drop into any
   page on the public site without leaking.
   ============================================================ */

.mi6-helix {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: #050912;
  background-image:
    radial-gradient(1200px 600px at 50% 0%, rgba(82, 109, 161, 0.18), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(212, 40, 46, 0.12), transparent 60%);
  color: #eef3ff;
  font-family: 'Inter', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
}

.mi6-helix *,
.mi6-helix *::before,
.mi6-helix *::after {
  box-sizing: border-box;
}

.mi6-helix__canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: grab;
}
.mi6-helix__canvas:active { cursor: grabbing; }

/* ---- Top-left brand strip ---- */
.mi6-helix__brand {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.mi6-helix__brand-mark {
  width: 22px;
  height: 22px;
  color: #D4282E;
}
.mi6-helix__brand-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 243, 255, 0.78);
}
.mi6-helix__brand-text span {
  color: rgba(238, 243, 255, 0.45);
  margin: 0 6px;
}

/* ---- Camera preset buttons (top-right) ---- */
.mi6-helix__cam-controls {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 243, 255, 0.08);
  border-radius: 999px;
}
.mi6-helix__cam-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(238, 243, 255, 0.7);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.mi6-helix__cam-btn:hover { color: #fff; }
.mi6-helix__cam-btn[aria-pressed="true"] {
  background: rgba(238, 243, 255, 0.1);
  color: #fff;
}

/* ---- Hint strip (bottom-center) ---- */
.mi6-helix__hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 243, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
}
.mi6-helix__hint span { color: rgba(238, 243, 255, 0.85); }

/* ---- Tooltip (hover) ---- */
.mi6-helix__tooltip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-12px);
  transition: opacity 140ms ease;
  max-width: 280px;
  padding: 10px 14px;
  background: rgba(8, 12, 20, 0.94);
  border: 1px solid rgba(238, 243, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.mi6-helix__tooltip[data-visible="true"] { opacity: 1; }
.mi6-helix__tooltip-cp {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-tint, #6ab5ff);
  margin-bottom: 4px;
}
.mi6-helix__tooltip-q {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.mi6-helix__tooltip-help {
  font-size: 12px;
  font-weight: 400;
  color: rgba(238, 243, 255, 0.6);
  line-height: 1.45;
}

/* ---- Side panel (drill-down) ---- */
.mi6-helix__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(420px, 90%);
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-left: 1px solid rgba(238, 243, 255, 0.08);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  padding: 28px 28px 32px;
}
.mi6-helix__panel[data-open="true"] { transform: translateX(0); }

.mi6-helix__panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  appearance: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(238, 243, 255, 0.15);
  border-radius: 999px;
  color: rgba(238, 243, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms, border-color 160ms;
}
.mi6-helix__panel-close:hover {
  color: #fff;
  border-color: rgba(238, 243, 255, 0.4);
}

.mi6-helix__panel-cp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-tint, #6ab5ff);
  margin-top: 8px;
  margin-bottom: 8px;
}
.mi6-helix__panel-cp-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(238, 243, 255, 0.55);
  margin-bottom: 18px;
}
.mi6-helix__panel-question {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.mi6-helix__panel-help {
  font-size: 13px;
  font-weight: 400;
  color: rgba(238, 243, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(238, 243, 255, 0.08);
}

.mi6-helix__panel-options-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 243, 255, 0.4);
  margin-bottom: 10px;
}
.mi6-helix__panel-options {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mi6-helix__panel-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(238, 243, 255, 0.06);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(238, 243, 255, 0.85);
}
.mi6-helix__panel-option:last-child { border-bottom: none; }
.mi6-helix__panel-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.mi6-helix__panel-option-label { flex: 1; }
.mi6-helix__panel-option-flag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 243, 255, 0.45);
  margin-left: 8px;
  flex-shrink: 0;
}

/* Flag colors */
.mi6-helix__flag-OK { color: #29d391; }
.mi6-helix__flag-AMBER { color: #ffb347; }
.mi6-helix__flag-SOFT_STOP { color: #ff8c3a; }
.mi6-helix__flag-HARD_STOP { color: #ff5a5a; }

/* ---- Paywall modal ---- */
.mi6-helix__modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.mi6-helix__modal-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.mi6-helix__modal {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: #0c1220;
  border: 1px solid rgba(238, 243, 255, 0.1);
  border-radius: 6px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mi6-helix__modal-backdrop[data-open="true"] .mi6-helix__modal {
  transform: translateY(0) scale(1);
}

.mi6-helix__modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  appearance: none;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(238, 243, 255, 0.15);
  border-radius: 999px;
  color: rgba(238, 243, 255, 0.65);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mi6-helix__modal-close:hover {
  color: #fff;
  border-color: rgba(238, 243, 255, 0.4);
}

.mi6-helix__modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D4282E;
  margin-bottom: 14px;
}
.mi6-helix__modal-headline {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.mi6-helix__modal-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(238, 243, 255, 0.7);
  line-height: 1.55;
  margin: 0 0 24px;
}
.mi6-helix__modal-prompt {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
}

.mi6-helix__modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.mi6-helix__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  border: 1px solid transparent;
  text-align: center;
}
.mi6-helix__btn--primary {
  background: #D4282E;
  color: #fff;
  border-color: #D4282E;
}
.mi6-helix__btn--primary:hover {
  background: #b9232a;
  border-color: #b9232a;
}
.mi6-helix__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(238, 243, 255, 0.25);
}
.mi6-helix__btn--ghost:hover {
  border-color: rgba(238, 243, 255, 0.6);
  background: rgba(238, 243, 255, 0.05);
}

.mi6-helix__modal-dismiss {
  display: block;
  width: 100%;
  text-align: center;
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(238, 243, 255, 0.45);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(238, 243, 255, 0.2);
  transition: color 160ms;
}
.mi6-helix__modal-dismiss:hover { color: rgba(238, 243, 255, 0.85); }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .mi6-helix__brand-text { font-size: 10px; letter-spacing: 0.14em; }
  .mi6-helix__cam-btn { padding: 7px 11px; font-size: 10px; }
  .mi6-helix__panel { width: 100%; padding: 22px 22px 28px; }
  .mi6-helix__modal { padding: 32px 24px 24px; }
  .mi6-helix__modal-headline { font-size: 19px; }
  .mi6-helix__hint { font-size: 10px; }
}
