/* =========================
   Tokens / base
   ========================= */
:root{
  --content-max: 1095px;
  --gutter: 40px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;

  --ink: #171314;                 /* dark ink for headings */
  --ink-sub: #3a3436;
  --lavender-50: #f3ecff;         /* card fill, subtle */
  --lavender-100: #e9ddff;        /* card stroke */
  --banner-bg: #2c2133;           /* purple banner base */
  --rc-bg: var(--banner-bg);

  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 6px 18px rgba(23,19,20,0.08);
}

/* RC Hero */
.rc-hero {
  background-color: var(--rc-bg);
  background-image: url("/assets/rc/banner-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 24px 64px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  position: relative;
}

.rc-hero .rc-close {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  background: #A68EDD !important;
  border: 1px solid rgba(0,0,0,.55) !important;
  color: #0f1012 !important;
  padding: 8px 14px 8px 12px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  transition: all 0.2s ease !important;
}

.rc-hero .rc-close:hover {
  background: #d6c7ff;
  transform: scale(1.05);
}

.rc-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: none;
}

@media (max-width: 768px) {
  .rc-hero {
    padding: 60px 20px 40px;
  }
  
  .rc-hero h1 {
    font-size: 2.5rem;
  }
  
  .rc-hero .rc-close {
    top: 16px;
    right: 16px;
    padding: 8px 14px 8px 12px;
    font-size: 14px;
    font-weight: 600;
  }
}

/* RC Sections */
.rc-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.rc-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  margin-top: 0;
  text-align: left;
  line-height: 1.2;
}

.rc-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: left;
}

/* Challenge section - gray box */
.rc-section ul {
  background: #f8f8f8;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
  list-style: none;
}

.rc-section li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-sub);
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}

.rc-section li:before {
  content: "•";
  color: var(--banner-bg);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.rc-section li:last-child {
  margin-bottom: 0;
}

/* Impact cards */
.rc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.rc-card {
  background: var(--lavender-50);
  border: 1px solid var(--lavender-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.rc-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--banner-bg);
  margin: 0 0 12px 0;
}

.rc-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-sub);
  margin: 0;
}

/* Global layout containers */
.section { 
  max-width: var(--content-max); 
  margin: 0 auto; 
  padding: 60px var(--gutter); 
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  text-align: left;
}

.block .block__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }

html, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}

/* =========================
   Banner (full-bleed + rounded bottom)
   ========================= */
.rc-banner{
  position: relative;
  height: 275px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: var(--banner-bg);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  overflow: hidden; /* ensures art doesn't spill past rounded corners */
}

/* Background art image */
.rc-banner__art{
  position: absolute; inset: 0;
  background: url("assets/rc/banner-bg.png") center/cover no-repeat;
  opacity: 1; /* keep full strength like reference */
}

/* Close pill - match AI case study styling with lilac color */
.rc-close{
  position: fixed !important; 
  top: 16px !important;
  right: 16px !important;
  z-index: 9999 !important;
  display: inline-flex !important; 
  align-items: center !important; 
  gap: 8px !important;
  padding: 8px 14px 8px 12px !important;
  font-weight: 600 !important; 
  font-size: 14px !important;
  line-height: 1 !important;
  background: #A68EDD !important;
  color: #0f1012 !important;
  border: 1px solid rgba(0,0,0,.55) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  transition: all 0.25s ease !important;
}
.rc-close:hover {
  background: #d6c7ff;
  transform: scale(1.05);
}
.rc-close span{ font-size: 16px; line-height: 1; }

/* =========================
   Title + section spacing
   ========================= */
.intro { padding-top: var(--space-4); padding-bottom: var(--space-2); }
.page-title{
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.impact { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.impact > h2,
.block > .block__inner > h2{
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  margin: 0 0 var(--space-3);
}

/* =========================
   Impact cards – equal height, pastel, stroked, shadow
   ========================= */
.impact__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.card{
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--lavender-50);
  border: 1px solid var(--lavender-100);
  box-shadow: var(--shadow-soft);
  height: auto;
  min-height: 120px;
}

/* Card text styling for better wrapping */
.card .card__value {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.card .card__label {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.4;
  color: var(--text-muted);
  word-wrap: break-word;
  hyphens: auto;
}

/* ----- Responsive breakpoints ----- */
@media (max-width: 980px){
  /* 2-up grid on tablets */
  .impact__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px){
  /* 1-up stack on phones */
  .impact__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Let cards shrink to content so they don't look like tall columns */
  .card{
    min-height: 0;            /* remove desktop floor */
    padding: 20px;            /* slightly tighter padding */
    border-radius: 16px;
  }
  /* Typographic scale for small screens */
  .card h3{ font-size: 1rem; }
  .card p, .card li{ font-size: 0.95rem; line-height: 1.55; }
  /* Keep bullets tidy */
  .card ul{ padding-left: 1.05em; margin: 6px 0 0; }
}

/* Optional: add a subtle divider when stacked for extra clarity */
@media (max-width: 640px){
  .card:not(:last-child){ box-shadow: 0 4px 12px rgba(23,19,20,.06); }
}

.card .kicker{
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .9; font-size: 14px;
}
.card .metric{
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.card p, .card li{
  color: var(--ink-sub); font-size: 14px; line-height: 1.5; margin: 0;
}
.card ul{ margin: 0; padding-left: 1.05em; }

/* =========================
   Challenge box style
   ========================= */
#challenge{ padding: var(--space-4) 0; }
.bullets{ margin: 0; padding-left: 1.1em; }
.challenge-box{
  background: #f6f6f7;
  border: 1px solid #e8e8ea;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

/* ===== Challenge (light grey card like the reference) ===== */
.challenge { 
  padding-top: 32px; 
  padding-bottom: 48px; 
}

.challenge h2{
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  margin: 0 0 24px;
}

.challenge__box{
  background: #f6f6f7;                /* soft grey */
  border: 1px solid #e8e8ea;           /* subtle stroke */
  border-radius: 16px;                  /* rounded corners */
  box-shadow: 0 6px 18px rgba(23,19,20,0.08); /* soft shadow */
  padding: 20px 24px;
}

.challenge__list{
  margin: 0;
  padding-left: 1.1em;                 /* tidy bullets */
}

.challenge__list li{
  font-size: 16px;
  line-height: 1.55;
  color: #3a3436;                       /* sub-ink */
  margin: 8px 0;
}

/* Challenge image styling */
.challenge-image {
  padding-top: 32px;
  padding-bottom: 32px;
}

.challenge__image {
  margin: 0;
}

/* White framed container with 26px padding */
.challenge__frame{
  background: #fff;
  border: 1px solid #eceaf8;
  border-radius: 16px;
  padding: 26px;               /* <- exact padding requested */
  box-shadow: 0 6px 18px rgba(23,19,20,0.08);
}

/* Prevent distortion: never set a fixed height; maintain aspect ratio */
.challenge__frame img{
  display: block;
  width: 100%;
  height: auto;                /* critical to avoid stretch */
  border-radius: 10px;         /* subtle rounding for the screenshot edge */
  object-fit: contain;         /* ensures no cropping if someone adds height later */
  transform: none !important;  /* Safety: kill any rogue transforms some tools add */
}

/* mobile breathing room */
@media (max-width: 720px){
  .challenge__box{ padding: 18px; border-radius: 14px; }
  .challenge__list li{ font-size: 15px; }
}

/* ===== My role & process (lavender box with bullets) ===== */
.role {
  padding-top: 48px;
  padding-bottom: 64px;
}

.role h2 {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  margin-bottom: 32px;
}

.role__box {
  background: #f3ecff;
  border: 1px solid #e9ddff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(23,19,20,0.08);
  padding: 26px;
}

.role__list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
}

.role__list li {
  font-size: 16px;
  line-height: 1.6;
  color: #3a3436;
  margin: 10px 0;
}

.role__list strong {
  font-weight: 700;
  color: #171314;
}

/* ===== Process Image ===== */
.process-image {
  padding-top: 32px;
  padding-bottom: 32px;
}

.process__image {
  text-align: center;
}

.process__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(23,19,20,0.08);
}

/* ===== Disclaimer (black italic text) ===== */
.disclaimer {
  padding-top: 32px;
  padding-bottom: 48px;
  text-align: center;
}

.disclaimer__text {
  font-style: italic;
  color: #171314;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Accessibility Table ===== */
.accessibility-table {
  background: #493c59 !important;
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;
  max-width: 1200px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.a11y-table {
  width: 100%;
}

.a11y-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 120px 2fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
}

.a11y-header > div {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a11y-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 120px 2fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.a11y-row:last-child {
  border-bottom: none;
}

/* Category Column */
.a11y-col-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.a11y-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.a11y-category-name {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

/* Progress Bars */
.a11y-col-before,
.a11y-col-after {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  flex: 1;
  min-width: 100px;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.before-bar::before {
  background: linear-gradient(90deg, #ffb6d1, #7c5252);
  width: 0;
}

.after-bar::before {
  background: linear-gradient(90deg, #d6ffb8, #67cc6c);
  width: 0;
}

.percentage {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  min-width: 35px;
}

/* Delta Column */
.a11y-col-delta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.delta-arrow {
  color: #67cc6c;
  font-size: 16px;
}

/* Improvements Column */
.a11y-col-improvements {
  color: #fff !important;
}

.wcag-ref {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.improvement-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.key-improvements {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

/* Animation */
.a11y-row.inview .before-bar::before {
  width: var(--before-width, 0%);
}

.a11y-row.inview .after-bar::before {
  width: var(--after-width, 0%);
}

/* Responsive */
@media (max-width: 768px) {
  .accessibility-table {
    padding: 20px;
  }
  
  .a11y-header,
  .a11y-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .a11y-header > div {
    font-size: 12px;
  }
  
  .a11y-col-category {
    flex-direction: row;
    text-align: left;
  }
  
  .a11y-icon {
    margin-right: 12px;
    margin-bottom: 0;
  }
}

/* -------------------------------- */
/* VISUAL DESIGN FLOW + USABILITY   */
/* -------------------------------- */
/* global section spacing (reduced by ~50px total) */
.section { 
  max-width: var(--content-max, 1095px);
  margin: 0 auto;
  padding: 30px 40px;   /* was 50px 40px, reduced by 20px more */
}

.section h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: #181118;
}

.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: #f6f2ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.usability__intro {
  margin-bottom: 32px;
}

.usability__intro p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #2a232f;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ensure this heading is visible */
.visual-flow > h2 { 
  display: block !important; 
  margin: 0 0 20px; 
  font-weight: 800;
  font-size: clamp(22px, 2.3vw, 32px);
}

/* Show & left-align the Fun Stuff heading */
.fun-stuff > h2{
  display:block;
  margin:0 0 20px;
  text-align:left;
  font-weight:800;
  font-size:clamp(22px,2.3vw,32px);
}

/* Fun Stuff intro text */
.fun-stuff__intro {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a232f;
  text-align: left;
  max-width: 1095px;
}

/* Fun Stuff: center columns and content */
.fun-stuff { 
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
.fun-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px !important; /* reduce vertical grid spacing */
  justify-items: center;   /* centers the content inside each column */
  align-items: start;
}
.fun-card{ display: flex; flex-direction: column; gap: 0; }

/* Titles below boxes - force them closer with transform */
.fun-card h3,
.fun-stuff .fun-card h3,
body .fun-card h3 {
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-44px) !important; /* Pull titles up by 44px (32px + 12px) */
  font-weight: 700;
  font-size: 1.1rem;
  white-space: normal; 
  overflow: visible; 
  color: #181118;
  text-align: center;
  min-height: 1.6em; /* titles line up even if one wraps */
}

/* Ensure no extra spacing on image wrapper */
.fun-card .fun-img-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Center align content in first card */
.fun-card:first-child .fun-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px; /* Add 20px padding from top */
}

.fun-card:first-child .fun-img-wrapper img {
  display: block;
  margin: 0 auto;
}
.fun-card .fun-desc{
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #2a232f;
  max-width: 48ch;     /* keeps it to a tidy two-ish lines */
}

/* Nuke any borders/inner shadows some resets add to images */
.fun-img-wrapper,
.fun-img-wrapper * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Keep only the outer card shadow; not on the image itself */
.fun-img-wrapper {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.fun-img-wrapper img {
  background: transparent !important;
}

/* Media frame: square & centered content */
.fun-img-wrapper{
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Images: centered, no outlines */
.fun-img-wrapper img{
  width: 90%; height: 90%; object-fit: contain;
  margin: 0 auto; border: 0 !important; outline: 0 !important; box-shadow: none !important;
}

/* Keep GIF smaller */
.fun-card--gif .fun-img-wrapper img{ width: 70%; height: 70%; }

/* Blur 'after' */
.blurred img{ filter: blur(5px); opacity: .95; }

/* Usability bullets */
.usability__list{
  margin:0 0 24px;
  padding-left:1.1em;
}

/* Gap between bullets and the image below */
.usability .image-wrapper{ 
  margin-top: 40px; 
}
.usability__list li{
  margin:8px 0;
  font-size:16px;
  line-height:1.6;
  color:#2a232f;
}

/* Learnings card style */
.learnings__list{
  background:#f3ecff;
  border:1px solid #e9ddff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(23,19,20,.08);
  padding:32px;
  margin:16px 0 0 0;
  list-style: none;
}
.learnings__list li{
  margin:12px 0;
  padding-left: 1.5em;
  font-size:16px; 
  line-height:1.6; 
  color:#2a232f;
  position: relative;
}
.learnings__list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2c2133;
}

/* NDA: hidden */
/* NDA disclaimer block */
.nda-note {
  background: #493c59; /* same purple tone */
  border-radius: 20px;
  padding: 40px 60px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1100px;
  margin: 60px auto;
}

.nda-note p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
  opacity: 0.9;
}

/* Optional tweak - make it visually breathe */
.nda-note {
  margin-top: 80px;
  margin-bottom: 80px;
}

/* Subtitle color (readable on purple) */
.rc-subtitle,
.rc-subtitle p,
.rc-uptitle {
  color: rgba(255, 255, 255, 0.68); /* lighter for contrast */
}

/* if you use that smaller caption under the H2: */
.rc-caption {
  color: rgba(255, 255, 255, 0.56);
}

/* table cell wrapper if needed */
.rc-metric { 
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px; 
}

.rc-metric-bars {
  --h: 8px;
  position: relative;
  width: min(340px, 38vw);
  height: var(--h);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);       /* track */
  overflow: hidden;
}

/* BEFORE bar (baseline) */
.rc-metric-bars .bar.before {
  position: absolute; inset: 0 auto 0 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg,#ffb6d1,#7c5252);
  opacity: .55;
}

/* AFTER bar (post-fix) sits on top */
.rc-metric-bars .bar.after {
  position: absolute; inset: 0 auto 0 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg,#d6ffb8,#67cc6c);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
  border-radius: inherit;
}

/* animate when in view */
.rc-metric-bars.inview .bar.before { animation: rcGrowBefore .9s cubic-bezier(.2,.8,.2,1) forwards; }
.rc-metric-bars.inview .bar.after  { animation: rcGrowAfter  1.2s cubic-bezier(.2,.8,.2,1) .15s forwards; }

@keyframes rcGrowBefore { from { width:0 } to { width: var(--before-w,0) } }
@keyframes rcGrowAfter  { from { width:0 } to { width: var(--after-w,0) } }

.bar__value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rc-metric-bars .bar.before,
  .rc-metric-bars .bar.after { transition: none; animation: none; }
}

/* Remove the purple bar completely */
.footer-accent, 
.page-accent, 
.bottom-rail, 
.accent-bar, 
.brand-rail, 
.purple-rail, 
.brand-strip, 
hr.divider {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Safety: if it's a lone full-width bar after the last section */
.section:last-of-type + div { display: none !important; }

/* Ensure footer aligns cleanly after it */
.site-footer {
  padding-top: 32px;
  padding-bottom: 48px;
}
.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #6c6472;
  text-align: left;         /* aligns with container */
  max-width: 1095px;        /* same width as content */
  margin-left: auto;
  margin-right: auto;
}

/* Responsive safety for NDA note */
@media (max-width: 900px){
  .nda-note{ margin-left: 40px; }  /* fall back to gutter */
}
@media (max-width: 600px){
  .nda-note{ margin-left: 24px; max-width: 46ch; }
}

/* Mobile stacking (unchanged) */
@media (max-width: 980px){ .fun-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .fun-grid{ grid-template-columns: 1fr; } }

/* Scroll-to-Top Button - 56px with aspect ratio */
.scroll-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* hidden until scroll */
  z-index: 9999;
  transition: all 0.3s ease;
  opacity: 0.8;
}
.scroll-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Icon fit - 56px with aspect ratio maintained */
.scroll-btn img {
  width: 56px;
  height: auto;
}

/* Responsive */
@media (max-width: 1200px){
  .a11y-row{ grid-template-columns: 220px 1fr 1fr 110px 320px; }
}
@media (max-width: 980px){
  .a11y-row{
    grid-template-columns: 1fr; gap: 10px;
    align-items: start;
  }
  .a11y-col--notes{ order: 5; }
  .a11y-col--delta{ order: 4; }
  .a11y-col--after{ order: 3; }
  .a11y-col--before{ order: 2; }
  .a11y-col--cat{ order: 1; }
}

/* ===== Vision & goal (four numbered lavender cards) ===== */
.vision {
  padding-top: 48px;
  padding-bottom: 64px;
}

.vision h2 {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  margin-bottom: 32px;
}

.vision__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  background: #f6f6f7;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border: 1px solid #e8e8ea;
  box-shadow: 0 6px 18px rgba(23,19,20,0.08);
}

.vision__card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  height: 100%;
}

.vision__card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #d1d1d3;
}

/* Stack number and title vertically */
.vision__heading{
  display: flex; flex-direction: column; gap: 4px;
  margin: 0; line-height: 1.2;
}

/* Consistent header block height so all cards line up even with wrap */
.vision__top{ min-height: 56px; display: flex; align-items: flex-start; }

/* Number style - larger and more prominent */
.vision__num{
  font-weight: 800; font-size: 32px; line-height: 1;
  color: #a78bfa;                 /* lighter purple to match reference */
  margin-right: 8px;
}

/* Title - bold and prominent */
.vision__title{
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: #171314;
  line-height: 1.3;
}

/* Body copy - clean and readable */
.vision__card > p{
  margin-top: 16px;
  font-size: 15px; line-height: 1.5; color: #3a3436;
  font-weight: 400;
}

/* Responsive stack on mobile */
@media (max-width: 900px) {
  .vision__grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }
  .vision__card:nth-child(2n)::after {
    display: none;
  }
  .vision__card:nth-child(odd)::after {
    right: 0;
  }
}
@media (max-width: 600px) {
  .vision__grid {
    grid-template-columns: 1fr;
  }
  .vision__card::after {
    display: none;
  }
}

/* Vision grid */
.rc .vision .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--column-gap);
}

/* Split layout: text | image */
.rc .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--tight-gap);      /* guarantees >= 12px gap */
  align-items: start;
}

/* Media */
.rc figure, .rc .figure { margin: 0; }
.rc img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Normalize widths of boxed rows */
.rc .impact .rail,
.rc .challenge .rail .card,
.rc .vision .rail .cards,
.rc .process .rail .card,
.rc .learn .rail .card,
.rc .disclaimer .rail .card {
  width: min(var(--content-max), calc(100% - var(--left-pad) - 24px));
}

/* Watermark/Disclaimer section at bottom only (non-sticky) */
.rc .watermark { position: static; margin: 40px auto 0; padding: 20px 0; }
.rc .watermark .disc {
  background: #3F2E54; color: #fff; border-radius: var(--radius); padding: 20px;
}
.rc .watermark .sig { margin-top: 16px; color: #cfc6da; font-size: 0.9rem; }

/* Headings & lists */
.rc h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; margin: 8px 0 16px; }
.rc h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 18px; }
.rc ul { padding-left: 1.1em; margin: .4em 0; }

/* === Accessibility Uplift (animated meters) === */
.rc .acc { margin-top: var(--section-gap); }
.rc .acc .header { margin-bottom: 16px; }
.rc .acc .card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; }

.rc .acc .row { 
  display: grid; 
  grid-template-columns: 220px 1fr 1fr; 
  gap: 12px; 
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e8def7;
}
.rc .acc .row:first-child { border-top: 0; }

.rc .acc .label { font-weight: 600; color: var(--ink); }

.rc .meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e9e3f4;
  overflow: hidden;
}
.rc .meter .fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: #6f58a8;
  border-radius: 999px;
  transition: width 900ms cubic-bezier(.2,.7,.2,1);
}
.rc .meter[data-variant="after"] .fill { background: #28a745; }

/* before/after numeric pills */
.rc .pill {
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1ecfa;
  display: inline-block;
  min-width: 42px;
  text-align: center;
}

/* two-up before / after block */
.rc .twoup { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: var(--column-gap); 
  align-items: start;
}
.rc .twoup figure { margin: 0; }
.rc .twoup img { width: 100%; height: auto; border-radius: 12px; }
.rc .caption { margin-top: 8px; font-weight: 700; text-align: center; }

/* tighten common vertical rhythm to match reference */
.rc .section h2 { margin-bottom: 14px; }
.rc .vision .cards { gap: 24px; }
.rc .card { padding: 16px 18px; }

/* subtle muted copy */
.rc .muted{opacity:.8; margin-top:-6px; margin-bottom:14px}

/* Accessibility meters */
.rc .acc .acc-table{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.rc .acc .row{
  background:var(--card-bg);
  border-radius:var(--radius);
  padding:14px 16px;
  display:grid;
  grid-template-columns: 240px 1fr 96px;
  align-items:center;
  gap:14px;
  box-sizing:border-box;
}
.rc .acc .label{font-weight:700}
.rc .acc .meter{
  position:relative; height:10px; border-radius:6px;
  background:#d7c9ef; overflow:hidden;
}
.rc .acc .fill{
  position:absolute; left:0; top:0; bottom:0;
  width:0; background:#5a3f80; border-radius:6px;
  transition:width .9s cubic-bezier(.22,.9,.26,1);
}
.rc .acc .nums{ font-variant-numeric: tabular-nums; text-align:right }

/* two-up */
.rc .twoup .grid2{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--column-gap);
}
.rc .twoup figure{ margin:0 }
.rc .twoup figcaption{ font-weight:700; margin:6px 0 10px }
@media (max-width:980px){
  .rc .acc .row{ grid-template-columns: 1fr; gap:8px }
  .rc .twoup .grid2{ grid-template-columns:1fr; }
}

