/* Ad landing pages (/for/*.html), on top of /styles.css and /site.css.
   Theme colours come from the shared variables, so light and dark both work. The phone bezel and
   the printed-code card keep fixed colours on purpose: they picture real objects. */

/* ---------- hero ---------- */
.lp-hero { padding: 56px 0 40px; }
.lp-hero .lead { max-width: 540px; }
.lp-note { margin: 0; }
.landing h1, .landing h2 { text-wrap: balance; }

/* the real hosted page in a phone, with the printed code beside it (positioned against the phone,
   which sits right of centre to leave room for the code card) */
.lp-art { position: relative; display: grid; place-items: center; min-height: 560px; isolation: isolate; }
.lp-art::before, .lp-art::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.lp-art::before { width: 320px; height: 320px; top: 2%; right: 2%; background: var(--lemon-soft); }
.lp-art::after { width: 240px; height: 240px; bottom: 2%; left: 8%; background: var(--pink-soft); }
.lp-device { position: relative; margin-left: 110px; }
.lp-phone {
  width: 262px; margin: 0; padding: 9px; border-radius: 44px; background: #221a3d;
  box-shadow: var(--shadow-lift); transform: rotate(3deg);
}
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 35px; background: #f7f4ff; }
:root[data-theme="dark"] .lp-phone { background: #0c0919; box-shadow: 0 0 0 1px var(--tint-2), var(--shadow-lift); }
.lp-qr-card {
  position: absolute; left: -120px; bottom: 34px; z-index: 2; width: 170px; padding: 10px; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-lift); transform: rotate(-6deg);
}
.lp-qr-card img, .lp-qr-card canvas { display: block; width: 100%; height: auto; }
.lp-chip { top: 7%; right: -48px; z-index: 2; background: var(--mint-soft); color: var(--mint-text); transform: rotate(4deg); }

/* ---------- how it works ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: lp-step; }
.lp-step { padding: 24px; counter-increment: lp-step; }
.lp-step::before {
  content: counter(lp-step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font: 800 19px/1 var(--font-display);
}
.lp-step:nth-child(2)::before { background: var(--lemon-soft); color: var(--lemon-text); }
.lp-step:nth-child(3)::before { background: var(--mint-soft); color: var(--mint-text); }
.lp-step h3 { margin: 0 0 6px; font-size: 18px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- benefits ---------- */
.lp-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-benefits .feature { padding: 26px; }
.lp-benefits .feature h3 { font-size: 18px; }
.lp-benefits .feature p { font-size: 14.5px; }

/* ---------- second product shot + bullet list ---------- */
.lp-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.lp-split .lp-phone { justify-self: center; width: 240px; transform: rotate(-3deg); }
.lp-split-copy h2 { margin: 14px 0 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.lp-split-copy > p { margin: 0; color: var(--muted); font-size: 16.5px; }
.lp-list { margin-top: 20px; font-size: 15px; }

/* ---------- comparison (small business) ---------- */
.lp-compare .compare-intro { display: block; text-align: left; }

/* ---------- Free vs Premium teaser ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.lp-plans .plan-card .btn { margin-top: auto; }
.lp-yearly { margin: -8px 0 0; }
.lp-plans-more { margin: 22px 0 0; text-align: center; font-weight: 700; }

/* ---------- closing call to action + footer ---------- */
.lp-cta-crab { display: block; width: 130px; height: auto; margin: -8px auto 8px; animation: crab-bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.lp-footer { padding-top: 22px; }

@media (max-width: 900px) {
  .lp-hero { padding: 32px 0 16px; }
  .lp-art { min-height: 0; padding: 12px 0 8px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; gap: 28px; }
  .lp-split .lp-phone { order: 1; }
}

@media (max-width: 560px) {
  .lp-hero .hero-cta .btn { flex: 1 1 100%; }
  .lp-art::before { width: 220px; height: 220px; }
  .lp-art::after { width: 170px; height: 170px; }
  .lp-phone { width: 212px; padding: 7px; border-radius: 36px; }
  .lp-phone img { border-radius: 29px; }
  .lp-split .lp-phone { width: 212px; }
  .lp-device { margin-left: 72px; }
  .lp-qr-card { width: 124px; padding: 7px; border-radius: 16px; left: -86px; bottom: 26px; }
  .lp-chip { right: -18px; }
  /* steps: number beside the text, so the three fit on about one screen */
  .lp-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .lp-step::before { grid-row: span 2; width: 38px; height: 38px; margin: 0; font-size: 17px; }
  .lp-benefits { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-cta-crab { width: 110px; }
}

@media (prefers-reduced-motion: reduce) { .lp-cta-crab { animation: none; } }
