/* ==========================================================================
   BrandLens case study
   ========================================================================== */

/* --- Design tokens --- */
:root {
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --background: #ffffff;
  --color-background: #ffffff;
  --surface-alt: #fafafa;
  --border: #eaeaea;
  --brand: #7c3aed;
  --brand-soft: #ede9fe;
  --gradient-brand: linear-gradient(135deg, #a78bfa 0%, #7c3aed 55%, #6d28d9 100%);
  --gradient-hero: linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, rgba(124, 58, 237, 0) 55%);
  --dl-text-xs: 0.9375rem;
  --dl-text-sm: 1rem;
  --dl-text-base: 1.0625rem;
  --dl-text-lg: 1.1875rem;
  --dl-text-xl: 1.3125rem;
  --dl-eyebrow: 0.9375rem;
  --dl-label: 0.9375rem;
}

/* --- Base --- */
.bg-background {
  background-color: var(--background);
}

body,
.font-sans {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.font-display {
  font-family: var(--font-display) !important;
  font-weight: 600;
}

/* --- Typography scale (readable on case study pages) --- */
.min-h-screen {
  font-size: var(--dl-text-base);
}

.min-h-screen .text-xs {
  font-size: var(--dl-text-xs) !important;
  line-height: 1.5 !important;
}

.min-h-screen .text-sm {
  font-size: var(--dl-text-sm) !important;
  line-height: 1.55 !important;
}

.min-h-screen .text-base {
  font-size: var(--dl-text-base) !important;
  line-height: 1.65 !important;
}

.min-h-screen .text-lg {
  font-size: var(--dl-text-lg) !important;
  line-height: 1.65 !important;
}

.min-h-screen .text-xl {
  font-size: var(--dl-text-xl) !important;
  line-height: 1.5 !important;
}

@media (min-width: 768px) {
  .min-h-screen .md\:text-lg {
    font-size: 1.25rem !important;
    line-height: 1.65 !important;
  }

  .min-h-screen .md\:text-xl {
    font-size: 1.375rem !important;
    line-height: 1.6 !important;
  }

  .min-h-screen .md\:text-2xl {
    font-size: 1.625rem !important;
    line-height: 1.45 !important;
  }
}

.min-h-screen h2.font-display.text-4xl,
.min-h-screen .font-display.text-4xl.md\:text-5xl {
  font-size: clamp(2rem, 4.2vw, 2.875rem) !important;
}

.min-h-screen #thanks h2.font-display {
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
}

.cs-eyebrow {
  font-size: var(--dl-eyebrow);
  font-weight: 500;
}

.min-h-screen .surface-card.p-7 p.text-sm {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.min-h-screen .max-w-2xl.text-lg.text-muted-foreground {
  font-size: 1.1875rem !important;
}

h1.font-display.lg\:text-\[88px\] {
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
  letter-spacing: -0.03em;
}

.surface-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
}

/* --- Layout (Tailwind bundle gaps) --- */
.max-w-6xl,
.max-w-3xl {
  max-width: 1152px;
}

.pt-12 { padding-top: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-10 { margin-bottom: 2.5rem; }

@media (min-width: 768px) {
  .md\:pt-16 { padding-top: 4rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:py-20 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
}

/* --- Page structure --- */
.cs-hero-wash {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 640px;
  background: var(--gradient-hero);
}

.cs-section {
  padding-inline: 1.5rem;
  padding-block: 4rem;
}

.cs-section--hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

main > .cs-section:nth-of-type(even) {
  background: var(--surface-alt);
}

.cs-container {
  max-width: 1152px;
  margin-inline: auto;
}

.cs-container--narrow {
  max-width: 48rem;
  margin-inline: auto;
}

.cs-section-head {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.cs-eyebrow {
  color: var(--brand);
  letter-spacing: 0.14em;
}

.cs-thanks-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cs-section--thanks {
  padding-bottom: 5.5rem;
  text-align: center;
}

.cs-section--thanks .cs-section-head {
  margin-inline: auto;
  max-width: none;
}

.cs-thanks-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--color-foreground, #1b1b1b);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.cs-thanks-link:hover {
  background: var(--surface-alt);
  border-color: #d8d6d3;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .cs-section--thanks {
    padding-bottom: 6.5rem;
  }
}

.cs-prose {
  font-size: 1.125rem;
  line-height: 1.625;
  color: color-mix(in srgb, var(--color-foreground, #1b1b1b) 80%, transparent);
}

@media (min-width: 768px) {
  .cs-section {
    padding-block: 2.5rem;
  }

  .cs-section--hero {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .cs-section-head {
    margin-bottom: 3rem;
  }

  .cs-prose {
    font-size: 1.25rem;
    line-height: 1.7;
  }
}

/* --- Hero --- */
.hero-subtitle {
  color: var(--brand);
  font-weight: 500;
}

.hero-thesis {
  color: var(--color-foreground, #1b1b1b);
  letter-spacing: -0.01em;
}

.hero-stats {
  border-color: var(--border) !important;
  border-radius: 12px;
}

.hero-stats > div {
  padding: 0.85rem 1rem;
}

.hero-stat-num {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.hero-stat-label {
  margin-top: 0.15rem;
  font-size: var(--dl-label);
  color: var(--color-muted-foreground, #6b6b6f);
}

@media (min-width: 768px) {
  .hero-stats > div {
    padding: 0.85rem 1.15rem;
  }

  .hero-stat-num {
    font-size: 1.875rem;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-mockup {
  width: 64%;
  margin-inline: 0 auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hero-mockup-media {
  position: relative;
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  background: #f8f8fa;
}

.hero-mockup-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(27, 27, 27, 0.12);
  pointer-events: none;
  z-index: 1;
}

.hero-mockup-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  will-change: transform;
}

.hero-mockup:hover .hero-mockup-media img {
  transform: scale(1.03);
}

/* --- Principles --- */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.principle-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.15rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.principle-card:hover {
  border-color: rgba(124, 58, 237, 0.22);
  transform: translateY(-1px);
}

.principle-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  background: #1b1b1b;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.principle-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-foreground, #1b1b1b);
}

.principle-card p {
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-muted-foreground, #6b6b6f);
}

/* --- Card titles & prose emphasis --- */
h3.text-base.font-semibold.tracking-tight {
  font-size: 1.0625rem !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-foreground, #1b1b1b) !important;
}

.surface-card.p-7 > h3.text-base.font-semibold.tracking-tight {
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand);
}

#problem strong,
.cs-prose strong,
.opportunity-prose strong,
.philosophy-prose strong,
.bl-principle-row p strong {
  font-weight: 600;
  color: var(--color-foreground, #1b1b1b);
}

/* --- Product flow --- */
.product-flow-card {
  padding: 2rem;
}

.flow-surface.surface-card {
  border-color: var(--border);
}

.product-flow-scope .text-muted-foreground,
#how-ai-works .text-muted-foreground {
  color: var(--color-foreground, #1b1b1b);
}

.product-flow-scope ol > li > span.text-xs {
  color: var(--brand) !important;
  font-weight: 400;
}

/* --- AI flow --- */
.ai-flow-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28rem;
}

.ai-flow-list li {
  position: relative;
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-foreground, #1b1b1b);
  border: 1px solid var(--color-border, #e7e5e6);
  border-radius: 14px;
  background: var(--color-secondary, #f6f5f3);
}

.ai-flow-list li:not(:last-child) {
  margin-bottom: 1.75rem;
}

.ai-flow-list li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  transform: translateX(-50%);
  font-size: 1rem;
  opacity: 0.45;
}

/* --- Goals timeline --- */
.goals-timeline {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
}

.goals-timeline::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 2px dotted #d4d4d4;
}

.goals-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.goals-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 1.75rem;
}

.goals-timeline-item:last-child {
  padding-bottom: 0;
}

.goals-timeline-marker {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #6b6b6f;
  letter-spacing: 0.02em;
}

.goals-timeline-content p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(27, 27, 27, 0.88);
}

@media (min-width: 768px) {
  .goals-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .goals-timeline-item {
    grid-template-columns: 1fr 2.75rem 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
  }

  .goals-timeline-marker {
    grid-column: 2;
    grid-row: 1;
  }

  .goals-timeline-item:nth-child(odd) .goals-timeline-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .goals-timeline-item:nth-child(even) .goals-timeline-content {
    grid-column: 3;
    grid-row: 1;
  }
}

/* --- Comparison table --- */
.shift-compare {
  overflow-x: auto;
}

.shift-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.shift-compare-table th,
.shift-compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border, #e7e5e6);
}

.shift-compare-table thead th {
  font-size: var(--dl-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b6b6f);
  background: var(--color-secondary, #f6f5f3);
}

.shift-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.shift-compare-table th:first-child,
.shift-compare-table td:first-child {
  min-width: 10rem;
  font-weight: 500;
  color: var(--color-foreground, #1b1b1b);
}

.shift-compare-table td:nth-child(2) {
  color: var(--color-muted-foreground, #6b6b6f);
}

.shift-compare-table td:nth-child(3),
.shift-compare-table th:nth-child(3) {
  font-weight: 500;
  color: var(--brand);
}

.shift-compare-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: var(--dl-eyebrow);
  background: var(--color-secondary, #f6f5f3);
  color: var(--color-muted-foreground, #6b6b6f);
}

.shift-compare-badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (min-width: 768px) {
  .shift-compare-table th,
  .shift-compare-table td {
    padding: 1.125rem 1.5rem;
  }

  .shift-compare-table th:not(:first-child),
  .shift-compare-table td:not(:first-child) {
    width: 28%;
  }
}

/* --- Role --- */
.role-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .role-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.role-block-title {
  margin: 0 0 1rem;
  font-size: var(--dl-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b6b6f);
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .role-list {
    columns: 2;
  }
}

.role-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(27, 27, 27, 0.88);
  break-inside: avoid;
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

.role-tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.role-tool {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.role-tool-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.role-tool-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.role-tool-icon--stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 5px;
}

.role-tool-icon--stack svg {
  width: 16px;
  height: 16px;
}

.role-tool-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.role-tool-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground, #1b1b1b);
  line-height: 1.3;
}

.role-tool-label {
  font-size: var(--dl-label);
  color: var(--color-muted-foreground, #6b6b6f);
  line-height: 1.3;
}

/* --- Impact --- */
.impact-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

@media (min-width: 768px) {
  .impact-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.impact-benefit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .impact-benefit {
    border-right: 1px solid var(--border);
  }

  .impact-benefit:nth-child(3n) {
    border-right: none;
  }

  .impact-benefit:nth-last-child(-n + 3) {
    border-bottom: none;
  }
}

.impact-benefit:last-child {
  border-bottom: none;
}

.impact-benefit-num {
  font-family: var(--font-display);
  font-size: var(--dl-label);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.impact-benefit-text {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(27, 27, 27, 0.88);
}

/* --- Opportunity --- */
.opportunity-head {
  position: relative;
  width: 100%;
  overflow: visible;
}

.opportunity-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin-top: 1rem;
}

.opportunity-title-wrap h2 {
  position: relative;
  z-index: 2;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
}

.opportunity-bulb {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  margin-left: 0.75rem;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.9 !important;
}

@media (min-width: 768px) {
  .opportunity-title-wrap {
    gap: 0.5rem;
    align-items: center;
  }

  .opportunity-bulb {
    width: 4rem;
    height: 4rem;
    margin-left: 1rem;
  }
}

/* --- Features marquee --- */
#features .features-marquee {
  position: relative;
  overflow: hidden;
  margin-inline: -1.5rem;
}

.features-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding: 0.25rem 1.5rem 0.5rem;
  animation: features-scroll 75s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.features-marquee:hover .features-track {
  animation-play-state: paused;
}

@keyframes features-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.features-card {
  flex-shrink: 0;
  width: min(94vw, 520px);
}

.features-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8f8fa;
}

.features-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(27, 27, 27, 0.1);
  pointer-events: none;
  z-index: 1;
}

.features-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.features-card-img--top { object-position: top; }
.features-card-img--bottom { object-position: bottom; }

@media (min-width: 768px) {
  .features-card { width: 560px; }
}

@media (min-width: 1024px) {
  .features-card { width: 620px; }
}

/* --- Scroll reveal --- */
[data-reveal],
.scroll-reveal,
.fade-up {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal]:not(.reveal-in):not(.fade-up-in),
.scroll-reveal:not(.reveal-in):not(.fade-up-in),
.fade-up:not(.reveal-in):not(.fade-up-in) {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal].reveal-in,
[data-reveal].fade-up-in,
.scroll-reveal.reveal-in,
.fade-up.reveal-in,
.fade-up.fade-up-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-mockup-media img {
    transition: none;
  }

  .hero-mockup:hover .hero-mockup-media img {
    transform: none;
  }

  .hero-mockup-media {
    cursor: default;
  }

  [data-reveal],
  .scroll-reveal,
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .features-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 1.5rem;
  }

  .bl-principle-card,
  .bl-principle-card::after,
  .bl-principle-card__badge,
  .bl-principle-card__frame,
  .bl-principle-card__frame::before,
  .bl-principle-card__frame::after,
  .bl-principle-card__icon,
  .bl-principle-card h3,
  .bl-principle-card p {
    transition: none;
  }

  .bl-principle-card:hover,
  .bl-principle-card:hover .bl-principle-card__badge,
  .bl-principle-card:hover .bl-principle-card__icon,
  .bl-principle-card:hover .bl-principle-card__frame::before,
  .bl-principle-card:hover .bl-principle-card__frame::after {
    transform: none;
    box-shadow: none;
  }

  .bl-principle-card:hover::after {
    opacity: 0;
  }

  #features .features-marquee {
    overflow: visible;
  }
}

/* --- Fixed page background --- */
.dl-page {
  position: relative;
  background-color: transparent;
}

.dl-page.bg-background {
  background-color: transparent;
}

.dl-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #ebe1d4;
  background-image: url("../assets/Brown1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.dl-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 244, 235, 0.94) 0%,
    rgba(246, 238, 226, 0.91) 38%,
    rgba(242, 233, 220, 0.88) 100%
  );
  pointer-events: none;
}

.dl-page #hero .text-foreground\/75 {
  color: rgba(27, 27, 27, 0.86) !important;
}

.dl-page > main {
  position: relative;
  z-index: 1;
}

.dl-page > .cs-hero-wash {
  z-index: 1;
}

.dl-page .cs-hero-wash {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0) 55%);
}

.dl-page main > .cs-section:nth-of-type(even) {
  background: transparent;
}

/* ==========================================================================
   BrandLens layout variants (distinct from DesignLens)
   ========================================================================== */

/* Fixed cover background */
.bl-page {
  position: relative;
  background-color: transparent;
}

.bl-page.bg-background {
  background-color: transparent;
}

.bl-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #f8f8f8;
  background-image: url("../assets/White-Background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.bl-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.bl-page > main {
  position: relative;
  z-index: 1;
}

.bl-page > .cs-hero-wash {
  z-index: 1;
}

.bl-page .cs-hero-wash {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(124, 58, 237, 0) 55%);
}

.bl-page main > .cs-section:nth-of-type(even) {
  background: transparent;
}

/* Split hero: copy left, mockup right */
.bl-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .bl-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.bl-hero-mockup {
  width: 100%;
  margin-inline: auto;
}

.bl-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.bl-stat-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
}

.bl-stat-pill strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
}

.bl-stat-pill span {
  font-size: var(--dl-eyebrow);
  color: var(--color-muted-foreground, #6b6b6f);
  line-height: 1.2;
}

/* Infographic principle cards */
.bl-principles-infographic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 1.35rem;
}

@media (min-width: 900px) {
  .bl-principles-infographic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.bl-principle-card {
  --card-accent: #1b1b1b;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 20rem;
  padding: 2.75rem 1.35rem 1.65rem;
  border-radius: 2.35rem;
  background: #f3f3f4;
  color: var(--color-foreground, #1b1b1b);
  overflow: visible;
  cursor: default;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease;
}

.bl-principle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.bl-principle-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 42px rgba(124, 58, 237, 0.14),
    0 10px 18px rgba(0, 0, 0, 0.06);
}

.bl-principle-card:hover::after {
  opacity: 1;
}

.bl-principle-card--2 {
  --card-accent: var(--brand);
  background: #f7f2ff;
}

.bl-principle-card--2:hover {
  background: #f1e8ff;
  box-shadow:
    0 22px 48px rgba(124, 58, 237, 0.2),
    0 10px 18px rgba(124, 58, 237, 0.1);
}

.bl-principle-card--1,
.bl-principle-card--3 {
  --card-accent: #1b1b1b;
  background: #f3f3f4;
}

.bl-principle-card--1:hover,
.bl-principle-card--3:hover {
  --card-accent: var(--brand);
  background: #f8f6fc;
}

.bl-principle-card__badge {
  position: absolute;
  top: -1.15rem;
  right: 1.15rem;
  z-index: 2;
  width: 3.65rem;
  height: 3.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed color-mix(in srgb, var(--card-accent) 42%, #d8d8dc);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--card-accent);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.bl-principle-card:hover .bl-principle-card__badge {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.16);
}

.bl-principle-card__frame {
  position: absolute;
  inset: 0.8rem 0.95rem 0.85rem 0.8rem;
  border-radius: 1.85rem;
  border: 2px solid transparent;
  border-left-color: var(--card-accent);
  border-bottom-color: var(--card-accent);
  pointer-events: none;
  transition:
    inset 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.bl-principle-card:hover .bl-principle-card__frame {
  inset: 0.62rem 0.78rem 0.68rem 0.62rem;
  border-top-color: color-mix(in srgb, var(--card-accent) 28%, transparent);
  border-right-color: color-mix(in srgb, var(--card-accent) 16%, transparent);
}

.bl-principle-card__frame::before,
.bl-principle-card__frame::after {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--card-accent);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease;
}

.bl-principle-card:hover .bl-principle-card__frame::before,
.bl-principle-card:hover .bl-principle-card__frame::after {
  transform: scale(1.4);
}

.bl-principle-card__frame::before {
  left: -0.34rem;
  top: 24%;
}

.bl-principle-card__frame::after {
  left: 22%;
  bottom: -0.34rem;
}

.bl-principle-card__icon {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--card-accent);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}

.bl-principle-card:hover .bl-principle-card__icon {
  transform: translateY(-5px) scale(1.12);
}

.bl-principle-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: stroke 0.35s ease;
}

.bl-principle-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-foreground, #1b1b1b);
  transition: color 0.35s ease;
}

.bl-principle-card:hover h3 {
  color: var(--brand);
}

.bl-principle-card p {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  max-width: 17.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #6b6f78;
  transition: color 0.35s ease;
}

.bl-principle-card:hover p {
  color: #4a4e57;
}

/* Legacy stacked principle rows */
.bl-principle-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bl-principle-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.bl-principle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand);
  padding-top: 0.15rem;
}

.bl-principle-row h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-foreground, #1b1b1b);
}

.bl-principle-row p {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted-foreground, #6b6b6f);
}

/* Horizontal product flow */
.bl-product-workflow {
  width: 100%;
}

.bl-workflow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bl-product-workflow .bl-flow-track {
  margin-top: 1.5rem;
}

.bl-flow-track {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0.25rem 0 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.bl-flow-track li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 1.45rem 0.4rem 0;
  text-align: center;
}

.bl-flow-track li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  z-index: 1;
}

.bl-flow-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.325rem;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--brand-soft);
  z-index: 0;
}

.bl-flow-step-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.bl-flow-track p {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-foreground, #1b1b1b);
}

/* Horizontal extraction pipeline */
.bl-pipeline {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .bl-pipeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.bl-pipeline-step {
  padding: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-foreground, #1b1b1b);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
}

/* Static features grid (no marquee) */
.bl-features-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bl-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.bl-feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.bl-feature-card .features-card-media {
  aspect-ratio: 16 / 10;
}

.bl-feature-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.bl-feature-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-muted-foreground, #6b6b6f);
}

.bl-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

/* Side-by-side comparison */
.bl-compare-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bl-compare-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.bl-compare-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.bl-compare-card--brand {
  border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
  background: color-mix(in srgb, var(--brand-soft) 35%, #fff);
}

.bl-compare-card h3 {
  margin: 0 0 1rem;
  font-size: var(--dl-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b6b6f);
}

.bl-compare-card--brand h3 {
  color: var(--brand);
}

.bl-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bl-compare-list li {
  padding: 0.55rem 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(27, 27, 27, 0.88);
  border-bottom: 1px solid var(--border);
}

.bl-compare-list li:last-child {
  border-bottom: none;
}

.bl-compare-list strong {
  display: block;
  font-size: var(--dl-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b6b6f);
  margin-bottom: 0.15rem;
}

.bl-compare-list span {
  display: block;
  font-size: 1rem;
  color: rgba(27, 27, 27, 0.88);
}

/* Goals grid */
.bl-goals-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .bl-goals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.bl-goal-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.bl-goal-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--dl-eyebrow);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
}

.bl-goal-card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(27, 27, 27, 0.88);
}

/* Impact grid */
.bl-impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (min-width: 768px) {
  .bl-impact-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
}

.bl-impact-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(27, 27, 27, 0.88);
  border-bottom: 1px solid var(--border);
}

.bl-impact-list li:last-child {
  border-bottom: none;
}

.bl-impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* Hide DesignLens-only hero stats grid when using pills */
.bl-hero .hero-stats {
  display: none;
}

/* Opportunity: no bulb variant */
.bl-opportunity-head .opportunity-title-wrap {
  margin-top: 0;
}

@media (max-width: 767px) {
  .bl-page {
    overflow-x: clip;
  }

  .bl-page .cs-section {
    padding-inline: 1.25rem;
    padding-block: 2rem;
  }

  .bl-page .cs-section--hero {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  .bl-page .cs-section-head {
    margin-bottom: 1.25rem;
  }

  .bl-page .cs-section--thanks {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .bl-hero-grid {
    gap: 1.5rem;
  }

  .bl-stat-pills {
    gap: 0.4rem;
    margin-top: 1.5rem;
  }

  .bl-stat-pill {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: calc(50% - 0.25rem);
    padding: 0.5rem 0.75rem;
  }

  .bl-page .hero-mockup {
    width: calc(100% + 2.5rem);
    max-width: none;
    margin-inline: -1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .bl-principle-card {
    min-height: 18.5rem;
    padding: 2.5rem 1.15rem 1.5rem;
  }

  .bl-principle-card h3 {
    font-size: 1.2rem;
  }

  .bl-principle-card p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .bl-principle-card__badge {
    right: 0.85rem;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
  }

  .bl-principle-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .bl-flow-track {
    margin-top: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
  }

  .bl-flow-track li {
    flex: 0 0 8.75rem;
    scroll-snap-align: start;
    padding-top: 1.35rem;
  }

  .bl-flow-track p {
    font-size: 0.92rem;
  }

  .bl-page .shift-compare-table th,
  .bl-page .shift-compare-table td {
    padding: 0.75rem 0.85rem;
    font-size: var(--dl-text-sm);
  }

  .bl-compare-split {
    gap: 0.85rem;
  }

  .bl-compare-card {
    padding: 1rem;
  }

  /* --- Mobile type normalization --- */
  .bl-page h1.font-display {
    font-size: clamp(2.15rem, 10vw, 2.75rem) !important;
    line-height: 1.06 !important;
  }

  .bl-page h2.font-display {
    font-size: clamp(1.85rem, 8.5vw, 2.25rem) !important;
    line-height: 1.12 !important;
  }

  .bl-page .cs-eyebrow {
    font-size: var(--dl-eyebrow);
    letter-spacing: 0.12em;
  }

  .bl-page .text-xl {
    font-size: 1.1875rem !important;
    line-height: 1.55 !important;
  }

  .bl-page .text-lg {
    font-size: 1.0625rem !important;
    line-height: 1.62 !important;
  }

  .bl-page .text-base {
    font-size: 1rem !important;
    line-height: 1.62 !important;
  }

  .bl-page .text-sm {
    font-size: var(--dl-text-sm) !important;
    line-height: 1.56 !important;
  }

  .bl-page .hero-stat-num {
    font-size: 1.45rem;
  }

  .bl-page .hero-stat-label,
  .bl-page .bl-flow-step-label,
  .bl-page .bl-goal-num {
    font-size: var(--dl-label) !important;
  }
}

@media (max-width: 399px) {
  .bl-page .cs-section {
    padding-inline: 1rem;
  }

  .bl-page .hero-mockup {
    width: calc(100% + 2rem);
    margin-inline: -1rem;
  }
}
