/* ============================================
   1. Reset & Base
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #2b2b38;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

em {
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================
   2. Variables
   ============================================ */
:root {
  --purple-dark: #5b4bdb;
  --purple: #6c4dff;
  --purple-light: #a78bfa;
  --purple-bg: #f3efff;
  --orange: #f5a524;
  --text-dark: #2b2b38;
  --text-muted: #6a6a7c;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(61, 31, 156, 0.1);
  --max-width: 820px;

  /* Type scale */
  --fs-hero: 3rem;
  --fs-hero-sm: 2.5rem;
  --fs-section: 2rem;
  --fs-section-sm: 1.75rem;
  --fs-card-title: 1.3rem;
  --fs-body: 1rem;
  --fs-caption: 0.85rem;

  /* Spacing scale */
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
}

/* ============================================
   3. Layout helpers
   ============================================ */
.page {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

.divider {
  border: none;
  border-top: 1px solid #e4e0f5;
  max-width: var(--max-width);
  margin: 0 auto;
}

.accent-bar--bottom {
  width: 100%;
  height: 10px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple-light));
}

/* ============================================
   4. Top bar
   ============================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--purple-dark);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 20px;
}

/* ============================================
   5. Media frame (image placeholder styling)
   ============================================ */
.media-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--purple-bg);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   6. Hero Section
   ============================================ */
.hero {
  padding: var(--space-lg) 0 var(--space-md);
}

.hero__headline {
  font-size: var(--fs-hero-sm);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.hero__subtext {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.hero__media {
  aspect-ratio: 16 / 9;
  max-width: 450px;
  margin: 0 auto;
}

/* ============================================
   7. Section titles
   ============================================ */
.section__title {
  font-size: var(--fs-section-sm);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.section__title--purple {
  color: var(--purple);
}

.section__title--small {
  font-size: var(--fs-body);
  color: var(--text-dark);
  margin-top: 8px;
}

.section__subtext {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-body);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

/* ============================================
   8. Card rows (Three C's, solutions)
   ============================================ */
.card-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  flex: 1;
  text-align: center;
}

.card__media {
  aspect-ratio: 4 / 4;
  margin-bottom: 12px;
}

.card__title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--purple-dark);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-caption);
  text-align: center;
}

.card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 8px;
  font-size: var(--fs-card-title);
}

.card__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================
   9. Stat copy + chart images (hover/focus dropdown)
   ============================================ */
.stat-trigger {
  text-align: center;
}

.stat-copy {
  display: inline-block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--purple-dark);
  text-decoration: underline;
  max-width: 650px;
  margin: 0 auto 8px;
  cursor: pointer;
}

.stat-copy:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 6px;
  border-radius: 6px;
}

/* Collapsed by default; grid-template-rows 0fr -> 1fr animates to the
   panel's natural height without a fixed max-height guess. */
.chart-dropdown {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 300ms ease, opacity 250ms ease;
}

.stat-trigger:hover .chart-dropdown,
.stat-trigger:focus-within .chart-dropdown {
  grid-template-rows: 1fr;
  opacity: 1;
}

.chart-dropdown__inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  transform: translateY(-10px);
  transition: transform 300ms ease;
}

.stat-trigger:hover .chart-dropdown__inner,
.stat-trigger:focus-within .chart-dropdown__inner {
  transform: translateY(0);
}

.chart-image {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.chart-image img {
  width: 100%;
}

.caption-text {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

/* ============================================
   12. Hidden problem comparison images
   ============================================ */
.hidden-problem-image {
  margin: 0 auto var(--space-sm);
}

.hidden-problem-image--compact {
  max-width: 600px;
}

.hidden-problem-image--compact-sm {
  max-width: 380px;
}

/* ============================================
   13. Purple callouts (questions + final)
   ============================================ */
.callout {
  background-color: var(--purple);
  border-radius: var(--radius);
  padding: var(--space-md);
  color: #ffffff;
  text-align: center;
}

.callout__heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.callout__body {
  font-size: var(--fs-body);
  max-width: 600px;
  margin: 0 auto;
}

.callout__list {
  display: inline-block;
  text-align: left;
  font-size: var(--fs-body);
}

.callout__list li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.callout__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.highlight {
  background-color: var(--orange);
  color: var(--purple-dark);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* ============================================
   14. Solution cards
   ============================================ */
.card--solution {
  text-align: center;
}

/* ============================================
   15. Case study / testimonial
   ============================================ */
.case-study {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.case-study__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.case-study__portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 3px var(--purple);
}

.case-study__quote-block {
  text-align: center;
}

.case-study__quote {
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.case-study__author {
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.case-study__statement-row {
  border-top: 1px solid var(--purple-bg);
  padding-top: 16px;
}

.case-study__statement {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--purple-dark);
}

/* ============================================
   15b. References
   ============================================ */
.references__list {
  max-width: 700px;
  margin: 0 auto;
}

.references__item {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  padding-left: 24px;
  text-indent: -24px;
  margin-bottom: 14px;
  word-break: break-word;
}

.references__item a {
  color: var(--purple-dark);
  text-decoration: underline;
}

/* ============================================
   16. Tablet & Desktop (768px and up)
   ============================================ */
@media (min-width: 768px) {
  .hero__headline {
    font-size: var(--fs-hero);
  }

  .section__title {
    font-size: var(--fs-section);
  }

  .section__title--small {
    font-size: 1.2rem;
  }

  .card-row {
    flex-direction: row;
  }

  .case-study__top {
    flex-direction: row;
    align-items: flex-start;
  }

  .case-study__quote-block {
    text-align: left;
  }
}

/* ============================================
   17. Large desktop refinements
   ============================================ */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .callout {
    padding: var(--space-lg);
  }
}
