/* Get Started onboarding, hero information launcher, and How It Works modal. */

body.otl-info-modal-open {
  overflow: hidden;
}

body.theater-mode .otl-info-launcher {
  display: none !important;
}

.hero-card .otl-info-launcher {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  color: #e5e7eb;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.84),
      rgba(2, 6, 23, 0.72)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-card .otl-info-launcher:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(15, 23, 42, 0.92);
}

.hero-card .otl-info-launcher:focus-visible,
.otl-info-close:focus-visible,
.otl-anatomy-option:focus-visible,
.otl-get-started-build-target:focus-visible,
.otl-get-started-premade-button:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.88);
  outline-offset: 3px;
}

.otl-info-launcher-icon {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.otl-info-launcher-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Get Started owns the cyan primary-entry treatment. */
#getStarted,
#otlGetStarted {
  --quick-start-rgb: 56, 189, 248;
}

.get-started-summary-action::before {
  content: "Start Here" !important;
}

#otlGetStarted[open] .get-started-summary-action::before {
  content: "Close Guide" !important;
}

.get-started-content {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0 28px 22px !important;
}

.otl-get-started-step {
  display: grid;
  width: min(1420px, 100%);
  justify-items: center;
  gap: 28px;
  padding: 48px 4px;
  text-align: center;
}

.otl-get-started-step + .otl-get-started-step {
  border-top: 1px solid rgba(100, 116, 139, 0.22);
}

.otl-get-started-builder {
  padding-bottom: 18px;
}

.otl-get-started-step-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.otl-get-started-step-heading strong {
  color: #f8fafc;
  font-family: "Montserrat", Inter, sans-serif;
  font-size: 1.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.otl-get-started-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.otl-anatomy-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(620px, 100%);
  margin-inline: auto;
  padding: 4px;
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.otl-anatomy-option {
  min-height: 58px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #94a3b8;
  background: transparent;
  font: inherit;
  font-size: 1.22rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.otl-anatomy-option[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, 0.42);
  color: #f0f9ff;
  background:
    linear-gradient(
      180deg,
      rgba(14, 116, 144, 0.32),
      rgba(8, 47, 73, 0.34)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 16px rgba(56, 189, 248, 0.075);
}

.otl-anatomy-option:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.otl-get-started-light-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1260px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.3);
}

.otl-get-started-light {
  --otl-guide-rgb: 148, 163, 184;
  display: grid;
  min-width: 0;
  min-height: 146px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 24px 18px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(var(--otl-guide-rgb), 0.12),
      transparent 64%
    );
}

.otl-get-started-light + .otl-get-started-light {
  border-left: 1px solid rgba(100, 116, 139, 0.2);
}

.otl-get-started-light--green {
  --otl-guide-rgb: 34, 197, 94;
}

.otl-get-started-light--yellow {
  --otl-guide-rgb: 245, 158, 11;
}

.otl-get-started-light--red {
  --otl-guide-rgb: 239, 68, 68;
}

.otl-get-started-light-name {
  color: #aeb9c9;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.otl-get-started-light strong {
  color: rgb(var(--otl-guide-rgb));
  font-family: "Montserrat", Inter, sans-serif;
  font-size: 1.46rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.otl-get-started-build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  gap: 20px;
}

.otl-get-started-build-target {
  display: grid;
  min-width: 0;
  min-height: 132px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 14px;
  color: #e2e8f0;
  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.58),
      rgba(15, 23, 42, 0.72)
    );
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.otl-get-started-build-target strong {
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 800;
}

.otl-get-started-build-target > span:not(.otl-get-started-build-arrow) {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.4;
}

.otl-get-started-build-arrow {
  color: #7dd3fc;
  font-size: 1.16rem;
  line-height: 1;
}

.otl-get-started-premade-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  width: 100%;
  padding-top: 4px;
}

.otl-get-started-premade-route > strong {
  color: #cbd5e1;
  font-size: 1.04rem;
  font-weight: 700;
}

.otl-get-started-premade-button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 9px;
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.17);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

@media (hover: hover) {
  .otl-anatomy-option:not([aria-pressed="true"]):not(:disabled):hover {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.35);
  }

  .otl-get-started-build-target:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background:
      linear-gradient(
        145deg,
        rgba(30, 41, 59, 0.72),
        rgba(15, 23, 42, 0.82)
      );
    transform: translateY(-1px);
  }

  .otl-get-started-premade-button:hover {
    border-color: rgba(125, 211, 252, 0.56);
    background: rgba(14, 116, 144, 0.26);
  }
}

/* Premade Trainings is a normal top-level section; only its inner Training cards retain their identities. */
.premade-trainings-summary-action::before {
  content: "Browse Trainings" !important;
}

#otlQuickStart[open] .premade-trainings-summary-action::before {
  content: "Close Trainings" !important;
}

/* How It Works modal */
.otl-info-modal[hidden] {
  display: none !important;
}

.otl-info-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(9px);
}

.otl-info-dialog {
  position: relative;
  width: min(100%, 660px);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(100, 116, 139, 0.56);
  border-radius: 22px;
  color: #e5e7eb;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(56, 189, 248, 0.075),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(17, 24, 39, 0.995),
      rgba(15, 23, 42, 0.985)
    );
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.otl-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.42);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.otl-info-eyebrow {
  display: block;
  margin: 0 46px 7px 0;
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.otl-info-dialog h2 {
  margin: 0 46px 8px 0;
  color: #f8fafc;
  font-size: 1.55rem;
  line-height: 1.15;
}

.otl-info-intro {
  max-width: 58ch;
  margin: 0;
  color: #aeb9c9;
  font-size: 0.92rem;
  line-height: 1.6;
}

.otl-info-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
}

.otl-info-rule {
  --otl-info-rule-rgb: 148, 163, 184;
  display: grid;
  min-height: 94px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 16px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(var(--otl-info-rule-rgb), 0.1),
      transparent 64%
    );
}

.otl-info-rule + .otl-info-rule {
  border-left: 1px solid rgba(100, 116, 139, 0.2);
}

.otl-info-rule--green {
  --otl-info-rule-rgb: 34, 197, 94;
}

.otl-info-rule--yellow {
  --otl-info-rule-rgb: 245, 158, 11;
}

.otl-info-rule--red {
  --otl-info-rule-rgb: 239, 68, 68;
}

.otl-info-rule span {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.otl-info-rule strong {
  color: rgb(var(--otl-info-rule-rgb));
  font-family: "Montserrat", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.otl-info-rule small {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
}

.otl-info-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.otl-info-detail {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.otl-info-detail strong {
  color: #e2e8f0;
  font-size: 0.82rem;
}

.otl-info-detail span {
  color: #8998ad;
  font-size: 0.75rem;
  line-height: 1.45;
}

.otl-info-footer-copy {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .hero-card .otl-info-launcher {
    top: 14px;
    left: 14px;
  }

  .get-started-content {
    padding-inline: 16px !important;
    padding-bottom: 18px !important;
  }

  .otl-get-started-builder {
    padding-bottom: 12px;
  }

  .otl-get-started-step {
    gap: 20px;
    padding-block: 32px;
  }

  .otl-get-started-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otl-get-started-light,
  .otl-info-rule {
    min-height: 78px;
  }

  .otl-info-rule-grid {
    grid-template-columns: 1fr;
  }

  .otl-info-rule + .otl-info-rule {
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    border-left: 0;
  }

  .otl-info-detail-grid {
    grid-template-columns: 1fr;
  }

  .otl-info-dialog {
    padding: 24px 18px 20px;
  }
}

@media (max-width: 460px) {
  .otl-anatomy-segmented {
    width: 100%;
  }

  .otl-get-started-build-grid {
    grid-template-columns: 1fr;
  }

  .otl-get-started-premade-route {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .otl-get-started-premade-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otl-anatomy-option,
  .otl-get-started-build-target,
  .otl-get-started-premade-button {
    transition: none;
  }
}
