/* QCompasS Web — brand overrides on top of Bootstrap 5. */

:root {
  --qc-blue: #023ae5;
  --qc-blue-dark: #0330b8;
  --qc-teal: #44dede;
  --qc-navy: #03072c;
  --qc-ink: #111827;
  --qc-muted: #6b7280;
  --qc-border: #e6eaf1;
  /* Two faces: Lexend stays the display/heading font, Instrument Sans carries
     body copy. Everything inherits the body font, so headings opt back into
     Lexend explicitly below — without that rule they would silently follow the
     body and the brand type would vanish. */
  --qcw-font-head: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --qcw-font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family: var(--qcw-font-body);
  --bs-body-color: var(--qc-ink);
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--qc-ink);
  overflow-x: clip; /* backstop for right-bleed elements (logo carousel) */
}

/* Headings keep Lexend. .display-* and .h1-.h6 are included because Bootstrap
   utility classes are used in places where the tag itself is not a heading. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--qcw-font-head);
}

/* Non-paragraph UI text also uses the heading (Lexend) family — nav, stats,
   buttons, comparison table, FAQ questions, contact + footer links, form
   labels and credit lines. Body paragraphs stay on Instrument Sans. */
.qcw-menu a, .qcw-menu .nav-link, .qcw-login,
.qcw-policies-tab,
.qcw-stat-num, .qcw-stat-src,
.btn, .qcw-btn-signup, .qcw-btn-demo,
.qcw-form button[type="submit"],
.frm_forms .frm_button_submit, .frm_forms .frm_submit button,
.qcw-cmp-feat, .qcw-cmp-std-h,
.qcw-faq-q,
.qcw-contact-list a, .qcw-footer-links a,
.qcw-form label, .frm_forms .frm_form_field > label,
.qcw-founder-attr,
.qcw-testi-author {
  font-family: var(--qcw-font-head);
}

/* ── Header ──────────────────────────────────────────────────────────── */
.qcw-header {
  background: #fff;
  border-bottom: 1px solid var(--qc-border);
}
.qcw-navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.qcw-brand img { height: 44px; width: auto; display: block; }

/* Centre menu — target anchors directly so it works for both a WP-assigned
   menu (no .nav-link class) and the built-in fallback. */
.qcw-menu {
  gap: 0.5rem;
  align-items: center;
}
.qcw-menu li { list-style: none; }
.qcw-menu a,
.qcw-menu .nav-link {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.qcw-menu a:hover,
.qcw-menu .nav-link:hover {
  color: var(--qc-blue);
}

/* Hamburger — no border/box, custom 2-line icon */
.qcw-navbar .navbar-toggler {
  border: 0;
  padding: 0.25rem;
  box-shadow: none;
}
.qcw-navbar .navbar-toggler:focus {
  box-shadow: none;
}
/* Two-bar icon that rotates into an X when the menu opens */
.qcw-navbar .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 26px;
  height: 20px;
}
.qcw-navbar .navbar-toggler-icon::before,
.qcw-navbar .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--qc-navy);
  transition: top 0.25s ease, transform 0.25s ease;
}
.qcw-navbar .navbar-toggler-icon::before { top: 4px; }
.qcw-navbar .navbar-toggler-icon::after  { top: 13px; }
.qcw-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 8px;
  transform: rotate(45deg);
}
.qcw-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 8px;
  transform: rotate(-45deg);
}

/* Right-side actions */
.qcw-actions { gap: 1.25rem; }
.qcw-login {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
}
.qcw-login:hover { color: var(--qc-blue); }

/* Sign Up — solid blue, fully rounded pill */
.qcw-btn-signup {
  background: var(--qc-blue);
  color: #fff;
  font-weight: 400;
  font-size: 0.95rem;
  border-radius: 50rem;
  padding: 0.72rem 1.6rem;
  border: 1px solid var(--qc-blue);
  line-height: 1.2;
}
.qcw-btn-signup:hover {
  background: var(--qc-blue-dark);
  border-color: var(--qc-blue-dark);
  color: #fff;
}

/* Desktop: offcanvas-lg behaves as inline navbar content */
@media (min-width: 992px) {
  .qcw-offcanvas { flex-grow: 1; }
  .qcw-offcanvas .offcanvas-body {
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 0;
  }
}

/* Mobile: right slide-in off-canvas menu — dark panel (like pricing), white content */
@media (max-width: 991.98px) {
  .qcw-brand img { height: 34px; }              /* logo smaller on mobile */
  .qcw-navbar { padding-block: 1.15rem; }        /* a touch more padding */
  .qcw-mobile-cta .qcw-btn-signup {              /* Sign Up slightly smaller */
    padding: 0.5rem 1.05rem;
    font-size: 0.88rem;
  }

  .qcw-offcanvas {
    width: min(330px, 86vw);
    background-color: #191a1f;
    background-image: url("../img/QcompasS-background-3.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    color: #fff;
  }
  .qcw-offcanvas .offcanvas-header {
    justify-content: flex-end;
    padding: 1.25rem 1.25rem 0;
  }
  .qcw-offcanvas-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .qcw-offcanvas-close:hover { background: #fff; color: var(--qc-navy); }

  .qcw-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.75rem 2rem;
  }
  .qcw-offcanvas .qcw-menu {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 !important;                         /* override mx-auto */
    gap: 1rem;                                    /* more spacing */
    width: 100%;
  }
  .qcw-offcanvas .qcw-menu a {
    color: #fff;
    font-size: 1.25rem;                           /* a bit bigger */
    padding: 0;
  }
  .qcw-offcanvas .qcw-menu a:hover { color: var(--qc-teal); }
  .qcw-offcanvas .qcw-actions {
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
  }
  .qcw-offcanvas .qcw-login { color: #fff; font-size: 1.05rem; }
  .qcw-offcanvas .qcw-login:hover { color: var(--qc-teal); }

  .qcw-offcanvas-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: auto;                             /* sit at the bottom */
    padding-top: 2rem;
    width: 100%;
  }
  .qcw-offcanvas-contact a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--qcw-font-head);
  }
  .qcw-offcanvas-contact img { width: 30px; height: 30px; flex-shrink: 0; }
  .qcw-offcanvas-contact a:hover { color: #fff; }
}

/* ── Banner ──────────────────────────────────────────────────────────── */
.qcw-banner {
  background-color: #fff;
  background-image: url("../img/QcompasS-background-2.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow-x: clip; /* clip the right-bleed carousel at the viewport edge (section is 100vw wide) */
}

/* Home: header sits over the banner (transparent, no bottom rule) */
.home .qcw-header {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: 0;
  z-index: 1030;
}
.home .qcw-banner {
  padding-top: clamp(6rem, 9vw, 8.5rem);
}
.qcw-banner-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.qcw-banner-row2 { margin-top: clamp(1rem, 1.8vw, 1.75rem); }
.qcw-banner-h3 {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.3;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  margin-bottom: 0;
}

/* Logo carousel — bleeds off the right edge, manual drag-scroll */
.qcw-logo-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  margin-right: calc(50% - 50vw); /* extend right edge out to (past) the viewport */
  scrollbar-width: none;
  cursor: grab;
}
.qcw-logo-carousel::-webkit-scrollbar { display: none; }
.qcw-logo-carousel.is-dragging { cursor: grabbing; }
.qcw-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
}
.qcw-logo-item {
  height: 26px;
  width: auto;
  flex: 0 0 auto;
  opacity: 0.9;
  margin-right: clamp(2.5rem, 5vw, 4.5rem); /* trailing space on every item → seamless -50% loop */
}
@keyframes qcw-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .qcw-logo-track { animation: none; }
}
.qcw-banner-lead {
  color: var(--qc-ink);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  max-width: 42rem;
  margin-bottom: 1.75rem;
}
.qcw-mockwrap { position: relative; }
.qcw-mockwrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -16%;
  top: 50%;
  transform: translateY(-50%);
  width: 72%;
  aspect-ratio: 791 / 645;
  background: url("../img/QcompasS-illustration-construction.png") center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 991.98px) {
  /* !important: the base .qcw-banner-mockup rule below sets width:100% and,
     being later in the source, would otherwise win on mobile. */
  .qcw-banner-mockup { width: 90% !important; margin-inline: auto; } /* smaller & centred on mobile */
  .qcw-mockwrap::before { /* keep the illustration behind the image on mobile */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96%;
  }
}
.qcw-banner-mockup {
  position: relative;
  z-index: 1; /* laptop sits over the construction illustration */
  width: 100%;
  height: auto;
  /* Lifts gently into place on load. It is above the fold, so a plain CSS
     animation is enough — no scroll observer needed.
     `both` matters: it holds the start frame through the delay, otherwise the
     laptop paints in its final spot and then jumps down to animate. */
  animation: qcw-rise-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}
@keyframes qcw-rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Must come AFTER the rule above — same specificity, so source order decides.
   Putting it in the earlier reduced-motion block would silently lose. */
@media (prefers-reduced-motion: reduce) {
  .qcw-banner-mockup { animation: none; }
}

/* ── Scroll reveal ───────────────────────────────────────────────────── */
/* Same lift as the banner laptop, applied to anything with .qcw-reveal when
   it scrolls into view (see reveal() in qcw.js).
   Scoped to .qcw-js — a class an inline <head> script adds — so that with
   JavaScript off nothing is ever hidden, and so the hidden state is set
   before first paint rather than flashing in and then disappearing. */
.qcw-js .qcw-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.qcw-js .qcw-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .qcw-js .qcw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Book a Demo — same pill as Sign Up, solid teal */
.qcw-btn-demo {
  background: var(--qc-teal);
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 0.95rem;
  border-radius: 50rem;
  padding: 0.72rem 1.9rem;
  border: 1px solid var(--qc-teal);
  line-height: 1.2;
}
.qcw-btn-demo:hover {
  background: var(--qc-blue);
  border-color: var(--qc-blue);
  color: #fff;
}

/* ── Stats ───────────────────────────────────────────────────────────── */
.qcw-stats {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.qcw-stats .row {
  --bs-gutter-x: clamp(2rem, 4.5vw, 4rem); /* a touch more space between stats */
}
.qcw-stats-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.65rem, 2.9vw, 2.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.qcw-stat-num {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1;
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}
.qcw-stat-desc {
  color: var(--qc-ink);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.qcw-stat-src {
  color: var(--qc-muted);
  font-size: 0.9rem;
}

/* ── Feature (text + media) ──────────────────────────────────────────── */
.qcw-feature {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-feature-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
}
.qcw-feature-text {
  color: var(--qc-ink);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0;
}
.qcw-feature-media {
  background: #f1f2f4;
  border-radius: 20px;
  width: 100%;
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qcw-feature-img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* blends the chart's light bg into the grey box */
}

/* ── Offers heading ──────────────────────────────────────────────────── */
.qcw-offers {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.qcw-offers-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 100%;
  margin: 0;
}
@media (min-width: 992px) {
  .qcw-offers-title { max-width: 50%; }
}
.qcw-boxes {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.qcw-box {
  height: 100%;
  min-height: clamp(20rem, 26vw, 27rem);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(1.75rem, 2vw, 2.35rem);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.qcw-box--dark { background-color: #1c1c22; color: #fff; }
.qcw-box--blue { background-color: var(--qc-blue); color: #fff; }
.qcw-box--teal { background-color: var(--qc-teal); color: var(--qc-navy); }

.qcw-box-title {
  color: inherit;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  margin: 0;
}
.qcw-box-body {
  color: inherit;
  line-height: 1.55;
  font-size: 1rem;
  margin: auto 0 0;      /* push to the bottom; heading stays at top */
}
.qcw-box-cta {
  align-self: flex-start;
  margin-top: auto;      /* push button to the bottom */
}
/* Box 1 — slightly larger heading than the others */
.qcw-box--lead .qcw-box-title {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

/* Box 8 — mobile app mockup */
.qcw-box--mockup {
  align-items: center;
  justify-content: center;
  padding: 0;
}
.qcw-box-mockup {
  height: 92%;
  width: auto;
  max-width: 96%;
  display: block;
  transform: scale(1.2);   /* zoom-crop: bleeds past the box and clips */
  transform-origin: center;
}

/* ── Video ───────────────────────────────────────────────────────────── */
.qcw-video {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background-color: #242424;
  background-size: cover;
  background-position: center;
}
.qcw-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 44, 0.35); /* dark tint over the poster */
  transition: opacity 0.3s ease;
}
.qcw-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(64px, 6vw, 88px);
  height: clamp(64px, 6vw, 88px);
  border-radius: 50%;
  border: 0;
  background: var(--qc-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.qcw-video-play-icon svg {
  width: 34px;
  height: 34px;
  fill: #242424;
  margin-left: 8%;
  display: block;
}
.qcw-video-play:hover { transform: scale(1.06); filter: brightness(1.05); }
.qcw-video-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Playing state — Vimeo iframe fills the frame, poster/overlay/button gone */
.qcw-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.qcw-video-frame.is-playing .qcw-video-overlay,
.qcw-video-frame.is-playing .qcw-video-play { display: none; }

/* ── Founder message ─────────────────────────────────────────────────── */
.qcw-founder {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.qcw-founder-quotemark {
  width: clamp(38px, 3.4vw, 52px);
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}
.qcw-founder-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--qc-border);
}
.qcw-founder-photo {
  width: clamp(150px, 15vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.qcw-founder-quote {
  color: var(--qc-ink);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.qcw-founder-attr {
  color: var(--qc-navy);
  font-weight: 400;
  margin: 0;
}

/* ── Forecast card ───────────────────────────────────────────────────── */
.qcw-forecast {
  padding-block: clamp(1rem, 2.5vw, 2rem);
}
.qcw-forecast-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background-color: #efefef;
  background-image: url("../img/QcompasS-background-2.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply; /* tint the light base to #efefef, keep the blue/teal */
}
.qcw-forecast--procure .qcw-forecast-card {
  background-color: #f2f3f6;
  background-image: url("../img/backdrop.png");
  background-position: center;
  background-size: cover;
  background-blend-mode: normal;
}
/* Dark platform card — image on the left, white heading */
.qcw-forecast--platform .qcw-forecast-card {
  background-color: #242429;
  background-image: none;
  background-blend-mode: normal;
}
.qcw-forecast--platform .qcw-forecast-title {
  color: #fff;
}
.qcw-forecast-text {
  padding: clamp(2rem, 5vw, 4.5rem);
}
.qcw-forecast-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 1.75rem;
  max-width: 550px;
}
.qcw-forecast-media {
  align-self: stretch;
}
.qcw-forecast-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 992px) {
  .qcw-forecast-media {
    padding-block: 0; /* image sits flush top and bottom */
  }
  .qcw-forecast-img {
    width: 100%;      /* fill the 5-col width, flush to the right edge */
    max-width: none;
    height: auto;
  }
}

/* ── Testimonials ────────────────────────────────────────────────────── */
.qcw-testi {
  padding-block: clamp(2rem, 5vw, 4rem);
  overflow-x: clip; /* contain the right-bleeding carousel */
}
.qcw-testi-head {
  display: flex;
  flex-direction: column;
  padding-right: clamp(1rem, 3vw, 3rem);
  padding-top: 24px; /* align with card tops (offset by the track's top padding) */
}
.qcw-testi-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0;
}
.qcw-testi-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: auto; /* sit at the bottom, aligned with the card bottoms */
}
@media (max-width: 991.98px) {
  .qcw-testi-nav { margin-top: 1.5rem; } /* space above the arrows when stacked */
}
.qcw-testi-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--qc-navy);
  background: transparent;
  color: var(--qc-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qcw-testi-btn svg { width: 20px; height: 20px; }
.qcw-testi-btn:hover { background: var(--qc-blue); border-color: var(--qc-blue); color: #fff; }

/* Track scrolls horizontally and bleeds off the right edge */
.qcw-testi-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-right: calc(50% - 50vw);
  padding: 24px 2rem 12px 0; /* top room for the quote overhang */
  scrollbar-width: none;
}
.qcw-testi-track::-webkit-scrollbar { display: none; }

.qcw-testi-card {
  position: relative;
  flex: 0 0 clamp(280px, 24vw, 340px);
  scroll-snap-align: start;
  min-height: clamp(300px, 23vw, 330px);
  border-radius: 20px;
  padding: 2.35rem 2.15rem 2.15rem;
  display: flex;
  flex-direction: column;
}
.qcw-testi-card--dark { background: #1c1c22; color: #fff; }
.qcw-testi-card--blue { background: var(--qc-blue); color: #fff; }
.qcw-testi-card--teal { background: var(--qc-teal); color: var(--qc-navy); }
.qcw-testi-quote {
  position: absolute;
  top: 0;
  left: 2.15rem;
  transform: translateY(-50%); /* half on the card, half above the top edge */
  width: clamp(34px, 3vw, 44px);
  height: auto;
}
.qcw-testi-text {
  color: inherit;
  font-weight: 400;
  line-height: 1.55;
  font-size: 0.98rem;
  margin: 0;
}
.qcw-testi-author {
  color: inherit;
  font-weight: 600;
  margin: 0;
  margin-top: auto;    /* sit at the bottom */
  padding-top: 2rem;   /* keep clear space from the paragraph */
}

/* ── Four Pillars ────────────────────────────────────────────────────── */
.qcw-pillars {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-pillars-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.qcw-pillar {
  padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--qc-border);
}
.qcw-pillar-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}
.qcw-pillar-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.qcw-pillar-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  margin: 0;
}
.qcw-pillar-sub {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 1.02rem;
  margin: 0.35rem 0 0;
}
.qcw-pillar-text {
  color: var(--qc-ink);
  line-height: 1.6;
  margin: 0;
}

/* ── Comparison table ────────────────────────────────────────────────── */
.qcw-compare-sec {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-compare-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 clamp(0.25rem, 1vw, 0.75rem);
}
.qcw-compare-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 48px 0 120px; /* room for the teal top & button overhangs */
  scrollbar-width: none;
}
.qcw-compare-scroll::-webkit-scrollbar { display: none; }

.qcw-compare {
  position: relative;
  min-width: 740px;
  --cmp-qc: clamp(240px, 22vw, 280px);
  --cmp-std: clamp(200px, 19vw, 240px);
  --cmp-row: 60px;
  --cmp-head: 76px;
}
/* Left grey panel: features + Standard Workflows */
.qcw-cmp-main {
  position: relative;
  background: #f4f5f7;
  border-radius: 20px;
  padding-right: var(--cmp-qc);
}
/* Continuous darker band behind the whole Standard Workflows column */
.qcw-cmp-std-band {
  position: absolute;
  top: 0;
  bottom: 0;
  right: var(--cmp-qc);
  width: var(--cmp-std);
  background: #e8eaee;
  z-index: 0;
}
.qcw-cmp-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cmp-std);
  align-items: center;
  height: var(--cmp-row);
  border-top: 1px solid rgba(2, 58, 229, 0.13); /* low-opacity brand blue divider */
}
.qcw-cmp-head {
  height: var(--cmp-head);
  border-top: 0;
}
.qcw-cmp-feat {
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--qc-ink);
}
.qcw-cmp-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qcw-cmp-mark img { width: 32px; height: 32px; }
.qcw-cmp-std-h {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Right teal panel: logo, ticks, button — elevated, overhangs top & bottom */
.qcw-cmp-side {
  position: absolute;
  right: 0;
  top: -30px;
  width: var(--cmp-qc);
  background: var(--qc-teal);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 30px; /* equal overhang top & bottom beyond the grey col */
}
.qcw-cmp-side-logo {
  height: var(--cmp-head);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qcw-cmp-side-logo img { height: 40px; width: auto; }
.qcw-cmp-side-tick {
  height: var(--cmp-row);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(2, 58, 229, 0.22); /* brand-blue divider carried across the teal */
}
.qcw-cmp-side-tick img { width: 32px; height: 32px; }
.qcw-cmp-side-btn {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%); /* half on, half off the bottom edge */
  margin: 0;
}

/* Mobile: shrink the comparison so it fits without scrolling */
@media (max-width: 767.98px) {
  .qcw-compare {
    min-width: 0;
    --cmp-qc: clamp(74px, 22vw, 108px);
    --cmp-std: clamp(66px, 19vw, 96px);
    --cmp-row: 54px;
    --cmp-head: 66px;
  }
  .qcw-cmp-feat {
    font-size: 0.8rem;
    line-height: 1.2;
    padding-left: 0.85rem;
    padding-right: 0.4rem;
  }
  .qcw-cmp-std-h {
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: normal;      /* Standard Workflows over two lines */
    text-align: center;
    padding-inline: 0.35rem;
  }
  .qcw-cmp-mark img,
  .qcw-cmp-side-tick img { width: 22px; height: 22px; }
  .qcw-cmp-side-logo img { height: 30px; }
  .qcw-cmp-side-btn { display: none; } /* drop the Get Started on mobile */
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.qcw-pricing {
  background-color: #191a1f;
  background-image: url("../img/QcompasS-background-3.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply; /* darken bg3 to the design's near-black */
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem); /* spacing above and below inside the section */
}
.qcw-pricing-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.qcw-pricing-title { color: #fff; font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; margin: 0 0 1rem; }
.qcw-pricing-sub { color: rgba(255,255,255,0.75); line-height: 1.6; margin: 0; }

.qcw-price-core {
  position: relative;
  border: 1px solid rgba(90,124,255,0.5);
  border-radius: 24px;
  background: rgba(255,255,255,0.02);
}
.qcw-price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--qc-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.4rem;
  border-radius: 50rem;
  white-space: nowrap;
  z-index: 2;
}
.qcw-price-left {
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(90,124,255,0.5);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 24px 24px 0 0; /* mobile: round top corners */
}
@media (min-width: 992px) {
  .qcw-price-left { border-radius: 24px 0 0 24px; } /* desktop: round left corners */
}
.qcw-price-col { padding: clamp(1.75rem, 3vw, 2.75rem); }
.qcw-price-name { color: #fff; font-weight: 400; font-size: 1.4rem; margin: 0 0 0.75rem; }
.qcw-price-desc { color: rgba(255,255,255,0.75); line-height: 1.55; margin: 0 0 1.5rem; }
.qcw-price-amount { color: #fff; margin: 0; }
.qcw-price-amount span { font-size: 2.6rem; font-weight: 400; }
.qcw-price-year { color: rgba(255,255,255,0.85); margin: 0.25rem 0 1.75rem; }
.qcw-price-year strong { font-weight: 600; }
.qcw-price-subhead { color: #fff; font-weight: 600; font-size: 1.05rem; margin: 0 0 1rem; }
.qcw-price-colhead { color: #5f86ff; font-weight: 400; letter-spacing: 0.04em; font-size: 1rem; margin: 0 0 1.4rem; }

.qcw-price-list { list-style: none; margin: 0; padding: 0; }
.qcw-price-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  background: url("../img/QcompasS-icon-tick.svg") no-repeat left 0.15em;
  background-size: 1.05rem;
}
.qcw-price-cta { margin-top: 1.75rem; }

.qcw-price-extras { margin-top: clamp(1.5rem, 3vw, 2rem); }
.qcw-price-mini {
  height: 100%;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.qcw-price-mini-head { color: #fff; font-weight: 400; font-size: 1.4rem; margin: 0 0 1.5rem; }
.qcw-price-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}
.qcw-price-mini-row:last-child { border-bottom: 0; }
.qcw-price-mini-val { text-align: right; }
.qcw-price-mini-val strong { font-weight: 600; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.qcw-faq {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-faq-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0;
}
.qcw-faq-item {
  background: #f2f3f5;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.qcw-faq-item:last-child { margin-bottom: 0; }
.qcw-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.qcw-faq-q > span:first-child {
  color: var(--qc-navy);
  font-size: 1.15rem;
  line-height: 1.35;
}
.qcw-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--qc-blue);
  transition: background 0.2s ease;
}
.qcw-faq-icon::before,
.qcw-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
}
.qcw-faq-icon::before { width: 13px; height: 2px; }   /* horizontal bar */
.qcw-faq-icon::after  { width: 2px; height: 13px; }   /* vertical bar (hidden when open) */
.qcw-faq-item.is-open .qcw-faq-icon { background: var(--qc-teal); }
.qcw-faq-item.is-open .qcw-faq-icon::before,
.qcw-faq-item.is-open .qcw-faq-icon::after { background: var(--qc-navy); }
.qcw-faq-item.is-open .qcw-faq-icon::after { display: none; } /* minus */

.qcw-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.qcw-faq-item.is-open .qcw-faq-a { max-height: 400px; }
.qcw-faq-a p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--qc-ink);
  line-height: 1.6;
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.qcw-contact {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.qcw-contact-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 2rem;
}
.qcw-contact-list { list-style: none; margin: 0; padding: 0; }
.qcw-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.qcw-contact-list img { width: 34px; height: 34px; flex-shrink: 0; }
.qcw-contact-list a {
  color: var(--qc-navy);
  text-decoration: none;
  font-size: 1.1rem;
}
.qcw-contact-list a:hover { color: var(--qc-blue); }

.qcw-contact-formhead {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

/* Form — styles both the fallback markup and Formidable output */
.qcw-form .frm_form_field,
.frm_forms .frm_form_field { margin-bottom: 1.35rem; }
.qcw-form label,
.frm_forms .frm_form_field > label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--qc-navy);
  font-size: 1.05rem;
  font-weight: 400;
}
.qcw-form input,
.qcw-form select,
.qcw-form textarea,
.frm_forms input[type="text"],
.frm_forms input[type="tel"],
.frm_forms input[type="email"],
.frm_forms input[type="number"],
.frm_forms select,
.frm_forms textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #bfc6d2;
  border-radius: 2rem;
  padding: 0.95rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--qc-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qcw-form textarea,
.frm_forms textarea {
  border-radius: 1.5rem;
  min-height: 200px;
  resize: vertical;
}
.qcw-form select,
.frm_forms select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 18px;
  padding-right: 3rem;
}
.qcw-form :is(input, select, textarea):focus,
.frm_forms :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--qc-blue);
  box-shadow: 0 0 0 3px rgba(2, 58, 229, 0.12);
}
/* Phone + Email on one row — drive the Formidable grid to two columns */
.qcw-contact form .frm_fields_container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 1rem;
}
.qcw-contact form .frm_fields_container > * { grid-column: 1 / -1; } /* full width by default */
.qcw-contact form #frm_field_8_container { grid-column: 1 / 2 !important; } /* Phone: left col */
.qcw-contact form #frm_field_9_container { grid-column: 2 / 3 !important; } /* Email: right col */
.qcw-contact form #frm_field_8_container,
.qcw-contact form #frm_field_9_container { width: auto !important; }
.qcw-contact form #frm_field_8_container input,
.qcw-contact form #frm_field_9_container input { width: 100% !important; }
/* Mobile: Phone + Email stack full width */
@media (max-width: 575.98px) {
  .qcw-contact form .frm_fields_container { grid-template-columns: 1fr !important; }
  .qcw-contact form #frm_field_8_container,
  .qcw-contact form #frm_field_9_container { grid-column: 1 / -1 !important; }
}

/* Submit — identical to the Sign Up button */
.qcw-form button[type="submit"],
.frm_forms .frm_button_submit,
.frm_forms .frm_submit button,
.frm_forms .frm_submit input[type="submit"] {
  margin-top: 0.5rem;
  background: var(--qc-blue) !important;
  color: #fff !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  border-radius: 50rem !important;
  padding: 0.72rem 1.6rem !important;
  border: 1px solid var(--qc-blue) !important;
  line-height: 1.2 !important;
  width: auto !important;
  cursor: pointer;
}
.qcw-form button[type="submit"]:hover,
.frm_forms .frm_button_submit:hover,
.frm_forms .frm_submit button:hover,
.frm_forms .frm_submit input[type="submit"]:hover {
  background: var(--qc-blue-dark) !important;
  border-color: var(--qc-blue-dark) !important;
}

/* ── Policies page ───────────────────────────────────────────────────── */
.qcw-policies-page {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.qcw-policies-title {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0 0 2rem;
}
.qcw-policies-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.qcw-policies-tab {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--qc-navy);
}
.qcw-policies-tab:hover,
.qcw-policies-tab.is-active { color: var(--qc-blue); }

.qcw-policies-panel {
  background: #f6f6f7;
  border-radius: 28px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
}
.qcw-policies-panel.is-hidden { display: none; }
.qcw-policies-panel h2 {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 1rem;
}
.qcw-policies-panel h3 {
  color: var(--qc-navy);
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 2rem 0 0.75rem;
}
.qcw-policies-panel h4 {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.qcw-policies-panel p {
  color: var(--qc-ink);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.qcw-policies-panel p:last-child { margin-bottom: 0; }
.qcw-policies-panel ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--qc-ink);
  line-height: 1.7;
}
.qcw-policies-panel li { margin-bottom: 0.35rem; }
.qcw-policies-panel a { color: var(--qc-blue); }
.qcw-policies-panel a:hover { color: var(--qc-blue-dark); }
.qcw-policies-panel address {
  font-style: normal;
  line-height: 1.8;
  color: var(--qc-ink);
  margin: 0 0 1.25rem;
}
.qcw-policy-updated {
  color: var(--qc-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem !important;
}
.qcw-policies-panel h3:first-of-type { margin-top: 0.5rem; }

/* ── Cookie consent popup ────────────────────────────────────────────── */
.qcw-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 420px;
  margin-right: auto; /* sit at the bottom-left */
  z-index: 1900;
  background: #fff;
  border: 1px solid var(--qc-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(3, 7, 44, 0.18);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.qcw-cookie[hidden] { display: none; }
.qcw-cookie-text {
  margin: 0;
  color: var(--qc-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.qcw-cookie-text a { color: var(--qc-blue); }
.qcw-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}
.qcw-cookie-decline {
  background: none;
  border: 0;
  color: var(--qc-muted);
  cursor: pointer;
  font-family: var(--qcw-font-head);
  font-size: 0.95rem;
}
.qcw-cookie-decline:hover { color: var(--qc-navy); }
.qcw-cookie .qcw-btn-signup { cursor: pointer; }

/* ── Pre-footer CTA ──────────────────────────────────────────────────── */
.qcw-cta {
  padding-top: clamp(1rem, 2.5vw, 2rem);
}
.qcw-cta-card {
  background: linear-gradient(135deg, var(--qc-teal) 0%, var(--qc-blue) 45%, var(--qc-blue-dark) 100%);
  border-radius: 28px;
  padding: clamp(2.75rem, 6vw, 5rem);
  text-align: center;
}
.qcw-cta-title {
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  max-width: 48rem;
  margin: 0 auto 1rem;
}
.qcw-cta-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 44rem;
  margin: 0 auto 1.75rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.qcw-footer {
  --qcw-footer-pad: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.qcw-footer-card {
  background-color: #fff;
  background-image: url("../img/QcompasS-background-1.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 28px;
  overflow: hidden;
  padding: var(--qcw-footer-pad);
}
.qcw-footer-logo img { height: 40px; width: auto; display: block; }
.qcw-footer-tagline {
  color: var(--qc-ink);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 30rem;
  margin: 1.25rem 0 1.75rem;
}
.qcw-footer-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.qcw-footer-heading {
  color: var(--qc-navy);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.qcw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qcw-footer-links li { margin-bottom: 0.7rem; }
.qcw-footer-links a {
  color: var(--qc-navy);
  text-decoration: none;
  font-weight: 400;
}
.qcw-footer-links a:hover { color: var(--qc-blue); }

/* Sub-footer bar */
.qcw-subfooter {
  background: #fff;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);     /* match the padding below */
  padding-top: 0;                              /* no padding above */
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
/* Align policies + credit with the card's inner content (logo left / content right) */
.qcw-subfooter > .container {
  padding-inline: calc(0.75rem + var(--qcw-footer-pad));
}
.qcw-policies {
  color: var(--qc-navy);
  text-decoration: underline;
  font-weight: 400;
}
.qcw-policies:hover { color: var(--qc-blue); }
.qcw-credit {
  color: var(--qc-muted);
  font-size: 0.9rem;
}
.qcw-credit a { color: var(--qc-navy); text-decoration: underline; }
.qcw-credit a:hover { color: var(--qc-blue); }

