/* LMS UI U4-L1A — product-focused public landing page. */

html[data-lms-page="landing"] {
  --lms-font-weight-medium: 400;
  --lms-font-weight-semibold: 700;
  scroll-behavior: smooth;
}

.lms-landing-main {
  min-height: 65vh;
}

/* Landing-specific adoption guard: all public-shell controls remain at least 44px. */
.lms-landing-body .lms-public-brand,
.lms-landing-body .lms-public-navigation a,
.lms-landing-body .lms-public-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.lms-landing-body .lms-header-action {
  width: 2.75rem;
  height: 2.75rem;
}

.lms-landing-container {
  width: min(calc(100% - 2rem), 76rem);
  margin-inline: auto;
}

.lms-landing-messages {
  padding-top: 1rem;
}


.lms-landing-messages .lms-alert {
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--lms-color-info-border);
  border-radius: var(--lms-radius-md);
  color: var(--lms-color-info-text);
  background: var(--lms-color-info-bg);
}

.lms-landing-messages .lms-alert__message {
  margin: 0;
}

.lms-landing-section,
.lms-landing-hero {
  scroll-margin-top: 6rem;
}

.lms-landing-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.lms-landing-section--subtle {
  border-block: 1px solid var(--lms-color-divider);
  background: var(--lms-color-surface-subtle);
}

.lms-landing-hero {
  padding-block: clamp(3rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--lms-color-divider);
  background: var(--lms-color-canvas);
}

.lms-landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.lms-landing-hero__content,
.lms-landing-section__head,
.lms-landing-card,
.lms-landing-overview,
.lms-landing-benefits__list article,
.lms-landing-faq details,
.lms-landing-cta {
  min-width: 0;
}

.lms-landing-eyebrow,
.lms-landing-overline {
  margin: 0 0 .75rem;
  color: var(--lms-color-brand-700);
  font-size: var(--lms-font-size-label);
  font-weight: var(--lms-font-weight-bold);
}

html[data-lms-theme="dark"] .lms-landing-eyebrow,
html[data-lms-theme="dark"] .lms-landing-overline {
  color: var(--lms-color-brand-300);
}

.lms-landing-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -.035em;
}

.lms-landing-lead {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  color: var(--lms-color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 2;
}

.lms-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.lms-landing-actions--compact {
  flex: 0 0 auto;
  margin-top: 0;
}

.lms-landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--lms-color-text-secondary);
  list-style: none;
  font-size: .9rem;
}

.lms-landing-proof li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.lms-landing-proof [data-lms-icon] {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--lms-color-success-text);
}

.lms-landing-overview {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-xl);
  background: var(--lms-color-surface);
  box-shadow: var(--lms-shadow-card);
}

.lms-landing-overview__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lms-color-divider);
}

.lms-landing-overview__icon,
.lms-landing-card__icon,
.lms-landing-benefits__list > article > [data-lms-icon] {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: var(--lms-radius-md);
  color: var(--lms-color-brand-700);
  background: var(--lms-color-brand-50);
}

html[data-lms-theme="dark"] .lms-landing-overview__icon,
html[data-lms-theme="dark"] .lms-landing-card__icon,
html[data-lms-theme="dark"] .lms-landing-benefits__list > article > [data-lms-icon] {
  color: var(--lms-color-brand-200);
  background: rgb(37 99 235 / 18%);
}

.lms-landing-overview h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.lms-landing-overview__steps {
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.lms-landing-overview__steps li {
  display: grid;
  gap: .25rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--lms-color-brand-200);
}

.lms-landing-overview__steps strong {
  color: var(--lms-color-text-primary);
}

.lms-landing-overview__steps span {
  color: var(--lms-color-text-muted);
  line-height: 1.8;
}

.lms-landing-section__head {
  max-width: 48rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.lms-landing-section__head--compact {
  margin-bottom: 0;
}

.lms-landing-section__head h2,
.lms-landing-cta h2 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.lms-landing-section__head > p:last-child,
.lms-landing-cta p,
.lms-landing-card p,
.lms-landing-card li,
.lms-landing-benefits p,
.lms-landing-faq p {
  color: var(--lms-color-text-secondary);
  line-height: 1.9;
}

.lms-landing-section__head > p:last-child {
  margin: .85rem 0 0;
}

.lms-landing-card-grid {
  display: grid;
  gap: 1rem;
}

.lms-landing-card-grid--roles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lms-landing-card-grid--features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lms-landing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-lg);
  background: var(--lms-color-surface);
}

.lms-landing-card h3 {
  margin: 1rem 0 .45rem;
  color: var(--lms-color-text-primary);
  font-size: 1.2rem;
}

.lms-landing-card p {
  margin: 0;
}

.lms-landing-role-card ul {
  display: grid;
  gap: .5rem;
  width: 100%;
  margin: 1rem 0 1.25rem;
  padding: 0 1.2rem 0 0;
}

.lms-landing-role-card .lms-btn {
  margin-top: auto;
}

.lms-landing-feature-card a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--lms-color-link);
  font-weight: var(--lms-font-weight-semibold);
  text-underline-offset: .2em;
}

.lms-landing-benefits {
  display: grid;
  grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lms-landing-benefits__list {
  display: grid;
  gap: 1rem;
}

.lms-landing-benefits__list article {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-lg);
  background: var(--lms-color-surface);
}

.lms-landing-benefits h3 {
  margin: 0 0 .35rem;
  color: var(--lms-color-text-primary);
  font-size: 1.05rem;
}

.lms-landing-benefits p {
  margin: 0;
}

.lms-landing-faq-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lms-landing-faq {
  display: grid;
  gap: .75rem;
}

.lms-landing-faq details {
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-lg);
  background: var(--lms-color-surface);
}

.lms-landing-faq summary {
  min-height: 3.25rem;
  padding: 1rem 3rem 1rem 1rem;
  color: var(--lms-color-text-primary);
  cursor: pointer;
  font-weight: var(--lms-font-weight-semibold);
}

.lms-landing-faq details[open] summary {
  border-bottom: 1px solid var(--lms-color-divider);
}

.lms-landing-faq p {
  margin: 0;
  padding: 1rem;
}

.lms-landing-section--cta {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.lms-landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-xl);
  background: var(--lms-color-surface);
  box-shadow: var(--lms-shadow-card);
}

.lms-landing-cta > div:first-child {
  max-width: 46rem;
}

.lms-landing-cta p:last-child {
  margin: .75rem 0 0;
}

html[data-lms-design-system] body.lms-landing-body :where(p, li, summary, h1, h2, h3, a, span) {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 61.99rem) {
  .lms-landing-hero__grid,
  .lms-landing-benefits,
  .lms-landing-faq-layout {
    grid-template-columns: 1fr;
  }

  .lms-landing-hero h1 {
    max-width: 22ch;
  }

  .lms-landing-card-grid--roles,
  .lms-landing-card-grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lms-landing-section__head--compact {
    margin-bottom: 1.5rem;
  }

  .lms-landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 43.74rem) {
  .lms-landing-container {
    width: min(calc(100% - 1.25rem), 76rem);
  }

  .lms-landing-section {
    padding-block: 3.25rem;
  }

  .lms-landing-hero {
    padding-block: 2.75rem 3.5rem;
  }

  .lms-landing-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .lms-landing-actions,
  .lms-landing-actions--compact {
    width: 100%;
    flex-direction: column;
  }

  .lms-landing-actions .lms-btn {
    width: 100%;
  }

  .lms-landing-proof {
    display: grid;
  }

  .lms-landing-card-grid--roles,
  .lms-landing-card-grid--features {
    grid-template-columns: 1fr;
  }

  .lms-landing-benefits__list article {
    padding: 1rem;
  }

  .lms-landing-cta {
    padding: 1.25rem;
  }
}

@media (max-height: 31rem) and (orientation: landscape) {
  .lms-landing-hero {
    padding-block: 2rem;
  }

  .lms-landing-section {
    padding-block: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-lms-page="landing"] {
    scroll-behavior: auto;
  }
}


/* =========================================================
   HOME HERO CAROUSEL
   Admin-driven via site_settings.HomeHeroSlide
   ========================================================= */

.lms-landing-hero.lms-home-hero {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
}

.lms-home-hero,
.lms-home-hero * {
  box-sizing: border-box;
}

.lms-home-hero__carousel {
  --home-hero-accent: #2868df;
  --home-hero-bg: #f8faff;
  --home-hero-text: #142033;
  --home-hero-muted: #667085;
  --home-hero-border: rgba(25, 45, 75, 0.11);
  --home-hero-surface: rgba(255, 255, 255, 0.76);

  position: relative;
  min-height: 455px;
  overflow: hidden;
  isolation: isolate;
  direction: rtl;
  color: var(--home-hero-text);

  background:
    radial-gradient(
      circle at 13% 22%,
      rgba(59, 130, 246, 0.07),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 75%,
      rgba(96, 165, 250, 0.04),
      transparent 27%
    ),
    var(--home-hero-bg);
}

html[data-lms-theme="dark"]
.lms-home-hero__carousel {
  --home-hero-accent: #5a91f7;
  --home-hero-bg: #081321;
  --home-hero-text: #f1f5fb;
  --home-hero-muted: #a5b0c1;
  --home-hero-border: rgba(148, 163, 184, 0.16);
  --home-hero-surface: rgba(17, 30, 49, 0.78);

  background:
    radial-gradient(
      circle at 13% 22%,
      rgba(37, 99, 235, 0.14),
      transparent 31%
    ),
    radial-gradient(
      circle at 88% 76%,
      rgba(59, 130, 246, 0.055),
      transparent 26%
    ),
    var(--home-hero-bg);
}

.lms-home-hero__slides {
  position: relative;
  min-height: 455px;
}

.lms-home-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 0.75, 0.2, 1),
    visibility 0.7s;
}

.lms-home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lms-home-hero__shell {
  width: min(1216px, calc(100% - 64px));
  min-height: 455px;
  margin-inline: auto;
  padding: 42px 0 66px;

  display: grid;
  grid-template-columns:
    minmax(0, 0.94fr)
    minmax(400px, 1.06fr);

  align-items: center;
  gap: clamp(58px, 6.5vw, 105px);
}

.lms-home-hero__copy {
  max-width: 565px;
  opacity: 0;
  transform: translateY(9px);

  transition:
    opacity 0.65s ease 0.08s,
    transform 0.8s cubic-bezier(0.22, 0.75, 0.2, 1) 0.08s;
}

.lms-home-hero__slide.is-active
.lms-home-hero__copy {
  opacity: 1;
  transform: translateY(0);
}

.lms-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--home-hero-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.lms-home-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}

.lms-home-hero
.lms-home-hero__title {
  max-width: 545px;
  margin: 0 !important;
  color: var(--home-hero-text) !important;
  font-size: clamp(28px, 2.15vw, 35px) !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
}

.lms-home-hero__lead {
  max-width: 540px;
  margin: 13px 0 0 !important;
  color: var(--home-hero-muted) !important;
  font-size: 13.8px;
  line-height: 2;
}

.lms-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.lms-home-hero__btn {
  min-height: 44px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.lms-home-hero__btn:hover {
  transform: translateY(-1px);
}

.lms-home-hero__btn--primary {
  color: #fff !important;
  background: var(--home-hero-accent);
  border: 1px solid var(--home-hero-accent);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.17);
}

.lms-home-hero__btn--secondary {
  color: var(--home-hero-text) !important;
  background: var(--home-hero-surface);
  border: 1px solid var(--home-hero-border);
}

html[data-lms-theme="dark"]
.lms-home-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.035);
  color: #e8edf5 !important;
}

.lms-home-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lms-home-hero__image-slot {
  position: relative;
  width: min(100%, 525px);
  aspect-ratio: 1.58 / 1;
  overflow: hidden;

  border-radius: 23px;
  border: 1px solid var(--home-hero-border);

  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(59, 130, 246, 0.15),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(234, 242, 255, 0.82)
    );

  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.09);

  opacity: 0;
  transform: translateX(-12px) scale(0.985);

  transition:
    opacity 0.75s ease 0.05s,
    transform 0.95s cubic-bezier(0.22, 0.75, 0.2, 1) 0.05s;
}

html[data-lms-theme="dark"]
.lms-home-hero__image-slot {
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(59, 130, 246, 0.19),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #112039,
      #0b1729
    );

  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.27);
}

.lms-home-hero__slide.is-active
.lms-home-hero__image-slot {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.lms-home-hero__image-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lms-home-hero__visual-placeholder {
  position: absolute;
  inset: 16px;
  overflow: hidden;
  border-radius: 16px;

  border:
    1px dashed
    rgba(59, 130, 246, 0.20);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.57)
    );
}

html[data-lms-theme="dark"]
.lms-home-hero__visual-placeholder {
  background:
    linear-gradient(
      145deg,
      rgba(29, 45, 68, 0.55),
      rgba(15, 28, 47, 0.68)
    );

  border-color: rgba(96, 165, 250, 0.18);
}

.lms-home-hero__visual-placeholder span {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.13);
}

.lms-home-hero__visual-placeholder
span:nth-child(1) {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -45px;

  box-shadow:
    0 0 0 30px
    rgba(59, 130, 246, 0.025);
}

.lms-home-hero__visual-placeholder
span:nth-child(2) {
  width: 145px;
  height: 145px;
  top: 32px;
  right: 55px;
}

.lms-home-hero__visual-placeholder
span:nth-child(3) {
  width: 74px;
  height: 74px;
  left: 48px;
  bottom: 42px;
  background: rgba(59, 130, 246, 0.025);
}

.lms-home-hero__nav {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 11px;
}

.lms-home-hero__arrow {
  width: 36px;
  height: 36px;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 1px solid var(--home-hero-border);

  background: var(--home-hero-surface);
  color: var(--home-hero-text);

  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;

  backdrop-filter: blur(12px);

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.lms-home-hero__arrow:hover {
  transform: scale(1.05);
}

.lms-home-hero__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lms-home-hero__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;

  background:
    rgba(100, 116, 139, 0.35);

  cursor: pointer;

  transition:
    width 0.28s ease,
    background 0.28s ease;
}

.lms-home-hero__dot.is-active {
  width: 21px;
  background: var(--home-hero-accent);
}

.lms-home-hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;
  overflow: hidden;
  opacity: 0.4;
}

.lms-home-hero__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--home-hero-accent);
}

.lms-home-hero__progress
span.is-running {
  animation:
    lms-home-hero-progress
    8s linear forwards;
}

@keyframes lms-home-hero-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .lms-home-hero__carousel,
  .lms-home-hero__slides {
    min-height: 670px;
  }

  .lms-home-hero__shell {
    min-height: 670px;
    width: min(calc(100% - 34px), 720px);
    padding: 38px 0 70px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lms-home-hero__copy {
    max-width: none;
  }

  .lms-home-hero__image-slot {
    width: min(100%, 545px);
  }
}

@media (max-width: 560px) {
  .lms-home-hero__carousel,
  .lms-home-hero__slides {
    min-height: 625px;
  }

  .lms-home-hero__shell {
    min-height: 625px;
    width: calc(100% - 28px);
    padding: 27px 0 66px;
    gap: 22px;
  }

  .lms-home-hero
  .lms-home-hero__title {
    font-size: 24px !important;
    line-height: 1.65 !important;
  }

  .lms-home-hero__lead {
    margin-top: 11px !important;
    font-size: 13px;
    line-height: 1.95;
  }

  .lms-home-hero__actions {
    margin-top: 18px;
  }

  .lms-home-hero__btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .lms-home-hero__image-slot {
    width: 100%;
    max-height: 215px;
    border-radius: 17px;
  }

  .lms-home-hero__visual-placeholder {
    inset: 13px;
  }

  .lms-home-hero__nav {
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-home-hero__slide,
  .lms-home-hero__copy,
  .lms-home-hero__image-slot,
  .lms-home-hero__dot {
    transition: none !important;
  }

  .lms-home-hero__progress span {
    animation: none !important;
  }
}


/* =========================================================
   HOME FEATURES + ROLES V1.1
   ========================================================= */

.lms-home-features {
  position: relative;
  overflow: hidden;
}

.lms-home-features__head,
.lms-home-roles__head {
  max-width: 43rem;
  margin-inline: auto;
  text-align: center;
}

.lms-home-features__rail {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lms-home-feature-card {
  position: relative;
  min-width: 0;
  min-height: 14.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--lms-color-border);
  border-radius: calc(var(--lms-radius-lg) + .15rem);
  background: var(--lms-color-surface);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.lms-home-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--lms-color-brand-300);
  box-shadow: var(--lms-shadow-card);
}

.lms-home-feature-card.is-highlighted {
  border-color: var(--lms-color-brand-300);
  background: var(--lms-color-brand-50);
}

html[data-lms-theme="dark"]
.lms-home-feature-card.is-highlighted {
  background: var(--lms-color-surface);
}

.lms-home-feature-card__top {
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.lms-home-feature-card__icon,
.lms-home-role-card__icon {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 2.85rem;
  place-items: center;
  border-radius: .85rem;
  color: var(--lms-color-brand-700);
  background: var(--lms-color-brand-50);
}

html[data-lms-theme="dark"]
.lms-home-feature-card__icon,
html[data-lms-theme="dark"]
.lms-home-role-card__icon {
  color: var(--lms-color-brand-200);
  background: var(--lms-color-surface-subtle);
}

.lms-home-feature-card__badge {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: .2rem .65rem;
  border: 1px solid var(--lms-color-border);
  border-radius: 999px;
  color: var(--lms-color-brand-700);
  background: var(--lms-color-surface-subtle);
  font-size: .75rem;
  font-weight: var(--lms-font-weight-semibold);
}

html[data-lms-theme="dark"]
.lms-home-feature-card__badge {
  color: var(--lms-color-brand-200);
}

.lms-home-feature-card h3 {
  margin: 1.15rem 0 .5rem;
  color: var(--lms-color-text-primary);
  font-size: 1.15rem;
  line-height: 1.7;
}

.lms-home-feature-card > p {
  margin: 0;
  color: var(--lms-color-text-secondary);
  font-size: .91rem;
  line-height: 1.95;
}

.lms-home-feature-card__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--lms-color-link);
  font-size: .88rem;
  font-weight: var(--lms-font-weight-semibold);
  text-decoration: none;
}

.lms-home-feature-card__link:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}


/* Roles */

.lms-home-roles {
  background: var(--lms-color-canvas);
}

.lms-home-roles__grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lms-home-role-card {
  position: relative;
  min-width: 0;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--lms-color-border);
  border-radius: calc(var(--lms-radius-lg) + .2rem);
  background: var(--lms-color-surface);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.lms-home-role-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1.5rem;
  left: 1.5rem;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--lms-color-link);
  opacity: .55;
}

.lms-home-role-card:hover {
  transform: translateY(-3px);
  border-color: var(--lms-color-brand-300);
  box-shadow: var(--lms-shadow-card);
}

.lms-home-role-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lms-home-role-card__number {
  color: var(--lms-color-text-secondary);
  font-size: .78rem;
  font-weight: var(--lms-font-weight-bold);
  letter-spacing: .08em;
  opacity: .65;
}

.lms-home-role-card h3 {
  margin: 1.15rem 0 .45rem;
  color: var(--lms-color-text-primary);
  font-size: 1.2rem;
  line-height: 1.7;
}

.lms-home-role-card__lead {
  margin: 0;
  color: var(--lms-color-text-secondary);
  font-size: .91rem;
  line-height: 1.95;
}

.lms-home-role-card ul {
  display: grid;
  width: 100%;
  gap: .62rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.lms-home-role-card li {
  position: relative;
  padding-right: 1.35rem;
  color: var(--lms-color-text-secondary);
  font-size: .86rem;
  line-height: 1.85;
}

.lms-home-role-card li::before {
  content: "✓";
  position: absolute;
  top: .02rem;
  right: 0;
  color: var(--lms-color-link);
  font-weight: 800;
}

.lms-home-role-card .lms-btn {
  margin-top: auto;
}


/* Tablet */

@media (max-width: 61.99rem) {
  .lms-home-features__rail,
  .lms-home-roles__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .lms-home-role-card:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }
}


/* Mobile Features:
   native carousel via horizontal scrolling + scroll snap.
*/

@media (max-width: 43.74rem) {
  .lms-home-features__head,
  .lms-home-roles__head {
    text-align: right;
  }

  .lms-home-features__rail {
    display: flex;
    width: calc(100% + .625rem);
    gap: .75rem;
    margin-left: -.625rem;
    padding: .15rem 0 .85rem .625rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lms-home-features__rail::-webkit-scrollbar {
    display: none;
  }

  .lms-home-feature-card {
    flex: 0 0 min(84vw, 20rem);
    min-height: 13.75rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .lms-home-roles__grid {
    grid-template-columns: 1fr;
  }

  .lms-home-role-card,
  .lms-home-role-card:last-child {
    grid-column: auto;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-home-feature-card,
  .lms-home-role-card {
    transition: none;
  }
}


/* =========================================================
   HOME FEATURES — MOBILE CAROUSEL AFFORDANCE V1.2
   ========================================================= */

.lms-home-features__mobile-hint {
  display: none;
}

@media (max-width: 43.74rem) {

  .lms-home-features__mobile-hint {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    margin: -.55rem 0 .8rem;
    color: var(--lms-color-text-secondary);
    font-size: .75rem;
    line-height: 1.7;
  }

  .lms-home-features__mobile-hint-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 1.65rem;
    border: 1px solid var(--lms-color-border);
    border-radius: 999px;
    color: var(--lms-color-link);
    background: var(--lms-color-surface);
    font-size: .8rem;
  }

  .lms-home-features__rail {
    scroll-padding-inline: .5rem;
  }

  .lms-home-feature-card {
    flex-basis: calc(100% - 3.75rem);
    max-width: 20rem;
  }

}



/* =========================================================
   HOME FAQ V1 — Admin driven
   ========================================================= */

.lms-home-faq {
  position: relative;
}

.lms-home-faq__head {
  max-width: 43rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.lms-home-faq__head h2 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.55;
}

.lms-home-faq__head > p:last-child {
  max-width: 38rem;
  margin: .85rem auto 0;
  color: var(--lms-color-text-secondary);
  line-height: 1.95;
}

.lms-home-faq__list {
  display: grid;
  max-width: 54rem;
  gap: .75rem;
  margin-inline: auto;
}

.lms-home-faq__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lms-color-border);
  border-radius: calc(var(--lms-radius-lg) + .15rem);
  background: var(--lms-color-surface);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.lms-home-faq__item:hover {
  border-color: var(--lms-color-brand-300);
}

.lms-home-faq__item[open] {
  border-color: var(--lms-color-brand-300);
  box-shadow: var(--lms-shadow-card);
}

.lms-home-faq__item summary {
  position: relative;
  display: flex;
  min-height: 4rem;
  align-items: center;
  padding: 1rem 4.15rem 1rem 1.25rem;
  color: var(--lms-color-text-primary);
  cursor: pointer;
  list-style: none;
  font-weight: var(--lms-font-weight-semibold);
  line-height: 1.8;
}

.lms-home-faq__item summary::-webkit-details-marker {
  display: none;
}

.lms-home-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--lms-color-border);
  border-radius: 999px;
  color: var(--lms-color-link);
  background: var(--lms-color-surface-subtle);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.lms-home-faq__item[open] summary::after {
  content: "−";
}

.lms-home-faq__item[open] summary {
  border-bottom: 1px solid var(--lms-color-divider);
}

.lms-home-faq__answer {
  padding: 1rem 1.25rem 1.2rem;
}

.lms-home-faq__answer p {
  margin: 0;
  color: var(--lms-color-text-secondary);
  font-size: .92rem;
  line-height: 2;
}

html[data-lms-theme="dark"]
.lms-home-faq__item[open] {
  border-color: var(--lms-color-brand-700);
}

@media (max-width: 43.74rem) {
  .lms-home-faq__head {
    margin-bottom: 1.6rem;
    text-align: right;
  }

  .lms-home-faq__head > p:last-child {
    margin-inline: 0;
  }

  .lms-home-faq__item summary {
    min-height: 3.8rem;
    padding:
      .95rem
      3.75rem
      .95rem
      1rem;
    font-size: .9rem;
  }

  .lms-home-faq__item summary::after {
    right: 1rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .lms-home-faq__answer {
    padding:
      .9rem
      1rem
      1.05rem;
  }

  .lms-home-faq__answer p {
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-home-faq__item {
    transition: none;
  }
}


/* =========================================================
   HOME CTA V2
   ========================================================= */

.lms-home-cta-section {
  position: relative;
  overflow: hidden;
  background: var(--lms-color-canvas);
}

.lms-home-cta {
  position: relative;
  isolation: isolate;
  min-height: 14rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
  border-color: var(--lms-color-brand-300);
  border-radius: calc(var(--lms-radius-xl) + .25rem);
  background:
    linear-gradient(
      135deg,
      var(--lms-color-brand-50),
      var(--lms-color-surface) 52%,
      var(--lms-color-surface-subtle)
    );
}

.lms-home-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  top: -9rem;
  left: -5rem;
  border: 1px solid var(--lms-color-brand-300);
  border-radius: 50%;
  opacity: .28;
}

.lms-home-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 9rem;
  height: 9rem;
  right: -4rem;
  bottom: -5rem;
  border: 1px solid var(--lms-color-brand-300);
  border-radius: 50%;
  opacity: .18;
}

html[data-lms-theme="dark"] .lms-home-cta {
  border-color: var(--lms-color-brand-700);
  background:
    linear-gradient(
      135deg,
      var(--lms-color-surface-subtle),
      var(--lms-color-surface) 58%
    );
}

.lms-home-cta__copy {
  position: relative;
  max-width: 42rem;
}

.lms-home-cta__copy h2 {
  max-width: 20ch;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  line-height: 1.55;
}

.lms-home-cta__copy > p:last-child {
  max-width: 42rem;
  margin-top: .9rem;
  font-size: .96rem;
  line-height: 2;
}

.lms-home-cta__actions {
  position: relative;
  justify-content: flex-end;
}

.lms-home-cta__actions .lms-btn {
  white-space: nowrap;
}

@media (max-width: 61.99rem) {
  .lms-home-cta {
    min-height: auto;
  }

  .lms-home-cta__copy h2 {
    max-width: 26ch;
  }

  .lms-home-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 43.74rem) {
  .lms-home-cta-section {
    padding-block:
      2.75rem
      3.25rem;
  }

  .lms-home-cta {
    padding: 1.35rem;
    border-radius: var(--lms-radius-xl);
  }

  .lms-home-cta__copy h2 {
    max-width: none;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .lms-home-cta__copy > p:last-child {
    font-size: .9rem;
  }

  .lms-home-cta__actions {
    width: 100%;
    margin-top: 1.4rem;
  }

  .lms-home-cta__actions .lms-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-home-cta * {
    scroll-behavior: auto;
  }
}


/* =========================================================
   HOME FEATURE EXPLORER V1.1
   One focused panel, compact categories, progressive detail.
   ========================================================= */

.lms-home-features--explorer {
  position: relative;
  overflow: hidden;
}

.lms-home-features__intro {
  max-width: 49rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.lms-home-features__intro h2 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.55;
}

.lms-home-features__intro > p:last-child {
  max-width: 42rem;
  margin: .9rem auto 0;
  color: var(--lms-color-text-secondary);
  line-height: 1.95;
}

.lms-feature-explorer {
  display: grid;
  gap: 1.1rem;
}

.lms-feature-explorer__rail {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: .65rem;
}

.lms-feature-explorer__tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 6.4rem;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem;
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-lg);
  color: var(--lms-color-text-primary);
  background: var(--lms-color-surface);
  text-align: right;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
}

.lms-feature-explorer__tab::after {
  content: "";
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: -.08rem;
  height: .18rem;
  border-radius: 999px;
  background: var(--lms-color-brand-600);
  opacity: 0;
  transform: scaleX(.35);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.lms-feature-explorer__tab:hover {
  border-color: var(--lms-color-brand-300);
  transform: translateY(-2px);
}

.lms-feature-explorer__tab.is-active {
  border-color: var(--lms-color-brand-300);
  background: var(--lms-color-surface-subtle);
  box-shadow: var(--lms-shadow-card);
}

.lms-feature-explorer__tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.lms-feature-explorer__tab-icon,
.lms-feature-explorer__panel-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--lms-color-brand-700);
  background: var(--lms-color-brand-50);
}

.lms-feature-explorer__tab-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .7rem;
}

.lms-feature-explorer__tab-copy {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.lms-feature-explorer__tab-copy small {
  color: var(--lms-color-brand-700);
  font-size: .66rem;
  font-weight: 800;
}

.lms-feature-explorer__tab-copy strong {
  color: var(--lms-color-text-primary);
  font-size: .84rem;
  line-height: 1.65;
}

html[data-lms-theme="dark"]
.lms-feature-explorer__tab-icon,
html[data-lms-theme="dark"]
.lms-feature-explorer__panel-icon {
  color: var(--lms-color-brand-200);
  background: rgb(37 99 235 / 18%);
}

html[data-lms-theme="dark"]
.lms-feature-explorer__tab-copy small {
  color: var(--lms-color-brand-300);
}

.lms-feature-explorer__stage {
  min-width: 0;
}

.lms-feature-explorer__panel {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(14rem, .7fr)
    minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.15rem);
  overflow: hidden;
  border: 1px solid var(--lms-color-brand-300);
  border-radius: calc(var(--lms-radius-xl) + .2rem);
  background:
    linear-gradient(
      135deg,
      var(--lms-color-brand-50),
      var(--lms-color-surface) 48%,
      var(--lms-color-surface-subtle)
    );
  box-shadow: var(--lms-shadow-card);
}

.lms-feature-explorer__panel::after {
  content: "";
  position: absolute;
  width: 13rem;
  height: 13rem;
  left: -7rem;
  bottom: -8rem;
  border: 1px solid var(--lms-color-brand-300);
  border-radius: 50%;
  opacity: .18;
  pointer-events: none;
}

html[data-lms-theme="dark"]
.lms-feature-explorer__panel {
  border-color: var(--lms-color-brand-700);
  background:
    linear-gradient(
      135deg,
      var(--lms-color-surface-subtle),
      var(--lms-color-surface) 55%
    );
}

.lms-feature-explorer.is-enhanced
.lms-feature-explorer__panel {
  display: none;
}

.lms-feature-explorer.is-enhanced
.lms-feature-explorer__panel.is-active {
  display: grid;
}

.lms-feature-explorer__panel-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.lms-feature-explorer__panel-heading {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.lms-feature-explorer__panel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
}

.lms-feature-explorer__panel-heading h3 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.6;
}

.lms-feature-explorer__panel-badge {
  margin: 0 0 .12rem;
  color: var(--lms-color-brand-700);
  font-size: .7rem;
  font-weight: 800;
}

html[data-lms-theme="dark"]
.lms-feature-explorer__panel-badge {
  color: var(--lms-color-brand-300);
}

.lms-feature-explorer__description {
  margin: 1rem 0 0;
  color: var(--lms-color-text-secondary);
  line-height: 2;
}

.lms-feature-explorer__items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lms-feature-explorer__item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: .5rem;
  padding: .76rem .85rem;
  border: 1px solid var(--lms-color-border);
  border-radius: var(--lms-radius-md);
  color: var(--lms-color-text-secondary);
  background: var(--lms-color-surface);
  font-size: .84rem;
  line-height: 1.8;
}

.lms-feature-explorer__check {
  flex: 0 0 auto;
  color: var(--lms-color-brand-600);
  font-weight: 900;
}

.lms-feature-explorer.is-enhanced
.lms-feature-explorer__item--extra {
  display: none;
}

.lms-feature-explorer.is-enhanced
.lms-feature-explorer__panel.is-expanded
.lms-feature-explorer__item--extra {
  display: flex;
}

.lms-feature-explorer__optional-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 1rem;
  color: var(--lms-color-link);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: .3em;
}

.lms-feature-explorer__optional-link:hover {
  text-decoration: underline;
}

.lms-feature-explorer__more {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .45rem;
  margin-top: 1.1rem;
  padding: 0;
  border: 0;
  color: var(--lms-color-link);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lms-feature-explorer__more [data-lms-icon] {
  width: 1rem;
  height: 1rem;
  transition: transform .18s ease;
}

.lms-feature-explorer__panel.is-expanded
.lms-feature-explorer__more [data-lms-icon] {
  transform: rotate(180deg);
}

@media (max-width: 61.99rem) {
  .lms-feature-explorer__rail {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .lms-feature-explorer__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 43.74rem) {
  .lms-home-features__intro {
    margin-bottom: 1.6rem;
    text-align: right;
  }

  .lms-home-features__intro > p:last-child {
    margin-inline: 0;
  }

  .lms-feature-explorer__rail {
    display: flex;
    width: calc(100% + .625rem);
    gap: .65rem;
    margin-left: -.625rem;
    padding-left: .625rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lms-feature-explorer__rail::-webkit-scrollbar {
    display: none;
  }

  .lms-feature-explorer__tab {
    flex: 0 0 min(78vw, 15rem);
    min-height: 5.5rem;
    scroll-snap-align: start;
  }

  .lms-feature-explorer__panel {
    padding: 1.1rem;
  }

  .lms-feature-explorer__items {
    grid-template-columns: 1fr;
  }

  .lms-feature-explorer__item {
    padding: .72rem .78rem;
    font-size: .81rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-feature-explorer__tab,
  .lms-feature-explorer__tab::after,
  .lms-feature-explorer__more [data-lms-icon] {
    transition: none;
  }

  .lms-feature-explorer__tab:hover {
    transform: none;
  }
}


/* =========================================================
   FAQ DEDICATED PAGE V2
   Category-driven / Admin-managed
   ========================================================= */

.lms-faq-page {
  position: relative;
  padding-block:
    clamp(3.2rem, 7vw, 5.5rem)
    clamp(3.5rem, 7vw, 5.75rem);
  background:
    linear-gradient(
      180deg,
      var(--lms-color-surface-subtle),
      var(--lms-color-canvas) 22rem
    );
}

.lms-faq-page__hero {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.lms-faq-page__hero h1 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.45;
}

.lms-faq-page__intro {
  margin: .85rem 0 0;
  color: var(--lms-color-text-secondary);
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  line-height: 2;
}

.lms-faq-page__category-nav {
  display: flex;
  max-width: 62rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin:
    clamp(2rem, 5vw, 3rem)
    auto
    0;
}

.lms-faq-page__category-link {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border: 1px solid var(--lms-color-border);
  border-radius: 999px;
  color: var(--lms-color-text-secondary);
  background: var(--lms-color-surface);
  font-size: .86rem;
  font-weight: var(--lms-font-weight-semibold);
  text-decoration: none;
  transition:
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.lms-faq-page__category-link:hover {
  border-color: var(--lms-color-brand-300);
  color: var(--lms-color-link);
  box-shadow: var(--lms-shadow-sm);
  transform: translateY(-1px);
}

.lms-faq-page__category-link:focus-visible,
.lms-faq-page__contact-button:focus-visible {
  outline: 2px solid var(--lms-color-focus-ring);
  outline-offset: 3px;
}

.lms-faq-page__groups {
  display: grid;
  max-width: 58rem;
  gap: clamp(2rem, 5vw, 3rem);
  margin:
    clamp(2.5rem, 6vw, 4rem)
    auto
    0;
}

.lms-faq-page__group {
  min-width: 0;
  scroll-margin-top: 6rem;
}

.lms-faq-page__group-head {
  margin-bottom: 1rem;
  padding-inline: .15rem;
}

.lms-faq-page__group-head h2 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.7;
}

.lms-faq-page__list {
  display: grid;
  gap: .75rem;
}

.lms-faq-page__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lms-color-border);
  border-radius: calc(var(--lms-radius-lg) + .15rem);
  background: var(--lms-color-surface);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.lms-faq-page__item:hover {
  border-color: var(--lms-color-brand-300);
}

.lms-faq-page__item[open] {
  border-color: var(--lms-color-brand-300);
  box-shadow: var(--lms-shadow-card);
}

.lms-faq-page__item summary {
  position: relative;
  display: flex;
  min-height: 4rem;
  align-items: center;
  padding: 1rem 1.25rem;
  padding-inline-start: 4.15rem;
  color: var(--lms-color-text-primary);
  cursor: pointer;
  list-style: none;
  font-weight: var(--lms-font-weight-semibold);
  line-height: 1.85;
}

.lms-faq-page__item summary::-webkit-details-marker {
  display: none;
}

.lms-faq-page__item summary::after {
  content: "+";
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 50%;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--lms-color-border);
  border-radius: 999px;
  color: var(--lms-color-link);
  background: var(--lms-color-surface-subtle);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.lms-faq-page__item[open] summary::after {
  content: "−";
}

.lms-faq-page__item[open] summary {
  border-bottom: 1px solid var(--lms-color-divider);
}

.lms-faq-page__answer {
  padding: 1rem 1.25rem 1.2rem;
}

.lms-faq-page__answer p {
  margin: 0;
  color: var(--lms-color-text-secondary);
  font-size: .92rem;
  line-height: 2.05;
}

.lms-faq-page__empty {
  max-width: 48rem;
  margin: 3rem auto 0;
  padding: 1.2rem;
  border: 1px dashed var(--lms-color-border);
  border-radius: var(--lms-radius-lg);
  color: var(--lms-color-text-secondary);
  background: var(--lms-color-surface);
  text-align: center;
  line-height: 1.9;
}

.lms-faq-page__contact {
  display: flex;
  max-width: 58rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin:
    clamp(3rem, 7vw, 5rem)
    auto
    0;
  padding:
    clamp(1.35rem, 3vw, 1.8rem)
    clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--lms-color-border);
  border-radius: calc(var(--lms-radius-lg) + .25rem);
  background: var(--lms-color-surface);
  box-shadow: var(--lms-shadow-sm);
}

.lms-faq-page__contact h2 {
  margin: 0;
  color: var(--lms-color-text-primary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
}

.lms-faq-page__contact-button {
  display: inline-flex;
  min-height: 2.85rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  border: 1px solid var(--lms-color-brand-600);
  border-radius: var(--lms-radius-md);
  color: var(--lms-color-on-brand);
  background: var(--lms-color-brand-600);
  font-size: .9rem;
  font-weight: var(--lms-font-weight-bold);
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.lms-faq-page__contact-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--lms-shadow-card);
}

html[data-lms-theme="dark"]
.lms-faq-page__item[open] {
  border-color: var(--lms-color-brand-700);
}

@media (max-width: 43.74rem) {
  .lms-faq-page {
    padding-block: 2.75rem 3.5rem;
  }

  .lms-faq-page__hero {
    text-align: right;
  }

  .lms-faq-page__category-nav {
    justify-content: flex-start;
  }

  .lms-faq-page__group-head h2 {
    font-size: 1.1rem;
  }

  .lms-faq-page__item summary {
    min-height: 3.8rem;
    padding: .95rem 1rem;
    padding-inline-start: 3.75rem;
    font-size: .9rem;
  }

  .lms-faq-page__item summary::after {
    inset-inline-start: 1rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .lms-faq-page__answer {
    padding: .9rem 1rem 1.05rem;
  }

  .lms-faq-page__answer p {
    font-size: .86rem;
  }

  .lms-faq-page__contact {
    align-items: stretch;
    flex-direction: column;
  }

  .lms-faq-page__contact-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lms-faq-page__category-link,
  .lms-faq-page__item,
  .lms-faq-page__contact-button {
    transition: none;
  }
}
