/* ============================================================
   C2C DESIGN SYSTEM — styles.css
   Imports Aigonix base tokens, then defines C2C Sage palette.
   ============================================================ */

/* Base tokens loaded via <link> in HTML — no @import needed */

/* ============================================================
   C2C — SAGE COLOUR TOKENS
   ============================================================ */

:root {

  /* Sage palette — C2C brand */
  --color-sage-ink:   #2E4035; /* headings, hover states */
  --color-sage:       #5C7A64; /* primary CTA, active links, key accents */
  --color-sage-mist:  #DDE8DF; /* tinted backgrounds — no text use */
  --color-warm-amber: #C25A00; /* alert / danger */

  /* Text on Sage/dark backgrounds */
  --color-text-on-dark:       #fafafa;
  --color-text-on-dark-muted: #A8A49E;

  /* Button accent — Sage */
  --btn-accent-bg:    var(--color-sage);
  --btn-accent-text:  var(--color-aigonix-white);
  --btn-accent-hover: var(--color-sage-ink);

  /* Misc C2C tokens inherited from original */
  --color-clay-grey: #8C8880;
}

/* ============================================================
   SECTION SURFACE OVERRIDES — Sage-specific
   ============================================================ */

.section--mist {
  background-color: var(--color-sage-mist);
}

.section--moss {
  background-color: var(--color-sage-ink);
  color: var(--color-text-on-dark);
}

/* Ice — very light sage tint, used for alternating sections */
.section--ice {
  background-color: #F4F7F5;
}

/* Labels on moss/dark */
.section--moss .label,
.section--graphite .label {
  color: var(--color-sage);
}

/* Headings on moss */
.section--moss h2,
.section--moss h3 {
  color: var(--color-text-on-dark);
}

/* Card on moss */
.section--moss .card {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--color-text-on-dark);
}

/* Btn-primary on moss — use white/light fill for strong contrast */
.section--moss .btn-primary {
  background-color: var(--color-base-light);
  color: var(--color-sage-ink);
}

.section--moss .btn-primary:hover {
  background-color: var(--color-sage-mist);
  color: var(--color-sage-ink);
}

/* Btn-secondary on moss */
.section--moss .btn-secondary {
  color: var(--color-base-light);
  border-color: rgba(250, 250, 250, 0.45);
}

.section--moss .btn-secondary:hover {
  background-color: var(--color-base-light);
  color: var(--color-sage-ink);
}

/* card__stat in Sage */
.card__stat {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-sage);
  letter-spacing: -0.02em;
}

.card__cta {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-sage);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-top: auto;
  transition: opacity var(--transition-base);
}

.card__cta:hover {
  opacity: 0.75;
}

/* ============================================================
   CARD GRID — base definition
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   NAV — C2C overrides
   ============================================================ */

.nav__logo-wordmark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-sage-ink);
  line-height: 1.2;
}

.nav__link:hover {
  color: var(--color-sage-ink);
}

.nav__hamburger-line {
  background-color: var(--color-sage-ink);
}

.nav__drawer-close {
  color: var(--color-sage-ink);
}

.nav__drawer-link:hover {
  color: var(--color-sage-ink);
}

/* ============================================================
   STAGGER DELAYS — C2C component grids
   ============================================================ */

.capability__card:nth-child(1) { transition-delay: 0ms; }
.capability__card:nth-child(2) { transition-delay: 80ms; }
.capability__card:nth-child(3) { transition-delay: 160ms; }
.capability__card:nth-child(4) { transition-delay: 240ms; }

.proof__card:nth-child(1) { transition-delay: 0ms; }
.proof__card:nth-child(2) { transition-delay: 80ms; }
.proof__card:nth-child(3) { transition-delay: 160ms; }

.value-chain__node:nth-child(1) { transition-delay: 0ms; }
.value-chain__node:nth-child(2) { transition-delay: 80ms; }
.value-chain__node:nth-child(3) { transition-delay: 160ms; }
.value-chain__node:nth-child(4) { transition-delay: 240ms; }
.value-chain__node:nth-child(5) { transition-delay: 320ms; }

.how-it-works__step:nth-child(1) { transition-delay: 0ms; }
.how-it-works__step:nth-child(2) { transition-delay: 80ms; }
.how-it-works__step:nth-child(3) { transition-delay: 160ms; }

/* ============================================================
   HERO
   ============================================================ */

.section--hero {
  padding-top: calc(var(--nav-height) + var(--space-5));
  padding-bottom: var(--space-10);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  background-image: url('../assets/c2c-hero-bg.jpg.png');
  background-size: cover;
  background-position: center;
}

.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(244, 247, 245, 0.88);
  z-index: 0;
}

.section--hero .container {
  position: relative;
  z-index: 1;
}

.section--hero .container {
  width: 100%;
  padding-inline: var(--gutter);
}

.hero__grid {
  align-items: center;
  min-height: calc(70vh - var(--nav-height));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__visual {
    animation: float 5s ease-in-out infinite;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__copy .label {
  /* Removed negative-margin hack — gap on .hero__copy handles spacing */
  margin-bottom: 0;
}

.hero__copy h1 {
  font-size: 3.25rem;
}

@media (max-width: 1024px) {
  .hero__copy h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  .hero__copy h1 { font-size: 2rem; }
}

.hero__copy h1 em {
  font-style: italic;
}

.hero__subhead {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 480px;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__trust {
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-normal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--color-border);
  margin-inline: var(--space-1);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-sage-mist);
}

.hero-visual--diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: var(--space-10) var(--space-8);
  border: 1px solid rgba(92, 122, 100, 0.2);
}

.transform-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
}

.transform-diagram__before,
.transform-diagram__after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
}

.transform-diagram__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-clay-grey);
  text-align: center;
  max-width: 120px;
}

.transform-diagram__docs {
  position: relative;
  width: 110px;
  height: 130px;
}

.transform-doc {
  position: absolute;
  width: 96px;
  background-color: #D8D4CE;
  border-radius: 6px;
  padding: 10px 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(28, 28, 26, 0.1);
}

.transform-doc--c {
  bottom: 0;
  left: 14px;
  transform: rotate(-7deg);
  background-color: #C8C4BE;
  opacity: 0.7;
  z-index: 1;
}

.transform-doc--b {
  bottom: 5px;
  left: 7px;
  transform: rotate(-3deg);
  background-color: #D0CCC6;
  opacity: 0.85;
  z-index: 2;
}

.transform-doc--a {
  bottom: 10px;
  left: 0;
  transform: rotate(1deg);
  background-color: #E0DDD8;
  z-index: 3;
}

.transform-doc__corner-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #C8C4BE 50%, #D8D4CE 50%);
  border-radius: 0 6px 0 6px;
}

.transform-doc__line {
  height: 4px;
  background-color: #8C8880;
  border-radius: 2px;
  opacity: 0.35;
  width: 100%;
}

.transform-doc__line--medium { width: 75%; }
.transform-doc__line--short  { width: 50%; }

.transform-diagram__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.transform-diagram__arrow-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage-ink);
}

.transform-table {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 28, 26, 0.08);
}

.transform-table__header {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--color-border);
  background-color: #F8F7F5;
}

.transform-table__header-cell {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex: 1;
}

.transform-table__header-cell--unit {
  flex: 0 0 auto;
  min-width: 60px;
  text-align: right;
}

.transform-table__header-cell--status {
  flex: 0 0 20px;
  text-align: center;
}

.transform-table__row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #F0EDE8;
  gap: 6px;
}

.transform-table__row:last-child { border-bottom: none; }

.transform-table__cat {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  flex: 1;
}

.transform-table__val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  flex: 0 0 auto;
  min-width: 60px;
  text-align: right;
}

.transform-table__check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { grid-column: span 12; min-width: 0; }
  .hero__visual { display: none; }
  .section--hero { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
  .section--hero {
    padding-top: calc(var(--nav-height) + var(--space-6));
    padding-bottom: var(--space-10);
  }

  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .hero__cta-group .btn-primary,
  .hero__cta-group .btn-secondary { width: 100%; text-align: center; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.section--trust {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}

.trust__row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust__tagline { white-space: nowrap; flex-shrink: 0; }

.trust__logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  flex-grow: 1;
}

.trust__logo {
  filter: grayscale(100%) opacity(40%);
  transition: filter var(--transition-base);
  flex-shrink: 0;
}

.trust__logo:hover { filter: grayscale(100%) opacity(70%); }

@media (max-width: 768px) {
  .trust__row { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .trust__logos {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2rem;
    padding-bottom: var(--space-2);
    width: 100%;
    scrollbar-width: none;
  }
  .trust__logos::-webkit-scrollbar { display: none; }
}

/* ============================================================
   PROBLEM FRAMING
   ============================================================ */

.problem__grid { align-items: center; }

.problem__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--space-8);
}

.problem__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.problem__main .section__header { margin-bottom: 0; }

.problem__body { max-width: 560px; }
.problem__body p { color: var(--color-text-secondary); }
.problem__body p + p { margin-top: var(--space-4); }

.problem__rule {
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.problem__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--space-12);
}

.problem__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 2px solid var(--color-sage-mist);
}

.problem__stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--weight-regular);
  color: var(--color-sage-ink);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.problem__stat-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-clay-grey);
  line-height: var(--leading-relaxed);
}

.problem__sidebar { padding-top: var(--space-4); }

.problem__sidebar-inner {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem__sidebar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  align-self: flex-start;
}

.problem__pullquote {
  border-left: 2px solid var(--color-sage);
  padding-left: var(--space-4);
}

.problem__pullquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: var(--leading-relaxed);
  color: var(--color-sage-ink);
}

@media (max-width: 1024px) {
  .problem__spacer { display: none; }
  .problem__main { grid-column: span 8; }
  .problem__sidebar { grid-column: span 4; }
}

@media (max-width: 768px) {
  .problem__spacer,
  .problem__sidebar { display: none; }
  .problem__main { grid-column: span 12; }
  .problem__stats { grid-template-columns: 1fr; gap: 0; }
  .problem__stat {
    border-top: none;
    border-left: 1px solid rgba(140, 136, 128, 0.3);
    padding: var(--space-4) 0 var(--space-4) var(--space-6);
  }
  .problem__stat-value { font-size: 2rem; }
}

/* ============================================================
   VALUE CHAIN
   ============================================================ */

/* Value chain section gets a mist background for section rhythm */
.section--value-chain {
  background-color: var(--color-sage-mist);
}

.value-chain__intro {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
}

.value-chain__flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.value-chain__flow::-webkit-scrollbar { height: 3px; }
.value-chain__flow::-webkit-scrollbar-track { background: transparent; }
.value-chain__flow::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.value-chain__node {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  position: relative;
}

.value-chain__node--neutral {
  background-color: var(--color-base-light);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.value-chain__node--c2c {
  background-color: var(--color-sage-ink);
  color: var(--color-text-on-dark);
  border: 2px solid var(--color-sage);
}

.value-chain__node--c2c .value-chain__node-num  { color: var(--color-sage); }
.value-chain__node--c2c .value-chain__node-title { color: var(--color-text-on-dark); }
.value-chain__node--c2c .value-chain__node-body  { color: var(--color-text-on-dark-muted); }

.value-chain__node-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-base-light);
  background-color: var(--color-sage);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  line-height: 1.6;
}

.value-chain__node-num {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.value-chain__node-title {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.value-chain__node-body {
  font-size: var(--text-label);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.value-chain__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-inline: var(--space-2);
  color: var(--color-clay-grey);
  opacity: 0.5;
  align-self: center;
}

@media (max-width: 1024px) {
  .value-chain__flow { flex-direction: column; overflow-x: visible; }
  .value-chain__node { min-width: 0; flex: none; width: 100%; }
  .value-chain__arrow { transform: rotate(90deg); align-self: flex-start; margin-left: var(--space-8); padding-block: var(--space-1); }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works__flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
}

.how-it-works__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-base-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  min-height: 280px;
}

.how-it-works__step-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--color-sage);
  line-height: 1;
  letter-spacing: -0.02em;
}

.how-it-works__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.how-it-works__step-body {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
}

.how-it-works__connector {
  display: none; /* hidden — gap between cards provides the visual separation */
}

@media (max-width: 1024px) {
  .how-it-works__flow { flex-direction: column; gap: var(--space-3); }
  .how-it-works__step { min-height: 0; padding: var(--space-6); }
}

/* ============================================================
   DATA VISUALISATION
   ============================================================ */

/* On moss/dark background, section headers inherit correct text color */
.section--moss .section__header .label {
  color: var(--color-sage);
}
.section--moss .section__header h2 {
  color: var(--color-text-on-dark);
}

.data__grid { align-items: center; gap: var(--space-12); }

.data__kpi { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }

.data__kpi-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.data__kpi-label { font-size: var(--text-small); color: var(--color-text-on-dark-muted); letter-spacing: 0.02em; }

.data__chart-wrap { width: 100%; border-radius: var(--radius-md); overflow: hidden; background: transparent; }
.data__chart-wrap canvas { display: block; width: 100%; min-height: 200px; }

.data__text-col { display: flex; flex-direction: column; gap: var(--space-6); }
.data__text-col .section__header { margin-bottom: 0; }

.data__body { color: var(--color-text-on-dark-muted); font-size: var(--text-body); line-height: var(--leading-relaxed); }

.data__inline-stats { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-4); }
.data__inline-stat { display: flex; flex-direction: column; gap: var(--space-1); }

.data__inline-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.data__inline-label { font-size: var(--text-small); color: var(--color-text-on-dark-muted); }

.data__stat-divider { width: 1px; height: 40px; background-color: rgba(255,255,255,0.15); flex-shrink: 0; }

@media (max-width: 1024px) {
  .data__chart-col,
  .data__text-col { grid-column: span 12; }
  .data__grid { gap: var(--space-10); }
}

@media (max-width: 640px) {
  /* The KPI value (long mono string incl. the parenthetical gloss) is far too
     large at 3rem on a phone — scale it down and let it wrap cleanly. */
  .data__kpi-value { font-size: 1.75rem; line-height: 1.2; overflow-wrap: break-word; }
  .data__inline-stats { flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
}

/* ============================================================
   AUDIT TRAIL CALLOUT
   ============================================================ */

.section--audit-callout { padding-block: var(--section-padding-y-sm); }

.audit-callout__inner {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.audit-callout__icon { color: var(--color-sage); opacity: 0.75; flex-shrink: 0; }

.audit-callout__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-on-dark);
}

.audit-callout__heading em { font-style: italic; }

.audit-callout__body {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-on-dark-muted);
  max-width: 680px;
}

/* ============================================================
   COMPLIANCE SECTION
   ============================================================ */

.compliance__grid { align-items: center; gap: var(--space-12); }

.compliance-doc {
  background-color: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.compliance-doc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.compliance-doc__label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.compliance-doc__stamp {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-sage);
}

.compliance-doc__chart { padding-block: var(--space-2); }

.compliance-doc__bars { display: flex; align-items: flex-end; gap: var(--space-3); height: 80px; border-bottom: 1px solid var(--color-border); }

.compliance-doc__bar { flex: 1; background-color: var(--color-clay-grey); opacity: 0.3; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.compliance-doc__bar--accent { background-color: var(--color-sage); opacity: 0.7; }

.compliance-doc__bar-labels { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.compliance-doc__bar-labels span { flex: 1; font-size: 0.625rem; font-family: var(--font-mono); color: var(--color-text-muted); text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }

.compliance-doc__table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.compliance-doc__table th { font-family: var(--font-body); font-size: var(--text-label); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); text-align: left; padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); }
.compliance-doc__table td { padding-block: var(--space-2); border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary); vertical-align: middle; }
.compliance-doc__table tr:last-child td { border-bottom: none; }

.compliance__text { display: flex; flex-direction: column; gap: var(--space-6); }
.compliance__text .section__header { margin-bottom: 0; }
.compliance__text p { color: var(--color-text-secondary); }

.compliance__checklist { display: flex; flex-direction: column; gap: var(--space-4); }

.compliance__check-item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-body); color: var(--color-text-secondary); line-height: var(--leading-normal); }

.compliance__check-icon { flex-shrink: 0; margin-top: 3px; color: var(--color-sage); }

@media (max-width: 1024px) {
  .compliance__visual,
  .compliance__text { grid-column: span 12; }
  .compliance__visual { order: 1; }
  .compliance__text { order: 2; }
}

/* ============================================================
   OPERATIONAL DECISION-MAKING
   ============================================================ */

.operations__intro-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.operations__intro-copy {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.operations__intro-copy .label { margin-bottom: 0; }

.operations__intro-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.operations__intro-visual img {
  width: 100%;
  max-width: 460px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.operations__intro { color: var(--color-text-secondary); font-size: var(--text-body); }

@media (max-width: 768px) {
  .operations__intro-row { flex-direction: column; gap: var(--space-8); }
  .operations__intro-copy { flex: none; }
  .operations__intro-visual img { max-width: 100%; }
}
.operations__grid { align-items: start; gap: var(--grid-gap); }
.operations__step { display: flex; flex-direction: column; gap: var(--space-4); }
.operations__step-num { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; color: var(--color-sage); opacity: 0.45; line-height: 1; letter-spacing: -0.02em; }
.operations__step-title { font-family: var(--font-body); font-size: var(--text-h4); font-weight: var(--weight-semibold); color: var(--color-sage-ink); line-height: var(--leading-normal); }
.operations__step-body { font-size: var(--text-small); color: var(--color-text-secondary); line-height: var(--leading-relaxed); flex-grow: 1; }
.operations__step-rule { border: none; border-top: 1px solid var(--color-border); width: 100%; margin-top: var(--space-4); }

@media (max-width: 768px) { .operations__step { grid-column: span 6; } }
@media (max-width: 640px) { .operations__step { grid-column: span 12; } }

/* ============================================================
   FEATURED CUSTOMER
   ============================================================ */

.featured-customer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-16); align-items: center; }
.featured-customer__left { display: flex; flex-direction: column; gap: var(--space-5); }
.featured-customer__logo { height: 28px; width: auto; display: block; filter: grayscale(20%) opacity(85%); }
.featured-customer__descriptor { font-size: var(--text-small); color: var(--color-text-muted); line-height: var(--leading-normal); }
.featured-customer__right { display: flex; flex-direction: column; gap: var(--space-5); font-style: normal; }
.featured-customer__quote-mark { display: block; font-family: var(--font-heading); font-size: 5rem; line-height: 0.8; color: var(--color-sage); user-select: none; margin-bottom: var(--space-8); }
.featured-customer__quote-text { font-family: var(--font-heading); font-style: italic; font-size: 1.875rem; line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); color: var(--color-sage); }
.featured-customer__attribution { display: block; font-size: var(--text-small); font-weight: var(--weight-medium); font-style: normal; color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .featured-customer__grid { gap: var(--space-12); }
  .featured-customer__quote-text { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .featured-customer__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .featured-customer__quote-mark { font-size: 4.5rem; margin-bottom: var(--space-4); }
  .featured-customer__quote-text { font-size: 1.375rem; }
}

/* ============================================================
   USE CASES TEASER
   ============================================================ */

.uc-teaser-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.uc-teaser-grid--3 { grid-template-columns: repeat(3, 1fr); }
.uc-teaser-grid--4 { grid-template-columns: repeat(4, 1fr); }

.uc-teaser-card {
  background: var(--color-base-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.uc-teaser-card:hover {
  background: #5C7A64;
  border-color: #5C7A64;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.uc-teaser-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  transition: color var(--transition-base);
}

.uc-teaser-card__body {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
  transition: color var(--transition-base);
}

.uc-teaser-card:hover .uc-teaser-card__title,
.uc-teaser-card:hover .uc-teaser-card__body,
.uc-teaser-card:hover .label {
  color: #ffffff;
}

.uc-teaser__cta { margin-top: var(--space-8); }

@media (max-width: 1024px) {
  .uc-teaser-grid--3 { grid-template-columns: 1fr; }
  .uc-teaser-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .uc-teaser-grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.section--cta { text-align: left; }

.cta__inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }

.cta__overline { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-sage); }

.section--cta h2 { color: var(--color-text-on-dark); text-align: left; }
.section--cta h2 em { font-style: italic; }

.cta__body { font-size: var(--text-body); color: rgba(245,243,239,0.7); max-width: 480px; text-align: left; line-height: var(--leading-relaxed); }

.cta__buttons { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-3); flex-wrap: wrap; }

@media (max-width: 640px) {
  .cta__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .cta__buttons .btn-primary,
  .cta__buttons .btn-secondary { width: 100%; text-align: center; }
}

/* ============================================================
   FOOTER — C2C OVERRIDE
   (keeps dark Aigonix base footer, adds Sage focus ring)
   ============================================================ */

footer {
  background-color: var(--color-base-dark);
  color: var(--color-text-on-dark);
  padding-bottom: var(--space-8);
}

.footer__field-line { width: 100%; height: 80px; overflow: hidden; line-height: 0; }
.footer__field-line svg { width: 100%; height: 80px; display: block; }

.footer__logo-wordmark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: rgba(245,243,239,0.9);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-4);
}

.footer__logo-wordmark:hover {
  color: rgba(245,243,239,0.7);
}

.footer__by-aigonix {
  color: rgba(245,243,239,0.45);
  border-left-color: rgba(255,255,255,0.15);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr;
  gap: var(--space-8);
  padding-block: var(--space-16) var(--space-8);
  border-bottom: 1px solid var(--color-border-dark);
  margin-block-end: var(--space-6);
}

.footer__logo { height: 24px; width: auto; filter: invert(1) brightness(2); opacity: 0.9; }
.footer__tagline { font-size: 0.8125rem; color: rgba(245,243,239,0.6); line-height: var(--leading-relaxed); max-width: 220px; }
.footer__socials { display: flex; gap: var(--space-4); margin-top: var(--space-2); }
.footer__social-link { color: var(--color-base-light); opacity: 0.6; transition: opacity var(--transition-base); display: flex; align-items: center; }
.footer__social-link:hover { opacity: 1; }
.footer__social-link:focus-visible { outline: 2px solid var(--color-sage); outline-offset: 3px; border-radius: 2px; }
.footer__compliance-text { font-size: var(--text-small); color: rgba(245,243,239,0.6); line-height: var(--leading-relaxed); }
.footer__cta-btn { padding: 0.5rem 1.25rem; font-size: 0.6875rem; align-self: flex-start; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-label); color: var(--color-text-on-dark-muted); opacity: 0.4; flex-wrap: wrap; gap: var(--space-3); }
.footer__legal-link { font-size: var(--text-label); color: inherit; text-decoration: none; transition: opacity var(--transition-base); }
.footer__legal-link:hover { opacity: 0.8; }

/* C2C nav by-aigonix attribution */
.nav__by-aigonix:focus-visible { outline: 2px solid var(--color-sage); }

@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); } }
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-10) var(--space-6); }
  .footer__tagline { max-width: none; }
  .footer__bottom { flex-direction: column; text-align: center; gap: var(--space-2); }
  .footer__cta-btn { align-self: stretch; text-align: center; }
}

/* ============================================================
   C2C POLISH PASS — additional refinements
   ============================================================ */

/* Section rhythm: set backgrounds for consistent alternation
   Hero (white) → Problem (white) → Value Chain (mist, set above) →
   How It Works (clay) → Data (moss) → Audit (moss) →
   Compliance (white) → Operations (ice) → Customer (clay) → CTA (moss)
*/
.section--compliance {
  background-color: var(--color-base-light);
}

/* Tighten section header gaps across the board */
.section__header {
  gap: var(--space-4);
}

/* Hero: increase h1 to full scale, make subhead a bit larger */
.hero__subhead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 520px;
}

/* Hero trust note */
.hero__trust {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Value chain: improve section header intro */
.value-chain__intro {
  font-size: 1.0625rem;
}

/* How it works step num — slightly larger */
.how-it-works__step-num {
  font-size: 3rem;
}

/* Compliance checklist — tighter check icon + bigger body text */
.compliance__check-item {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

/* Audit callout: tighten inner max-width and center it */
.audit-callout__inner {
  max-width: 760px;
  text-align: left;
}

/* Audit icon: constrain SVG size */
.audit-callout__icon svg {
  width: 36px;
  height: 36px;
}

/* Operations section: make step rule Sage-tinted */
.operations__step-rule {
  border-top-color: var(--color-sage-mist);
}

/* Operations step title: make it consistent with the Sage brand */
.operations__step-title {
  color: var(--color-text-primary);
  font-size: var(--text-h4);
}

/* Featured customer: eyebrow label styling */
.featured-customer__eyebrow {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sage);
}

/* Featured customer quote on clay: ensure quote text reads as blockquote */
.featured-customer__quote-text {
  color: var(--color-sage);
  font-style: italic;
}

/* CTA overline color on moss */
.section--moss .cta__overline {
  color: rgba(221, 232, 223, 0.7);
}

/* Section body utility — remove prose max-width for layout containers */
.section__body {
  width: 100%;
}

/* Compliance doc table padding */
.compliance-doc__table th,
.compliance-doc__table td {
  padding-block: var(--space-3);
  padding-inline: var(--space-2);
}

/* Problem stat section border accent */
.problem__stat:first-child {
  border-top-color: var(--color-sage);
}

/* Navigation link color on C2C */
.nav__link {
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}

/* Smooth transition on value chain arrows */
.value-chain__arrow {
  transition: opacity var(--transition-base);
}

/* Data section: fix body text color to on-dark */
.data__body {
  color: rgba(221, 232, 223, 0.75);
}

.data__inline-label {
  color: rgba(221, 232, 223, 0.55);
}

/* Problem sidebar label */
.problem__sidebar-label {
  color: var(--color-sage);
  opacity: 0.6;
}

/* Compliance doc: stamp in sage */
.compliance-doc__stamp {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
