/* ============================================================
   Facebook-ad landing page (lp.php): conversion-focused styles.
   Reuses brand tokens from style.css (loaded first).
   ============================================================ */

/* ---- Minimal nav ----
   Logo + a single CTA button, no menu links, no hamburger. Keep the CTA
   visible on every width (base stylesheet hides .nav__actions .btn <=1024px). */
.nav__actions--minimal .btn { display: inline-flex; }
/* Shorten the CTA label on small screens so it never crowds the logo. */
.lp-nav-cta__sm { display: none; }
@media (max-width: 480px) {
  .lp-nav-cta__lg { display: none; }
  .lp-nav-cta__sm { display: inline; }
}

/* ---- Hero ---- */
.lp-hero { position: relative; overflow: hidden; background: #fff; padding: 112px 0 60px; text-align: center; }
.lp-hero__grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,26,62,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14,26,62,.035) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%); }
.lp-hero__inner { position: relative; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.lp-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.06; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.lp-hero h1 .accent { color: var(--red); }
.lp-hero__sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.55; margin: 18px auto 0; max-width: 600px; }
.lp-hero__sub b { color: var(--navy); font-weight: 700; }
.lp-stars { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lp-stars .stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }

/* ---- Hero lead form ---- */
.lp-lead-wrap { margin-top: 26px; }
.lp-lead { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px 24px 22px; box-shadow: 0 30px 60px -30px rgba(14,26,62,.4); text-align: left; }
/* Desktop: three fields inline so the form stays short. */
.lp-lead__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.lp-lead__field { margin-bottom: 0; }
.lp-lead label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.lp-lead input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-family: inherit; color: var(--navy); background: #fff; transition: border-color .18s, box-shadow .18s; }
.lp-lead input::placeholder { color: rgba(14,26,62,.4); }
.lp-lead input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.lp-lead .btn { width: 100%; margin-top: 4px; }
.lp-lead__note { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; margin: 13px 0 0; }
/* Mobile: stack the fields (unchanged from the original single-column form). */
@media (max-width: 640px) {
  .lp-lead { max-width: 440px; }
  .lp-lead__grid { grid-template-columns: 1fr; gap: 13px; margin-bottom: 13px; }
}

/* Inline success panel (replaces the form after a successful submit). */
.lp-lead__done {
  max-width: 480px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(225, 29, 46, 0.24), transparent 30rem),
    linear-gradient(135deg, #111936, #0e1a3e);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
  padding: 40px 30px; box-shadow: 0 30px 60px -30px rgba(14,26,62,.45);
  animation: lpDoneIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.lp-lead__done-check {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: #10b981; color: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; line-height: 1;
  box-shadow: 0 12px 26px -8px rgba(16,185,129,.75);
  animation: lpCheckPop .5s .12s cubic-bezier(.2,1.4,.3,1) both;
}
.lp-lead__done h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: capitalize; color: #fff; margin: 0 0 10px; }
.lp-lead__done p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0; }
@keyframes lpDoneIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lpCheckPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-lead__done, .lp-lead__done-check { animation: none; } }

/* Landing-page-only form theme (scoped to <body class="lp-own">). */
body.lp-own .lp-lead {
  background:
    radial-gradient(circle at 10% 10%, rgba(225, 29, 46, 0.24), transparent 30rem),
    linear-gradient(135deg, #111936, #0e1a3e);
  border-color: rgba(255, 255, 255, .12);
}
body.lp-own .lp-lead label,
body.lp-own .lp-lead__note { color: #fff; }
body.lp-own .lp-lead .btn--lg { padding: 15px 28px; font-size: 15px; height: initial; }

/* Trust-badge strip */
.lp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 32px; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lp-badge .tick { width: 20px; height: 20px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ---- How it works (4 steps) ---- */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.lp-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px; text-align: left; }
.lp-step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.lp-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.lp-step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-steps { grid-template-columns: 1fr; } }

/* ---- Portfolio ---- */
.lp-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.lp-work { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.lp-work__shot { position: relative; background: #eef3fa; padding: 24px 22px; }
.lp-work__shot > a { display: block; position: relative; }
.lp-work__shot .browser { position: relative; z-index: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -22px rgba(14,26,62,.4); border: 1px solid rgba(14,26,62,.08); }
.lp-work__bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: #0c1832; }
.lp-work__bar i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.lp-work__img { display: block; width: 100%; height: 188px; object-fit: cover; object-position: top; }
/* Mobile screenshot: overlaps the bottom-right of the desktop mockup, sits
   fully inside the padded shot (so the card's overflow never clips it) and
   layers above the browser via z-index. */
.lp-work__phone { position: absolute; right: 4px; bottom: 0; width: 74px; z-index: 2; border-radius: 13px; overflow: hidden; border: 3px solid #fff; background: #fff; box-shadow: 0 16px 30px -12px rgba(14,26,62,.55); }
.lp-work__phone img { display: block; width: 100%; height: 128px; object-fit: cover; object-position: top; }
.lp-work__body { padding: 26px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.lp-work__ind { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: rgba(225,29,46,.08); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.lp-work__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 16px; }
.lp-work__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); }
.lp-work__link:hover { gap: 12px; }
@media (max-width: 980px) { .lp-portfolio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lp-portfolio { grid-template-columns: 1fr; } }

/* ---- Testimonial cards (3-up) ---- */
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.lp-quote { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; }
.lp-quote .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.lp-quote blockquote { font-size: 16px; line-height: 1.6; color: var(--navy); margin: 0; flex: 1; }
.lp-quote__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.lp-quote__avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--navy), rgba(14,26,62,.7)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lp-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-quote__who b { display: block; font-size: 14.5px; color: var(--navy); }
.lp-quote__who small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .lp-quotes { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

/* ---- Comparison table ---- */
.lp-compare { max-width: 860px; margin: 40px auto 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; }
.lp-compare__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; }
.lp-compare__row + .lp-compare__row { border-top: 1px solid var(--border); }
.lp-compare__row > div { padding: 16px 18px; font-size: 15px; }
.lp-compare__head { background: var(--navy); color: #fff; font-family: var(--font-display); }
.lp-compare__head > div { font-weight: 700; font-size: 15px; }
.lp-compare__head .us { color: #ff5461; }
.lp-compare__feature { font-weight: 600; color: var(--navy); }
.lp-compare__us { color: var(--navy); font-weight: 600; background: rgba(52,211,153,.06); }
.lp-compare__them { color: var(--muted); }
.lp-compare .yes { color: #10b981; font-weight: 800; margin-right: 6px; }
.lp-compare .no { color: #e11d2e; font-weight: 800; margin-right: 6px; }
@media (max-width: 560px) {
  .lp-compare__row { grid-template-columns: 1fr; }
  .lp-compare__row > div { padding: 10px 16px; }
  .lp-compare__feature { padding-top: 16px; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
  .lp-compare__row + .lp-compare__row .lp-compare__feature { border-top: 4px solid var(--cream); margin-top: 4px; }
}

/* ---- Mid-page CTA card (after reviews) ---- */
.lp-midcta-sec { padding-top: 8px; }
.lp-midcta { position: relative; overflow: hidden; background: var(--navy); border-radius: 24px; padding: 46px 32px; text-align: center; box-shadow: 0 40px 70px -40px rgba(14,26,62,.6); }
.lp-midcta h2 { margin: 0 0 24px; position: relative; z-index: 1; }
.lp-midcta .btn { position: relative; z-index: 1; }
.lp-midcta .navy-glow { opacity: .9; }

/* Founder section styles moved to the global stylesheet (assets/css/style.css)
   as .founder so the About page can reuse them; see partials/founder.php. */

/* ---- Minimal footer ---- */
.footer--minimal { padding: 32px 0; }
.footer-mini { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 2; }
.footer-mini__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-mini__links a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-mini__links a:hover { color: #fff; }
.footer-mini__copy { color: rgba(255,255,255,.55); font-size: 13px; }
@media (max-width: 640px) { .footer-mini { flex-direction: column; text-align: center; } }
