/* Public landing page (/ for logged-out visitors). Monochrome layout ported
   from the ConvoWise reference (grid backdrop, bento feature cards, dark
   pricing/CTA blocks), re-branded with lobot's own tokens from app.css --
   brand purple only as a sparse accent, the rest is ink on light gray. */

.lp {
  --lp-max: 1120px;
  --lp-radius: 20px;
  --lp-card: #fff;
  --lp-dark: #111116;
  --lp-dark-2: #1C1C24;
  --wa: #25D366;
  --tg: #2AABEE;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
.lp * { min-width: 0; }
.lp img, .lp svg { display: block; }
.lp a { color: inherit; }

.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }

/* Grid backdrop behind hero/sections, fading at the edges. */
.lp-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Nav ---------- */

.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.lp-nav.is-scrolled { border-bottom-color: var(--line); }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink) !important; }
.lp-brand .mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.12), 0 2px 6px rgba(14,14,17,.2);
}
.lp-links { display: flex; gap: 28px; margin: 0 auto; }
.lp-links a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lp-links a:hover { color: var(--ink); }
.lp-nav-cta { display: flex; gap: 10px; }

/* ---------- Buttons ---------- */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font: 600 14px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink) !important;
  box-shadow: 0 1px 2px rgba(14,14,17,.06);
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap; cursor: pointer;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,14,17,.1); }
.lp-btn.is-dark {
  background: var(--ink); border-color: var(--ink); color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 8px rgba(14,14,17,.25);
}
.lp-btn.is-dark:hover { background: #26262E; }
.lp-btn.is-sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.lp-btn.is-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.lp-btn.is-block { width: 100%; }
.lp-btn.is-light { background: #fff; color: var(--ink) !important; border-color: #fff; }
.lp-btn.is-ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff !important; box-shadow: none; }

/* ---------- Section heads ---------- */

.lp-section { position: relative; padding: 112px 0; }
.lp-head { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.lp-h2 .soft { color: var(--faint); }
.lp-lead { font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Hero ---------- */

.lp-hero { position: relative; padding: 56px 0 72px; }
.lp-hero .lp-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.lp-chip-icon {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: .92em; height: .92em; border-radius: .22em; margin: -.12em .04em 0;
  background: var(--ink); color: #fff; transform: rotate(-6deg);
  box-shadow: 0 6px 16px rgba(14,14,17,.25);
}
.lp-chip-icon svg { width: 58%; height: 58%; }
.lp-chip-icon.is-wa { background: var(--wa); }
.lp-hero .lp-lead { margin: 22px 0 32px; max-width: 480px; }
.lp-hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-hero-cta .or { font-size: 13px; color: var(--muted); }
.lp-hero-stats { display: flex; margin-top: 48px; }
.lp-hero-stats > div { padding: 0 28px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.lp-hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.lp-hero-stats svg { width: 22px; height: 22px; color: var(--ink-2); margin-bottom: 8px; }
.lp-hero-stats strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.lp-hero-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* Phone mockup */
.lp-phone-stage {
  position: relative; height: 540px; border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, #fff, var(--canvas) 70%);
  border: 1px solid var(--line); overflow: hidden;
}
.lp-phone-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-3) 1px, transparent 1px);
  background-size: 14px 14px; opacity: .45;
  mask-image: linear-gradient(#000, transparent 70%);
}
.lp-phone {
  position: absolute; left: 50%; top: 44px; width: 290px; height: 580px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 46px; background: #0E0E11; padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(14,14,17,.45), inset 0 0 0 2px #3A3A44;
}
.lp-phone-screen { height: 100%; border-radius: 37px; background: #EFEAE2; overflow: hidden; display: flex; flex-direction: column; }
.lp-phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font-size: 12px; font-weight: 700; background: #fff; }
.lp-phone-island { width: 84px; height: 24px; border-radius: 20px; background: #0E0E11; }
.lp-phone-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.lp-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.lp-phone-head b { font-size: 13px; display: block; }
.lp-phone-head small { font-size: 10.5px; color: var(--ok); }
.lp-phone-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.lp-bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.4; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.lp-bubble.me { align-self: flex-end; background: #D9FDD3; }
.lp-bubble time { display: block; text-align: right; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.lp-bubble-btns { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; width: 70%; }
.lp-bubble-btns span { background: #fff; border-radius: 10px; padding: 7px; text-align: center; font-size: 11.5px; font-weight: 600; color: #0A84C8; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.lp-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 12px; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: lp-dot 1.2s infinite; }
.lp-typing i:nth-child(2) { animation-delay: .15s; }
.lp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.lp-phone-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--canvas)); z-index: 2; }

.lp-float {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 32px -8px rgba(14,14,17,.18);
  font-size: 12px; display: flex; align-items: center; gap: 10px;
  animation: lp-bob 5s ease-in-out infinite;
}
.lp-float b { display: block; font-size: 12.5px; }
.lp-float small { color: var(--muted); font-size: 11px; }
.lp-float .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lp-float.f1 { top: 60px; left: 18px; }
.lp-float.f2 { bottom: 110px; right: 16px; animation-delay: -2.5s; }
@keyframes lp-bob { 50% { transform: translateY(-8px); } }

/* ---------- Marquee ---------- */

.lp-marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 16px 0; }
.lp-marquee-track { display: flex; gap: 48px; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-marquee span { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.lp-marquee span::before { content: "✦"; color: var(--faint); font-size: 11px; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ---------- Metrics strip ---------- */

.lp-proof { text-align: center; padding: 64px 0 0; }
.lp-proof p { font-size: 13.5px; color: var(--muted); }
.lp-proof p b { color: var(--ink); }
.lp-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px auto 0; max-width: 880px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--lp-radius);
  box-shadow: 0 1px 2px rgba(14,14,17,.04);
}
.lp-metrics > div { padding: 28px 16px; border-left: 1px solid var(--line); }
.lp-metrics > div:first-child { border-left: 0; }
.lp-metrics strong { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; }
.lp-metrics span { font-size: 12.5px; color: var(--muted); }

/* ---------- Bento features ---------- */

.lp-bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lp-card {
  background: var(--lp-card); border: 1px solid var(--line); border-radius: var(--lp-radius);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 2px rgba(14,14,17,.04);
  transition: box-shadow .2s, transform .2s;
}
.lp-card:hover { box-shadow: 0 16px 40px -16px rgba(14,14,17,.18); transform: translateY(-2px); }
.lp-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lp-card > p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.lp-card .viz { margin-top: 18px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-bento .span-3 { grid-column: span 3; }
.lp-bento .span-2 { grid-column: span 2; }

/* viz: inbox list */
.viz-inbox { display: flex; flex-direction: column; gap: 6px; }
.viz-inbox .row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.viz-inbox .row.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.viz-inbox .row.is-active small { color: rgba(255,255,255,.6); }
.viz-inbox .who { flex: 1; font-size: 12px; font-weight: 600; }
.viz-inbox .who small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-inbox .ch { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.ch-wa { background: #E6F9EE; color: #0F7A3A; }
.ch-tg { background: #E3F4FD; color: #0A6E9E; }
.ch-cloud { background: var(--brand-wash); color: var(--brand-ink); }
.ch-web { background: var(--canvas); color: var(--ink-2); }
/* Not named .badge: app.css has a global .badge with 10px side padding
   that shoved the digit off-center. flex: none -- as a flex item under
   `.lp * { min-width: 0 }` it would otherwise shrink into an oval. */
.viz-inbox .lp-unread {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
}
.viz-inbox .ch { flex: none; }

/* viz: flow funnel bars (like the reference "AI Workflow Funnel") */
.viz-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: 180px; }
.viz-funnel > div { position: relative; border-radius: 12px 12px 6px 6px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 12px; font-size: 12px; font-weight: 700; }
.viz-funnel > div::before { content: attr(data-label); position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.viz-funnel .b1 { height: 100%; background: var(--ink); color: #fff; }
.viz-funnel .b2 { height: 74%; background: #A9A9B5; color: #fff; }
.viz-funnel .b3 { height: 52%; background: #D3D3DB; }
.viz-funnel .b4 { height: 40%; background: #E7E7EC; }
.viz-funnel-wrap { padding-top: 24px; }

/* viz: campaign progress bars */
.viz-bars { display: flex; flex-direction: column; gap: 10px; }
.viz-bars .bar { position: relative; height: 32px; border-radius: 8px; background: var(--canvas); overflow: hidden; }
.viz-bars .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--ink); }
.viz-bars .bar i.soft { background: #BDBDC8; }
.viz-bars .bar span { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 10px; font-size: 11px; font-weight: 600; color: #fff; mix-blend-mode: normal; }
.viz-bars .bar span em { font-style: normal; color: var(--ink-2); }
.viz-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin-bottom: 12px; }
.viz-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.viz-legend .l1 { color: var(--ink); }
.viz-legend .l2 { color: #A9A9B5; }
.viz-legend .l3 { color: #D3D3DB; }
.viz-legend span { color: var(--muted); }

/* viz: kanban */
.lp-card .viz-kanban { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.viz-kanban .col { background: var(--canvas); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.viz-kanban .col b { font-size: 10.5px; color: var(--ink-2); padding: 2px 2px 4px; }
.viz-kanban .k { background: #fff; border-radius: 7px; padding: 7px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.viz-kanban .k i { height: 5px; border-radius: 3px; background: var(--line-2); }
.viz-kanban .k i:first-child { width: 60%; background: var(--ink); }
.viz-kanban .k.is-brand i:first-child { background: var(--brand); }

/* viz: schedule heatmap (like "System Monitoring") */
.lp-card .viz-heat { display: grid; align-content: end; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.viz-heat i { aspect-ratio: 1; border-radius: 4px; background: var(--canvas); }
.viz-heat i.h1 { background: #D3D3DB; }
.viz-heat i.h2 { background: #8C8C99; }
.viz-heat i.h3 { background: var(--ink); }

/* viz: code */
.viz-code {
  background: var(--lp-dark); color: #C9C9D4; border-radius: 12px; padding: 14px 16px;
  font: 500 11.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; white-space: pre;
}
.viz-code .k { color: #A99CFF; }
.viz-code .s { color: #7EE0A0; }
.viz-code .c { color: #6B6B7B; }

/* ---------- Product showcase ---------- */

.lp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-pills span { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.lp-pills span::before { content: "✦ "; color: var(--brand); }
.lp-mini-stats { display: inline-grid; grid-template-columns: repeat(3, auto); background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
.lp-mini-stats > div { padding: 12px 24px; border-left: 1px solid var(--line); text-align: center; }
.lp-mini-stats > div:first-child { border-left: 0; }
.lp-mini-stats strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.lp-mini-stats span { font-size: 11px; color: var(--muted); }

.lp-app {
  position: relative; z-index: 1; max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(14,14,17,.28), 0 0 0 8px rgba(255,255,255,.6);
}
.lp-app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.lp-app-bar i:nth-child(2) { background: #FEBC2E; }
.lp-app-bar i:nth-child(3) { background: #28C840; }
.lp-app-bar .url { margin: 0 auto; padding: 4px 40px; border-radius: 8px; background: var(--canvas); font-size: 11px; color: var(--muted); }
.lp-app-body { display: grid; grid-template-columns: 56px 250px 1fr 220px; height: 440px; }
.lp-app-rail { border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-app-rail i { width: 30px; height: 30px; border-radius: 9px; background: var(--canvas); }
.lp-app-rail i.on { background: var(--ink); }
.lp-app-list { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.lp-app-list .search { height: 32px; border-radius: 9px; background: var(--canvas); margin-bottom: 6px; font-size: 11px; color: var(--faint); display: flex; align-items: center; padding: 0 10px; }
.lp-app-thread { display: flex; flex-direction: column; background: var(--surface); }
.lp-app-thread header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; }
.lp-app-thread header small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.lp-app-msgs { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lp-app-msgs .lp-bubble { font-size: 12px; border: 1px solid var(--line); box-shadow: none; }
.lp-app-msgs .lp-bubble.me { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-app-msgs .lp-bubble.me time { color: rgba(255,255,255,.55); }
.lp-app-msgs .sys { align-self: center; font-size: 10.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.lp-app-compose { margin: 0 12px 12px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 12px; color: var(--faint); }
.lp-app-compose span { flex: 1; }
.lp-app-compose b { height: 30px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.lp-app-side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 12px; }
.lp-app-side .lp-avatar { width: 52px; height: 52px; font-size: 18px; }
.lp-app-side dl { margin: 0; display: grid; gap: 10px; }
.lp-app-side dt { font-size: 10.5px; color: var(--muted); }
.lp-app-side dd { margin: 2px 0 0; font-weight: 600; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-tags span { font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; }

.lp-app-tag {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 6px 10px; font-size: 11px; font-weight: 600; box-shadow: 0 8px 20px -6px rgba(14,14,17,.2);
}
.lp-app-tag.t1 { top: -14px; left: 32px; }
.lp-app-tag.t2 { top: -14px; right: 32px; }
.lp-app-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.lp-showcase { position: relative; }

/* ---------- Steps ---------- */

.lp-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}
.lp-step .viz { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; gap: 8px; justify-content: flex-start; }
.lp-step .field { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lp-step .opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 600; }
.lp-step .opt .ok { margin-left: auto; color: var(--ok); font-size: 11px; }
.lp-step .node { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11.5px; }
.lp-step .node i { width: 8px; height: 8px; border-radius: 3px; background: var(--ink); flex: none; }
.lp-step .node.is-brand i { background: var(--brand); }
.lp-step .edge { width: 2px; height: 10px; background: var(--line-3); margin-left: 17px; }
.lp-cta-strip {
  position: relative; z-index: 1; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--lp-radius); padding: 22px 26px;
}
.lp-cta-strip b { font-size: 16px; }
.lp-cta-strip p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Use cases (dark bento, in place of the reference testimonials) ---------- */

.lp-cases { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.lp-case-main {
  background: var(--lp-dark); color: #fff; border-radius: var(--lp-radius); padding: 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; position: relative; overflow: hidden;
}
.lp-case-main::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: var(--brand); filter: blur(90px); opacity: .35; }
.lp-case-main h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
.lp-case-main p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.6; margin-top: 14px; }
.lp-case-main ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.lp-case-main li::before { content: "→ "; color: #A99CFF; }
.lp-case-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.lp-case-tiles div { background: var(--lp-dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; }
.lp-case-tiles strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.lp-case-tiles span { font-size: 11.5px; color: rgba(255,255,255,.55); }
.lp-case-list { display: grid; gap: 16px; }
.lp-case-list .lp-card { flex-direction: row; gap: 14px; align-items: flex-start; }
.lp-case-list .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--canvas); display: grid; place-items: center; flex: none; font-size: 18px; }
.lp-case-list h3 { margin-bottom: 4px; }
.lp-case-list p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- Pricing ---------- */

.lp-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); }
.lp-toggle button { border: 0; background: none; height: 34px; padding: 0 16px; border-radius: 9px; font: 600 13px 'Plus Jakarta Sans', sans-serif; color: var(--muted); cursor: pointer; }
.lp-toggle button.on { background: var(--ink); color: #fff; }
.lp-toggle em { font-style: normal; font-size: 10.5px; color: var(--ok); margin-left: 4px; }
.lp-toggle button.on em { color: #7EE0A0; }
.lp-prices { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; max-width: 1000px; margin: 0 auto; }
.lp-price { background: #fff; border: 1px solid var(--line); border-radius: var(--lp-radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.lp-price .tier { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lp-price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.lp-price .amt small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-price .desc { font-size: 13px; line-height: 1.5; color: var(--muted); }
.lp-price ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; }
.lp-price li { display: flex; gap: 8px; align-items: flex-start; }
.lp-price li::before { content: "✓"; font-weight: 800; color: var(--ink); }
.lp-price.is-featured { background: var(--lp-dark); color: #fff; border-color: var(--lp-dark); padding: 36px 28px; box-shadow: 0 40px 80px -30px rgba(14,14,17,.5); position: relative; }
.lp-price.is-featured .tier, .lp-price.is-featured .desc, .lp-price.is-featured .amt small { color: rgba(255,255,255,.6); }
.lp-price.is-featured ul { border-top-color: rgba(255,255,255,.1); }
.lp-price.is-featured li::before { color: #A99CFF; }
.lp-price .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.lp-price-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 24px; }

/* ---------- FAQ ---------- */

.lp-faq { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 14.5px; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
/* The "+" is two centered bars in a square box, not a text glyph: a glyph's
   line box isn't centered on its visible stroke, so rotating it wobbles
   off-axis. With bars, the box center IS the cross center. */
.lp-faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--muted); border-radius: 1px;
  transform-origin: 50% 50%;
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), color .2s;
}
.lp-faq summary:hover::after { color: var(--ink); }
.lp-faq details[open] summary::after { transform: rotate(135deg); color: var(--ink); }
.lp-faq details p { padding: 0 22px 20px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.lp-faq-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.lp-faq-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ---------- Final CTA + footer ---------- */

.lp-dark { background: var(--lp-dark); color: #fff; margin: 0 16px 16px; border-radius: 32px; overflow: hidden; position: relative; }
.lp-dark .lp-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
}
.lp-final { position: relative; z-index: 1; text-align: center; padding: 120px 24px 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lp-final .lp-h2 { color: #fff; max-width: 640px; }
.lp-final .lp-h2 .soft { color: rgba(255,255,255,.45); }
.lp-final .lp-lead { color: rgba(255,255,255,.6); max-width: 520px; }
.lp-final-stats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.lp-final-stats div { padding: 12px 20px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.lp-final-stats strong { display: block; font-size: 20px; font-weight: 800; }
.lp-final-stats span { font-size: 11px; color: rgba(255,255,255,.5); }
.lp-note {
  position: absolute; z-index: 1; width: 190px; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px;
  font-size: 11.5px; line-height: 1.45; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.lp-note b { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 4px; }
.lp-note b i { width: 8px; height: 8px; border-radius: 50%; }
.lp-note.n1 { top: 80px; left: 6%; transform: rotate(-7deg); }
.lp-note.n2 { top: 70px; right: 6%; transform: rotate(6deg); }
.lp-note.n3 { top: 340px; left: 4%; transform: rotate(4deg); }
.lp-note.n4 { top: 320px; right: 5%; transform: rotate(-5deg); }

.lp-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.08); padding: 56px 24px 32px; }
.lp-footer-grid { max-width: var(--lp-max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.lp-footer .lp-brand { color: #fff !important; }
.lp-footer .lp-brand .mark { background: #fff; color: var(--ink); }
.lp-footer p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); margin-top: 14px; max-width: 280px; }
.lp-footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer li a { font-size: 13px; color: rgba(255,255,255,.5); }
.lp-footer li a:hover { color: #fff; }
.lp-footer-bottom { max-width: var(--lp-max); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }
.lp-footer-mark { position: absolute; right: -40px; bottom: -60px; font-size: 320px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.03); pointer-events: none; letter-spacing: -.06em; }

/* ---------- Reveal on scroll ---------- */

.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-marquee-track, .lp-float, .lp-typing i { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .lp-app-body { grid-template-columns: 56px 220px 1fr; }
  .lp-app-side { display: none; }
  .lp-note { display: none; }
}

@media (max-width: 900px) {
  .lp-links { display: none; }
  .lp-nav-cta { margin-left: auto; }
  .lp-section { padding: 80px 0; }
  .lp-hero .lp-wrap { grid-template-columns: 1fr; }
  .lp-phone-stage { height: 480px; }
  .lp-bento { grid-template-columns: 1fr 1fr; }
  .lp-bento .span-3, .lp-bento .span-2 { grid-column: span 1; }
  .lp-bento .span-full-md { grid-column: 1 / -1; }
  .lp-steps, .lp-prices { grid-template-columns: 1fr; }
  .lp-prices { max-width: 440px; }
  .lp-cases, .lp-case-main { grid-template-columns: 1fr; }
  .lp-metrics { grid-template-columns: 1fr 1fr; }
  .lp-metrics > div:nth-child(3) { border-left: 0; }
  .lp-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid > :first-child { grid-column: 1 / -1; }
  .lp-app-body { grid-template-columns: 1fr; height: 400px; }
  .lp-app-rail, .lp-app-list { display: none; }
}

@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav-cta .lp-btn:not(.is-dark) { display: none; }
  .lp-hero { padding-top: 32px; }
  .lp-hero-stats > div { padding: 0 14px; }
  .lp-hero-stats strong { font-size: 22px; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-cta-strip { flex-direction: column; align-items: flex-start; }
  .lp-mini-stats > div { padding: 10px 14px; }
  .lp-dark { margin: 0 8px 8px; border-radius: 24px; }
  .lp-final { padding: 88px 16px 72px; }
  .lp-footer-bottom { flex-direction: column; gap: 8px; }
  .lp-float.f1 { left: 8px; }
  .lp-float.f2 { right: 8px; }
}

/* Native fallback for anchor jumps (reduced motion / no Lenis): clear the sticky nav. */
.lp section[id] { scroll-margin-top: 72px; }
