/* =========================================================
   LEARNING REWIRED LAB — BEHIND THE LAB V4
   Playful advisory-board page / mobile-first Q&A layout
   ========================================================= */

.behind-lab-v4 {
  overflow: hidden;
  background: #f7f8fb;
  color: #080b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.behind-lab-v4 *,
.behind-lab-v4 *::before,
.behind-lab-v4 *::after {
  box-sizing: border-box;
}

.blv4-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.behind-lab-v4 h1,
.behind-lab-v4 h2,
.behind-lab-v4 h3,
.behind-lab-v4 p {
  margin-top: 0;
}

.behind-lab-v4 h1,
.behind-lab-v4 h2,
.behind-lab-v4 h3 {
  color: #080b12;
  text-wrap: balance;
}

.behind-lab-v4 p {
  color: rgba(8, 11, 18, 0.64);
}

.behind-lab-v4 a {
  color: inherit;
}

.blv4-eyebrow,
.blv4-kicker {
  margin: 0 0 16px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.blv4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blv4-btn:hover {
  transform: translateY(-2px);
}

.blv4-btn.primary {
  border: 0;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

.blv4-btn.secondary {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #080b12 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

/* Hero */

.blv4-hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(58px, 7vw, 96px);
  background:
    radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 16% 82%, rgba(20, 184, 166, 0.10), transparent 32%),
    #ffffff;
}

.blv4-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
}

.blv4-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  padding-bottom: 0.12em;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.064em;
  font-weight: 720;
}

.blv4-hero-copy h1 span {
  display: inline-block;
  padding-right: 0.06em;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #2563eb 0%, #5b4df5 42%, #7c3aed 70%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blv4-deck {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.68;
}

.blv4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.blv4-actions.centered {
  justify-content: center;
}

.blv4-hero-visual {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
}

.blv4-hero-image {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
}

/* Sections */

.blv4-section {
  padding: clamp(54px, 7vw, 96px) 0;
}

.blv4-muted-section {
  background: #f7f8fb;
}

.blv4-answer-card {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}

.blv4-answer-copy {
  max-width: 900px;
}

.blv4-section-header {
  max-width: 840px;
  margin-bottom: 30px;
}

.blv4-answer-copy h2,
.blv4-section-header h2,
.blv4-final-card h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 700;
}

.blv4-answer-copy p,
.blv4-section-header p,
.blv4-final-card p {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.68;
}

/* Grids */

.blv4-proof-grid,
.blv4-team-grid,
.blv4-help-grid,
.blv4-ecosystem-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.blv4-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blv4-team-grid,
.blv4-help-grid,
.blv4-ecosystem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blv4-proof-grid article,
.blv4-team-card,
.blv4-help-grid article,
.blv4-ecosystem-grid a {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.08), transparent 28%),
    #f8fafc;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blv4-ecosystem-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.08);
}

.blv4-team-card.featured {
  background:
    radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 16% 86%, rgba(20, 184, 166, 0.12), transparent 30%),
    #080b12;
}

.blv4-team-card.featured span,
.blv4-team-card.featured h3,
.blv4-team-card.featured p {
  color: #ffffff;
}

/* Chancellor full-width rectangle */

.blv4-team-card.lab-dog {
  position: relative;
  grid-column: 1 / -1;
  min-height: 170px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 50%, rgba(120, 72, 38, 0.14), transparent 20%),
    radial-gradient(circle at 12% 88%, rgba(20, 184, 166, 0.10), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbfaf8 100%);
  border-color: rgba(120, 72, 38, 0.20);
}

.blv4-team-card.lab-dog::before {
  content: "snack strategy";
  position: absolute;
  right: clamp(78px, 10vw, 150px);
  top: 34px;
  color: rgba(120, 72, 38, 0.11);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.blv4-team-card.lab-dog::after {
  content: "🐾";
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 34px);
  font-size: clamp(54px, 7vw, 92px);
  line-height: 1;
  opacity: 0.14;
  transform: rotate(-10deg);
  pointer-events: none;
}

.blv4-team-card.lab-dog h3,
.blv4-team-card.lab-dog p,
.blv4-team-card.lab-dog span {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.blv4-proof-grid span,
.blv4-team-card span,
.blv4-help-grid span,
.blv4-ecosystem-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blv4-team-card.lab-dog span {
  color: #8b5a2b;
}

.blv4-proof-grid h3,
.blv4-team-card h3,
.blv4-help-grid h3,
.blv4-ecosystem-grid h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.blv4-team-card.lab-dog h3 {
  font-size: clamp(30px, 3vw, 44px);
}

.blv4-proof-grid p,
.blv4-team-card p,
.blv4-help-grid p,
.blv4-ecosystem-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.52;
}

.blv4-team-card.lab-dog p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.blv4-team-card p,
.blv4-help-grid p,
.blv4-proof-grid p {
  color: rgba(8, 11, 18, 0.64);
}

.blv4-team-card.featured p {
  color: rgba(255, 255, 255, 0.74);
}

/* Expand */

.blv4-expand {
  margin-top: 26px;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: #f8fafc;
  overflow: hidden;
}

.blv4-expand summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  cursor: pointer;
  list-style: none;
}

.blv4-expand summary::-webkit-details-marker {
  display: none;
}

.blv4-expand summary span {
  color: #080b12;
  font-size: 15px;
  font-weight: 900;
}

.blv4-expand summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 24px;
  font-weight: 700;
}

.blv4-expand[open] summary::after {
  content: "–";
}

.blv4-expand-content {
  padding: 0 22px 26px;
}

.blv4-expand-content p {
  max-width: 900px;
  margin: 18px 0 0;
  color: rgba(8, 11, 18, 0.66);
  font-size: 16px;
  line-height: 1.72;
}

.blv4-expand-content.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blv4-expand-content.two-column > div {
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.blv4-expand-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.blv4-expand-content.two-column p {
  margin: 0;
}

/* Final */

.blv4-final-section {
  padding: clamp(54px, 7vw, 96px) 0 clamp(88px, 10vw, 140px);
  background: #f7f8fb;
}

.blv4-final-card {
  text-align: center;
  padding: clamp(32px, 6vw, 68px);
  border-radius: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.12), transparent 40%),
    #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
}

.blv4-final-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */

@media (max-width: 1080px) {
  .blv4-hero-grid {
    grid-template-columns: 1fr;
  }

  .blv4-hero-copy h1 {
    max-width: 820px;
  }

  .blv4-hero-image {
    height: auto;
  }

  .blv4-proof-grid,
  .blv4-team-grid,
  .blv4-help-grid,
  .blv4-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blv4-team-card.lab-dog {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .blv4-shell {
    width: min(100% - 32px, 1240px);
  }

  .blv4-hero {
    padding-top: 46px;
  }

  .blv4-hero-copy h1 {
    font-size: clamp(42px, 12vw, 66px);
    line-height: 1;
    letter-spacing: -0.056em;
  }

  .blv4-btn,
  .blv4-actions {
    width: 100%;
  }

  .blv4-answer-copy h2,
  .blv4-section-header h2,
  .blv4-final-card h2 {
    font-size: clamp(34px, 9.5vw, 52px);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .blv4-proof-grid,
  .blv4-team-grid,
  .blv4-help-grid,
  .blv4-ecosystem-grid,
  .blv4-expand-content.two-column {
    grid-template-columns: 1fr;
  }

  .blv4-proof-grid article,
  .blv4-team-card,
  .blv4-help-grid article,
  .blv4-ecosystem-grid a {
    min-height: auto;
  }

  .blv4-team-card.lab-dog {
    grid-column: auto;
    min-height: 245px;
  }

  .blv4-answer-card,
  .blv4-final-card,
  .blv4-hero-visual {
    border-radius: 32px;
  }
}

@media (max-width: 520px) {
  .blv4-shell {
    width: min(100% - 28px, 1240px);
  }

  .blv4-answer-card {
    padding: 24px;
  }

  .blv4-expand summary {
    padding: 0 18px;
  }

  .blv4-expand-content {
    padding: 0 18px 22px;
  }

  .blv4-team-card.lab-dog::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blv4-btn,
  .blv4-ecosystem-grid a {
    transition: none !important;
  }

  .blv4-btn:hover,
  .blv4-ecosystem-grid a:hover {
    transform: none !important;
  }
}
