/* ==========================================================================
   Consent Management Audit, 2026 page sections
   Scoped with a cma- prefix so nothing collides with the theme globals
   (.card, .grid, .btn, .step, .badge, .center, .muted, .tag, .sec, .lede).
   Colours and type follow the Feroot theme: ink #010347, purple #A552F2,
   Open Sans 800 headings, Nunito body at 18px.
   ========================================================================== */

.cma {
  --cma-ink: #010347;
  --cma-ink-2: #00021f;
  --cma-purple: #a552f2;
  --cma-purple-deep: #420bae;
  --cma-slate: #4a5578;
  --cma-slate-2: #6b7394;
  --cma-line: #e6e2f2;
  --cma-line-soft: #efecf8;
  --cma-tint-2: #f7f1ff;
  --cma-ok: #047857;
  --cma-ok-bg: #ecfdf5;
  --cma-ok-line: #bbf7d0;
  --cma-warn: #b45309;
  --cma-danger: #c2261d;
  --cma-danger-bg: #fef2f2;
  --cma-danger-line: #fecaca;
}

/* screen-reader-only text, the theme has no equivalent utility */
.cma-sr {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── page background: white end to end ───────────────────────────────────────
   The hero, logo slider, testimonial and download blocks each hardcode
   #f6f6f9 in their own block CSS, and the page sets body grey via an inline
   <style id="hero-bg-match">. Overridden here so the page reads white
   throughout rather than white sections floating on a grey page. */
body.wp-theme-feroot { background-color: #fff; }
body.wp-theme-feroot .acf-hero-main-banner,
body.wp-theme-feroot .acf-logo-slider,
body.wp-theme-feroot .acf-logo-slider.background-secondary,
body.wp-theme-feroot .acf-quotes-slider,
body.wp-theme-feroot .acf-download-report,
body.wp-theme-feroot .acf-cta-with-image { background-color: #fff; }

/* ── section shell ───────────────────────────────────────────────────────── */

.cma-sec { background-color: #fff; padding: 64px 0; }
.cma-sec--tint { background-color: #fff; }
@media (min-width: 768px) { .cma-sec { padding: 80px 0; } }
@media (min-width: 1024px) { .cma-sec { padding: 112px 0; } }

.cma-head { margin: 0 auto 40px; max-width: 780px; text-align: center; }
.cma-head--wide { max-width: 900px; }
@media (min-width: 1024px) { .cma-head { margin-bottom: 56px; } }

.cma-eyebrow {
  color: var(--cma-purple);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
}
@media (min-width: 768px) { .cma-eyebrow { font-size: 16px; } }

.cma-h2 { margin: 0; }

.cma-lede {
  color: var(--cma-slate);
  font-size: 17px;
  line-height: 1.45;
  margin: 20px 0 0;
}
@media (min-width: 768px) { .cma-lede { font-size: 20px; } }

.cma-note {
  color: var(--cma-slate-2);
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0 0;
  text-align: center;
}

/* ── CTA rows ────────────────────────────────────────────────────────────── */

.cma-cta {
  align-items: center;
  column-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
}
.cma-cta--center { justify-content: center; }
.cma-cta--section { margin-top: 48px; }

/* Free Scan uses the nav's concave hero-cta-scan look; that rule lives in
   v17-nav-component.js and supplies background, border, colour and shadow with
   !important. Sizing is ours, matched to the metrics the nav component forces
   onto the adjacent Get a Demo button (18px / line-height 1 / 10px 20px / 99px
   radius) so the pair is the same height. Weight is 700, matching the nav's own
   Free scan pill: Nunito is loaded at 400/600/700/800/900 only, so a 500 here
   was being synthesised by the browser and rendered badly. */
.cma-cta .hero-cta-scan,
.acf-cta-with-image__button-wrapper .hero-cta-scan {
  align-items: center;
  border-radius: 99px;
  display: inline-flex;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: -.01em;
  line-height: 1;
  padding: 10px 20px;
  text-decoration: none;
}
.cma-cta .hero-cta-scan:hover,
.acf-cta-with-image__button-wrapper .hero-cta-scan:hover { text-decoration: none; }

/* ── 1. hero ─────────────────────────────────────────────────────────────── */

.cma-hero { text-align: center; }

.cma-hero__title {
  margin: 0 auto;
  max-width: 20ch;
}
.cma-hero__lede {
  color: var(--cma-ink);
  font-size: 18px;
  line-height: 1.4;
  margin: 24px auto 0;
  max-width: 62ch;
}
@media (min-width: 768px) {
  .cma-hero__lede { font-size: 20px; margin-top: 32px; }
}
.cma-hero .cma-cta { margin-top: 32px; }
@media (min-width: 768px) { .cma-hero .cma-cta { margin-top: 40px; } }

/* ── 3. journey simulator ────────────────────────────────────────────────── */

.cma-jbar {
  border-bottom: 1px solid var(--cma-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.cma-jbtn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--cma-slate-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: -1px;
  padding: 11px 16px;
  transition: color .15s, border-color .15s;
}
.cma-jbtn:hover { color: var(--cma-ink); }
.cma-jbtn[aria-pressed="true"] {
  border-bottom-color: var(--cma-ink);
  color: var(--cma-ink);
}
@media (min-width: 768px) { .cma-jbtn { font-size: 16px; padding: 12px 20px; } }

.cma-sim { display: block; }

/* fake browser: one window frame, the URL bar spans the top and the
   page preview + stats sit docked side by side underneath, like a real
   browser with dev tools docked to the right */
.cma-browser {
  background-color: #fff;
  border: 1px solid var(--cma-line);
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(164, 89, 239, .2);
  overflow: hidden;
}
.cma-browser__bar {
  align-items: center;
  background-color: #eef0f4;
  display: flex;
  gap: 7px;
  padding: 11px 15px;
}
.cma-browser__dot { border-radius: 50%; height: 11px; width: 11px; }
.cma-browser__url {
  background-color: #fff;
  border-radius: 7px;
  color: var(--cma-slate-2);
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  overflow: hidden;
  padding: 5px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cma-browser__split { display: flex; flex-direction: column; }
.cma-browser__stats { display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  /* fixed to the page column's own height (state strip + .cma-vp's 330px)
     so the card's height stays constant and the console scrolls internally
     instead of growing with the event count */
  .cma-browser__split { flex-direction: row; height: 385px; }
  .cma-browser__page { flex: 2; min-width: 0; }
  .cma-browser__stats { border-left: 1px solid var(--cma-line); flex: 1; }
}
.cma-browser__state {
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid var(--cma-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 18px;
}
.cma-browser__state h3 { font-size: 15px; font-weight: 800; margin: 0; }
.cma-vp {
  background: linear-gradient(180deg, #fff, #fafaff);
  height: 330px;
  overflow: hidden;
  position: relative;
}
.cma-vp__skel { padding: 26px 26px 0; }
.cma-vp__l {
  background-color: #eceaf6;
  border-radius: 5px;
  height: 11px;
  margin-bottom: 11px;
}
.cma-vp__l--t { background-color: #ddd8f0; height: 20px; width: 62%; }
.cma-vp__l--s { width: 88%; }
.cma-vp__l--m { width: 74%; }
.cma-vp__l--x { width: 46%; }
.cma-vp__img {
  background: linear-gradient(120deg, #efeafd, #e6f0ff);
  border-radius: 12px;
  height: 76px;
  margin: 16px 0;
}
.cma-gpc {
  background-color: var(--cma-ok-bg);
  border: 1px solid var(--cma-ok-line);
  border-radius: 50px;
  color: var(--cma-ok);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  padding: 6px 14px;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: opacity .3s;
}
.cma-gpc.is-on { opacity: 1; }
.cma-cb {
  align-items: center;
  background-color: #fff;
  border: 1px solid var(--cma-line);
  border-radius: 14px;
  bottom: 14px;
  box-shadow: 0 10px 30px rgba(1, 3, 71, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  left: 14px;
  padding: 15px 17px;
  position: absolute;
  right: 14px;
  transition: opacity .3s, transform .3s;
}
.cma-cb.is-gone { opacity: 0; pointer-events: none; transform: translateY(12px); }
.cma-cb__txt {
  color: var(--cma-slate);
  flex: 1 1 160px;
  font-size: 12.5px;
  line-height: 1.45;
}
.cma-cb__txt b { color: var(--cma-ink); display: block; font-size: 13px; margin-bottom: 2px; }
.cma-cb__btn {
  border: 0;
  border-radius: 50px;
  cursor: default;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 15px;
  white-space: nowrap;
}
.cma-cb__btn--acc { background-color: var(--cma-ink); color: #fff; }
.cma-cb__btn--rej { background-color: #fff; border: 1px solid var(--cma-line); color: var(--cma-ink); }

/* live network-log, the main content of the stats column. The .cma-ev rows
   use monospace text colored per status (below), so they read fine against
   this dark strip without needing a card background. */
.cma-console {
  background-color: rgba(1, 3, 71, .96);
  height: 200px;
  overflow-y: auto;
  padding: 14px;
}
@media (min-width: 1024px) { .cma-console { flex: 1; height: auto; min-height: 0; } }

.cma-st {
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.cma-st--pass { background-color: var(--cma-ok-bg); color: var(--cma-ok); }
.cma-st--fail { background-color: var(--cma-danger-bg); color: var(--cma-danger); }

/* styled like a real devtools console/network log: monospace, flat rows
   separated by hairlines, status conveyed by text color, not card chrome */
.cma-ev {
  align-items: baseline;
  animation: cma-slide .3s forwards;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  gap: 10px;
  opacity: 0;
  padding: 8px 4px;
  transform: translateX(-8px);
}
.cma-ev:last-child { border-bottom: 0; }
@keyframes cma-slide { to { opacity: 1; transform: none; } }
.cma-ev__ic { flex: none; height: 13px; margin-top: 3px; width: 13px; }
.cma-ev--good .cma-ev__ic { color: #4ade80; }
.cma-ev--bad .cma-ev__ic { color: #f87171; }
.cma-ev--info .cma-ev__ic { color: #a78bfa; }
.cma-ev__body { flex: 1; min-width: 0; }
.cma-ev__nm {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cma-ev--good .cma-ev__nm { color: #4ade80; }
.cma-ev--bad .cma-ev__nm { color: #f87171; }
.cma-ev--info .cma-ev__nm { color: #c4b5fd; }
.cma-ev__ds {
  color: rgba(255, 255, 255, .55);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}
.cma-ev__tm {
  color: rgba(255, 255, 255, .4);
  flex: none;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
/* totals bar pinned under the console, like a dev tools network panel's
   summary row (request count, size, timing) */
.cma-browser__totals {
  border-top: 1px solid var(--cma-line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
}
.cma-metric { color: var(--cma-slate-2); font-size: 12.5px; white-space: nowrap; }
.cma-metric b {
  color: var(--cma-ink);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin-right: 4px;
}
.cma-metric b.is-bad { color: var(--cma-danger); }

/* ── 4. timeline ─────────────────────────────────────────────────────────── */

.cma-tl {
  background-color: #fff;
  border: 1px solid var(--cma-line);
  border-radius: 20px;
  padding: 24px;
}
@media (min-width: 768px) { .cma-tl { padding: 32px; } }

.cma-tl__foot {
  color: var(--cma-slate);
  font-size: 16px;
  line-height: 1.5;
  margin: 24px 0 0;
}
.cma-tl__foot b { color: var(--cma-ink); }
@media (min-width: 768px) { .cma-tl__foot { font-size: 17px; } }

/* stacked list by default so narrow screens never overlap */
.cma-tl__list { list-style: none; margin: 0; padding: 0; }
.cma-tl__fill { display: none; }
.cma-tl__item {
  border-left: 2px solid var(--cma-line);
  padding: 0 0 20px 20px;
  position: relative;
}
.cma-tl__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.cma-tl__item::before {
  background-color: currentColor;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(1, 3, 71, .22);
  content: "";
  height: 15px;
  left: -8px;
  position: absolute;
  top: 3px;
  width: 15px;
}
.cma-tl__t { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.cma-tl__d {
  color: var(--cma-slate);
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
}

/* gap annotation between two events; smaller and dashed so it never reads
   as its own timeline event, just a callout on the segment it sits over */
.cma-tl__gap {
  border-left: 2px dashed var(--cma-line);
  padding: 0 0 12px 20px;
  position: relative;
}
.cma-tl__gap-t {
  background-color: var(--cma-danger-bg);
  border-radius: 50px;
  color: var(--cma-danger);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 12px;
}

/* Horizontal track from 1024px up only. Below that the labels collide, and a
   timeline you have to decode is worse than a stacked list. The rail and fill
   live on the track wrapper, not inside the <ol>, so the markup stays valid. */
@media (min-width: 1024px) {
  .cma-tl__track { height: 100px; margin: 40px 0 4px; position: relative; }
  .cma-tl__track::before {
    background-color: #e7e2f3;
    border-radius: 50px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 44px;
  }
  .cma-tl__fill {
    background: linear-gradient(90deg, var(--cma-danger), #d97706);
    border-radius: 50px;
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    top: 44px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
    width: 50%;
  }
  .cma-tl.is-in .cma-tl__fill { transform: scaleX(1); }
  .cma-tl__item {
    border: 0;
    left: var(--cma-x, 0);
    padding: 0;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    width: 148px;
  }
  .cma-tl__item::before { left: 50%; top: 37px; transform: translateX(-50%); }
  .cma-tl__d { font-size: 12.5px; margin-top: 36px; }
  .cma-tl__item--start { text-align: left; transform: none; }
  .cma-tl__item--start::before { left: 0; transform: none; }
  .cma-tl__item--end { left: auto; right: 0; text-align: right; transform: none; }
  .cma-tl__item--end::before { left: auto; right: 0; transform: none; }

  /* sits directly on the rail, between the two dots it spans */
  .cma-tl__gap {
    border: 0;
    left: var(--cma-x, 50%);
    padding: 0;
    position: absolute;
    top: 44px;
    transform: translate(-50%, -50%);
    width: auto;
  }
  .cma-tl__gap-t {
    background-color: #fff;
    border: 1px solid var(--cma-line);
    white-space: nowrap;
  }
}

/* ── 5. card grid ────────────────────────────────────────────────────────── */

.cma-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .cma-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cma-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.cma-card {
  background-color: #fff;
  border: 1px solid var(--cma-line);
  border-radius: 18px;
  padding: 26px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cma-card:hover {
  border-color: #d9c7f7;
  box-shadow: 0 12px 30px rgba(1, 3, 71, .08);
  transform: translateY(-3px);
}
.cma-card__ic {
  align-items: center;
  background-color: var(--cma-tint-2);
  border-radius: 13px;
  color: var(--cma-purple-deep);
  display: flex;
  font-size: 22px;
  height: 46px;
  justify-content: center;
  margin-bottom: 16px;
  width: 46px;
}
.cma-card__t { font-size: 20px; margin: 0 0 8px; }
.cma-card__p {
  color: var(--cma-slate);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.cma-card--flag {
  border-color: #f3c4bf;
  background: linear-gradient(180deg, #fff, #fef6f5);
}
.cma-card--flag:hover { border-color: #e79a95; }
.cma-card__flag {
  background-color: var(--cma-danger-bg);
  border-radius: 20px;
  color: var(--cma-danger);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 14px;
  padding: 4px 10px;
  text-transform: uppercase;
}

/* ── 6. steps ────────────────────────────────────────────────────────────── */

.cma-steps {
  counter-reset: cma-step;
  display: grid;
  gap: 32px 20px;
}
@media (min-width: 840px) {
  .cma-steps { align-items: stretch; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0 18px; }
}

.cma-step-arrow {
  align-items: center;
  color: var(--cma-line);
  display: none;
  font-size: 20px;
  justify-content: center;
}
@media (min-width: 840px) { .cma-step-arrow { display: flex; } }

.cma-step {
  background-color: #fff;
  border: 1px solid var(--cma-line);
  border-radius: 18px;
  padding: 32px 24px 24px;
  position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cma-step:hover {
  border-color: #d9c7f7;
  box-shadow: 0 12px 30px rgba(1, 3, 71, .08);
  transform: translateY(-3px);
}
.cma-step::before {
  align-items: center;
  background: var(--cma-ink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(1, 3, 71, .2);
  color: #fff;
  content: counter(cma-step);
  counter-increment: cma-step;
  display: flex;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  left: 24px;
  position: absolute;
  top: -19px;
  width: 38px;
  z-index: 1;
}

/* ── 7. why it matters ───────────────────────────────────────────────────── */

.cma-split { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .cma-split { align-items: start; gap: 56px; grid-template-columns: 1fr 1fr; }
}
.cma-split__body .cma-lede:first-of-type { margin-top: 24px; }
.cma-stack { display: grid; gap: 16px; }

/* ── testimonial: navy instead of the theme's purple gradient text ─────────── */

.acf-quotes-slider.acf-quotes-slider--light .acf-quotes__slide-title,
.acf-quotes-slider.acf-quotes-slider--dark .acf-quotes__slide-title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #010347;
  -webkit-text-fill-color: #010347;
}

/* ── reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cma-ev { animation: none; opacity: 1; transform: none; }
  .cma-tl__fill { transition: none; transform: scaleX(1); }
  .cma-card { transition: none; }
  .cma-card:hover { transform: none; }
  .cma-step { transition: none; }
  .cma-step:hover { transform: none; }
  .cma-cb { transition: none; }
}
