/*
 * Landing page — shared engine styles.
 *
 * Loaded only on the landing page (see inc/landing.php). Everything reads the
 * --lp-* tokens defined in the theme block at the bottom of this file, which
 * map each theme's own palette in. Headings inherit the theme's typography.
 */

.lp {
  --lp-pad: clamp(4rem, 8vw, 7rem);

  background-color: var(--lp-bg);
  color: var(--lp-ink);
}

.lp h1,
.lp h2,
.lp h3 {
  color: inherit;
}

/* ── Header: one offer, no navigation ─────────────────────── */

.bfc-landing .site-nav,
.bfc-landing .nav-toggle,
.bfc-landing .mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .bfc-landing {
    padding-bottom: 5rem;
  }
}

/* ── Shared bits ──────────────────────────────────────────── */

.lp-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-accent-text);
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85em 1.75em;
  border: 2px solid transparent;
  border-radius: var(--lp-radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.lp-btn--solid {
  background-color: var(--lp-btn);
  color: var(--lp-on-btn);
}

.lp-btn--solid:hover,
.lp-btn--solid:focus-visible {
  filter: brightness(0.93);
  transform: translateY(-1px);
}

.lp-btn--ghost {
  border-color: currentcolor;
  color: inherit;
}

.lp-btn--ghost:hover,
.lp-btn--ghost:focus-visible {
  background-color: color-mix(in srgb, currentcolor 12%, transparent);
}

.lp-btn:focus-visible,
.lp-faq__item summary:focus-visible {
  outline: 3px solid var(--lp-focus);
  outline-offset: 3px;
}

.lp-section {
  padding-block: var(--lp-pad);
}

.lp-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lp-head h2 {
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.12;
}

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

.lp-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.lp-hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  width: 100%;
}

.lp-hero__copy {
  max-width: 40rem;
}

.lp-hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.06;
}

.lp-hero__sub {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* Photo: full-bleed picture under a brand wash */

.lp--photo .lp-hero {
  min-height: 82vh;
  isolation: isolate;
  background-color: var(--lp-brand);
  color: var(--lp-on-brand);
}

.lp-hero__media,
.lp-final__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lp-hero__media img,
.lp-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero__media::after,
.lp-final__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lp-wash-flat);
}

@media (min-width: 900px) {
  .lp-hero__media::after {
    background: var(--lp-wash);
  }
}

/* Split: copy beside a framed photo */

.lp--split .lp-hero {
  background-color: var(--lp-tint);
}

.lp-hero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--lp-radius);
}

.lp-hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .lp--split .lp-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .lp--flip .lp-hero__figure {
    order: -1;
  }
}

/* Type: no photo, a ledger of facts instead */

.lp--type .lp-hero {
  background-color: var(--lp-bg);
}

.lp-hero__ledger {
  margin: 0;
  border-top: 3px solid var(--lp-accent-line);
}

.lp-hero__ledger-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--lp-line);
}

.lp-hero__ledger dt {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--lp-brand);
}

.lp-hero__ledger dd {
  margin: 0;
  color: var(--lp-soft);
}

@media (min-width: 900px) {
  .lp--type .lp-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ── Proof strip ──────────────────────────────────────────── */

.lp-proof {
  border-bottom: 1px solid var(--lp-line);
  background-color: var(--lp-bg);
}

.lp-proof__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 2.5rem 0;
  list-style: none;
}

.lp-proof__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lp-proof__figure {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--lp-brand);
}

.lp-proof__label {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--lp-soft);
}

@media (min-width: 900px) {
  .lp-proof__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3.25rem 0;
  }

  .lp-proof__item + .lp-proof__item {
    padding-left: 2rem;
    border-left: 1px solid var(--lp-line);
  }
}

/* ── Benefits ─────────────────────────────────────────────── */

.lp-benefits__list {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-benefit {
  padding-top: 1.75rem;
  border-top: 3px solid var(--lp-accent-line);
}

.lp-benefit__num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lp-soft);
}

.lp-benefit__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.2;
}

.lp-benefit p {
  margin: 0;
  line-height: 1.7;
  color: var(--lp-soft);
}

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

/* ── Steps ────────────────────────────────────────────────── */

.lp-steps {
  background-color: var(--lp-brand);
  color: var(--lp-on-brand);
}

.lp-steps .lp-eyebrow {
  color: var(--lp-accent-on-dark);
}

.lp-steps__list {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lp-accent-on-dark);
}

.lp-step__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.2;
}

.lp-step p {
  max-width: 28rem;
  margin: 0;
  line-height: 1.7;
  color: var(--lp-on-brand-soft);
}

@media (min-width: 900px) {
  .lp-steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
  }
}

/* ── Story: one quote, one photo ──────────────────────────── */

.lp-story {
  background-color: var(--lp-tint);
}

.lp-story__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.lp-story__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--lp-radius);
}

.lp-story__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.lp-story__quote {
  margin: 0;
}

.lp-story__quote blockquote {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.lp-story__quote blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  line-height: 1.3;
  color: var(--lp-ink);
}

.lp-story__quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--lp-accent-line);
}

.lp-story__quote figcaption span {
  font-size: 0.9375rem;
  color: var(--lp-soft);
}

@media (min-width: 900px) {
  .lp-story__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .lp-story--solo .lp-story__inner {
    grid-template-columns: minmax(0, 52rem);
  }
}

/* ── FAQ ──────────────────────────────────────────────────── */

.lp-faq__inner {
  display: grid;
  gap: 2.5rem;
}

.lp-faq .lp-head {
  margin-bottom: 0;
}

.lp-faq__item {
  border-bottom: 1px solid var(--lp-line);
}

.lp-faq__item:first-child {
  border-top: 1px solid var(--lp-line);
}

.lp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.lp-faq__item summary::-webkit-details-marker {
  display: none;
}

.lp-faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--lp-accent-text);
}

.lp-faq__item[open] summary::after {
  content: "\2212";
}

.lp-faq__item p {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--lp-soft);
}

@media (min-width: 900px) {
  .lp-faq__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ── Final call ───────────────────────────────────────────── */

.lp-final {
  position: relative;
  isolation: isolate;
  padding-block: var(--lp-pad);
  background-color: var(--lp-brand);
  color: var(--lp-on-brand);
}

.lp-final__inner {
  max-width: 52rem;
}

.lp-final__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.1;
}

.lp-final__sub {
  max-width: 36rem;
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.lp-disclaimer {
  margin-block: 0;
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--lp-soft);
}

/* ── Sticky mobile bar ────────────────────────────────────── */

.lp-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--lp-brand);
  color: var(--lp-on-brand);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.lp-sticky .lp-btn {
  flex: 1 1 auto;
  min-height: 3rem;
}

@media (min-width: 768px) {
  .lp-sticky {
    display: none;
  }
}

/* ── Dark surfaces ────────────────────────────────────────── */

.lp--photo .lp-hero .lp-btn--solid,
.lp-final .lp-btn--solid,
.lp-sticky .lp-btn--solid {
  background-color: var(--lp-btn-dark);
  color: var(--lp-on-btn-dark);
}

.lp--photo .lp-hero,
.lp-steps,
.lp-final,
.lp-sticky {
  --lp-focus: var(--lp-on-brand);
}

.lp--photo .lp-hero .lp-eyebrow {
  color: var(--lp-accent-on-dark);
}

.lp-final__media::after {
  background: var(--lp-wash-final);
}

/* ── architecture palette ── */
.lp {
  --lp-bg: #ffffff;
  --lp-tint: #f4f5f6;
  --lp-ink: #1a1f24;
  --lp-soft: #566069;
  --lp-brand: #2d3c4b;
  --lp-on-brand: #ffffff;
  --lp-on-brand-soft: rgba(255, 255, 255, 0.78);
  --lp-accent-text: #2d3c4b;
  --lp-accent-line: #3f7f86;
  --lp-accent-on-dark: #ffffff;
  --lp-btn: #3f7f86;
  --lp-on-btn: #ffffff;
  --lp-btn-dark: #ffffff;
  --lp-on-btn-dark: #2d3c4b;
  --lp-focus: #2d3c4b;
  --lp-line: rgba(26, 31, 36, 0.16);
  --lp-radius: 0;
  --lp-wash-flat: rgba(45, 60, 75, 0.85);
  --lp-wash: rgba(45, 60, 75, 0.85);
  --lp-wash-final: rgba(45, 60, 75, 0.74);
}
