/* SagacityBooks public landing — loaded on "/" before (and without) the app bundle.
   Everything is scoped under #login so nothing here can leak into the signed-in app.
   Prefix lx- = landing; the few lp-/login- ids that app.js wires are kept on purpose. */

#login {
  --lx-ink: #0d1b2a;
  --lx-ink-2: #34445a;
  --lx-muted: #5b6b80;
  --lx-line: #e4e9f0;
  --lx-bg: #ffffff;
  --lx-bg-2: #f6f8fb;
  --lx-brand: #0e8ca2;
  --lx-brand-d: #0a6d7e;
  --lx-brand-dd: #07505d;
  --lx-brand-s: #e6f5f7;
  --lx-deep: #0b2830;
  --lx-ok: #16a34a;
  --lx-warn: #d97706;
  --lx-r: 14px;
  --lx-sh: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 28px rgba(13, 27, 42, .08);
  --lx-sh-lg: 0 2px 6px rgba(13, 27, 42, .06), 0 24px 64px rgba(13, 27, 42, .14);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--lx-ink);
  background: var(--lx-bg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* A signed-in visitor: hide the marketing page while the app boots instead of flashing it. */
html.sb-boot #login { visibility: hidden; }

:where(#login) *, :where(#login) *::before, :where(#login) *::after { box-sizing: border-box; }
:where(#login) img, :where(#login) svg { max-width: 100%; }
:where(#login) a { color: inherit; text-decoration: none; }
:where(#login) :is(h1, h2, h3, h4) { color: var(--lx-ink); margin: 0; letter-spacing: -.02em; }
:where(#login) p { margin: 0; }
:where(#login) :focus-visible { outline: 3px solid rgba(14, 140, 162, .45); outline-offset: 2px; border-radius: 6px; }

.lx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .lx-wrap { padding: 0 32px; } }
.lx-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.lx-skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--lx-brand); color: #fff !important; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(7, 80, 93, .25), inset 0 1px 0 rgba(255, 255, 255, .12); white-space: nowrap; }
.lx-btn:hover { background: var(--lx-brand-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14, 140, 162, .28); }
.lx-btn-ghost { background: #fff; color: var(--lx-ink) !important; border-color: var(--lx-line); box-shadow: 0 1px 2px rgba(13, 27, 42, .05); }
.lx-btn-ghost:hover { background: var(--lx-bg-2); box-shadow: 0 4px 14px rgba(13, 27, 42, .08); }
.lx-btn-sm { padding: 10px 16px; font-size: 14px; }
.lx-btn-light { background: #fff; color: var(--lx-brand-dd) !important; }
.lx-btn-light:hover { background: #eefafb; }
.lx-btn-line { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.lx-btn-line:hover { background: rgba(255, 255, 255, .08); }
.lx-btn svg { width: 16px; height: 16px; }
html.lx-loading .lx-btn[data-busy] { opacity: .7; pointer-events: none; }

/* ---------- nav ---------- */
.lx-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lx-nav.scrolled { border-bottom-color: var(--lx-line); box-shadow: 0 1px 12px rgba(13, 27, 42, .05); }
.lx-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.lx-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--lx-ink); }
.lx-logo img { width: 30px; height: 30px; object-fit: contain; }
.lx-logo b { color: var(--lx-brand); font-weight: 700; }
.lx-links { display: none; }
.lx-burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; border-radius: 10px; color: var(--lx-ink); }
.lx-burger:hover { background: var(--lx-bg-2); }
.lx-burger svg { width: 22px; height: 22px; }
/* mobile menu (app.js toggles .lp-open on #lpNavlinks) */
.lx-links.lp-open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute;
  left: 12px; right: 12px; top: 64px; background: #fff; border: 1px solid var(--lx-line); border-radius: 14px;
  padding: 10px; box-shadow: var(--lx-sh-lg); }
.lx-links.lp-open a { padding: 12px 14px; border-radius: 10px; font-weight: 500; color: var(--lx-ink-2); }
.lx-links.lp-open a:hover { background: var(--lx-bg-2); }
.lx-links.lp-open .lx-btn { margin-top: 8px; padding: 14px; }
@media (min-width: 1000px) {
  .lx-burger { display: none; }
  .lx-links, .lx-links.lp-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
    background: none; border: 0; box-shadow: none; padding: 0; }
  .lx-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--lx-ink-2); }
  .lx-links a:hover { color: var(--lx-ink); background: var(--lx-bg-2); }
  .lx-links .lx-signin { margin-left: 8px; }
  .lx-links .lx-btn { margin-left: 6px; }
}

/* ---------- hero ---------- */
.lx-hero { position: relative; padding: 48px 0 64px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14, 140, 162, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(20, 184, 166, .08), transparent 60%),
    linear-gradient(#fff, #f7fafc); }
.lx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(13, 27, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 27, 42, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.lx-hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .lx-hero { padding: 72px 0 96px; } .lx-hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.lx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--lx-line); font-size: 13px; font-weight: 500; color: var(--lx-ink-2); box-shadow: 0 1px 2px rgba(13, 27, 42, .04); }
.lx-pill span { background: var(--lx-brand-s); color: var(--lx-brand-d); font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.lx-hero h1 { font-size: clamp(36px, 6.4vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin: 20px 0 20px; }
.lx-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lx-brand) 0%, #14b8a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--lx-muted); max-width: 560px; line-height: 1.6; }
.lx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lx-cta-row .lx-btn { padding: 16px 24px; font-size: 16px; }
.lx-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--lx-ink-2); }
.lx-assure li { display: flex; align-items: center; gap: 7px; }
.lx-assure svg { width: 17px; height: 17px; color: var(--lx-ok); flex: none; }

/* product mock (pure HTML, so it costs nothing to load and stays sharp at any size) */
.lx-shot { position: relative; }
.lx-win { background: #fff; border: 1px solid var(--lx-line); border-radius: 16px; box-shadow: var(--lx-sh-lg); overflow: hidden; font-size: 13px; }
.lx-win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--lx-line); background: #fafbfc; }
.lx-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6ec; }
.lx-win-bar b { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--lx-muted); }
.lx-win-body { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px; background: var(--lx-bg-2); }
@media (min-width: 560px) { .lx-win-body { grid-template-columns: 1.15fr 1fr; } }
.lx-card { background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; padding: 14px; }
.lx-card h4 { font-size: 12px; font-weight: 600; color: var(--lx-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.lx-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--lx-line); color: var(--lx-ink-2); }
.lx-kv:last-child { border-bottom: 0; }
.lx-kv b { color: var(--lx-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.lx-kv.tot b { color: var(--lx-brand-d); font-size: 15px; }
.lx-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.lx-tag.ok { background: #e8f7ee; color: #12803b; }
.lx-tag.warn { background: #fff4e5; color: #b45309; }
.lx-tag.info { background: var(--lx-brand-s); color: var(--lx-brand-d); }
.lx-bar { height: 8px; border-radius: 99px; background: #eef1f5; overflow: hidden; margin: 8px 0 4px; display: flex; }
.lx-bar span { display: block; height: 100%; }
.lx-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--lx-muted); }
.lx-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.lx-rows { display: grid; gap: 8px; }
.lx-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--lx-bg-2); }
.lx-row small { color: var(--lx-muted); font-size: 11.5px; grid-column: 1; }
.lx-row b { font-weight: 600; font-size: 13px; }
.lx-row .lx-tag { grid-row: 1 / span 2; grid-column: 2; }
.lx-span2 { grid-column: 1 / -1; }
.lx-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lx-file p { font-size: 13px; color: var(--lx-ink-2); }
.lx-file p b { color: var(--lx-ink); }
.lx-float { position: absolute; display: none; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--lx-line);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--lx-sh); font-size: 13px; font-weight: 600; white-space: nowrap; }
.lx-float svg { width: 20px; height: 20px; flex: none; }
.lx-float small { display: block; font-weight: 500; color: var(--lx-muted); font-size: 11.5px; }
@media (min-width: 1000px) {
  .lx-float { display: flex; animation: lx-bob 6s ease-in-out infinite; }
  .lx-float.f1 { left: -28px; bottom: -22px; }
  .lx-float.f2 { right: -18px; top: -20px; animation-delay: -3s; }
}
@keyframes lx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lx-float { animation: none; } #login * { transition: none !important; } }

/* ---------- compliance strip ---------- */
.lx-strip { border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); background: #fff; padding: 22px 0; }
.lx-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; }
.lx-strip-in > span { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lx-muted); width: 100%; text-align: center; }
@media (min-width: 900px) { .lx-strip-in > span { width: auto; } }
.lx-strip-in b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--lx-ink-2); }
.lx-strip-in b svg { width: 18px; height: 18px; color: var(--lx-brand); }

/* ---------- sections ---------- */
.lx-sec { padding: 72px 0; }
@media (min-width: 900px) { .lx-sec { padding: 104px 0; } }
.lx-sec.alt { background: var(--lx-bg-2); }
.lx-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.lx-head.left { margin-left: 0; text-align: left; }
.lx-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-brand); margin-bottom: 14px; }
.lx-head h2, .lx-split h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.lx-head p { font-size: 18px; color: var(--lx-muted); margin-top: 16px; }

/* three pillars */
.lx-pillar { display: grid; gap: 36px; align-items: center; padding: 8px 0; }
.lx-pillar + .lx-pillar { margin-top: 72px; }
@media (min-width: 900px) {
  .lx-pillar { grid-template-columns: 1fr 1fr; gap: 72px; }
  .lx-pillar.rev .lx-pillar-art { order: -1; }
  .lx-pillar + .lx-pillar { margin-top: 112px; }
}
.lx-pillar-num { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center;
  background: var(--lx-brand-s); color: var(--lx-brand-d); font-weight: 800; margin-bottom: 18px; }
.lx-pillar h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.lx-pillar-copy > p { color: var(--lx-muted); font-size: 17px; }
.lx-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.lx-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--lx-ink-2); font-size: 15.5px; }
.lx-checks li b { color: var(--lx-ink); font-weight: 600; }
.lx-checks svg { width: 20px; height: 20px; color: var(--lx-brand); margin-top: 2px; }
.lx-pillar-art { position: relative; border-radius: 20px; padding: 28px; min-height: 300px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #e6f5f7 0%, #f3fafb 55%, #eef6f9 100%); border: 1px solid #d9eef1; }
.lx-pillar-art .lx-card { width: 100%; max-width: 420px; box-shadow: var(--lx-sh); }

/* phone mock */
.lx-phone { width: 230px; border-radius: 30px; background: #0d1b2a; padding: 10px; box-shadow: var(--lx-sh-lg); }
.lx-phone-in { border-radius: 22px; background: #fff; overflow: hidden; font-size: 12px; }
.lx-phone-top { background: var(--lx-brand); color: #fff; padding: 14px 14px 12px; }
.lx-phone-top small { opacity: .8; display: block; font-size: 10.5px; }
.lx-phone-top b { font-size: 14px; }
.lx-phone-list { padding: 10px 12px; display: grid; gap: 7px; }
.lx-phone-list div { display: flex; justify-content: space-between; padding: 7px 9px; background: var(--lx-bg-2); border-radius: 8px; }
.lx-phone-tot { margin: 4px 12px 12px; padding: 10px; border-radius: 10px; background: var(--lx-deep); color: #fff; display: flex; justify-content: space-between; font-weight: 700; }
.lx-phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 14px; }
.lx-phone-btns span { text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--lx-brand-s); color: var(--lx-brand-d); font-weight: 600; font-size: 11px; }
.lx-art-chip { position: absolute; background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; padding: 9px 12px; font-size: 12.5px;
  font-weight: 600; box-shadow: var(--lx-sh); display: flex; gap: 8px; align-items: center; }
.lx-art-chip svg { width: 18px; height: 18px; }
.lx-art-chip.c1 { right: 16px; top: 26px; }
.lx-art-chip.c2 { left: 16px; bottom: 28px; }

/* feature grid */
.lx-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lx-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lx-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.lx-feat { background: #fff; border: 1px solid var(--lx-line); border-radius: var(--lx-r); padding: 24px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.lx-feat:hover { transform: translateY(-3px); box-shadow: var(--lx-sh); border-color: #d3e6ea; }
.lx-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--lx-brand-s); color: var(--lx-brand-d); margin-bottom: 16px; }
.lx-ic svg { width: 22px; height: 22px; }
.lx-feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.lx-feat p { font-size: 15px; color: var(--lx-muted); line-height: 1.55; }

/* audiences */
.lx-aud { display: grid; gap: 20px; }
@media (min-width: 900px) { .lx-aud { grid-template-columns: 1fr 1fr; gap: 24px; } }
.lx-aud-card { border-radius: 20px; padding: 32px; border: 1px solid var(--lx-line); background: #fff; display: flex; flex-direction: column; }
.lx-aud-card.dark { background: linear-gradient(160deg, #0b2830 0%, #0d3540 100%); border-color: #0b2830; color: #cfe3e7; }
.lx-aud-card.dark h3 { color: #fff; }
.lx-aud-card .lx-kicker { margin-bottom: 10px; }
.lx-aud-card.dark .lx-kicker { color: #5fd4e3; }
.lx-aud-card h3 { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.lx-aud-card > p { color: var(--lx-muted); font-size: 16px; }
.lx-aud-card.dark > p { color: #a9c4ca; }
.lx-aud-card .lx-checks { margin-bottom: 28px; }
.lx-aud-card.dark .lx-checks li { color: #d5e7ea; }
.lx-aud-card.dark .lx-checks li b { color: #fff; }
.lx-aud-card.dark .lx-checks svg { color: #5fd4e3; }
.lx-aud-card .lx-btn { margin-top: auto; align-self: flex-start; }

/* Saga AI */
.lx-ai { background: radial-gradient(800px 400px at 90% 0%, rgba(20, 184, 166, .18), transparent 60%), linear-gradient(160deg, #081f26 0%, #0b2a33 60%, #0a2229 100%); color: #c4dade; }
.lx-ai .lx-kicker { color: #5fd4e3; }
.lx-ai h2 { color: #fff; }
.lx-ai .lx-head p { color: #a3bfc5; }
.lx-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lx-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.lx-ai .lx-checks li { color: #c9dfe3; }
.lx-ai .lx-checks li b { color: #fff; }
.lx-ai .lx-checks svg { color: #5fd4e3; }
.lx-chat { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px; display: grid; gap: 12px; font-size: 14.5px; }
.lx-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; line-height: 1.5; }
.lx-msg.me { justify-self: end; background: var(--lx-brand); color: #fff; border-bottom-right-radius: 4px; }
.lx-msg.bot { background: rgba(255, 255, 255, .08); color: #e3f0f2; border-bottom-left-radius: 4px; }
.lx-msg.bot b { color: #fff; }
.lx-msg-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lx-msg-act span { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: rgba(95, 212, 227, .16); color: #8be6f1; }
.lx-msg-act span.go { background: #5fd4e3; color: #062027; }

/* security */
.lx-sec-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lx-sec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lx-sec-grid { grid-template-columns: repeat(4, 1fr); } }
.lx-sec-item { padding: 22px; border-radius: var(--lx-r); background: #fff; border: 1px solid var(--lx-line); }
.lx-sec-item .lx-ic { background: #0b2830; color: #5fd4e3; }
.lx-sec-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lx-sec-item p { font-size: 14.5px; color: var(--lx-muted); line-height: 1.55; }

/* steps */
.lx-steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .lx-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.lx-step { position: relative; padding: 28px 24px; border-radius: var(--lx-r); background: #fff; border: 1px solid var(--lx-line); }
.lx-step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 14px; font-weight: 800; color: var(--lx-brand); letter-spacing: .06em; margin-bottom: 14px; }
.lx-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.lx-step p { color: var(--lx-muted); font-size: 15px; }

/* guides (brochures; cards are rendered by app.js loadResources into #lpResources) */
#lpResources { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { #lpResources { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { #lpResources { grid-template-columns: repeat(3, 1fr); } }
#lpResources .lp-res-card { background: #fff; border: 1px solid var(--lx-line); border-radius: var(--lx-r); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; opacity: 1; transform: none; }
#lpResources .lp-res-ic { font-size: 22px; }
#lpResources .lp-res-meta { font-size: 12px; color: var(--lx-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
#lpResources h3 { font-size: 17px; font-weight: 700; }
#lpResources p { font-size: 14.5px; color: var(--lx-muted); flex: 1; }
#lpResources .btn { align-self: flex-start; margin-top: 6px; }
.lx-res-empty { color: var(--lx-muted); text-align: center; }

/* FAQ */
.lx-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lx-faq details { background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; padding: 0 20px; transition: box-shadow .15s; }
.lx-faq details[open] { box-shadow: var(--lx-sh); }
.lx-faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--lx-muted); border-bottom: 2px solid var(--lx-muted); transform: rotate(45deg); transition: transform .2s; }
.lx-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.lx-faq details p { padding: 0 0 18px; color: var(--lx-muted); font-size: 15.5px; }

/* final CTA */
.lx-final { padding: 0 0 88px; }
.lx-final-box { border-radius: 24px; padding: 56px 28px; text-align: center; color: #d5ecef; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 15% 0%, rgba(95, 212, 227, .25), transparent 60%), linear-gradient(135deg, #0a6d7e 0%, #0b2830 100%); }
.lx-final-box h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; }
.lx-final-box p { font-size: 18px; margin: 14px auto 0; max-width: 560px; color: #bfe0e5; }
.lx-final-box .lx-cta-row { justify-content: center; }

/* footer */
.lx-foot { background: #071a20; color: #92aab0; padding: 64px 0 28px; font-size: 14.5px; }
.lx-foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .lx-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } }
.lx-foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .lx-foot-brand { grid-column: auto; } }
.lx-foot .lx-logo { color: #fff; }
.lx-foot .lx-logo b { color: #5fd4e3; }
.lx-foot-brand p { margin-top: 14px; max-width: 320px; line-height: 1.6; }
.lx-foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 14px; }
.lx-foot-col a { display: block; padding: 5px 0; color: #a9bfc4; }
.lx-foot-col a:hover { color: #fff; }
.lx-foot-col p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; }
.lx-social { display: flex; gap: 10px; margin-top: 16px; }
.lx-social a { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: #bcd2d6; padding: 0 !important; }
.lx-social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lx-social svg { width: 16px; height: 16px; }
.lx-foot-bot { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.lx-foot-bot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lx-foot-bot a:hover { color: #fff; }

/* ---------- sign-in page (a page, not a modal) ---------- */
.lx-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--lx-bg-2); }
.lx-auth[hidden] { display: none; }
#login.lx-auth-on #lxSite { display: none; }
@media (min-width: 960px) { .lx-auth { grid-template-columns: 1fr 1fr; } }
.lx-auth-side { display: none; position: relative; overflow: hidden; padding: 48px; color: #c8dfe3;
  background: radial-gradient(700px 360px at 0% 0%, rgba(95, 212, 227, .22), transparent 60%), linear-gradient(160deg, #0a6d7e 0%, #0b2830 70%); }
@media (min-width: 960px) { .lx-auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.lx-auth-side .lx-logo { color: #fff; }
.lx-auth-side .lx-logo b { color: #8be6f1; }
.lx-auth-side h2 { color: #fff; font-size: 36px; line-height: 1.15; font-weight: 800; max-width: 440px; }
.lx-auth-side .lx-checks li { color: #d3e8eb; }
.lx-auth-side .lx-checks svg { color: #8be6f1; }
.lx-auth-side small { color: #8fb3ba; }
.lx-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 48px; }
.lx-auth-top { width: 100%; max-width: 420px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.lx-auth-back { font-size: 14px; font-weight: 600; color: var(--lx-muted) !important; display: inline-flex; gap: 6px; align-items: center; }
.lx-auth-back:hover { color: var(--lx-ink) !important; }
#login .lx-auth .login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--lx-line); border-radius: 18px;
  box-shadow: var(--lx-sh); padding: 32px 28px; margin: 0; }
#login .lx-auth .login-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
#login .lx-auth .login-card .sub { color: var(--lx-muted); margin: 0 0 22px; font-size: 15px; text-align: left; }
#login .lx-auth .login-card label { display: block; font-size: 13.5px; font-weight: 600; color: var(--lx-ink-2); margin: 14px 0 6px; }
#login .lx-auth .login-card input { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; color: var(--lx-ink); }
#login .lx-auth .login-card input:focus { outline: none; border-color: var(--lx-brand); box-shadow: 0 0 0 3px rgba(14, 140, 162, .15); }
#login .lx-auth .login-card .btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 600; border-radius: 10px; margin-top: 20px; }
#login .lx-auth .login-card .btn.ghost { margin-top: 10px; }
#login .lx-auth .lp-nolog { text-align: center; font-size: 14px; color: var(--lx-muted); margin: 18px 0 0; }
#login .lx-auth .lp-nolog a { color: var(--lx-brand-d); font-weight: 600; }
#login .lx-auth .demo-try { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lx-line); text-align: center; }
#login .lx-auth .demo-try span { display: block; font-size: 12.5px; color: var(--lx-muted); margin-top: 8px; }
.lx-auth-wait { font-size: 13px; color: var(--lx-muted); text-align: center; margin-top: 10px; min-height: 18px; }

/* the floating WhatsApp / Saga buttons and chat panel keep their style.css look */
.lx-tag svg { width: 13px; height: 13px; }
.lx-art-chip.c2 { bottom: -18px; }
@media (min-width: 560px) { .lx-win-body { grid-template-columns: 1fr 1.12fr; } }
@media (max-width: 559px) {
  .lx-cta-row .lx-btn { flex: 1 1 100%; }
  .lx-strip-in { display: grid; grid-template-columns: 1fr; justify-items: start; max-width: 300px; }
  .lx-strip-in > span { text-align: left; }
}
#login .lx-auth .error:empty, .lx-auth-wait:empty { display: none; }
#login.lx-auth-on .lp-fab-stack { display: none; }

/* ======================================================================================
   Phone layer (≤767px): swipe rows instead of long card stacks, tighter rhythm, a sticky
   CTA bar, and touch feedback — so the page feels like an app, not a shrunken desktop.
   ====================================================================================== */
@media (max-width: 767px) {
  #login { font-size: 15.5px; }
  .lx-hero { padding: 28px 0 40px; }
  .lx-hero-grid { gap: 32px; }
  .lx-hero h1 { font-size: 35px; line-height: 1.07; margin: 16px 0 14px; }
  .lx-lede { font-size: 16.5px; }
  .lx-cta-row { margin-top: 22px; gap: 10px; }
  .lx-cta-row .lx-btn { padding: 15px 20px; }
  .lx-assure { margin-top: 18px; font-size: 13.5px; gap: 6px 14px; }
  /* hero mock: keep the story (3B ready -> validated), drop the dense 2B list */
  .lx-win-body { padding: 12px; gap: 10px; }
  .lx-win-body > .lx-card:nth-child(2) .lx-rows { display: none; }
  .lx-card { padding: 12px; }
  .lx-kv { padding: 5px 0; font-size: 13px; }

  /* compliance strip -> one swipeable line of chips */
  .lx-strip { padding: 14px 0; }
  .lx-strip-in { display: flex !important; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px;
    max-width: none !important; padding: 2px 20px; margin: 0 -20px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 28px), transparent 100%); }
  .lx-strip-in::-webkit-scrollbar { display: none; }
  .lx-strip-in > span { display: none; }
  .lx-strip-in b { flex: none; font-size: 13px; padding: 8px 12px; border: 1px solid var(--lx-line); border-radius: 999px; background: var(--lx-bg-2); white-space: nowrap; }

  /* section rhythm */
  .lx-sec { padding: 56px 0; }
  .lx-head { margin-bottom: 28px; text-align: left; }
  .lx-head h2, .lx-split h2 { font-size: 27px; }
  .lx-head p { font-size: 16px; margin-top: 10px; }
  .lx-kicker { font-size: 12px; margin-bottom: 10px; }

  /* pillars: picture first, compact */
  .lx-pillar { gap: 20px; }
  .lx-pillar + .lx-pillar { margin-top: 48px; }
  .lx-pillar-art { order: -1; min-height: 0; padding: 22px 16px; border-radius: 16px; }
  .lx-pillar h3 { font-size: 23px; margin-bottom: 8px; }
  .lx-pillar-num { width: 30px; height: 30px; font-size: 14px; margin-bottom: 12px; border-radius: 8px; }
  .lx-pillar-copy > p { font-size: 15.5px; }
  .lx-checks { gap: 9px; margin-top: 16px; }
  .lx-checks li { font-size: 14.5px; }
  .lx-phone { width: 200px; }
  .lx-art-chip { font-size: 11.5px; padding: 7px 10px; }
  .lx-art-chip.c1 { right: 8px; top: 10px; }
  .lx-art-chip.c2 { left: 8px; bottom: -14px; }

  /* swipe rows */
  .lx-grid, .lx-sec-grid, .lx-steps, #lpResources {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -20px; padding: 4px 20px 6px; scroll-padding: 0 20px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .lx-grid::-webkit-scrollbar, .lx-sec-grid::-webkit-scrollbar, .lx-steps::-webkit-scrollbar, #lpResources::-webkit-scrollbar { display: none; }
  .lx-grid > *, .lx-sec-grid > *, .lx-steps > *, #lpResources > * { flex: 0 0 80%; scroll-snap-align: start; }
  .lx-feat, .lx-sec-item, .lx-step, #lpResources .lp-res-card { padding: 20px; }
  .lx-feat:hover { transform: none; box-shadow: none; }
  .lx-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .lx-dots i { width: 6px; height: 6px; border-radius: 99px; background: #cfd8e3; transition: width .2s, background .2s; }
  .lx-dots i.on { width: 18px; background: var(--lx-brand); }

  /* audiences, AI, FAQ, CTA, footer */
  .lx-aud-card { padding: 24px 20px; border-radius: 18px; }
  .lx-aud-card h3 { font-size: 22px; }
  .lx-aud-card .lx-btn { align-self: stretch; }
  .lx-chat { padding: 14px; font-size: 14px; }
  .lx-faq summary { font-size: 15.5px; padding: 16px 26px 16px 0; }
  .lx-final { padding-bottom: 56px; }
  .lx-final-box { padding: 40px 20px; border-radius: 20px; }
  .lx-final-box p { font-size: 16px; }
  .lx-foot { padding: 44px 0 96px; }
  .lx-foot-grid { gap: 28px 20px; }

  /* sticky CTA bar (shown by the inline script once the hero has scrolled away) */
  .lx-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--lx-line);
    box-shadow: 0 -6px 24px rgba(13, 27, 42, .08); transform: translateY(110%); transition: transform .25s ease; }
  .lx-mbar.on { transform: none; }
  .lx-mbar .lx-btn { flex: 1; padding: 13px 10px; }
  .lx-mbar .lx-btn-ghost { flex: 0 0 34%; }
  #login.lx-mbar-on .lp-fab-stack { bottom: 84px; transition: bottom .25s ease; }
  #login.lx-auth-on .lx-mbar { display: none; }

  /* touch feedback */
  .lx-btn:active, .lx-feat:active, .lx-sec-item:active, .lx-step:active { transform: scale(.98); }
}
@media (min-width: 768px) { .lx-mbar, .lx-dots { display: none; } }
@media (prefers-reduced-motion: reduce) { .lx-mbar { transition: none; } }
@media (max-width: 767px) {
  #login .lp-fab-stack { right: 12px; gap: 10px; }
  #login .lp-fab { width: 46px; height: 46px; box-shadow: 0 4px 14px rgba(13, 27, 42, .18); }
  #login .lp-fab svg { width: 22px; height: 22px; }
  #login .lp-fab-badge { font-size: 8.5px; top: -7px; right: -4px; }
  .lx-phone-list div { font-size: 11.5px; white-space: nowrap; gap: 8px; }
  .lx-art-chip.c1 { top: -14px; right: 10px; }
}
