/* Cadet College public landing — navy / indigo EdTech. Scoped to .bp-cadet-landing */

.bp-cadet-landing {
  --cl-navy: #0f1c3f;
  --cl-navy-2: #162456;
  --cl-indigo: #3730a3;
  --cl-blue: #1d4ed8;
  --cl-purple: #4f46e5;
  --cl-success: #059669;
  --cl-amber: #d97706;
  --cl-weak: #dc2626;
  --cl-bg: #f4f6fb;
  --cl-surface: #ffffff;
  --cl-text: #0f172a;
  --cl-muted: #64748b;
  --cl-border: #e2e8f0;
  --cl-radius: 12px;
  --cl-shadow: 0 8px 24px rgba(15, 28, 63, 0.08);
  background: var(--cl-bg);
  color: var(--cl-text);
  overflow-x: hidden;
}

.bp-cadet-landing img {
  max-width: 100%;
  height: auto;
}

.bp-cadet-landing .container {
  max-width: 1140px;
}

.cl-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cl-indigo);
}

.cl-section {
  padding: 4rem 0;
}

.cl-section--muted {
  background: var(--cl-surface);
}

.cl-section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.cl-section__head h2,
.cl-hero__title,
.cl-cta h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cl-section__head p,
.cl-hero__lead {
  color: var(--cl-muted);
  margin-bottom: 0;
}

.cl-section__head--compact {
  margin-bottom: 1.25rem;
}

.cl-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}

.cl-btn--lg {
  padding: 0.75rem 1.4rem;
}

.cl-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.cl-btn--block {
  width: 100%;
}

.cl-btn--primary {
  background: var(--cl-blue);
  border-color: var(--cl-blue);
  color: #fff;
}

.cl-btn--primary:hover,
.cl-btn--primary:focus {
  background: var(--cl-indigo);
  border-color: var(--cl-indigo);
  color: #fff;
}

.cl-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cl-btn--ghost:hover,
.cl-btn--ghost:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cl-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--cl-navy);
}

.cl-btn--light:hover,
.cl-btn--light:focus {
  background: #eef2ff;
  color: var(--cl-navy);
}

.cl-nav {
  background: var(--cl-navy);
  padding: 0.65rem 0;
}

.cl-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.cl-nav__brand:hover {
  color: #fff;
}

.cl-nav__logo {
  height: 36px;
  width: auto;
}

.cl-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cl-nav__product {
  font-weight: 700;
  font-size: 0.95rem;
}

.cl-nav__label {
  font-size: 0.72rem;
  opacity: 0.78;
}

.cl-nav__links .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.cl-nav__links .nav-link:hover,
.cl-nav__links .nav-link:focus {
  color: #fff;
}

.cl-nav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cl-nav__toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.cl-hero {
  background: var(--cl-navy);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.cl-hero .cl-kicker {
  color: #c7d2fe;
}

.cl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.cl-hero__title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 1rem;
}

.cl-hero__title span {
  color: #a5b4fc;
}

.cl-hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.cl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cl-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-hero__trust strong {
  display: block;
  font-size: 1.25rem;
}

.cl-hero__trust span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.cl-hero__visual {
  position: relative;
  min-height: 280px;
}

.cl-hero__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--cl-radius);
}

.cl-hero__placeholder {
  height: 420px;
  border-radius: var(--cl-radius);
  background: linear-gradient(160deg, var(--cl-navy-2), var(--cl-indigo));
  position: relative;
  overflow: hidden;
}

.cl-hero__shield,
.cl-hero__paper {
  position: absolute;
}

.cl-hero__shield {
  inset: auto 18% 28% 18%;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #c7d2fe;
}

.cl-hero__paper {
  right: 12%;
  top: 16%;
  width: 42%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1rem;
}

.cl-hero__paper span {
  display: block;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  margin-bottom: 0.5rem;
}

.cl-hero__paper span.is-short {
  width: 55%;
}

.cl-hero__chips {
  position: absolute;
  inset: auto 4% 6% 4%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cl-hero__chips li {
  background: rgba(15, 28, 63, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cl-hero__personal {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cl-radius);
}

.cl-hero__hello {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.cl-hero__personal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
}

.cl-hero__personal-row a {
  color: #c7d2fe;
}

.cl-cat-grid,
.cl-path-grid,
.cl-subject-grid,
.cl-college-grid,
.cl-quiz-grid,
.cl-level-grid,
.cl-check-grid,
.cl-stats {
  display: grid;
  gap: 1.25rem;
}

.cl-cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cl-cat-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cl-cat-card {
  background: var(--cl-surface);
  border-radius: var(--cl-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--cl-border);
  display: flex;
  flex-direction: column;
}

.cl-cat-card:hover,
.cl-cat-card:focus {
  color: inherit;
  box-shadow: var(--cl-shadow);
}

.cl-cat-card__media {
  position: relative;
  height: 140px;
  background: var(--cl-navy-2);
}

.cl-cat-card__media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.cl-cat-card__icon {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 28, 63, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-cat-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.cl-cat-card__body h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.cl-cat-card__body p {
  margin: 0;
  color: var(--cl-muted);
  font-size: 0.9rem;
}

.cl-explorer-toolbar,
.cl-explore-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cl-search {
  max-width: 28rem;
}

.cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cl-chip {
  border: 1px solid var(--cl-border);
  background: var(--cl-surface);
  color: var(--cl-text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.cl-chip.is-active,
.cl-chip:hover,
.cl-chip:focus {
  background: var(--cl-navy);
  border-color: var(--cl-navy);
  color: #fff;
}

.cl-college-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cl-college-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.cl-college-card.is-hidden,
.cl-quiz-grid .bp-quiz-card.is-hidden {
  display: none;
}

.cl-college-card__media {
  height: 140px;
  background: #e8edf7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-indigo);
  font-size: 1.75rem;
}

.cl-college-card__media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.cl-college-card__img.cl-img-deferred {
  background: #e8edf7;
}

.cl-college-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.cl-college-card__body h3 {
  font-size: 1.05rem;
  margin: 0;
}

.cl-college-card__meta,
.cl-muted {
  color: var(--cl-muted);
  font-size: 0.88rem;
  margin: 0;
}

.cl-college-card__meta span + span::before {
  content: " · ";
}

.cl-college-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.cl-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: #eef2ff;
  color: var(--cl-indigo);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.cl-tag--success {
  background: #ecfdf5;
  color: var(--cl-success);
}

.cl-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cl-path-card,
.cl-subject-card,
.cl-level-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  padding: 1.35rem;
}

.cl-path-card--featured {
  border-color: #c7d2fe;
  box-shadow: var(--cl-shadow);
}

.cl-path-card__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--cl-indigo);
  margin-bottom: 0.85rem;
}

.cl-path-card h3,
.cl-subject-card h3,
.cl-level-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cl-path-note {
  margin: 1.5rem 0 0;
  font-weight: 600;
  color: var(--cl-navy);
}

.cl-subject-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cl-subject-card {
  background: var(--subject-bg, var(--cl-surface));
}

.cl-subject-card__emoji {
  font-size: 1.4rem;
}

.cl-progress {
  height: 6px;
  background: rgba(15, 28, 63, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.cl-progress span {
  display: block;
  height: 100%;
  background: var(--subject-color, var(--cl-blue));
}

.cl-topic-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  background: var(--cl-bg);
  padding: 1.1rem;
  border-radius: var(--cl-radius);
}

.cl-topic-form__row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cl-weak-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--cl-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.cl-weak-box h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.cl-weak-box ul,
.cl-level-list,
.cl-journey {
  margin: 0;
  padding-left: 1.1rem;
}

.cl-level-grid {
  grid-template-columns: 1fr 1fr;
}

.cl-example-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-amber);
  margin-bottom: 0.35rem;
}

.cl-level-cta,
.cl-cta__actions,
.cl-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cl-feature-row {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.cl-feature-row li,
.cl-check-grid li {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.cl-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-check-grid li::before {
  content: "✓ ";
  color: var(--cl-success);
}

.cl-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.cl-steps li {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  padding: 1.1rem;
}

.cl-steps span {
  display: block;
  font-weight: 800;
  color: var(--cl-indigo);
  margin-bottom: 0.5rem;
}

.cl-steps h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cl-explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cl-explore-filters .form-select {
  min-width: 10.5rem;
  max-width: 100%;
}

.cl-explore-count {
  font-size: 0.9rem;
  color: var(--cl-muted);
  margin-bottom: 1rem;
}

.cl-quiz-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cl-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.cl-stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--cl-navy);
}

.cl-stats span {
  color: var(--cl-muted);
  font-size: 0.88rem;
}

.cl-cta {
  background: var(--cl-navy);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cl-cta h2 {
  margin-bottom: 0.75rem;
}

.cl-cta p {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.cl-cta__actions {
  justify-content: center;
}

.cl-empty {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--cl-surface);
  border: 1px dashed var(--cl-border);
  border-radius: var(--cl-radius);
}

.cl-empty--inline {
  padding: 1.25rem;
}

.cl-empty__icon {
  font-size: 1.8rem;
  color: var(--cl-indigo);
  display: block;
  margin-bottom: 0.6rem;
}

.cl-empty h3 {
  font-size: 1.15rem;
}

.bp-cadet-landing .cl-btn:focus-visible,
.bp-cadet-landing .cl-chip:focus-visible,
.bp-cadet-landing .nav-link:focus-visible,
.bp-cadet-landing select:focus-visible,
.bp-cadet-landing input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .cl-hero__grid,
  .cl-cat-grid,
  .cl-cat-grid--4,
  .cl-path-grid,
  .cl-college-grid,
  .cl-quiz-grid,
  .cl-level-grid,
  .cl-steps,
  .cl-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-topic-form,
  .cl-check-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cl-hero__image,
  .cl-hero__placeholder {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .cl-section,
  .cl-hero,
  .cl-cta {
    padding: 2.5rem 0;
  }

  .cl-hero__grid,
  .cl-cat-grid,
  .cl-cat-grid--4,
  .cl-path-grid,
  .cl-college-grid,
  .cl-quiz-grid,
  .cl-level-grid,
  .cl-steps,
  .cl-subject-grid,
  .cl-topic-form,
  .cl-check-grid {
    grid-template-columns: 1fr;
  }

  .cl-nav__actions {
    margin-top: 0.75rem;
  }

  .cl-hero__image,
  .cl-hero__placeholder {
    height: 240px;
  }

  .cl-search,
  .cl-explore-filters .form-select {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cl-hero__title {
    font-size: 1.75rem;
  }

  .cl-hero__actions .btn,
  .cl-cta__actions .btn,
  .cl-nav__actions .btn {
    width: 100%;
  }
}
