@font-face {
  font-family: "Lexend Exa";
  src: url("https://assets.contentstack.io/v3/assets/blt38f1f401b66100ad/bltc246ff4d9e536d02/69c6941ba41ecb1555b8e61d/lexend-exa-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Exa";
  src: url("https://assets.contentstack.io/v3/assets/blt38f1f401b66100ad/blt337698c88d28d63d/69c6944fb4aabb6539a188a5/lexend-exa-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Giga";
  src: url("https://assets.contentstack.io/v3/assets/blt38f1f401b66100ad/blt607dee08cdc44947/69c6aee1711bf768d8bb9784/lexend-giga.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Giga:Medium";
  src: url("https://assets.contentstack.io/v3/assets/blt38f1f401b66100ad/blt607dee08cdc44947/69c6aee1711bf768d8bb9784/lexend-giga.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
/* =====================================================================
   Comparison Table - Vanilla CSS
   Matches the Sophos MDR vs Huntress React component exactly.
   All visual styling is driven by JS-injected classes (.ct-*).
   The raw <table id="comparison-table"> is hidden by JS after parsing.

   SCOPING NOTE: No global resets. box-sizing is scoped to #ct-section
   only. All rules use #ct-section or .ct-* prefixed selectors so they
   cannot affect anything outside this component.
   ===================================================================== */

/* -- Scoped box-sizing - does NOT touch the rest of the page --------- */
#ct-section *,
#ct-section *::before,
#ct-section *::after {
  box-sizing: border-box;
}

/* -- CSS custom properties - prefixed, no collision risk ------------- */
#ct-section {
  --ct-blue:               #2006f7;
  --ct-blue-dark:          #130491;
  --ct-blue-mid:           #1c05da;
  --ct-navy:               #0a143a;
  --ct-cyan:               #00edff;
  --ct-bg-section:         #ebf6ff;
  --ct-bg-stripe:          rgba(235,246,255,0.8);
  --ct-bg-huntress-mobile: #eff8ff;
  --ct-text-body:          #464646;
  --ct-text-light:         #edf2f9;

  /* Layout */
  --ct-col-cat:  244px;
  --ct-card-px:  40px;

  /* Animation */
  --ct-ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ct-dur:   0.6s;
  --ct-delay: 0s;

  -webkit-font-smoothing: antialiased;
}

/* =======================================================================
   VISIBILITY MANAGEMENT
   Three rules work together to ensure no unstyled or partially-built
   content is ever shown to the visitor:

   1. .invisible   - applied directly in the HTML on <table id="comparison-table">
                     Hides the raw Contentstack source table the moment the
                     page loads, before JavaScript has run at all.
                     JS removes this class after init completes.

   2. .ct-building - added by JS to #ct-section at the start of init().
                     Hides the JS-built desktop/mobile wrappers while they
                     are still being constructed.
                     JS removes this class after init completes.
                     NOTE: because this class is added by JS, the CMS editor
                     (which does not run the script) never applies it, so
                     editors always see the full table content.

   3. .ct-ready    - added by JS to #ct-section after the build is done.
                     Hides the source table permanently via display:none so
                     only the styled desktop/mobile views remain in the DOM.
   ======================================================================= */

.invisible {
  visibility: hidden;
}

.ct-ready #comparison-table {
  display: none !important;
}

#ct-section.ct-building .ct-desktop,
#ct-section.ct-building .ct-mobile {
  visibility: hidden;
}

/* -- Section ---------------------------------------------------------- */
#ct-section {
  background: var(--ct-bg-section);
  padding: 64px 16px 64px;
}

@media (min-width: 768px) {
  #ct-section { padding: 96px 16px; }
}

@media (min-width: 1024px) {
  #ct-section { padding: 120px 16px; }
}

/* -- Heading block ---------------------------------------------------- */
#ct-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  #ct-heading { gap: 40px; margin-bottom: 56px; }
}

/* Tags row */
#ct-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  #ct-tags {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

.ct-tag {
  font-family: 'Lexend Exa', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--ct-blue);
  line-height: 1.1;
}

/* Separator image - hidden on mobile, shown inline on desktop */
.ct-sep {
  display: none;
}

@media (min-width: 1024px) {
  .ct-sep {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }
}

/* Heading text */
#ct-heading-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#ct-heading-text h2 {
  font-family: 'Lexend Exa', sans-serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--ct-navy);
  line-height: 1.1;
  max-width: 606px;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  #ct-heading-text h2 { font-size: 36px; }
}

@media (min-width: 768px) {
  #ct-heading-text h2 {
    font-size: 44px;
    letter-spacing: -4.4px;
  }
}

#ct-heading-text p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ct-text-body);
  line-height: 1.6;
  letter-spacing: -0.16px;
  max-width: 330px;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  #ct-heading-text p {
    font-size: 16px;
    max-width: 600px;
  }
}

/* -- Desktop table ---------------------------------------------------- */
.ct-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .ct-desktop {
    display: block;
    max-width: 1220px;
    margin: 0 auto;
  }
}

/* Outer card */
.ct-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 32px 0 rgba(10,20,58,0.1);
  padding: 0 var(--ct-card-px) var(--ct-card-px);
  overflow: visible;
}

/* Blue Sophos column overlay - extends 20px above and below the card */
.ct-blue-col {
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: calc(var(--ct-card-px) + var(--ct-col-cat));
  width: calc((100% - var(--ct-card-px) * 2 - var(--ct-col-cat)) / 2);
  background: linear-gradient(to bottom, var(--ct-blue), var(--ct-blue-dark));
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

/* Content sits above the blue overlay */
.ct-content {
  position: relative;
  z-index: 2;
}

/* Grid rows */
.ct-row {
  display: grid;
  grid-template-columns: var(--ct-col-cat) 1fr 1fr;
}

/* -- Header row -- */
.ct-header-row {
  align-items: center;
  padding: 16px 0;
}

.ct-header-cat {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.ct-capability-label {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.96px;
  text-transform: uppercase;
  color: var(--ct-navy);
  opacity: 0; /* invisible, just for layout alignment */
  user-select: none;
}

.ct-header-sophos,
.ct-header-huntress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}

/* Logo images - explicit block so no inline baseline gap */
.ct-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -- Data rows - alternating striped backgrounds via nth-child below -- */
.ct-data-row:nth-child(even) .ct-cat-cell   { background: var(--ct-bg-stripe); }
.ct-data-row:nth-child(even) .ct-highlighted-cell { background: rgba(10,20,58,0.2); }
.ct-data-row:nth-child(even) .ct-default-cell { background: var(--ct-bg-stripe); }

.ct-data-row:nth-child(odd) .ct-cat-cell    { background: #fff; }
.ct-data-row:nth-child(odd) .ct-highlighted-cell { background: transparent; }
.ct-data-row:nth-child(odd) .ct-default-cell { background: #fff; }

/* Category cell */
.ct-cat-cell {
  display: flex;
  align-items: center;
  padding: 28px 24px 28px 40px;
  font-family: 'Lexend Exa', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.84px;
  text-transform: uppercase;
  color: var(--ct-navy);
  white-space: pre-line;
  line-height: 1.25;
}

/* Sophos content cell */
.ct-highlighted-cell {
  padding: 28px 40px 28px 32px;
}

/* Huntress content cell */
.ct-default-cell {
  padding: 28px 40px;
}

/* Cell inner layout */
.ct-cell-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ct-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ct-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.ct-cell-title {
  font-family: 'Lexend Exa', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -1.36px;
  line-height: 1.25;
  max-width: 269px;
}

.ct-highlighted-cell .ct-cell-title {
  color: #fff;
}

.ct-default-cell .ct-cell-title {
  color: var(--ct-navy);
}

.ct-cell-desc {
  padding-left: 28px;
}

.ct-highlighted-cell .ct-cell-desc {
  padding-right: 16px;
}

.ct-cell-desc p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.ct-highlighted-cell .ct-cell-desc p {
  color: var(--ct-text-light);
  opacity: 0.9;
  mix-blend-mode: luminosity;
}

.ct-default-cell .ct-cell-desc p {
  color: var(--ct-text-body);
}

/* -- Mobile accordion ------------------------------------------------- */
.ct-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 512px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .ct-mobile { display: none; }
}

/* Mobile card */
.ct-mobile-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.ct-mobile-card.is-collapsed {
  box-shadow: 0 10px 15px 0 rgba(0,0,0,0.1), 0 4px 6px 0 rgba(0,0,0,0.1);
}

/* Collapsed state - single row trigger */
.ct-mobile-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 16px;
  margin: 0;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.3s ease;
}
.ct-mobile-card.is-collapsed .ct-mobile-trigger {
  padding: 24px 16px;
}
.ct-mobile-trigger-label {
  font-family: 'Lexend Giga', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.84px;
  text-transform: uppercase;
  color: var(--ct-navy);
  line-height: 1.25;
}

/* Chevron icon */
.ct-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  color: var(--ct-blue);
  transition: transform 0.3s ease;
}

.ct-mobile-card.is-expanded .ct-chevron {
  transform: rotate(180deg);
}

/* Expanded state - full card body */
.ct-mobile-body {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 24px 12px 12px;
}

.ct-mobile-card.is-expanded .ct-mobile-body {
  display: flex;
}

/* Expanded header row */
.ct-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 8px;
}

/* Columns side-by-side */
.ct-mobile-cols {
  display: flex;
  gap: 0;
}

/* Sophos mobile column */
.ct-mobile-highlighted {
  flex: 1;
  min-width: 0;
  background: var(--ct-blue-mid);
  border-radius: 4px;
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Huntress mobile column */
.ct-mobile-default {
  flex: 1;
  min-width: 0;
  background: var(--ct-bg-huntress-mobile);
  border-radius: 4px;
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logo containers in mobile */
.ct-mobile-logo {
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Mobile title + desc block */
.ct-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-mobile-icon-row {
  display: flex;
  align-items: flex-start;
}

.ct-mobile-icon {
  flex-shrink: 0;
  width: 16.667px;
  height: 16.667px;
}

.ct-mobile-title {
  font-family: 'Lexend Exa', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.ct-mobile-highlighted .ct-mobile-title {
  color: #fff;
}

.ct-mobile-default .ct-mobile-title {
  color: var(--ct-navy);
}

.ct-mobile-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.ct-mobile-highlighted .ct-mobile-desc {
  color: var(--ct-text-light);
  opacity: 0.9;
}

.ct-mobile-default .ct-mobile-desc {
  color: var(--ct-text-body);
}

/* -- Neutralise common host-page overrides inside the component -------
   Prevents the host page's heading/paragraph/list/SVG styles leaking
   into the component without touching anything outside #ct-section.  */
#ct-section svg {
  display: inline-block;
  vertical-align: middle;
  max-width: none;
}

.ct-mobile-trigger-label,
.ct-capability-label,
.ct-tag {
  display: inline;
  background: none;
  border: none;
  list-style: none;
  text-decoration: none;
}

.ct-cell-title,
.ct-cat-cell {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* -- Scroll-triggered animations -------------------------------------
   Only the table rows and mobile cards are animated.
   The heading (#ct-heading) is always fully visible - no animation. */

/* Desktop rows slide in from left */
.ct-anim-row {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity var(--ct-dur) var(--ct-ease),
    transform var(--ct-dur) var(--ct-ease);
  transition-delay: var(--ct-delay, 0s);
}

.ct-anim-row.ct-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile cards fade up */
.ct-anim-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--ct-dur) var(--ct-ease),
    transform var(--ct-dur) var(--ct-ease);
  transition-delay: var(--ct-delay, 0s);
}

.ct-anim-card.ct-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: users who prefer reduced motion see content immediately */
@media (prefers-reduced-motion: reduce) {
  .ct-anim-row,
  .ct-anim-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
