/* Website & leads (Oct 15): the leads pipeline (public/js/app/leads.js), Settings → Website & leads
   (public/js/app/website.js) and the Overview's "New business" card (public/js/app/newbusiness.js). */

/* ---------- full-screen pipeline ---------- */
body.fullpage .side, body.fullpage .bottom, body.fullpage .topbar, body.fullpage .sup-fab { display: none !important; }
body.fullpage .shell { grid-template-columns: minmax(0, 1fr); }
body.fullpage .page { max-width: none; padding-top: 0; }
@media (max-width: 860px) { body.fullpage .page { padding-bottom: 40px; } }
.lp-head { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0 12px; margin-bottom: 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.lp-back { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 18px 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 800 17px var(--display); cursor: pointer; }
.lp-back:hover { border-color: var(--teal); }
.lp-back svg { width: 22px; height: 22px; }
.lp-head .fp-cs { flex: none; min-height: 44px; } .lp-head .fp-cs svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .lp-head .fp-cs { min-width: 44px; padding: 0 12px; justify-content: center; } .lp-head .fp-cs span { display: none; } }
.lp-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.lp-title h2 { font-size: 24px; }
.lp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-acts .btn.on { border-color: var(--teal); background: var(--accent-soft); color: var(--accent-ink); }
.lp-acts .btn svg, .lp-contact .btn svg, .nb-card .btn svg, .ws-card .btn svg { width: 16px; height: 16px; flex: none; }
.lp-acts .lp-search { width: 240px; flex: 0 1 240px; max-width: 100%; min-height: 36px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); font-size: 14px; }
.lp-tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px; }
.lp-board { grid-template-columns: repeat(6, minmax(200px, 1fr)); }
.lp-board .kcol { min-height: calc(100vh - 220px); }
.lp-card { gap: 5px; cursor: pointer; }
.lp-board .lp-card { cursor: grab; }
.lp-card.due { border-left: 4px solid var(--warn-ink); }
.lp-c1 { display: flex; align-items: center; gap: 6px; } .lp-c1 b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lp-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.lp-chip, .lp-src { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--line2); color: var(--ink2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-src { background: var(--accent-soft); color: var(--accent-ink); }
.lp-trial { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; } .lp-trial svg { width: 15px; height: 15px; flex: none; }
.lp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .lp-meta .lp-ic { display: inline-flex; color: var(--muted); } .lp-meta .lp-ic svg { width: 14px; height: 14px; }
.lp-meta .lp-ic:first-of-type { margin-left: auto; }
/* phone: one stage at a time */
.lp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink2); font: 800 14px var(--display); cursor: pointer; }
.lp-tab .n { background: var(--line2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.lp-tab.on { background: var(--ink); color: var(--card); border-color: var(--ink); } .lp-tab.on .n { background: rgba(255, 255, 255, .2); color: inherit; }
.lp-list { display: grid; gap: 10px; }
.lp-list .lp-card { padding: 12px 14px; }
@media (max-width: 900px) {
  .lp-head { gap: 10px; padding: 10px 0; }
  .lp-title h2 { font-size: 21px; }
  .lp-acts { width: 100%; } .lp-acts .lp-search { flex: 1 1 100%; width: auto; min-height: 44px; font-size: 16px; }
  .lp-acts .btn.sm { min-height: 42px; flex: 1 1 auto; }
}
/* the lead's sheet */
.modal.lp-sheet { width: min(720px, 100%); }
@media (max-width: 640px) {
  .modal-back:has(.lp-sheet) { padding: 0; }
  .modal.lp-sheet { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
.lp-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-contact .btn { min-height: 46px; flex: 1 1 auto; }
.lp-tasks { display: grid; gap: 8px; }
.lp-task { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); }
.lp-task-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; } .lp-task-t svg { width: 18px; height: 18px; flex: none; }
.lp-task .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 14.5px; }
.lp-facts span { color: var(--muted); } .lp-facts b { overflow-wrap: anywhere; font-weight: 600; }
.lp-noterow { flex-wrap: nowrap; align-items: stretch; } .lp-noterow textarea { flex: 1; min-width: 0; } .lp-notekind { width: auto; flex: none; }
@media (max-width: 520px) { .lp-noterow { flex-wrap: wrap; } .lp-notekind { width: 100%; } }
.lp-plan { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lp-plan summary { cursor: pointer; font-weight: 800; }
.lp-steps { display: grid; gap: 6px; margin-top: 10px; }
.lp-step { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lp-step-ic { display: inline-flex; color: var(--muted); } .lp-step-ic svg { width: 16px; height: 16px; }
.lp-step-t { flex: 1; min-width: 0; } .lp-step-t small { color: var(--muted); margin-left: 6px; }
.lp-h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 8px; }
.lp-tls { display: grid; gap: 10px; }
.lp-tl { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.lp-tl-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--line2); color: var(--ink2); display: grid; place-items: center; } .lp-tl-ic svg { width: 15px; height: 15px; }
.lp-tl .small { overflow-wrap: anywhere; }

/* ---------- the Overview's "New business" card ---------- */
.nb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 520px) { .nb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nb-stat { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px solid var(--line2); text-decoration: none; color: inherit; min-width: 0; }
a.nb-stat:hover { border-color: var(--teal); }
.nb-stat b { font: 900 24px/1.1 var(--display); } .nb-stat span { font-weight: 700; font-size: 13px; color: var(--ink2); } .nb-stat small { color: var(--muted); font-size: 12px; }
.nb-card .ov-row .acts .btn { min-height: 40px; }
.nb-sus { display: grid; gap: 6px; }
.nb-su { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-decoration: none; color: inherit; padding: 6px 2px; border-bottom: 1px solid var(--line2); }
.nb-su:last-child { border-bottom: 0; } .nb-su b { font-weight: 700; }
.nb-from { display: grid; gap: 8px; justify-items: start; }

/* ---------- Settings → Website & leads ---------- */
.ws-intro { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.ws-intro > div { flex: 1 1 320px; min-width: 0; }
.ws-ways { display: grid; gap: 14px; }
.ws-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.ws-card h3 .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 900 15px var(--display); flex: none; }
.ws-card .easy { margin-left: auto; }
.ws-link { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.ws-link:last-child { border-bottom: 0; }
.ws-link code, .ws-code { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
.ws-link .acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 700px) { .ws-link { grid-template-columns: minmax(0, 1fr); } }
textarea.ws-code { width: 100%; min-height: 88px; resize: vertical; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.ws-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ws-seg { display: inline-flex; background: var(--line2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.ws-seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: 800 14px var(--display); color: var(--ink2); cursor: pointer; min-height: 40px; }
.ws-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(4, 7, 12, .14); }
.ws-preview { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: var(--line2); }
.ws-preview iframe { width: 100%; height: 640px; border: 0; border-radius: 12px; background: transparent; display: block; }
.ws-btnprev { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.ws-plat { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ws-steps li { padding-left: 2px; }
.ws-plan-step { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.ws-plan-step.off { opacity: .6; }
.ws-plan-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-plan-top .t { flex: 1 1 200px; min-width: 0; font-weight: 700; }
.ws-plan-top .ic { display: inline-flex; color: var(--muted); } .ws-plan-top .ic svg { width: 18px; height: 18px; }
.ws-plan-top input[type=number] { width: 76px; }
.ws-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.ws-switch input { width: 20px; height: 20px; accent-color: var(--teal); }
.ws-merge { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-merge code { background: var(--line2); border-radius: 6px; padding: 2px 6px; font-size: 12.5px; }
.ws-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-hook { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-hook code { flex: 1 1 260px; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
