/* ============================================================
   lp.css: shared layer for the rebuilt landing pages (2026-10-05).
   Loads AFTER styles.css (and product.css on product pages).
   Spec: handoff/00-DESIGN-SYSTEM-AND-FOLD-SPEC.md sections 4 to 7.

   Rules for every page that uses this file:
   - The fold is <section class="fold"> (never id="hero": styles.css
     still carries a legacy #hero rule with min-height:100vh).
   - Nothing in the fold, the booking block, or above-fold content
     gets .reveal or .fade-up.
   - Page-specific styling lives in the page's own <style> block.
   ============================================================ */

/* Metric-matched fallback so the Bebas headline does not reflow (75% =
   measured Bebas-to-Arial width on real mixed-case headlines, 72 to 79%;
   the spec's 58% made the fallback wrap one line shorter than Bebas)
   when the web font arrives (design 7.3 item 1). */
@font-face { font-family: 'Bebas Fallback'; src: local('Arial'); size-adjust: 75%; }

/* Syne ships old-style figures; numbers read as broken on proof lines. */
body { font-variant-numeric: lining-nums; }

/* ---------------- FOLD (design 4.3 to 4.8, 5.1, 5.2) ---------------- */
.fold { max-width: 440px; margin: 0 auto; padding: 12px 16px 0; text-align: center; }
.fold-mark { font: 400 22px/20px 'Bebas Neue', 'Bebas Fallback', sans-serif; letter-spacing: .05em; color: var(--white); margin: 0 0 10px; }
.fold-mark span { color: var(--accent); }
.fold-chip { display: flex; width: fit-content; align-items: center; justify-content: center; height: 28px; max-width: 100%;
  padding: 0 12px; margin: 0 auto 14px; border: 1px solid rgba(200,241,53,.45); color: var(--accent);
  font: 700 11px/1 'Space Mono', monospace; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.fold-h1 { font: 400 clamp(34px, 10.2vw, 44px)/.95 'Bebas Neue', 'Bebas Fallback', sans-serif; letter-spacing: .01em;
  color: var(--white); margin: 0 0 10px; text-wrap: balance; }
.fold-h1 .hl-accent { color: var(--accent); }
.fold-sub { font: 400 15px/22px 'Syne', sans-serif; color: var(--muted); margin: 0 auto 12px; max-width: 46ch; }
.fold-sub strong { color: var(--white); font-weight: 600; }
.fold-watch { display: flex; align-items: center; justify-content: center; gap: 6px; font: 400 12px/16px 'Space Mono', monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.fold-video { width: 100%; border: 1px solid var(--border); background: var(--black3); overflow: hidden; margin: 0 0 12px; }
/* Do NOT style the <wistia-player> element itself. Any rule on it
   (aspect-ratio, pinning, padding overrides) made Wistia render a
   full-size internal layer late, measured CLS 0.08 to 0.17 on phones.
   Unstyled, the per-id :not(:defined) swatch rule reserves 16:9 until
   the player takes over (CLS 0.018, same as the old pages). */
/* The wrapper (never the player) keeps a 16:9 floor: on desktop the player
   is briefly 0px tall between Wistia defining the element and sizing it,
   which collapsed the split hero for ~140ms (desktop CLS 0.11). */
.fold-media { container-type: inline-size; }
.fold-video { min-height: calc((100cqw - 2px) * .5625 + 2px); }
.fold-assure { border: 1px solid rgba(200,241,53,.28); background: rgba(200,241,53,.05); padding: 11px 14px;
  font: 400 14px/20px 'Syne', sans-serif; color: var(--white); margin: 0 0 12px; }
.fold-assure strong { color: var(--accent); font-weight: 600; }
.btn-primary.fold-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 20px; font-size: 15px; }
.fold-micro { font: 400 11px/16px 'Space Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.fold-qual { font: 400 12px/16px 'Space Mono', monospace; letter-spacing: .06em; color: var(--muted); margin: 6px 0 0; }

/* short phones (375x553 class) */
@media (max-width: 599px) and (max-height: 600px) {
  .fold { padding-top: 10px; }
  .fold-mark, .fold-watch { display: none; }
  .fold-chip { height: 26px; margin-bottom: 12px; }
  .fold-h1 { margin-bottom: 8px; }
  .fold-sub { font-size: 14px; line-height: 20px; margin-bottom: 10px; }
  .fold-video { margin-bottom: 10px; }
  .fold-assure { padding: 9px 12px; margin-bottom: 10px; }
  .btn-primary.fold-cta { min-height: 52px; font-size: 14px; }
  .fold-micro { margin-top: 6px; }
}
/* large phones (430x739 class) */
@media (min-width: 420px) and (max-width: 599px) {
  .fold { padding-top: 16px; }
  .fold-mark { margin-bottom: 12px; }
  .fold-chip { height: 30px; margin-bottom: 16px; }
  .fold-h1 { margin-bottom: 12px; }
  .fold-sub { font-size: 16px; line-height: 23px; margin-bottom: 14px; }
  .fold-watch { margin-bottom: 10px; }
  .fold-video, .fold-assure { margin-bottom: 14px; }
  .fold-assure { padding: 12px 14px; }
  .btn-primary.fold-cta { min-height: 60px; }
}
/* tablet (820x1080 class) */
@media (min-width: 600px) and (max-width: 999px) {
  .fold { max-width: 768px; padding: 24px 24px 0; }
  .fold-mark { font-size: 26px; line-height: 24px; margin-bottom: 14px; }
  .fold-chip { height: 30px; margin-bottom: 18px; }
  .fold-h1 { font-size: clamp(48px, 6.8vw, 60px); margin-bottom: 16px; }
  .fold-sub { font-size: 17px; line-height: 26px; margin-bottom: 16px; }
  .fold-watch { line-height: 18px; margin-bottom: 12px; }
  .fold-video { margin-bottom: 18px; }
  .fold-assure { max-width: 560px; margin: 0 auto 18px; padding: 13px 16px; }
  .btn-primary.fold-cta { width: 360px; min-height: 60px; margin: 0 auto; }
  .fold-micro { line-height: 18px; margin-top: 10px; }
  .fold-qual { line-height: 18px; margin-top: 8px; }
}
@media (min-width: 768px) { .fold-cta svg { display: none; } }
/* desktop split (5fr copy / 7fr media) */
@media (min-width: 1000px) {
  .fold { max-width: 1240px; padding: 32px 24px 0; text-align: left; display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "mark mark" "copy media" "action media"; column-gap: 56px; align-items: start; }
  .fold-mark { grid-area: mark; font-size: 30px; line-height: 28px; margin-bottom: 32px; }
  .fold-copy { grid-area: copy; }
  .fold-media { grid-area: media; align-self: center; }
  .fold-action { grid-area: action; }
  .fold-chip { height: 30px; margin: 0 0 20px; }
  .fold-h1 { font-size: clamp(56px, 4.6vw, 72px); line-height: .92; margin-bottom: 20px; }
  .fold-sub { font-size: 18px; line-height: 28px; margin: 0 0 24px; }
  .fold-watch { justify-content: flex-start; line-height: 18px; margin-bottom: 12px; }
  .fold-video { margin-bottom: 0; }
  .fold-assure { max-width: none; margin: 0 0 20px; padding: 14px 16px; }
  .btn-primary.fold-cta { width: auto; min-width: 300px; min-height: 60px; display: inline-flex; margin: 0; }
  .fold-micro { line-height: 18px; margin-top: 12px; }
  .fold-qual { line-height: 18px; margin-top: 6px; }
}

/* ---------------- PRODUCT FAMILY BODY (page docs 4b) ---------------- */
/* The Box keeps product.css styling; the box footer reads at body size. */
.criteria-foot { font-family: 'Syne', sans-serif; font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.pbox .section-label { margin-bottom: 18px; }

/* Facts grid: 2 columns on phones, explicit 3x2 from 900px (no empty cells). */
.pfacts { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pfacts > * { padding: 18px 14px 16px !important; }
@media (min-width: 900px) { .pfacts { grid-template-columns: repeat(3, 1fr) !important; } .pfacts > * { padding: 26px 24px 22px !important; } }
/* Intent mix stays one row of three on phones. */
.pintent { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; }
.pintent > * { border-right: 1px solid var(--border) !important; border-bottom: none !important; padding: 16px 12px !important; }
.pintent > *:last-child { border-right: none !important; }
@media (min-width: 900px) { .pintent > * { padding: 20px 24px !important; } }

/* Section rhythm on phones: tighter than the old 72 to 110px bands. */
@media (max-width: 899px) {
  .plp-section { padding: 56px 16px; }
  .pbox { padding-left: 16px !important; padding-right: 16px !important; }
  .section-label { margin-bottom: 24px; }
  .section-heading { font-size: clamp(42px, 12vw, 64px); }
  .inline-cta { margin-top: 32px; padding: 18px; }
  .inline-cta .btn-primary { min-height: 52px; }
}

/* Hard qualification, compact (shared by every family that has #notfor). */
#notfor .notfor-layout { margin-top: 32px; }
@media (max-width: 899px) {
  #notfor { padding: 56px 16px; }
  #notfor .notfor-layout { gap: 28px; }
  #notfor .notfor-intro { font-size: 16px; line-height: 1.7; }
  #notfor .notfor-callout { margin-top: 24px; font-size: 24px; }
  #notfor .disqualifier { padding: 14px 16px; font-size: 14px; gap: 14px; min-height: 52px; }
}
@media (min-width: 900px) { #notfor { max-width: none; } #notfor > * { max-width: 1192px; margin-left: auto; margin-right: auto; } }

/* ---------------- BOOKING (design 6) ---------------- */
#cta { background: var(--black); }
@media (max-width: 899px) { #cta { padding: 56px 16px 48px; } #cta .cta-heading { margin-bottom: 20px; } #cta .cta-body { margin-bottom: 24px; } }
.bk-facts { font: 400 11px/16px 'Space Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 auto 18px; }
.bk-wrap { width: 100%; max-width: 1040px; margin: 0 auto; }
/* Reserve the embed by its own width (design 6.2). Re-measured after
   lp-cal.js started hiding the event details below 768px. */
/* Measured iframe heights with details hidden (<768px): 382 at 375, 394 at
   390, 429 at 430. Details show from 768px (stacked until the embed is 772px
   wide), 3-column booker from 772px: 458 at 772, 490 at 1040+. */
#e1even-cal { width: 100%; min-height: 410px; }
@media (min-width: 420px) and (max-width: 599px) { #e1even-cal { min-height: 440px; } }
@media (min-width: 600px) and (max-width: 767px) { #e1even-cal { min-height: 520px; } }
@media (min-width: 768px) and (max-width: 819px) { #e1even-cal { min-height: 1100px; } }
@media (min-width: 820px) and (max-width: 999px) { #e1even-cal { min-height: 470px; } }
@media (min-width: 1000px) { #e1even-cal { min-height: 500px; } }

/* ---------------- PRODUCT INDEX ---------------- */
nav.product-index .product-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
nav.product-index .product-index-grid a { display: flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { nav.product-index .product-index-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- STATIC LEGAL FOOTER ---------------- */
.lp-legal { border-top: 1px solid var(--border); background: var(--black); padding: 36px 16px 120px; }
.lp-legal-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 18px; text-align: center; }
.lp-legal-mark { font: 400 22px/1 'Bebas Neue', 'Bebas Fallback', sans-serif; letter-spacing: .05em; color: var(--muted); }
.lp-legal-mark span { color: var(--accent); }
.lp-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.lp-legal-links a { display: inline-flex; align-items: center; min-height: 44px; font: 400 12px/1 'Space Mono', monospace; letter-spacing: .06em;
  text-transform: uppercase; color: var(--white); text-decoration: none; }
.lp-legal-links a:hover, .lp-legal-links a:focus-visible { color: var(--accent); }
.lp-legal p { font: 400 12px/1.7 'Space Mono', monospace; color: var(--muted); max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .lp-legal { padding-bottom: 48px; } }

/* ---------------- STICKY PHONE CTA (design 6.4, driven by lp-ui.js) ---------------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.94); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn-primary { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Visible focus everywhere. */
.btn-primary:focus-visible, .lp-legal a:focus-visible, .product-index a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Box eyebrow spans both Box columns (the old hero eyebrow moved here). */
.pbox > .pbox-label { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------------- PHONE DENSITY (page docs 4b: embed top at 5 screens or less) ---------------- */
@media (max-width: 899px) {
  .pbox { padding-top: 32px !important; gap: 20px; }
  .crit-row { min-height: 44px; }
  .plp-section { padding: 44px 16px; }
  .section-label { margin-bottom: 16px; }
  .section-heading { font-size: clamp(38px, 10.5vw, 54px); margin-bottom: 14px; }
  .pdata-source { margin: 10px 0 16px; line-height: 1.8; }
  .pfacts > * { padding: 14px 12px 12px !important; }
  .pfacts [class*="-num"] { font-size: 32px !important; }
  .pfacts p { font-size: 13px !important; line-height: 1.5 !important; }
  .pfacts [class*="frac"] { margin-bottom: 8px !important; gap: 5px !important; }
  .pdata-note { margin-top: 14px; font-size: 11px; line-height: 1.7; }
  .inline-cta { margin-top: 22px; }
  #notfor { padding: 44px 16px; }
  #notfor .notfor-layout { margin-top: 18px; gap: 20px; }
  #notfor .notfor-intro p + p { margin-top: 12px; }
  #notfor .notfor-callout { margin-top: 16px; font-size: 22px; }
  #notfor .disqualifier { min-height: 48px; padding: 11px 14px; }
  #cta { padding: 44px 16px 40px; }
  #cta .section-label { margin-bottom: 12px; }
  #cta .cta-heading { font-size: 48px; margin-bottom: 12px; }

  #cta .cta-body { font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
  #cta .bk-facts { margin-bottom: 12px; }
}

/* Method note: collapsed disclosure (text stays in the DOM for reviewers). */
.pdata-method { margin-top: 16px; border-top: 1px solid var(--border); }
.pdata-method summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none;
  font: 400 11px/1.4 'Space Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pdata-method summary::-webkit-details-marker { display: none; }
.pdata-method summary::after { content: "+"; font: 400 22px/1 'Bebas Neue', 'Bebas Fallback', sans-serif; color: var(--accent); }
.pdata-method[open] summary::after { content: "\2212"; }
.pdata-method .pdata-note { margin-top: 4px; }
@media (max-width: 899px) {
  .pdata-source { font-size: 11px; letter-spacing: .04em; }
  .inline-cta { padding: 14px; gap: 12px; }
}
@media (max-width: 899px) {
  .pbox { padding-top: 28px !important; gap: 16px; }
  .plp-section { padding: 36px 16px; }
  #notfor { padding: 36px 16px; }
  #cta { padding-top: 36px; }
  .pfacts [class*="-den"] { letter-spacing: .05em !important; }
}

/* Centered section labels carry no trailing rule (it sat off-center). */
.section-label--center::after { display: none; }

/* Full-width inline CTA only on phones (in the 600 to 899px row layout it overflowed). */
@media (max-width: 599px) { .inline-cta .btn-primary { width: 100%; } }

/* The font shorthand resets font-variant-numeric; restore lining figures on
   every Syne/mono element that sets font via shorthand. */
.fold-sub, .fold-assure, .fold-micro, .fold-qual, .fold-chip, .fold-watch, .bk-facts, .lp-legal p, .pdata-method summary { font-variant-numeric: lining-nums; }

/* "Book The Call." on one line only on phones; two lines from 600px. */
@media (max-width: 599px) { #cta .cta-heading br { display: none; } }

/* Below-fold text: avoid one-word last lines (never in the fold: balance and
   pretty can pick different breaks in the fallback font and shift layout). */
#notfor .disqualifier, #notfor .notfor-intro p, .criteria-foot, #cta .cta-body, #cta .cta-sub,
.lp-legal p, .inline-cta-label, .plp-sub, .pdata-source { text-wrap: pretty; }
nav.product-index .product-index-grid a { text-wrap: balance; }

/* Box footer aligns with the 16px rows above it on phones. */
@media (max-width: 420px) { .criteria-foot { padding-left: 16px; padding-right: 16px; } }

/* ---------------- HEADLINE SYSTEM v2 (2026-10-05, Ryan approved) ----------------
   H1 = the lead product, one line, lime ("DSCR Leads").
   H2 = the ad hook in two beats, white, explicit <br> between beats. */
.fold-h1 { color: var(--accent); margin-bottom: 4px; }
.fold-h2 { font: 400 clamp(28px, 8.2vw, 36px)/.95 'Bebas Neue', 'Bebas Fallback', sans-serif; letter-spacing: .01em;
  color: var(--white); margin: 0 0 10px; text-wrap: balance; }
@media (max-width: 599px) and (max-height: 600px) { .fold-h2 { margin-bottom: 8px; } }
@media (min-width: 420px) and (max-width: 599px) { .fold-h1 { margin-bottom: 6px; } .fold-h2 { margin-bottom: 12px; } }
@media (min-width: 600px) and (max-width: 999px) { .fold-h1 { margin-bottom: 8px; } .fold-h2 { font-size: clamp(40px, 5.6vw, 50px); margin-bottom: 16px; } }
@media (min-width: 1000px) { .fold-h1 { margin-bottom: 10px; } .fold-h2 { font-size: clamp(44px, 3.7vw, 58px); line-height: .92; margin-bottom: 20px; } }

/* Chip: "Lenders & Brokers Closing $1M+ A Month" (38 chars) fits to 320px. */
@media (max-width: 380px) { .fold-chip { font-size: 10px; letter-spacing: .06em; padding: 0 10px; } }

/* Assurance strip is two explicit lines (<br>) at every width, so the fallback
   font and Syne always break in the same place (no font-swap shift). */
.fold-assure.fold-assure--2 { white-space: nowrap; }
@media (max-width: 340px) { .fold-assure.fold-assure--2 { white-space: normal; font-size: 13px; } }

/* No dividers that read as a false floor: the global styles.css
   section{border-bottom} drew a line right under the fold (first screen on
   phones) and partial-width lines between the constrained product sections
   on desktop. Sections separate by spacing and background instead. */
.fold, .pbox, .plp-section { border-bottom: 0 !important; }
nav.product-index { border-top: 0; }
