/*
 * Landing page styling.
 *
 * These primitives deliberately do NOT reuse .bp-container, .bp-section,
 * .bp-card or .bp-btn — those are defined in bp-theme/style.css and are
 * owned by the theme. A plugin that depends on theme classes inverts this
 * project's layering. Same decision, same reason, as .bp-header-cta not
 * composing .bp-btn. See CLAUDE.md.
 *
 * No hex values: colours come from tokens.css.
 */

.bp-l-section {
  padding-top: var(--bp-section-y);
  padding-bottom: var(--bp-section-y);
  background: var(--bp-page);
}
.bp-l-section--band { background: var(--bp-band); }
.bp-l-section--dark {
  background: var(--bp-dark);
  color: var(--bp-dark-fg);
}

.bp-l-inner {
  max-width: var(--bp-container);
  margin: 0 auto;
  padding: 0 var(--bp-gutter);
}

.bp-l-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bp-gold-deep);
  margin: 0 0 12px;
}
.bp-l-eyebrow--dark { color: var(--bp-gold); }

.bp-l-btn {
  display: inline-block;
  font-family: var(--bp-body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: var(--bp-radius-btn);
  background: var(--bp-gold);
  color: var(--bp-dark);
  text-decoration: none;
}
.bp-l-btn--ghost {
  background: transparent;
  color: var(--bp-dark-fg);
  border: 1px solid var(--bp-dark-hair);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.bp-l-hero-title {
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bp-dark-fg);
  margin: 0;
  max-width: 16em;
}
.bp-l-accent { color: var(--bp-gold); }

.bp-l-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--bp-dark-dim);
  max-width: 34em;
  margin: 20px 0 0;
}

.bp-l-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

/* Two columns: words left, the teacher right. Every comparable school in
   this market puts a face above the fold; this page had none, while its
   whole argument is who is doing the teaching. */
.bp-l-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.bp-l-hero-portrait {
  width: 100%;
  max-width: 320px;
  /* height:auto is required, not tidiness. The img carries height="600" as an
     attribute, which is a presentational hint that beats aspect-ratio and
     rendered the portrait as a 320x600 ellipse. */
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  justify-self: end;
}

/* Turns a photograph into a claim. Without it the picture is decoration. */
.bp-l-hero-by {
  margin: 26px 0 0;
  color: var(--bp-dark-dim);
  font-size: 14px;
}
.bp-l-hero-by b { color: var(--bp-dark-fg); font-weight: 600; }

/* Proof directly under the figures, where the comparable sites put it —
   not six sections down. The full reviews section stays where it is. */
.bp-l-proof {
  background: var(--bp-band);
  border-top: 1px solid var(--bp-hair);
  padding: 34px 0;
}
.bp-l-proof-inner {
  max-width: var(--bp-container);
  margin: 0 auto;
  padding: 0 var(--bp-gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.bp-l-proof img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bp-hair);
  flex: none;
}
.bp-l-proof blockquote { margin: 0; max-width: 62ch; }
.bp-l-proof p { margin: 0; color: var(--bp-ink); line-height: 1.65; }
.bp-l-proof cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-muted);
}

/* ── Shared section furniture ──────────────────────────────────────── */

.bp-l-head { text-align: center; margin: 0 0 48px; }

.bp-l-title {
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bp-ink);
  margin: 0;
}

.bp-l-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bp-l-card {
  background: var(--bp-page);
  border: 1px solid var(--bp-hair);
  border-radius: var(--bp-radius);
  padding: 36px 28px;
}

.bp-l-card-title {
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--bp-ink);
  margin: 0 0 8px;
}

.bp-l-card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bp-muted);
  margin: 0;
}

/* 48x48 with radius 11px — 52/14 reads too heavy against these cards. */
.bp-l-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--bp-gold-tint);
  color: var(--bp-gold-deep);
  margin: 0 0 18px;
}

/* ── Stats ─────────────────────────────────────────────────────────── */

.bp-l-stat-row {
  display: grid;
  /* auto-fit rather than a fixed count: the row holds four figures today
     and stays on one line if that number ever changes. A hardcoded 3 is
     what put the fourth one on its own row. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.bp-l-stat-value {
  display: block;
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--bp-ink);
}

.bp-l-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bp-muted);
}

/* ── How it works ──────────────────────────────────────────────────── */

.bp-l-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--bp-gold-tint);
  color: var(--bp-gold-deep);
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 18px;
}

/* ── Courses ───────────────────────────────────────────────────────── */

.bp-l-level {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bp-gold-deep);
  margin: 0 0 10px;
}

/* ── Reviews ───────────────────────────────────────────────────────── */

.bp-l-quote { margin: 0; }

.bp-l-quote-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bp-ink);
  margin: 0 0 16px;
}

.bp-l-quote-name {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-muted);
  display: block;
}

/* The deep gold, not the bright one: these sit on white and the bright
   gold is 2.1:1 there. */
.bp-l-stars {
  color: var(--bp-gold-deep);
  font-size: 14px;
  letter-spacing: 3px;
  margin: 0 0 12px;
}

.bp-l-quote-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.bp-l-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--bp-hair);
}

.bp-l-quote-place {
  display: block;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
  font-size: 12.5px;
}

/* Says the rating once, in words, for anyone who cannot see the stars. */
.bp-l-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bp-l-head-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bp-muted);
  margin: 10px 0 0;
}

/* ── Pricing ───────────────────────────────────────────────────────── */

.bp-l-tier { display: flex; flex-direction: column; }

/* The featured tier is marked by its border, not by a colour fill: a gold
   fill would put --bp-gold behind body text, which fails contrast. */
.bp-l-tier--featured { border-color: var(--bp-gold-deep); }

.bp-l-price { margin: 4px 0 18px; }

.bp-l-price-amount,
.bp-l-price-cur,
.bp-l-price-cents {
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--bp-ink);
}

/* The saving under a yearly price. Deep gold, not the bright one: this sits
   on a light card. */
.bp-l-price-note {
  display: block;
  margin: -12px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-gold-deep);
}
/* The script hides this element by setting the attribute, and a display rule
   above beats the browser's own [hidden] default, so say it here. */
.bp-l-price-note[hidden] { display: none; }

/* ── Monthly / yearly switch ───────────────────────────────────────── */

.bp-l-billing-wrap {
  text-align: center;
  margin: -20px 0 40px;
}

.bp-l-billing {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--bp-hair);
  border-radius: 999px;
  background: var(--bp-page);
}

.bp-l-billing-btn {
  font-family: var(--bp-body);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bp-muted);
  cursor: pointer;
}

.bp-l-billing-btn.is-active {
  background: var(--bp-dark);
  color: var(--bp-dark-fg);
}

.bp-l-price-period {
  font-size: 14px;
  color: var(--bp-muted);
  margin-left: 6px;
}

.bp-l-tier-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--bp-muted);
  flex: 1;
}

.bp-l-btn--block { display: block; text-align: center; }

/* ── Sign up ───────────────────────────────────────────────────────── */

.bp-l-signup { text-align: center; }
.bp-l-signup-text {
  font-size: 17px;
  color: var(--bp-muted);
  margin: 14px 0 0;
}
.bp-l-signup-action { margin: 28px 0 0; }

/* ── Below 760px ───────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .bp-l-stat-row { grid-template-columns: repeat(2, 1fr); }

  /* No room for two columns on a phone: the portrait goes above the words. */
  .bp-l-hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bp-l-hero-portrait { max-width: 190px; justify-self: start; order: -1; }

  .bp-l-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Cards stack. The stat row keeps its three columns — three short
     numbers side by side still read fine at 375px — but loses weight. */
  .bp-l-grid { grid-template-columns: 1fr; }

  .bp-l-stat-value { font-size: 32px; }
  .bp-l-stat-label { font-size: 11px; letter-spacing: 1.5px; }

  .bp-l-hero-title { font-size: 34px; }
  .bp-l-hero-lead  { font-size: 16px; }

  /* Full-width buttons rather than two half-width ones side by side,
     which at this width leaves each too narrow for its label. */
  .bp-l-hero-actions { flex-direction: column; }
  .bp-l-hero-actions .bp-l-btn { display: block; text-align: center; }

  .bp-l-title { font-size: 28px; }
  .bp-l-head  { margin-bottom: 32px; }
}

/* A course card that leads somewhere says so before it is clicked. Cards for
   courses still in draft render as plain blocks and get none of this. */
a.bp-l-course-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.bp-l-course-card:hover { border-color: var(--bp-gold-deep); }
a.bp-l-course-card:hover .bp-l-card-title { color: var(--bp-gold-deep); }
