/**
 * Product microsite shell — Data-Groomr-style mega-menu nav + product footer.
 * Forks the corporate .sds-nav (single-column) into a multi-column .ms-mega
 * pattern. Tokens only; per-product accent via .chip--{key} and [data-accent].
 */

/* ---------------------------------------------------------------- Nav shell */
.ms-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--surface-card) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-hairline);
}

.ms-nav.is-scrolled {
  box-shadow: var(--shadow-raised);
}

.ms-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Brand (links to microsite home) */
.ms-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-display);
  font-weight: var(--weight-display);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-heading);
  white-space: nowrap;
}

.ms-nav__brandchip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 8px);
}

.ms-nav__brandname {
  font-size: var(--text-lg);
}

/* ---------------------------------------------------------------- Menu bar */
.ms-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-3);
}

.ms-nav__item {
  position: relative;
}

.ms-nav__top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-body);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-hover);
}

.ms-nav__top:hover,
.ms-nav__top:focus-visible {
  color: var(--text-display);
  background: var(--surface-sunken);
}

.ms-nav__top.is-active {
  color: var(--text-display);
}

.ms-nav__chev {
  transition: transform var(--dur-2) var(--ease-out-soft);
}

.ms-nav__item:hover .ms-nav__chev,
.ms-nav__item.is-open .ms-nav__chev {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------- Mega panel */
.ms-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(var(--ms-cols, 1), minmax(0, 1fr));
  gap: var(--space-5);
  width: max-content;
  max-width: min(760px, calc(100vw - 2 * var(--container-pad)));
  padding: var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-overlay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-2) var(--ease-out-soft),
    transform var(--dur-2) var(--ease-out-soft),
    visibility var(--dur-2);
}

.ms-mega[data-cols="1"] {
  --ms-cols: 1;
  min-width: 280px;
}
.ms-mega[data-cols="2"] {
  --ms-cols: 2;
}
.ms-mega[data-cols="3"] {
  --ms-cols: 3;
}

/* Right-align the panels nearest the end of the bar so they don't overflow. */
.ms-nav__item:nth-last-child(-n + 2) .ms-mega {
  left: auto;
  right: 0;
}

.ms-nav__item:hover .ms-mega,
.ms-nav__item:focus-within .ms-mega,
.ms-nav__item.is-open .ms-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Products mega: featured overview hero above the capability list */
.ms-mega--lead {
  min-width: 340px;
}
.ms-mega__overview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  background: var(--cloud-50);
  border: 1px solid var(--line-hairline);
  text-decoration: none;
  transition: var(--transition-hover);
}
.ms-mega__overview:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
}
.ms-mega__overview[aria-current="page"] {
  border-color: var(--dc-300);
}
.ms-mega__overview-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-md);
}
.ms-mega__overview-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ms-mega__overview-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  color: var(--dc-600);
}
.ms-mega__overview-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-heading);
  color: var(--text-display);
  line-height: 1.2;
}
.ms-mega__overview-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}
.ms-mega__overview-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  color: var(--dc-600);
  background: var(--cloud-0);
  border: 1px solid var(--line-hairline);
}
.ms-mega__overview-arrow svg {
  transition: transform var(--dur-2) var(--ease-out-soft);
}
.ms-mega__overview:hover .ms-mega__overview-arrow svg {
  transform: translateX(2px);
}

.ms-mega__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.ms-mega__heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 10px;
  margin-bottom: 4px;
}

.ms-mega__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  color: var(--text-body);
  transition: var(--transition-hover);
}

.ms-mega__item:hover,
.ms-mega__item:focus-visible {
  background: var(--surface-sunken);
  color: var(--text-display);
}

.ms-mega__item[aria-current="page"] {
  background: var(--accent-primary-tint, var(--surface-sunken));
  color: var(--text-display);
}

.ms-mega__itemchip {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm, 8px);
  flex: none;
}

.ms-mega__itemtext {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ms-mega__itemname {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ms-mega__itemdesc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}

/* Stub / coming-soon items */
.ms-mega__item--stub .ms-mega__itemname {
  color: var(--cloud-500);
  font-weight: var(--weight-medium);
}

/* Muted chip on "Soon" items so they read as quiet, not alarming. */
.ms-mega__item--stub .ms-mega__itemchip {
  background: var(--cloud-100);
  color: var(--cloud-400);
}

.ms-mega__soon {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cloud-500);
  background: var(--cloud-100);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  line-height: 1.4;
}

/* ----------------------------------------------- Spotlight mega (featured) */
/* A dark featured tile beside grouped link columns, closed by a footer banner.
   Replaces the wall-of-text columns on Solutions / Resources. */
.ms-mega--spotlight {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "feat cols"
    "foot foot";
  gap: var(--space-4);
  width: max-content;
  /* Capped to the proven-safe width of the prior Resources mega so the panel
     clears the right edge when opened from a mid-bar nav slot at ~1280px. */
  max-width: min(760px, calc(100vw - 2 * var(--container-pad)));
  /* Light-on-dark accent for the featured tile; per-product below. */
  --ms-feat-accent: var(--dc-300);
}

/* Featured tile */
.ms-mega__feat {
  grid-area: feat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-hairline);
  background: var(--ink-900);
  text-decoration: none;
  transition: var(--transition-hover);
}
.ms-mega__feat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating);
}
.ms-mega__feat-strata {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.ms-mega__feat-strata span {
  position: absolute;
  border-radius: var(--radius-pill);
  background: var(--ms-feat-accent);
}
.ms-mega__feat-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  color: var(--ms-feat-accent);
}
.ms-mega__feat-title {
  position: relative;
  z-index: 1;
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: var(--tracking-heading);
  color: var(--cloud-0);
}
.ms-mega__feat-desc {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--text-inverse-muted);
}
.ms-mega__feat-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ms-feat-accent);
}
.ms-mega__feat-cta svg {
  transition: transform var(--dur-2) var(--ease-out-soft);
}
.ms-mega__feat:hover .ms-mega__feat-cta svg {
  transform: translateX(3px);
}

/* Grouped link columns */
.ms-mega__spot-cols {
  grid-area: cols;
  display: flex;
  gap: var(--space-5);
}
.ms-mega__spot-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ms-mega__spot-group + .ms-mega__spot-group {
  margin-top: var(--space-3);
}

/* Footer banner */
.ms-mega__spot-foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  text-decoration: none;
}
.ms-mega__spot-foot:hover {
  background: var(--cloud-100);
}
.ms-mega__spot-foot-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm, 8px);
  background: var(--cloud-0);
  border: 1px solid var(--line-hairline);
  color: var(--dc-600);
}
.ms-mega__spot-foot-txt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-tight);
}
.ms-mega__spot-foot-txt b {
  color: var(--text-display);
  font-weight: var(--weight-semibold);
}
.ms-mega__spot-foot-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--dc-600);
}

/* Per-product accent for the featured tile (Data Cleanser is the default). */
.ms-nav[data-accent="il"] .ms-mega--spotlight {
  --ms-feat-accent: var(--il-300);
}
.ms-nav[data-accent="ht"] .ms-mega--spotlight {
  --ms-feat-accent: var(--ht-300);
}

/* ---------------------------------------------------------------- Actions */
.ms-nav__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.ms-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-card);
  color: var(--text-display);
  cursor: pointer;
}

/* ---------------------------------------------------------------- Back bar */
.ms-nav__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px var(--container-pad);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line-hairline);
  transition: var(--transition-hover);
}

.ms-nav__back:hover {
  color: var(--text-display);
}

/* ---------------------------------------------------------------- Footer */
.ms-footer {
  background: var(--surface-inverse-deep, var(--ink-950));
  color: var(--text-inverse);
  margin-top: var(--space-10);
}

.ms-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-9) var(--container-pad) var(--space-6);
}

.ms-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
}

.ms-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-lg);
}

.ms-footer__blurb {
  margin: var(--space-3) 0 0;
  color: var(--text-faint);
  font-size: var(--text-sm);
  max-width: 34ch;
  line-height: var(--leading-body);
}

.ms-footer__col h2 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-faint);
  margin: 0 0 var(--space-3);
}

.ms-footer__col a {
  display: block;
  color: color-mix(in oklch, var(--text-inverse) 82%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 5px 0;
  transition: var(--transition-hover);
}

.ms-footer__col a:hover {
  color: var(--text-inverse);
}

.ms-footer__bottom {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in oklch, var(--text-inverse) 14%, transparent);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.ms-footer__bottom .spacer {
  flex: 1;
}

.ms-footer__bottom a {
  color: var(--text-faint);
  text-decoration: none;
}

.ms-footer__bottom a:hover {
  color: var(--text-inverse);
}

/* ---------------------------------------------------------------- Section shell */
.ms-section-head {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-9) var(--container-pad) 0;
}

.ms-stub {
  max-width: 640px;
  margin: var(--space-8) auto var(--space-10);
  padding: var(--space-8) var(--container-pad);
  text-align: center;
}

.ms-stub__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.ms-stub__title {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-heading);
  color: var(--text-display);
  margin: 0 0 var(--space-3);
}

.ms-stub__lede {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  margin: 0 auto var(--space-6);
  max-width: 48ch;
}

.ms-stub__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ---------------------------------------------------------------- Walkthrough embed */
.wt-embed {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  background: var(--surface-sunken);
  box-shadow: var(--shadow-floating);
  margin-top: var(--space-6);
}

.wt-frame {
  display: block;
  width: 100%;
  min-height: 860px;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  .wt-frame {
    min-height: 720px;
  }
}

/* ---------------------------------------------------------------- Capability UI embed */
.ms-embed {
  margin: var(--space-7) 0 0;
}
.ms-embed__window {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  background: var(--surface-sunken);
  box-shadow: var(--shadow-floating);
}
.ms-embed__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cloud-0);
  border-bottom: 1px solid var(--line-hairline);
}
.ms-embed__dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.ms-embed__dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--cloud-200);
}
.ms-embed__chrome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.ms-embed__chrome svg {
  color: var(--cloud-400);
}
.ms-embed__frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: var(--cloud-50);
}
.ms-embed__caption {
  margin-top: 14px;
  max-width: 64ch;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-body);
}
/* Bare embed (no browser chrome): drop the window frame so just the UI
   snippet shows on its own canvas — e.g. the Assess Data Quality hero. */
.ms-embed--bare .ms-embed__window {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.ms-embed--bare .ms-embed__frame {
  background: transparent;
}
@media (max-width: 720px) {
  .ms-embed__frame {
    min-height: 520px;
  }
}

/* ---------------------------------------------------------------- Solution note callout */
.ms-solnote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: var(--space-5);
  padding: 16px 20px;
  background: var(--dc-100);
  border: 1px solid var(--dc-300);
  border-radius: var(--radius-lg, 14px);
}
.ms-solnote__chip {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--cloud-0);
  color: var(--dc-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ms-solnote__text {
  margin: 0;
  font-size: var(--text-base);
  color: var(--dc-700);
  line-height: var(--leading-body);
}
.ms-solnote__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-weight: 600;
  color: var(--dc-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.ms-solnote__link svg {
  transition: transform var(--dur-2, 200ms) var(--ease-out-soft, ease);
}
.ms-solnote__link:hover svg {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- Solutions + FAQ */
.ms-solution__intro {
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  color: var(--text-body);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
}

.ms-solution__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Solution hero with a live UI snippet beside the copy (e.g. Assess Data
   Quality): two columns on desktop, stacked on smaller screens. */
.ms-solution--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}
.ms-solution__lead {
  min-width: 0;
}
.ms-solution__hero-embed {
  min-width: 0;
}
.ms-solution__hero-embed .ms-embed {
  margin: 0;
}
.ms-solution__hero-embed .ms-embed__frame {
  min-height: 340px;
}
@media (max-width: 900px) {
  .ms-solution--split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ---------------------------------------------------------------- Product sheet (PDF) */
.dc-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
  margin-top: var(--space-7);
}
.dc-sheet__doc {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  background: var(--surface-sunken);
  box-shadow: var(--shadow-floating);
}
.dc-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--cloud-0);
  border-bottom: 1px solid var(--line-hairline);
}
.dc-sheet__bar-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-body);
}
.dc-sheet__bar-name svg {
  color: var(--dc-600);
}
.dc-sheet__bar-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.dc-sheet__frame {
  display: block;
  width: 100%;
  height: 660px;
  border: 0;
  background: var(--cloud-50);
}
.dc-sheet__aside {
  position: sticky;
  top: calc(var(--space-7) + 56px);
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-lg, 14px);
}
.dc-sheet__aside-title {
  margin: 0;
  font-size: var(--text-xl);
  line-height: var(--leading-tight, 1.2);
  color: var(--text-strong, var(--text-body));
}
.dc-sheet__aside-body {
  margin: var(--space-3) 0 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-body);
}
.dc-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.dc-sheet__note {
  margin: var(--space-4) 0 0;
  font-size: var(--text-xs);
  color: var(--text-faint);
}
@media (max-width: 900px) {
  .dc-sheet {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .dc-sheet__aside {
    position: static;
  }
  .dc-sheet__frame {
    height: 520px;
  }
}

.ms-faq {
  max-width: 760px;
  margin: var(--space-6) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ms-faq__item {
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-md, 12px);
  background: var(--surface-card);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out-soft);
}

.ms-faq__item[open] {
  border-color: var(--dc-300);
}

.ms-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--text-display);
}

.ms-faq__q::-webkit-details-marker {
  display: none;
}

.ms-faq__q:hover {
  color: var(--dc-700);
}

.ms-faq__chev {
  flex: none;
  color: var(--dc-600);
  transition: transform var(--dur-2) var(--ease-out-soft);
}

.ms-faq__item[open] .ms-faq__chev {
  transform: rotate(180deg);
}

.ms-faq__a {
  padding: 0 var(--space-5) var(--space-4);
}

.ms-faq__a p {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--leading-body);
  max-width: 64ch;
}

/* Rich answers (the migrated Support FAQ): ordered/unordered steps + inline
   code, kept legible inside the accordion body. */
.ms-faq--rich {
  max-width: 820px;
}
.ms-faq__a > * + * {
  margin-top: var(--space-3);
}
.ms-faq__a ol,
.ms-faq__a ul {
  margin: 0;
  padding-left: 1.35em;
  color: var(--text-muted);
  line-height: var(--leading-body);
  max-width: 70ch;
}
.ms-faq__a li + li {
  margin-top: 6px;
}
.ms-faq__a code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  word-break: break-word;
  padding: 1px 6px;
  border-radius: var(--radius-sm, 6px);
  background: var(--surface-sunken);
  border: 1px solid var(--line-hairline);
  color: var(--text-body);
}
.ms-faq__a strong {
  color: var(--text-body);
  font-weight: var(--weight-semibold, 600);
}

@media (prefers-reduced-motion: reduce) {
  .ms-faq__chev,
  .ms-faq__item {
    transition: none;
  }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .ms-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .ms-nav__burger {
    display: inline-flex;
  }

  .ms-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-3) var(--container-pad) var(--space-5);
    background: var(--surface-card);
    border-bottom: 1px solid var(--line-hairline);
    box-shadow: var(--shadow-overlay);
    display: none;
  }

  .ms-nav.is-open .ms-nav__menu {
    display: flex;
  }

  .ms-nav__top {
    width: 100%;
    justify-content: space-between;
    padding: 12px 8px;
    font-size: var(--text-base);
  }

  /* Panels collapse into inline accordions on mobile */
  .ms-mega {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 var(--space-3) var(--space-3);
    gap: var(--space-3);
  }

  .ms-nav__item.is-open .ms-mega {
    display: grid;
  }
  .ms-mega--lead {
    min-width: 0;
  }
  .ms-mega__overview {
    margin-bottom: var(--space-2);
  }

  /* Spotlight panels collapse to a single stacked column on mobile. */
  .ms-mega--spotlight {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feat"
      "cols"
      "foot";
    width: auto;
    max-width: none;
  }
  .ms-mega__spot-cols {
    flex-direction: column;
    gap: var(--space-3);
  }

  .ms-nav__actions {
    gap: var(--space-2);
  }

  /* Keep the standout Pricing CTA + burger; drop the secondary "See it in
     action" button so the mobile header doesn't overflow. */
  .ms-nav__actions .sds-btn--primary {
    display: none;
  }

  .ms-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-mega,
  .ms-nav__chev {
    transition: none;
  }
}

/* ============================================================
   Customers (Resources › Customers) — aggregate rating + the
   AppExchange review wall. Per-review stars are intentionally
   omitted; the aggregate carries the rating.
   ============================================================ */
.dc-reviews__summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-7);
  padding: var(--space-7);
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-xl, 20px);
  box-shadow: var(--shadow-raised);
}
.dc-reviews__score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding-right: var(--space-7);
  border-right: 1px solid var(--line-hairline);
}
.dc-reviews__avg {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 0.95;
  letter-spacing: var(--tracking-heading);
  color: var(--dc-700);
}
.dc-stars {
  position: relative;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--line-strong, #cfd4dc);
}
.dc-stars::before {
  content: "\2605\2605\2605\2605\2605";
}
.dc-stars__on {
  position: absolute;
  inset: 0;
  width: var(--pct, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--ht-500);
}
.dc-reviews__count {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.dc-reviews__count strong {
  color: var(--ink-900);
  font-weight: var(--weight-semibold);
}
.dc-reviews__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.dc-reviews__trust-lead {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--text-display);
}
.dc-reviews__trust-lead svg {
  color: var(--dc-600);
  flex: none;
}
.dc-reviews__trust-body {
  margin: 0;
  font-size: var(--text-base, 1rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
}
.dc-reviews__trust .sds-btn {
  margin-top: var(--space-2);
}

/* Review wall — masonry columns so variable-length reviews pack tightly. */
.dc-reviews__wall {
  columns: 3 300px;
  column-gap: var(--space-5);
}
.dc-review {
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--space-5);
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}
.dc-review__mark {
  display: block;
  color: var(--dc-300);
}
.dc-review__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: var(--tracking-heading);
  color: var(--text-display);
  margin: var(--space-2) 0 var(--space-3);
  text-wrap: balance;
}
.dc-review__body {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-800, var(--text-default));
  text-wrap: pretty;
}
.dc-review__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-hairline);
}
.dc-review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  background: var(--dc-100);
  color: var(--dc-700);
}
.dc-review__id {
  display: flex;
  flex-direction: column;
}
.dc-review__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  line-height: 1.3;
}
.dc-review__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .dc-reviews__summary {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .dc-reviews__score {
    padding-right: 0;
    padding-bottom: var(--space-5);
    border-right: none;
    border-bottom: 1px solid var(--line-hairline);
    width: 100%;
  }
  .dc-reviews__wall {
    columns: 1;
  }
}
