/* ============================================================
   Scale My Offer — Landing page layout
   Extends the design system (colors_and_type + components) and the
   marketing-site kit (marketing.css). Adds: VSL hero treatments,
   FAQ, founder note, Cal.com booking block, scroll-reveal.
   ============================================================ */

/* ---------- Smooth anchor scrolling + reveal ground ---------- */
html { scroll-behavior: smooth; }

/* clip horizontal overflow WITHOUT creating a scroll container.
   (overflow-x:hidden would compute overflow-y to auto and break position:sticky) */
.mk-app { overflow-x: clip; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children of a revealed group */
.reveal[data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible[data-stagger] > * { opacity: 1; transform: none; }
.reveal.is-visible[data-stagger] > *:nth-child(1) { transition-delay: .04s; }
.reveal.is-visible[data-stagger] > *:nth-child(2) { transition-delay: .10s; }
.reveal.is-visible[data-stagger] > *:nth-child(3) { transition-delay: .16s; }
.reveal.is-visible[data-stagger] > *:nth-child(4) { transition-delay: .22s; }
.reveal.is-visible[data-stagger] > *:nth-child(5) { transition-delay: .28s; }
.reveal.is-visible[data-stagger] > *:nth-child(6) { transition-delay: .34s; }
.reveal.is-visible[data-stagger] > *:nth-child(7) { transition-delay: .40s; }
.reveal.is-visible[data-stagger] > *:nth-child(8) { transition-delay: .46s; }

body[data-motion="off"] .reveal,
body[data-motion="off"] .reveal[data-stagger] > * {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   HERO — shared
   ============================================================ */
.lp-hero { position: relative; padding: 34px 0 56px; }
.lp-hero__glow { top: -30px; }
.lp-hero__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.lp-hero__eyebrow { display: flex; align-items: center; gap: 10px; }
.lp-hero__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px rgba(255,215,0,.6); }
.lp-hero__title { margin: 14px 0 0; font-size: 60px; line-height: 1.03; letter-spacing: -1.5px; }
.lp-hero__lead { margin: 16px 0 0; }
.lp-hero__actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.lp-hero__note { font-family: var(--mono); font-size: 12px; color: var(--text-4); margin-top: 16px; letter-spacing: .02em; }

/* proof strip (legacy) */
.lp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 22px 28px; }
.lp-stat { padding: 0 6px; }
.lp-stat + .lp-stat { border-left: 0.5px solid rgba(255,255,255,0.10); padding-left: 28px; }
.lp-stat__fig { font-size: 24px; }
.lp-stat__cap { font-family: var(--sans); font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.4; }

/* ---------- Case-study results bar ---------- */
.lp-case { display: flex; flex-direction: column; padding: 20px 28px; }
.lp-case__label { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 16px; margin-bottom: 18px; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
.lp-case__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 1px rgba(255,215,0,.7); }
.lp-case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.lp-case__stat { padding: 0 4px; }
.lp-case__stat + .lp-case__stat { border-left: 0.5px solid rgba(255,255,255,0.10); padding-left: 24px; }
.lp-case__fig { font-size: 24px; white-space: nowrap; }
.lp-case__cap { font-family: var(--sans); font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.4; }

/* ---------- VSL video placeholder ---------- */
.lp-vsl {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-hero);
  cursor: pointer;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 120% at 50% 0%, rgba(255,166,0,0.10), rgba(255,166,0,0) 55%),
    linear-gradient(var(--grid-line) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--grid-line) 0.5px, transparent 0.5px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}
.lp-vsl iframe, .lp-vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-vsl__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.lp-vsl__btn {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(255,180,0,0.30), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.lp-vsl:hover .lp-vsl__btn { transform: scale(1.06); background: var(--gold-hover); box-shadow: 0 10px 50px rgba(255,180,0,0.42); }
.lp-vsl__btn svg { margin-left: 4px; }
.lp-vsl__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.lp-vsl__corner { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--gold-deep); text-transform: uppercase; }
.lp-vsl__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 1px rgba(255,215,0,.7); }
.lp-vsl__dur { position: absolute; bottom: 14px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-3); background: rgba(10,13,11,.5); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }

/* glass frame wrapping the vsl */
.lp-vsl-frame { padding: 10px; }

/* ---------- Treatment A: editorial split ---------- */
.lp-hero--split .lp-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.lp-hero--split .lp-hero__live { margin-top: 26px; max-width: 460px; }
.lp-hero--split .lp-strip, .lp-hero--split .lp-case { margin-top: 40px; }

/* ---------- Treatment B: VSL-first (centered) ---------- */
.lp-hero--vsl .lp-hero__inner { text-align: center; }
.lp-hero--vsl .lp-hero__eyebrow { justify-content: center; }
.lp-hero--vsl .lp-hero__title { font-size: 56px; max-width: 880px; margin-left: auto; margin-right: auto; }
.lp-hero--vsl .lp-hero__lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.lp-hero--vsl .lp-hero__actions { justify-content: center; }
.lp-hero--vsl .lp-hero__video { max-width: 820px; margin: 24px auto 0; }
.lp-hero--vsl .lp-hero__live { max-width: 460px; margin: 26px auto 0; display: flex; justify-content: center; }
.lp-hero--vsl .lp-strip { margin: 34px auto 0; max-width: 720px; }
.lp-hero--vsl .lp-case { margin: 34px auto 0; max-width: 760px; }

/* ============================================================
   FAQ
   ============================================================ */
.lp-faq { position: relative; max-width: 1080px; margin: 0 auto; padding: 72px 40px; }
.lp-faq__head { max-width: 720px; }
.lp-faq__list { margin-top: 38px; display: grid; gap: 12px; }
.lp-faq__item {
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--r-card);
  background: var(--ink-2);
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
}
.lp-faq__item[data-open="true"] { border-color: rgba(255,215,0,0.28); }
.lp-faq__q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: none;
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  font-family: var(--sans); font-weight: 500; font-size: 17px; color: var(--text-1);
}
.lp-faq__idx { font-family: var(--mono); font-size: 12px; color: var(--gold); flex: none; }
.lp-faq__qtext { flex: 1; }
.lp-faq__sign { flex: none; color: var(--text-3); transition: transform .2s ease, color .15s ease; font-family: var(--mono); font-size: 18px; line-height: 1; }
.lp-faq__item[data-open="true"] .lp-faq__sign { transform: rotate(45deg); color: var(--gold); }
.lp-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.lp-faq__atext { padding: 0 24px 22px 60px; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--text-2); }

/* ============================================================
   FOUNDER NOTE
   ============================================================ */
.lp-founder { position: relative; max-width: 1080px; margin: 0 auto; padding: 72px 40px; }
.lp-founder__glow { right: -120px; bottom: -180px; }
.lp-founder__inner { position: relative; z-index: 1; }
.lp-founder__card { display: grid; grid-template-columns: 240px 1fr; gap: 0; overflow: hidden; }
.lp-founder__aside {
  position: relative; padding: 36px 30px;
  border-right: 0.5px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,215,0,0.05), rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 18px;
}
.lp-founder__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2f29, #0f1310);
  border: 0.5px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.lp-founder__name { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--text-1); }
.lp-founder__role { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); margin-top: 4px; }
.lp-founder__sig { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); margin-top: auto; }
.lp-founder__body { padding: 40px 44px; }
.lp-founder__body p { font-family: var(--sans); font-size: 17px; line-height: 1.72; color: var(--text-2); margin: 0 0 18px; }
.lp-founder__body p:last-child { margin-bottom: 0; }
.lp-founder__body em { font-family: var(--serif); font-style: italic; color: var(--gold); }
.lp-founder__body strong { color: var(--text-1); font-weight: 600; }

/* ============================================================
   BOOK / CAL.COM
   ============================================================ */
.lp-book { position: relative; padding: 84px 0 96px; }
.lp-book__glow { top: -20px; }
.lp-book__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.lp-book__head { max-width: 720px; }
.lp-book__lead { max-width: 560px; margin: 18px 0 0; }
.lp-book__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; }
.lp-book__point { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 14px; color: var(--text-2); }
.lp-book__check { color: var(--gold); font-family: var(--mono); font-size: 13px; }
.lp-cal-wrap { margin-top: 40px; padding: 12px; overflow: hidden; }
.lp-cal { width: 100%; height: 720px; overflow: auto; border-radius: 12px; }
.lp-cal__loading { display: flex; align-items: center; justify-content: center; height: 720px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }

/* ============================================================
   ENGINE — "laptop screen" variant (tweak)
   Pinned scroll track: cards stack inside the device, each new system
   sliding up from below over the previous one, led by a thin gold arrow.
   ============================================================ */
.lp-engtrack { position: relative; }
.lp-engtrack__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.lp-engtrack__inner { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.lp-engtrack__inner .mk-section__title { margin-bottom: 0; }

.lp-laptop { display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
.lp-laptop__screen {
  position: relative;
  width: 100%;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0d100e, #090b0a);
  border: 0.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 8px 40px rgba(255,180,0,0.06),
              inset 0 1px 0 rgba(255,255,255,0.10);
}
.lp-laptop__cam { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #1c211d; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); }
.lp-screen__body {
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(255,255,255,0.06);
  background-color: var(--ink);
  aspect-ratio: 16 / 9;          /* standard 16:9 window */
  display: flex; flex-direction: column;
}
.lp-screen__head {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4);
  background: rgba(255,255,255,0.015);
}
.lp-screen__head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 1px rgba(255,215,0,.6); flex: none; }
.lp-screen__head .right { margin-left: auto; color: var(--gold-deep); font-size: 12px; letter-spacing: .08em; }

/* the 16:9 viewport the filmstrip scrolls through */
.lp-screen__stage {
  position: relative; flex: 1; overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--grid-line) 0.5px, transparent 0.5px);
  background-size: 28px 28px;
}
.lp-filmstrip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }

/* smaller card, with an arrow in the gap to the next one */
.lp-film__card {
  height: 132px; box-sizing: border-box;
  margin: 0 28px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 24px;
  border-radius: 12px;
  border: 0.5px solid rgba(255,255,255,0.07);
  background: var(--ink-2);
  opacity: .3;
  transition: opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lp-film__card[data-active="true"] {
  opacity: 1;
  border-color: var(--gold-border);
  background: linear-gradient(160deg, rgba(255,215,0,0.05), rgba(255,255,255,0) 60%), var(--ink-2);
  box-shadow: 0 12px 40px rgba(255,180,0,0.08);
}
.lp-film__top { display: flex; align-items: center; gap: 12px; }
.lp-film__of { color: var(--text-4); }
.lp-film__title { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.2px; color: var(--text-1); margin: 11px 0 0; }
.lp-film__desc {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 7px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* thin gold connector arrow that sits between each card */
.lp-film__arrow {
  height: 52px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); opacity: .7;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.3));
}

/* soft fades at the top & bottom edges of the window */
.lp-stage-fade { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; z-index: 3; }
.lp-stage-fade--top { top: 0; background: linear-gradient(180deg, var(--ink), rgba(10,13,11,0)); }
.lp-stage-fade--bottom { bottom: 0; background: linear-gradient(0deg, var(--ink), rgba(10,13,11,0)); }

/* progress ticks under the laptop */
.lp-screen__progress { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.lp-screen__tick { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); transition: background .2s ease, box-shadow .2s ease; }
.lp-screen__tick.is-on { background: var(--gold); box-shadow: 0 0 8px 1px rgba(255,215,0,.5); }

.lp-laptop__base {
  position: relative;
  width: 116%;
  height: 13px;
  margin-top: -1px;
  border-radius: 0 0 12px 12px;
  background-color: #121613;
  border: 0.5px solid rgba(255,255,255,0.10);
  border-top: none;
  box-shadow: 0 18px 30px rgba(0,0,0,0.5);
}
.lp-laptop__base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 84px; height: 5px; border-radius: 0 0 6px 6px;
  background: #0a0d0b; border: 0.5px solid rgba(255,255,255,0.08); border-top: none;
}

/* ============================================================
   FOOTER (custom, correct asset path)
   ============================================================ */
.lp-footer { border-top: 0.5px solid rgba(255,255,255,0.08); margin-top: 8px; }
.lp-footer__inner { max-width: 1080px; margin: 0 auto; padding: 34px 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-footer__logo { height: 24px; width: auto; }
.lp-footer__meta { display: flex; gap: 10px; align-items: center; font-family: var(--sans); font-size: 13px; color: var(--text-4); flex-wrap: wrap; }
.lp-footer__dot { opacity: .45; }
.lp-footer__spacer { margin-left: auto; }
.lp-footer__tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }

/* ============================================================
   NAV adjustments (reuse mk-nav classes)
   ============================================================ */
.lp-nav__links { display: flex; gap: 26px; margin-left: 14px; }
.mk-nav__brand img { height: 46px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.lp-section-eyebrow { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .lp-hero__title { font-size: 44px !important; letter-spacing: -1px; }
  .lp-hero--split .lp-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-hero--split .lp-hero__media { order: -1; }
  .lp-strip { grid-template-columns: 1fr; gap: 14px; }
  .lp-stat + .lp-stat { border-left: none; padding-left: 6px; border-top: 0.5px solid rgba(255,255,255,.08); padding-top: 14px; }
  .lp-case__stats { grid-template-columns: 1fr; gap: 14px; }
  .lp-case__stat + .lp-case__stat { border-left: none; padding-left: 4px; border-top: 0.5px solid rgba(255,255,255,.08); padding-top: 14px; }
  .lp-founder__card { grid-template-columns: 1fr; }
  .lp-founder__aside { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .lp-founder__sig { margin: 0 0 0 auto; }
  .lp-founder__body { padding: 30px 28px; }
  .mk-nav__links, .lp-nav__links { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* tighten the global 40px gutters to fit small screens */
  .lp-hero__inner, .lp-faq, .lp-founder, .lp-book__inner,
  .lp-footer__inner, .mk-section, .mk-cta__inner { padding-left: 20px; padding-right: 20px; }
  .lp-faq, .lp-founder { padding-top: 52px; padding-bottom: 52px; }
  .lp-book { padding: 60px 0 68px; }
  .lp-hero { padding: 22px 0 44px; }

  /* hero type scales down so it never overflows a 360–414px screen */
  .lp-hero__title,
  .lp-hero--vsl .lp-hero__title { font-size: 33px !important; letter-spacing: -0.6px; line-height: 1.08; }
  .lp-hero__lead, .smo-body { font-size: 15px; }

  /* stat figures + section titles */
  .lp-case__fig, .lp-stat__fig { font-size: 21px; }
  .smo-h2 { font-size: 27px; letter-spacing: -0.4px; }

  /* footer stacks left, drops the right-aligned tag spacer */
  .lp-footer__inner { gap: 12px; }
  .lp-footer__spacer { margin-left: 0; flex-basis: 100%; height: 0; }

  /* founder + faq inner spacing */
  .lp-founder__body { padding: 26px 22px; }
  .lp-founder__body p { font-size: 15.5px; }
  .lp-faq__q { padding: 18px 18px; font-size: 15.5px; gap: 12px; }
  .lp-faq__atext { padding: 0 18px 20px 18px; }

  /* booking calendar a touch shorter on phones */
  .lp-cal, .lp-cal__loading { height: 600px; }

  /* engine stacked list (mobile fallback) — single column already via kit */
  .mk-engine__t { font-size: 16.5px; }
}
