:root {
  --brand-navy: #15314b;
  --brand-navy-soft: #24465f;
  --brand-teal: #0f766e;
  --brand-bg: #f5f8f7;
  --brand-line: rgba(21, 49, 75, .14);
  --brand-shadow: rgba(21, 49, 75, .09);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--brand-bg);
  color: #0f172a;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }

.modulesHero,
.modulesInfoGrid,
.modulesSection,
.modulesTerms,
.modulesFooter {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.modulesFooter a {
  color: inherit;
  text-decoration: none;
}

.modulesHeroActions,
.moduleCardTop,
.modulesFooter span {
  display: flex;
  align-items: center;
}

.modulesFooter a {
  color: #334155;
  font-weight: 600;
}

.modulesFooter a:hover { color: var(--brand-navy); }

.modulesHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
  gap: 42px;
  align-items: center;
  padding: 56px 0 48px;
}

.modulesHeroText h1,
.modulesSectionHead h2,
.modulesTerms h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  line-height: .94;
  font-weight: 800;
  letter-spacing: 0;
}

.modulesHeroText p:not(.modulesEyebrow),
.modulesSectionHead p,
.modulesInfoGrid p,
.modulesTerms p,
.moduleDesc,
.moduleCompatibility span,
.modulesFaq p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.62;
}

.modulesHeroText > p:not(.modulesEyebrow) {
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.modulesEyebrow {
  margin: 0 0 10px;
  color: var(--brand-teal);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modulesHeroActions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.modulesPrimary,
.moduleDownload {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-soft) 58%, var(--brand-teal));
  box-shadow: 0 16px 36px rgba(21, 49, 75, .20);
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
}

.modulesFree {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 999px;
  background: rgba(15, 118, 110, .08);
  color: #0f766e;
  padding: 0 14px;
  font-weight: 800;
}

.modulesHeroPanel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 60px var(--brand-shadow);
}

.cmsBadge {
  min-height: 86px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(21, 49, 75, .10);
  border-radius: 8px;
  background: #fbfdff;
}

.cmsBadge b,
.cmsIcon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-navy);
  font-weight: 900;
  letter-spacing: 0;
}

.cmsBadge em {
  min-width: 0;
  color: #10263a;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.cmsBadge--teal b,
.cmsIcon--teal { background: #0f766e; }
.cmsBadge--blue b,
.cmsIcon--blue { background: #2563eb; }
.cmsBadge--purple b,
.cmsIcon--purple { background: #7c3aed; }
.cmsBadge--cyan b,
.cmsIcon--cyan { background: #0891b2; }
.cmsBadge--orange b,
.cmsIcon--orange { background: #ea580c; }

.modulesInfoGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(21, 49, 75, .10);
}

.modulesInfoGrid article,
.moduleCard,
.modulesTerms,
.modulesFaq details {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 44px rgba(21, 49, 75, .07);
}

.modulesInfoGrid article {
  display: grid;
  grid-template-rows: auto minmax(2.75em, auto) 1fr;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.infoIcon {
  color: var(--brand-teal);
  font-size: .82rem;
  font-weight: 900;
}

.modulesInfoGrid h2,
.moduleCard h3,
.modulesFaq summary {
  margin: 0;
  color: #0f172a;
  line-height: 1.18;
}

.modulesInfoGrid h2 {
  font-size: 1.15rem;
}

.modulesInfoGrid p,
.moduleDesc,
.modulesFaq p { margin: 0; }

.modulesSection {
  padding: 44px 0;
  border-top: 1px solid rgba(21, 49, 75, .10);
}

.modulesSectionHead {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.modulesSectionHead h2,
.modulesTerms h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.modulesSectionHead p {
  max-width: 72ch;
  margin: 0;
}

.modulesGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.moduleCard {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.moduleCardTop {
  gap: 14px;
}

.moduleCardTop p {
  margin: 0 0 5px;
  color: var(--brand-teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.moduleCard h3 {
  font-size: 1.35rem;
}

.moduleMeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.moduleMeta div {
  min-width: 0;
  border: 1px solid rgba(21, 49, 75, .10);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.moduleMeta dt {
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.moduleMeta dd {
  margin: 4px 0 0;
  color: #10263a;
  font-weight: 800;
  line-height: 1.2;
}

.moduleCompatibility,
.moduleCoverage {
  display: grid;
  gap: 8px;
}

.moduleCompatibility strong,
.moduleCoverage strong {
  color: #10263a;
}

.moduleCoverage ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moduleCoverage li {
  border: 1px solid rgba(15, 118, 110, .20);
  border-radius: 999px;
  background: rgba(15, 118, 110, .07);
  color: #0f766e;
  padding: 7px 10px;
  font-size: .84rem;
  font-weight: 800;
}

.moduleDownload {
  justify-self: start;
  min-height: 46px;
  margin-top: 2px;
}

.moduleDownload--support {
  color: #15314b;
  background: #fff;
  border: 1px solid rgba(21, 49, 75, .16);
  box-shadow: 0 12px 28px rgba(21, 49, 75, .10);
}

.modulesTerms {
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
}

.modulesTerms p { margin: 0; }
.modulesTerms h2 {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.12;
}

.modulesFaq {
  display: grid;
  gap: 12px;
}

.modulesFaq details {
  padding: 22px;
}

.modulesFaq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.modulesFaq p {
  margin-top: 12px;
}

.modulesFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(21, 49, 75, .10);
}

.modulesFooter span { gap: 10px; }
.modulesFooterMark { height: 38px; }
.modulesFooterWordmark { height: 24px; }
.modulesFooter p { margin: 0; color: #64748b; }

@media (max-width: 980px) {
  .modulesHero,
  .modulesTerms { grid-template-columns: 1fr; }
  .modulesInfoGrid,
  .modulesGrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .modulesHero,
  .modulesInfoGrid,
  .modulesSection,
  .modulesTerms,
  .modulesFooter {
    width: min(1180px, calc(100% - 28px));
  }
  .modulesHero {
    padding: 30px 0 34px;
    gap: 26px;
  }
  .modulesHeroText h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }
  .modulesHeroPanel {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .moduleMeta { grid-template-columns: 1fr; }
  .modulesPrimary,
  .moduleDownload {
    width: 100%;
  }
  .modulesFree { width: 100%; justify-content: center; }
  .modulesFooter {
    display: grid;
    justify-items: start;
  }
}
