/* Behavior conference guides landing page.
   Ported from the "Behavior Conference Guide v2" prototype. Every selector is a
   descendant of .bcg-page so the shared Nav and Footer inherit nothing from
   here. Brand teals come from theme.css; the warm paper/ink neutrals and the
   orange/red ramps are the Frankly design-system values the prototype used. */

.bcg-page {
  --bcg-paper: #f8f3ea;
  --bcg-card: #fdfaf4;
  --bcg-ink: #17160f;
  --bcg-ink-hover: #2b2a26;
  --bcg-body: #514c42;
  --bcg-sub: #6b655a;
  --bcg-rule: #e3dcc9;
  --bcg-teal-50: #e0f1f0;
  --bcg-teal-800: #102827;
  --bcg-orange-50: #f2e5d5;
  --bcg-orange-400: #c7812a;
  --bcg-orange-500: #a36d28;
  --bcg-orange-800: #563913;
  --bcg-red-400: #ba4d26;
  --bcg-red-800: #501f0c;
  --bcg-gutter: max(clamp(20px, 6vw, 120px), calc((100% - var(--content-w)) / 2));

  background: var(--bcg-paper);
  color: var(--bcg-body);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.bcg-page h1,
.bcg-page h2,
.bcg-page h3,
.bcg-page p {
  margin: 0;
}

.bcg-page h2 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bcg-ink);
  text-wrap: balance;
}

.bcg-band {
  padding: clamp(64px, 9vw, 120px) var(--bcg-gutter);
  scroll-margin-top: 80px;
}
/* Sections after the first light one sit tight under the one above */
.bcg-band--flush { padding-top: 0; }
.bcg-band--last { padding-bottom: clamp(48px, 6vw, 88px); }

.bcg-panel {
  border-radius: var(--r-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.bcg-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.bcg-eyebrow-rule {
  flex: none;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--bcg-red-400);
}
.bcg-eyebrow--light { color: var(--teal-pale); }
.bcg-eyebrow--light .bcg-eyebrow-rule { background: var(--terra); }

.bcg-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.bcg-head p {
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Buttons ── */
.bcg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bcg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 30px;
  border-radius: var(--r-full);
  border: 0;
  font: 600 15px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.bcg-btn:hover { text-decoration: none; }
.bcg-btn:active { transform: scale(0.98); }
.bcg-btn--cream { background: var(--bcg-card); color: var(--bcg-ink); }
.bcg-btn--cream:hover { background: var(--bcg-orange-50); color: var(--bcg-ink); }
.bcg-btn--outline-light {
  background: transparent;
  color: var(--bcg-card);
  border: 2px solid var(--teal-pale);
  padding-inline: 26px;
}
.bcg-btn--outline-light:hover { background: rgba(253, 250, 244, 0.08); color: var(--bcg-card); }
.bcg-btn--ink { background: var(--bcg-ink); color: var(--bcg-card); }
.bcg-btn--ink:hover { background: var(--bcg-ink-hover); color: var(--bcg-card); }
.bcg-btn--outline-ink {
  background: transparent;
  color: var(--bcg-ink);
  border: 2px solid var(--bcg-ink);
  padding-inline: 26px;
}
.bcg-btn--outline-ink:hover { background: rgba(23, 22, 15, 0.05); color: var(--bcg-ink); }
.bcg-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.bcg-hero .bcg-btn:focus-visible { outline-color: var(--bcg-card); }

/* ── Hero ── */
.bcg-hero {
  background: var(--teal-dark);
  padding-block: clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}
.bcg-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bcg-hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bcg-card);
  text-wrap: balance;
}
.bcg-hero-copy > p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--bcg-card);
  max-width: 32em;
  text-wrap: pretty;
}

/* Two guide pages fanned over each other */
.bcg-hero-stack {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1.15;
  justify-self: center;
}
.bcg-hero-stack img {
  position: absolute;
  width: 80%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}
.bcg-hero-back {
  right: 0;
  top: 0;
  transform: rotate(4deg);
  box-shadow: 0 16px 32px rgba(16, 40, 39, 0.28);
}
.bcg-hero-front {
  left: 0;
  bottom: 0;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px rgba(16, 40, 39, 0.38);
}

/* ── Why it matters ── */
.bcg-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.bcg-why h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.015em; }
.bcg-why-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.bcg-why-copy p {
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}
.bcg-why-copy .bcg-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--bcg-ink);
}

/* ── How it works ── */
.bcg-how {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.bcg-side-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}
.bcg-side {
  background: var(--bcg-card);
  border: 2px solid var(--bcg-ink);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bcg-side--teal { --bcg-side-bg: var(--bcg-teal-50); --bcg-side-label: var(--teal); --bcg-side-shadow: rgba(16, 40, 39, 0.16); }
.bcg-side--orange { --bcg-side-bg: var(--bcg-orange-50); --bcg-side-label: var(--bcg-orange-500); --bcg-side-shadow: rgba(86, 57, 19, 0.16); }
.bcg-side-figure {
  background: var(--bcg-side-bg);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 0;
}
.bcg-side-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 8px 24px var(--bcg-side-shadow);
}
.bcg-side-body {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bcg-side-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bcg-side-label);
}
.bcg-side h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bcg-ink);
}
.bcg-side p {
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Videos ── */
.bcg-videos {
  background: var(--teal-dark);
  padding: clamp(32px, 5vw, 72px);
}
.bcg-videos .bcg-head { gap: 20px; }
.bcg-videos h2 { font-size: clamp(30px, 3.2vw, 42px); color: var(--bcg-card); }
.bcg-videos .bcg-head p { color: var(--bcg-teal-50); }
.bcg-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bcg-video {
  margin: 0;
  background: var(--bcg-card);
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--bcg-ink);
}
.bcg-video-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.bcg-video--teal .bcg-video-icon { background: var(--teal-pale); color: var(--bcg-teal-800); }
.bcg-video--orange .bcg-video-icon { background: var(--bcg-orange-50); color: var(--bcg-orange-800); }
.bcg-video--red .bcg-video-icon { background: var(--terra-pale); color: var(--bcg-red-800); }

/* ── Versions ── */
.bcg-versions {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* Four up or two up, never three plus an orphan */
.bcg-version-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 960px) {
  .bcg-version-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
.bcg-version {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bcg-version img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--bcg-rule);
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 42, 38, 0.08);
}
.bcg-version figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bcg-version-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--bcg-ink);
}
.bcg-version-detail {
  font-size: 14px;
  color: var(--bcg-sub);
}

/* ── For programs ── */
.bcg-programs {
  background: var(--bcg-orange-50);
  padding: clamp(36px, 5.5vw, 80px);
}
.bcg-programs .bcg-head { gap: 18px; }
.bcg-programs h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.bcg-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--bcg-orange-500);
  color: var(--bcg-card);
}
.bcg-programs-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bcg-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bcg-includes li {
  margin: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.55;
  color: var(--bcg-ink);
}
.bcg-includes li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--bcg-orange-400);
}

@media (prefers-reduced-motion: reduce) {
  .bcg-btn { transition: none; }
  .bcg-btn:active { transform: none; }
}
