/* =================================================================
   VAAYAA CONTENT ASSURANCE FRAMEWORK (VCAF)
   Dedicated stylesheet — loaded only on /vcaf route
   Author: vaayaa.com  |  Standard: World-class reference page
   ================================================================= */

/* ---------- 1. CSS VARIABLES ---------- */
.vcaf-page {
  --vcaf-blue:        #2563EB;
  --vcaf-blue-soft:   #DBEAFE;
  --vcaf-blue-deep:   #1E40AF;
  --vcaf-green:       #16A34A;
  --vcaf-green-soft:  #DCFCE7;
  --vcaf-green-deep:  #166534;
  --vcaf-yellow:      #EAB308;
  --vcaf-yellow-soft: #FEF9C3;
  --vcaf-yellow-deep: #854D0E;
  --vcaf-red:         #DC2626;
  --vcaf-red-soft:    #FEE2E2;
  --vcaf-red-deep:    #991B1B;
  --vcaf-indigo:      #4F46E5;
  --vcaf-indigo-soft: #E0E7FF;
  --vcaf-indigo-deep: #3730A3;
  --vcaf-rose:        #E11D48;
  --vcaf-rose-soft:   #FFE4E6;
  --vcaf-rose-deep:   #9F1239;

  --vcaf-ink:         #0F172A;
  --vcaf-ink-soft:    #334155;
  --vcaf-muted:       #64748B;
  --vcaf-line:        #E2E8F0;
  --vcaf-bg:          #FFFFFF;
  --vcaf-bg-soft:     #F8FAFC;
  --vcaf-bg-tint:     #F1F5F9;

  --vcaf-shadow-sm:   0 1px 2px rgba(15,23,42,.06);
  --vcaf-shadow-md:   0 4px 16px rgba(15,23,42,.08);
  --vcaf-shadow-lg:   0 12px 32px rgba(15,23,42,.12);
  --vcaf-shadow-xl:   0 24px 60px rgba(15,23,42,.16);

  --vcaf-radius-sm:   8px;
  --vcaf-radius-md:   14px;
  --vcaf-radius-lg:   22px;
  --vcaf-radius-xl:   32px;
}

/* ---------- 2. BASE & TYPOGRAPHY ---------- */
.vcaf-page {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--vcaf-ink);
  background: var(--vcaf-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vcaf-page *,
.vcaf-page *::before,
.vcaf-page *::after { box-sizing: border-box; }

.vcaf-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.vcaf-section--full {
  max-width: 100%;
  padding: 80px 0;
}

.vcaf-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.vcaf-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--vcaf-indigo);
  padding: 6px 14px;
  background: var(--vcaf-indigo-soft);
  border-radius: 999px;
  margin-bottom: 18px;
}

.vcaf-h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--vcaf-ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.vcaf-h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--vcaf-ink);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.vcaf-h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--vcaf-ink);
  margin: 0 0 12px;
}

.vcaf-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--vcaf-ink-soft);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 24px;
}

.vcaf-text { color: var(--vcaf-ink-soft); font-size: 16px; }
.vcaf-muted { color: var(--vcaf-muted); font-size: 14px; }

/* ---------- 3. HERO ---------- */
.vcaf-hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37,99,235,.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(225,29,72,.08), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

.vcaf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--vcaf-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--vcaf-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.vcaf-hero-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.vcaf-hero-title {
  background: linear-gradient(135deg, var(--vcaf-blue) 0%, var(--vcaf-indigo) 50%, var(--vcaf-rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vcaf-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--vcaf-line);
}

.vcaf-hero-stat { text-align: center; }

.vcaf-hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--vcaf-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.vcaf-hero-stat-lbl {
  font-size: 12px;
  color: var(--vcaf-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

/* ---------- 4. PIPELINE (6 HEXAGON STAGE CARDS) ---------- */
.vcaf-pipeline {
  position: relative;
  padding: 40px 0 20px;
}

.vcaf-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.vcaf-stage {
  position: relative;
  background: var(--vcaf-bg);
  border: 1px solid var(--vcaf-line);
  border-radius: var(--vcaf-radius-lg);
  padding: 32px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}

.vcaf-stage::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--stage-color, var(--vcaf-blue));
  border-radius: var(--vcaf-radius-lg) 0 0 var(--vcaf-radius-lg);
}

.vcaf-stage::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: var(--stage-color, var(--vcaf-blue));
  opacity: 0.06;
  border-radius: 50%;
  transition: opacity .3s ease;
}

.vcaf-stage:hover {
  transform: translateY(-6px);
  box-shadow: var(--vcaf-shadow-lg);
  border-color: var(--stage-color, var(--vcaf-blue));
}

.vcaf-stage:hover::after { opacity: 0.12; }

.vcaf-stage-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.vcaf-stage-num {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--stage-color, var(--vcaf-blue));
  color: white;
  font-weight: 800;
  font-size: 20px;
  border-radius: var(--vcaf-radius-md);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--stage-color, var(--vcaf-blue)) 40%, transparent);
}

.vcaf-stage-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stage-color, var(--vcaf-blue));
  font-weight: 700;
}

.vcaf-stage-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcaf-ink);
  margin: 4px 0 0;
  line-height: 1.25;
}

.vcaf-stage-purpose {
  font-size: 14px;
  color: var(--vcaf-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.vcaf-stage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.vcaf-stage-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--vcaf-ink-soft);
  line-height: 1.55;
}

.vcaf-stage-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  background: var(--stage-color, var(--vcaf-blue));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.vcaf-stage-output {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--stage-color, var(--vcaf-blue)) 10%, white);
  color: var(--stage-color, var(--vcaf-blue));
  border-radius: var(--vcaf-radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--stage-color, var(--vcaf-blue)) 25%, white);
}

/* Stage color bindings */
.vcaf-stage--blue   { --stage-color: var(--vcaf-blue); }
.vcaf-stage--green  { --stage-color: var(--vcaf-green); }
.vcaf-stage--yellow { --stage-color: var(--vcaf-yellow); }
.vcaf-stage--red    { --stage-color: var(--vcaf-red); }
.vcaf-stage--indigo { --stage-color: var(--vcaf-indigo); }
.vcaf-stage--rose   { --stage-color: var(--vcaf-rose); }

/* ---------- 5. PEDAGOGICAL FOUNDATIONS STRIP ---------- */
.vcaf-foundations {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border-radius: var(--vcaf-radius-lg);
  padding: 40px 32px;
  margin-top: 20px;
}

.vcaf-foundations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.vcaf-foundation-card {
  background: white;
  border: 1px solid var(--vcaf-line);
  border-radius: var(--vcaf-radius-md);
  padding: 20px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.vcaf-foundation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vcaf-shadow-md);
}

.vcaf-foundation-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vcaf-indigo), var(--vcaf-blue));
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.vcaf-foundation-icon svg { width: 22px; height: 22px; }

.vcaf-foundation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--vcaf-ink);
  margin-bottom: 4px;
}

.vcaf-foundation-sub {
  font-size: 12px;
  color: var(--vcaf-muted);
  line-height: 1.4;
}

/* ---------- 6. CQI FORMULA SHOWPIECE ---------- */
.vcaf-formula-wrap {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--vcaf-radius-xl);
  padding: 64px 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.vcaf-formula-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,.18), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(225,29,72,.15), transparent 40%);
  pointer-events: none;
}

.vcaf-formula-wrap > * { position: relative; }

.vcaf-formula-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.1);
  color: #E0E7FF;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.15);
}

.vcaf-formula-title {
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 40px;
}

.vcaf-formula {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 12px;
  font-family: 'Georgia', 'Cambria', serif;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.8;
  color: #F1F5F9;
  padding: 28px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--vcaf-radius-lg);
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.vcaf-formula-cqi {
  font-weight: 800;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vcaf-formula-eq { color: #94A3B8; margin: 0 2px; }
.vcaf-formula-op { color: #64748B; margin: 0 4px; }

.vcaf-formula-term {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
}

.vcaf-formula-coef { color: #FBBF24; font-weight: 700; }
.vcaf-formula-var  { color: white; font-weight: 700; font-style: italic; }

.vcaf-formula-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: #CBD5E1;
}

.vcaf-formula-legend span {
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ---------- 7. WEIGHT BARS ---------- */
.vcaf-weights {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vcaf-weight-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  gap: 18px;
  align-items: center;
}

.vcaf-weight-label {
  font-weight: 700;
  color: var(--vcaf-ink);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vcaf-weight-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--weight-color, var(--vcaf-blue));
  flex: 0 0 auto;
}

.vcaf-weight-track {
  position: relative;
  height: 14px;
  background: var(--vcaf-bg-tint);
  border-radius: 999px;
  overflow: hidden;
}

.vcaf-weight-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--weight-color, var(--vcaf-blue)), color-mix(in srgb, var(--weight-color, var(--vcaf-blue)) 70%, white));
  border-radius: 999px;
  width: var(--weight-pct, 0%);
  transition: width .8s ease;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--weight-color, var(--vcaf-blue)) 30%, transparent);
}

.vcaf-weight-pct {
  text-align: right;
  font-weight: 800;
  font-size: 16px;
  color: var(--vcaf-ink);
}

.vcaf-weight-why {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--vcaf-muted);
  padding-left: 24px;
  margin-top: -6px;
  font-style: italic;
  line-height: 1.5;
}

.vcaf-weight-row--accuracy   { --weight-color: var(--vcaf-blue); }
.vcaf-weight-row--clarity    { --weight-color: var(--vcaf-green); }
.vcaf-weight-row--structure  { --weight-color: var(--vcaf-yellow); }
.vcaf-weight-row--engagement { --weight-color: var(--vcaf-red); }
.vcaf-weight-row--relevance  { --weight-color: var(--vcaf-indigo); }
.vcaf-weight-row--language   { --weight-color: var(--vcaf-rose); }

/* ---------- 8. RUBRIC ACCORDION ---------- */
.vcaf-rubric {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.vcaf-rubric-item {
  background: white;
  border: 1px solid var(--vcaf-line);
  border-radius: var(--vcaf-radius-lg);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}

.vcaf-rubric-item:hover {
  box-shadow: var(--vcaf-shadow-sm);
  border-color: var(--rubric-color, var(--vcaf-blue));
}

.vcaf-rubric-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  transition: background .25s ease;
}

.vcaf-rubric-head:hover { background: var(--vcaf-bg-soft); }

.vcaf-rubric-badge {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rubric-color, var(--vcaf-blue));
  color: white;
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--rubric-color, var(--vcaf-blue)) 35%, transparent);
}

.vcaf-rubric-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--vcaf-ink);
}

.vcaf-rubric-weight {
  font-size: 13px;
  color: var(--rubric-color, var(--vcaf-blue));
  background: color-mix(in srgb, var(--rubric-color, var(--vcaf-blue)) 12%, white);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-right: 10px;
}

.vcaf-rubric-arrow {
  width: 20px; height: 20px;
  color: var(--vcaf-muted);
  transition: transform .3s ease;
}

.vcaf-rubric-item[data-open="true"] .vcaf-rubric-arrow { transform: rotate(180deg); }

.vcaf-rubric-body {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vcaf-rubric-tier {
  padding: 16px 18px;
  border-radius: var(--vcaf-radius-md);
  border-left: 4px solid var(--tier-color);
  background: var(--tier-bg);
}

.vcaf-rubric-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vcaf-rubric-tier-score {
  font-weight: 800;
  font-size: 14px;
  color: var(--tier-color);
}

.vcaf-rubric-tier-verdict {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tier-color);
}

.vcaf-rubric-tier-desc {
  font-size: 13px;
  color: var(--vcaf-ink-soft);
  line-height: 1.55;
}

.vcaf-tier--poor      { --tier-color: var(--vcaf-red);    --tier-bg: var(--vcaf-red-soft); }
.vcaf-tier--average   { --tier-color: var(--vcaf-yellow); --tier-bg: var(--vcaf-yellow-soft); }
.vcaf-tier--good      { --tier-color: var(--vcaf-blue);   --tier-bg: var(--vcaf-blue-soft); }
.vcaf-tier--excellent { --tier-color: var(--vcaf-green);  --tier-bg: var(--vcaf-green-soft); }

/* Rubric color bindings */
.vcaf-rubric-item--accuracy   { --rubric-color: var(--vcaf-blue); }
.vcaf-rubric-item--clarity    { --rubric-color: var(--vcaf-green); }
.vcaf-rubric-item--structure  { --rubric-color: var(--vcaf-yellow); }
.vcaf-rubric-item--engagement { --rubric-color: var(--vcaf-red); }
.vcaf-rubric-item--relevance  { --rubric-color: var(--vcaf-indigo); }
.vcaf-rubric-item--language   { --rubric-color: var(--vcaf-rose); }

/* ---------- 9. INTERACTIVE CQI CALCULATOR ---------- */
.vcaf-calc {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--vcaf-line);
  border-radius: var(--vcaf-radius-xl);
  padding: 40px 32px;
  box-shadow: var(--vcaf-shadow-md);
}

.vcaf-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.vcaf-calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vcaf-calc-slider-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 14px;
  align-items: center;
}

.vcaf-calc-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--vcaf-ink);
}

.vcaf-calc-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--vcaf-bg-tint);
  outline: none;
  cursor: pointer;
}

.vcaf-calc-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--slider-color, var(--vcaf-blue));
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--slider-color, var(--vcaf-blue)) 40%, transparent);
  transition: transform .15s ease;
}

.vcaf-calc-input::-webkit-slider-thumb:hover { transform: scale(1.15); }

.vcaf-calc-input::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--slider-color, var(--vcaf-blue));
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--slider-color, var(--vcaf-blue)) 40%, transparent);
}

.vcaf-calc-val {
  font-weight: 800;
  font-size: 18px;
  color: var(--slider-color, var(--vcaf-blue));
  text-align: center;
}

.vcaf-calc-display {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: var(--vcaf-radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}

.vcaf-calc-display::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(79,70,229,.2), transparent 70%);
}

.vcaf-calc-display > * { position: relative; }

.vcaf-calc-score-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94A3B8;
  margin-bottom: 10px;
}

.vcaf-calc-score {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #60A5FA, #A78BFA, #F472B6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.vcaf-calc-score-unit { font-size: 32px; color: #94A3B8; margin-left: 4px; }

.vcaf-calc-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}

.vcaf-calc-verdict--publish { background: var(--vcaf-green); color: white; }
.vcaf-calc-verdict--revise  { background: var(--vcaf-yellow); color: var(--vcaf-yellow-deep); }
.vcaf-calc-verdict--reject  { background: var(--vcaf-red); color: white; }

/* Slider color bindings */
.vcaf-calc-slider-row--accuracy   { --slider-color: var(--vcaf-blue); }
.vcaf-calc-slider-row--clarity    { --slider-color: var(--vcaf-green); }
.vcaf-calc-slider-row--structure  { --slider-color: var(--vcaf-yellow); }
.vcaf-calc-slider-row--engagement { --slider-color: var(--vcaf-red); }
.vcaf-calc-slider-row--relevance  { --slider-color: var(--vcaf-indigo); }
.vcaf-calc-slider-row--language   { --slider-color: var(--vcaf-rose); }

/* ---------- 10. PUBLISHING VERDICT CARDS ---------- */
.vcaf-verdicts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.vcaf-verdict-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--vcaf-radius-lg);
  background: white;
  border: 2px solid var(--verdict-color);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.vcaf-verdict-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--verdict-color);
}

.vcaf-verdict-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--verdict-color) 20%, transparent);
}

.vcaf-verdict-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--verdict-color);
  color: white;
  border-radius: 50%;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--verdict-color) 40%, transparent);
}

.vcaf-verdict-icon svg { width: 32px; height: 32px; }

.vcaf-verdict-threshold {
  font-size: 32px;
  font-weight: 900;
  color: var(--verdict-color);
  line-height: 1;
  margin-bottom: 6px;
}

.vcaf-verdict-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--vcaf-ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.vcaf-verdict-desc {
  font-size: 14px;
  color: var(--vcaf-muted);
  line-height: 1.5;
}

.vcaf-verdict--publish { --verdict-color: var(--vcaf-green); }
.vcaf-verdict--revise  { --verdict-color: var(--vcaf-yellow); }
.vcaf-verdict--reject  { --verdict-color: var(--vcaf-red); }

/* ---------- 11. QUALITY BADGES SHOWCASE ---------- */
.vcaf-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.vcaf-badge {
  position: relative;
  aspect-ratio: 1;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: white;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--badge-color) 35%, transparent);
  background: conic-gradient(
    from 0deg,
    var(--badge-color) 0deg,
    color-mix(in srgb, var(--badge-color) 60%, white) 120deg,
    var(--badge-color) 240deg,
    color-mix(in srgb, var(--badge-color) 80%, black) 360deg
  );
  transition: transform .4s ease;
}

.vcaf-badge:hover { transform: scale(1.04) rotate(3deg); }

.vcaf-badge::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--badge-color) 90%, black);
  z-index: 0;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.45),
    inset 0 -2px 6px rgba(255, 255, 255, 0.18),
    inset 0 0 24px rgba(0, 0, 0, 0.25);
}

.vcaf-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: none;
  z-index: 1;
  pointer-events: none;
}

.vcaf-badge > * { position: relative; z-index: 2; }

.vcaf-badge-icon {
  width: 44px; height: 44px;
  margin-bottom: 10px;
}

.vcaf-badge-icon svg {
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.4))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.vcaf-badge-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 6px;
  max-width: 78%;
  text-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.vcaf-badge-sub {
  font-size: 9px;
  opacity: 0.98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 72%;
  margin: 0 auto;
  text-align: center;
  word-spacing: 0.5px;
  font-weight: 700;
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.vcaf-badge--originality { --badge-color: #059669; }
.vcaf-badge--expert      { --badge-color: #6366F1; }
.vcaf-badge--a11y        { --badge-color: #D97706; }
.vcaf-badge--cqi         { --badge-color: #E11D48; }

/* ---------- 12. PUBLIC QUALITY LEDGER ---------- */
.vcaf-ledger {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border-radius: var(--vcaf-radius-xl);
  padding: 48px 32px;
  border: 1px solid var(--vcaf-line);
  box-shadow: var(--vcaf-shadow-md);
}

.vcaf-ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.vcaf-ledger-stat {
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: var(--vcaf-radius-lg);
  border: 1px solid var(--vcaf-line);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.vcaf-ledger-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--vcaf-shadow-lg);
}

.vcaf-ledger-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--stat-color, var(--vcaf-blue)), color-mix(in srgb, var(--stat-color, var(--vcaf-blue)) 60%, white));
}

.vcaf-ledger-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  color: var(--stat-color, var(--vcaf-blue));
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.vcaf-ledger-num-unit { font-size: 0.55em; color: var(--vcaf-muted); margin-left: 2px; }

.vcaf-ledger-lbl {
  font-size: 12px;
  color: var(--vcaf-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  line-height: 1.4;
}

.vcaf-ledger-stat--cqi        { --stat-color: var(--vcaf-blue); }
.vcaf-ledger-stat--above      { --stat-color: var(--vcaf-green); }
.vcaf-ledger-stat--revision   { --stat-color: var(--vcaf-yellow); }
.vcaf-ledger-stat--archived   { --stat-color: var(--vcaf-red); }
.vcaf-ledger-stat--total      { --stat-color: var(--vcaf-indigo); }
.vcaf-ledger-stat--updated    { --stat-color: var(--vcaf-rose); }

.vcaf-ledger-footnote {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--vcaf-muted);
  font-style: italic;
}

/* ---------- 13. SLA TIMELINE TABLE ---------- */
.vcaf-sla {
  margin-top: 36px;
  overflow-x: auto;
  border-radius: var(--vcaf-radius-lg);
  border: 1px solid var(--vcaf-line);
  background: white;
}

.vcaf-sla-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.vcaf-sla-table thead {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: white;
}

.vcaf-sla-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.vcaf-sla-table td {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--vcaf-ink-soft);
  border-top: 1px solid var(--vcaf-line);
}

.vcaf-sla-table tbody tr { transition: background .2s ease; }
.vcaf-sla-table tbody tr:hover { background: var(--vcaf-bg-soft); }

.vcaf-sla-stage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--vcaf-ink);
}

.vcaf-sla-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sla-color, var(--vcaf-blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sla-color, var(--vcaf-blue)) 20%, transparent);
}

.vcaf-sla-time {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-weight: 700;
  color: var(--vcaf-indigo);
  background: var(--vcaf-indigo-soft);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.vcaf-sla-row--1 { --sla-color: var(--vcaf-blue); }
.vcaf-sla-row--2 { --sla-color: var(--vcaf-green); }
.vcaf-sla-row--3 { --sla-color: var(--vcaf-yellow); }
.vcaf-sla-row--4 { --sla-color: var(--vcaf-red); }
.vcaf-sla-row--5 { --sla-color: var(--vcaf-indigo); }
.vcaf-sla-row--6 { --sla-color: var(--vcaf-rose); }

/* ---------- 14. POST-PUBLISH LOOP DIAGRAM ---------- */
.vcaf-loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
  position: relative;
}

.vcaf-loop-node {
  background: white;
  border: 2px solid var(--vcaf-line);
  border-radius: var(--vcaf-radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}

.vcaf-loop-node:hover {
  border-color: var(--vcaf-rose);
  transform: translateY(-4px);
}

.vcaf-loop-node-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vcaf-rose), var(--vcaf-red));
  color: white;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(225,29,72,.3);
}

.vcaf-loop-node-icon svg { width: 24px; height: 24px; }

.vcaf-loop-node-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--vcaf-ink);
  margin-bottom: 6px;
}

.vcaf-loop-node-desc {
  font-size: 13px;
  color: var(--vcaf-muted);
  line-height: 1.5;
}

/* ---------- 15. ACCESSIBILITY COMMITMENT ---------- */
.vcaf-a11y {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 1px solid #FDE68A;
  border-radius: var(--vcaf-radius-xl);
  padding: 48px 32px;
  margin-top: 20px;
}

.vcaf-a11y-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.vcaf-a11y-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(217,119,6,.3);
  flex: 0 0 auto;
}

.vcaf-a11y-icon svg { width: 32px; height: 32px; }

.vcaf-a11y-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vcaf-a11y-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--vcaf-radius-md);
  border: 1px solid #FDE68A;
  font-size: 14px;
  color: var(--vcaf-ink-soft);
  line-height: 1.5;
}

.vcaf-a11y-check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: #D97706;
  color: white;
  border-radius: 50%;
  margin-top: 1px;
}

.vcaf-a11y-check svg { width: 12px; height: 12px; }

/* ---------- 16. INTEGRITY COMMITMENTS ---------- */
.vcaf-integrity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.vcaf-integrity-card {
  background: white;
  border-radius: var(--vcaf-radius-lg);
  padding: 28px 24px;
  border-left: 5px solid var(--int-color, var(--vcaf-indigo));
  box-shadow: var(--vcaf-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.vcaf-integrity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vcaf-shadow-md);
}

.vcaf-integrity-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vcaf-integrity-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--int-color, var(--vcaf-indigo)) 12%, white);
  color: var(--int-color, var(--vcaf-indigo));
  border-radius: 10px;
}

.vcaf-integrity-card-icon svg { width: 20px; height: 20px; }

.vcaf-integrity-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vcaf-ink);
}

.vcaf-integrity-card-body {
  font-size: 14px;
  color: var(--vcaf-ink-soft);
  line-height: 1.6;
}

.vcaf-int--1 { --int-color: var(--vcaf-blue); }
.vcaf-int--2 { --int-color: var(--vcaf-green); }
.vcaf-int--3 { --int-color: var(--vcaf-yellow); }
.vcaf-int--4 { --int-color: var(--vcaf-red); }
.vcaf-int--5 { --int-color: var(--vcaf-indigo); }
.vcaf-int--6 { --int-color: var(--vcaf-rose); }

/* ---------- 17. CLOSING TRUST STATEMENT ---------- */
.vcaf-closing {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #312E81 100%);
  color: white;
  border-radius: var(--vcaf-radius-xl);
  margin: 60px auto 80px;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.vcaf-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(96,165,250,.18), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(244,114,182,.15), transparent 45%);
  pointer-events: none;
}

.vcaf-closing > * { position: relative; }

.vcaf-closing h2 {
  color: white;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 18px;
}

.vcaf-closing p {
  color: #CBD5E1;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- 18. SECTION HEADERS ---------- */
.vcaf-section-head {
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- 19. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 768px) {
  .vcaf-section { padding: 60px 20px; }
  .vcaf-hero { padding: 80px 20px 60px; }
  .vcaf-hero-stats { gap: 28px; }

  .vcaf-pipeline-grid { grid-template-columns: 1fr; gap: 20px; }

  .vcaf-calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .vcaf-calc-slider-row { grid-template-columns: 110px 1fr 36px; gap: 10px; }
  .vcaf-calc-label { font-size: 13px; }

  .vcaf-weight-row { grid-template-columns: 130px 1fr 48px; gap: 12px; }
  .vcaf-weight-label { font-size: 13px; }

  .vcaf-rubric-body { grid-template-columns: 1fr; }
  .vcaf-rubric-head { padding: 16px 18px; }
  .vcaf-rubric-title { font-size: 15px; }

  .vcaf-verdicts { grid-template-columns: 1fr; }

  .vcaf-formula-wrap { padding: 40px 20px; }
  .vcaf-formula { font-size: 16px; padding: 20px 14px; }

  .vcaf-ledger { padding: 32px 20px; }
  .vcaf-closing { padding: 60px 24px; margin: 40px 16px 60px; }

  .vcaf-a11y { padding: 32px 20px; }
  .vcaf-a11y-head { gap: 14px; }
}

@media (max-width: 480px) {
  .vcaf-hero-stats { flex-direction: column; gap: 20px; }
  .vcaf-calc-score { font-size: 56px; }
  .vcaf-badge { max-width: 200px; }
  .vcaf-stage { padding: 24px 20px; }
  .vcaf-weight-row { grid-template-columns: 1fr; gap: 6px; }
  .vcaf-weight-pct { text-align: left; }
}

/* ---------- 20. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .vcaf-page *,
  .vcaf-page *::before,
  .vcaf-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .vcaf-badge:hover { transform: none; }
  .vcaf-stage:hover { transform: none; }
}

/* ---------- 21. PRINT STYLES ---------- */
@media print {
  .vcaf-hero, .vcaf-closing { background: white !important; color: black !important; }
  .vcaf-hero-title, .vcaf-calc-score { -webkit-text-fill-color: black !important; }
  .vcaf-calc, .vcaf-formula-wrap { background: white !important; border: 1px solid #333 !important; }
}

/* ---------- 22. END OF VCAF STYLESHEET ---------- */
