/* /landing-page/: a sample landing page that builds itself inside a phone while the
   visitor scrolls. Loaded after pages.css and leads.css (kicker, plain list, real case).
   The sample pages are light, each business with its own color; the site around stays dark. */

/* ---------- hero ---------- */
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.95rem; color: var(--muted); }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust .i { width: 18px; height: 18px; color: var(--accent); }

.lph { position: relative; padding-top: 34px; }
.lph-search {
  position: absolute; top: 0; inset-inline-start: 6%; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: #1b1d22; font-size: 0.95rem; font-weight: 500;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 40px -18px rgb(0 0 0 / 0.9);
}
.lph-search .i { width: 18px; height: 18px; color: #5b5f66; }
.lph-doc {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 80px -30px rgb(0 0 0 / 0.95), 0 0 80px -20px rgb(77 141 255 / 0.22);
}
.lph-doc .hv-bar { background: #eeebe9; border-color: #e2dedc; }
.lph-doc .hv-bar i { background: #cfc9c6; }
.lph-doc .hv-bar span { color: #6b6461; }
.lph-doc .lpm { max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.lph .hv-toast { position: absolute; z-index: 3; }
.lph-t1 { bottom: 10%; inset-inline-end: -2%; }
.lph-t2 { top: -6px; inset-inline-end: 2%; }
.lph-t1 .i { background: rgb(37 211 102 / 0.14); color: #4ad48a; }
@media (max-width: 559px) {
  .lph-t2 { display: none; }
  .lph-t1 { inset-inline-end: 0; bottom: 6%; }
}
@media (prefers-reduced-motion: no-preference) {
  .lph-doc { animation: lph-in 1s 0.1s var(--ease) both; }
  .lph-search { animation: lph-pop 0.6s 0.15s var(--ease) both; }
  .lph-t1 { animation: lph-toast 7s 1.4s var(--ease) infinite; }
  .lph-t2 { animation: lph-pop 0.6s 0.7s var(--ease) both; }
}
@keyframes lph-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes lph-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes lph-toast { 0%, 4% { opacity: 0; transform: translateY(10px); } 10%, 74% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- the sample page (light) ---------- */
.lpm {
  --biz: #0b63c4; --biz-ink: #fff;
  position: relative; padding: 14px 14px 72px; background: #fff; color: #1b1d22; font-size: 0.86rem; line-height: 1.4; text-align: start;
}
.lpb[data-biz="law"] .lpm { --biz: #1f3a68; }
.lpb[data-biz="physio"] .lpm { --biz: #0a7358; }
.lpb[data-biz="reno"] .lpm { --biz: #a3431c; }
.lpm-top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #ecebea; font-size: 0.8rem; }
.lpm-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--biz); transition: background-color 0.4s; }
.lpm-top b { font-weight: 700; }
.lpm-h { margin-top: 14px; font-size: 1.28rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: #121417; }
.lpm-sub { margin-top: 6px; color: #50545b; }
.lpm-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px 12px; border-radius: 10px;
  background: var(--biz); color: var(--biz-ink); font-weight: 700; transition: background-color 0.4s;
}
.lpm-cta .i, .lpm-bar .i { width: 18px; height: 18px; flex: none; }
.lpm-why { list-style: none; display: grid; gap: 6px; margin-top: 16px; }
.lpm-why li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.lpm-why .i { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: color-mix(in srgb, var(--biz) 12%, #fff); color: var(--biz); flex: none; }
.lpm-proof { margin-top: 16px; padding: 12px; border-radius: 10px; background: #f4f3f2; }
.lpm-stars { color: #c98a00; letter-spacing: 2px; font-size: 0.8rem; }
.lpm-proof p { margin-top: 4px; font-weight: 500; }
.lpm-proof small { display: block; margin-top: 4px; font-size: 0.76rem; color: #6b6f76; }
.lpm-form { display: grid; gap: 7px; margin-top: 16px; }
.lpm-in { display: block; padding: 8px 10px; border: 1px solid #d9d6d4; border-radius: 8px; color: #8a8e94; font-size: 0.8rem; }
.lpm-send { display: block; padding: 9px; border-radius: 8px; background: #1b1d22; color: #fff; font-weight: 700; text-align: center; }

.lpm-wide { padding: 20px 26px 30px; font-size: 0.95rem; }
.lpm-wide .lpm-h { font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem); }
.lpm-wide .lpm-cta { justify-content: flex-start; width: max-content; padding-inline: 18px; }
.lpm-wide .lpm-why { grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; }
@media (max-width: 559px) { .lpm-wide .lpm-why { grid-template-columns: 1fr; } }
.lph .lpm-h { box-shadow: inset 0 -0.42em 0 rgb(255 214 102 / 0.55); width: fit-content; }

/* ---------- build section ---------- */
.lpb-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.lpb-pick > span { margin-inline-end: 6px; font-size: 0.95rem; color: var(--muted); }
.lpb-pick button {
  min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--text); font: inherit; font-size: 0.95rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lpb-pick button:hover { border-color: var(--field-line); }
.lpb-pick button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.lpb-grid { display: grid; gap: 0; margin-top: 26px; }
.lpb-stage { position: sticky; top: 64px; z-index: 2; display: grid; justify-items: center; gap: 8px; padding: 8px 0 12px; background: var(--bg); box-shadow: 0 14px 18px -10px var(--bg); }
.lpb-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.lpb-q .i { width: 16px; height: 16px; }
.lpb-q b { padding: 2px 10px; border-radius: 999px; background: rgb(255 214 102 / 0.14); color: #ffe39a; font-weight: 600; }
.lpb-phone {
  position: relative; width: calc(min(330px, 42vh) * 0.56); height: min(330px, 42vh); padding: 7px; border-radius: 30px;
  background: #1f1b1a; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -28px rgb(0 0 0 / 0.95);
}
.lpm-view { position: relative; height: 100%; overflow: hidden; border-radius: 23px; background: #fff; }
.lpb-phone .lpm { font-size: 0.74rem; padding: 12px 11px 64px; transform: translateY(var(--y, 0px)); transition: transform 0.6s var(--ease); }
.lpb-phone .lpm-h { font-size: 1.06rem; }
.lpb-phone .lpm-cta { padding: 9px 8px; }
.lpm-bar {
  position: absolute; inset-inline: 7px; bottom: 7px; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 0 0 23px 23px; font-size: 0.74rem; font-weight: 700; color: #fff;
}
.lpm-bar > span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px 13px; }
.lpm-call { background: #1b1d22; }
.lpm-wa { background: #0f7a41; }
.lpm-toast {
  position: absolute; top: 16px; inset-inline: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 12px; background: #18181b; color: var(--text); font-size: 0.72rem; line-height: 1.3; box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.8);
}
.lpm-toast .i { width: 22px; height: 22px; flex: none; color: #4ad48a; }
.lpm-toast div { display: grid; }
.lpm-toast span { color: var(--muted); }
.lpb-count { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.lpb:not(.is-live) .lpb-count { display: none; }
.lpb[data-s="0"] .lpb-count { visibility: hidden; }

.lpb-steps { list-style: none; }
.lpb-steps li { position: relative; padding: 18px 0 18px; border-top: 1px solid var(--line); }
.lpb-n { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); }
.lpb-steps h3 { margin-top: 4px; font-size: 1.2rem; line-height: 1.3; }
.lpb-steps p { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.lpb-done { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; }
.lpb-done .i { width: 22px; height: 22px; color: var(--accent); flex: none; }
.lpb-note { margin-top: 10px; font-size: 0.88rem; color: var(--faint); }

/* live: parts appear one by one, the step being read is lit */
.lpb.is-live .part { transition: opacity 0.45s, transform 0.5s var(--ease), max-height 0.5s var(--ease), margin 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.3s; }
.lpb.is-live .lpm .part:not(.on) { max-height: 0; margin-top: 0; padding-block: 0; opacity: 0; transform: translateY(8px); overflow: hidden; }
.lpb.is-live .lpm .part.on { max-height: 260px; }
.lpb.is-live .lpm-bar:not(.on), .lpb.is-live .lpm-toast:not(.on) { opacity: 0; transform: translateY(12px); }
.lpb.is-live .lpm-toast:not(.on) { transform: translateY(-12px); }
.lpb.is-live .lpm .part.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); border-radius: 8px; }
.lpb.is-live .lpm-h.cur, .lpb.is-live .lpm-sub.cur { box-shadow: inset 0 -0.42em 0 rgb(255 214 102 / 0.6); }
.lpb.is-live .lpm-sub.cur { box-shadow: none; }
.lpb.is-live .lpb-steps li { transition: opacity 0.3s; }
.lpb.is-live .lpb-steps li:not(.is-cur) { opacity: 0.42; }
.lpb.is-live .lpb-done { opacity: 0; transition: opacity 0.4s; }
.lpb.is-live[data-s="7"] .lpb-done { opacity: 1; }

/* phones: the phone stays on top, the steps scroll under it with room to read */
@media (max-width: 959px) {
  .lpb.is-live .lpb-steps li { min-height: 46vh; }
  .lpb.is-live .lpb-steps li:last-child { min-height: 30vh; }
}
@media (min-width: 960px) {
  .lpb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .lpb-stage { top: 96px; order: 2; padding: 0; background: none; }
  .lpb-phone { width: calc(min(600px, 74vh) * 0.5); height: min(600px, 74vh); padding: 9px; border-radius: 40px; }
  .lpm-view { border-radius: 31px; }
  .lpm-bar { inset-inline: 9px; bottom: 9px; border-radius: 0 0 31px 31px; }
  .lpb-phone .lpm { font-size: 0.86rem; padding: 16px 15px 72px; }
  .lpb-phone .lpm-h { font-size: 1.3rem; }
  .lpb-steps li { padding: 22px 0; }
  .lpb.is-live .lpb-steps li { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; }
  .lpb.is-live .lpb-steps li:first-child { min-height: 40vh; justify-content: flex-start; }
  .lpb.is-live .lpb-steps li:last-child { min-height: 60vh; }
  .lpb-steps h3 { font-size: 1.4rem; }
  .lpb-steps p { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lpb.is-live .part, .lpb-phone .lpm, .lpb.is-live .lpb-steps li, .lpm-logo, .lpm-cta { transition: none; }
}
