/* Public landing pages (App\Controllers\Seo): WHO z-score calculator, free statistical tests, REDCap alternative. */
.lp-page {
  --lp-bg: #f5f7fc; --lp-card: #ffffff; --lp-tx: #0f172a; --lp-mut: #556175; --lp-line: #e3e8f2; --lp-soft: #eef2fb;
  --lp-ok: #16a34a; --lp-mild: #ca8a04; --lp-warn: #ea580c; --lp-bad: #dc2626; --lp-na: #94a3b8;
  --lp-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .14);
  background: var(--lp-bg); color: var(--lp-tx);
}
[data-bs-theme="dark"] .lp-page, [data-bs-theme="dark"] body.lp-page {
  --lp-bg: #0c1220; --lp-card: #161e2e; --lp-tx: #e6ebf5; --lp-mut: #9aa6bb; --lp-line: #263149; --lp-soft: #1c2639;
  --lp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .55);
}
.lp-main { padding: 1rem 0 3rem; outline: none; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

.lp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.2rem; font-size: .92rem; color: var(--lp-mut); }
.lp-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.lp-crumbs a { color: inherit; text-decoration: none; }
.lp-crumbs a:hover { color: var(--lp-c); text-decoration: underline; }

.lp-hero { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.6rem; }
.lp-ic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; color: #fff;
  background: linear-gradient(135deg, var(--lp-c), color-mix(in srgb, var(--lp-c) 55%, #312e81)); box-shadow: 0 10px 24px -10px var(--lp-c); }
.lp-kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-c); margin-bottom: .3rem; }
.lp-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.08; margin: 0 0 .7rem; letter-spacing: -.01em; }
.lp-lead { font-size: 1.12rem; color: var(--lp-mut); max-width: 62ch; margin: 0; }
.lp-lead b { color: var(--lp-tx); }

.lp-tool, .lp-sec, .lp-final { background: var(--lp-card); border-radius: 20px; box-shadow: var(--lp-shadow); padding: 1.4rem; margin-bottom: 1.2rem; }
.lp-sec h2, .lp-final h2 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .7rem; }
.lp-sec h2 .bi { color: var(--lp-c); margin-right: .3rem; }
.lp-sec p { color: var(--lp-mut); line-height: 1.65; }
.lp-sec p b { color: var(--lp-tx); }
.lp-small { font-size: .9rem; color: var(--lp-mut); margin: .6rem 0 0; }
.lp-tm { text-align: center; margin: 1.5rem auto 0; max-width: 70ch; }

.lp-tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.lp-form .form-label { font-size: .88rem; font-weight: 600; color: var(--lp-mut); margin-bottom: .2rem; }
.lp-form .form-control { border-radius: 10px; }
.lp-q { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.lp-q > span { font-weight: 700; }
.lp-seg { display: inline-flex; background: var(--lp-soft); border-radius: 12px; padding: 3px; gap: 2px; }
.lp-seg button { border: 0; background: transparent; color: var(--lp-mut); font-weight: 600; padding: .38rem .8rem; border-radius: 9px; font-size: .92rem; }
.lp-seg button.on { background: var(--lp-card); color: var(--lp-c); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.lp-seg button:focus-visible, .lp-tabs button:focus-visible { outline: 2px solid var(--lp-c); outline-offset: 2px; }
.lp-check { display: flex; align-items: center; gap: .45rem; font-weight: 600; cursor: pointer; }
.lp-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--lp-c); }
.lp-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-mini { background: var(--lp-soft); color: var(--lp-tx); border: 0; border-radius: 10px; font-weight: 600; font-size: .9rem; padding: .42rem .8rem; }
.lp-mini:hover { color: var(--lp-c); background: color-mix(in srgb, var(--lp-c) 12%, var(--lp-soft)); }
.lp-mini .bi { margin-right: .3rem; }
.lp-note { font-size: .86rem; color: var(--lp-mut); margin: .8rem 0 0; }
.lp-grp { background: var(--lp-soft); border-radius: 14px; padding: .7rem; margin-bottom: .7rem; }
.lp-grp-h .form-control { font-weight: 700; background: transparent; border-color: transparent; padding-left: .2rem; margin-bottom: .2rem; }
.lp-grp-h .form-control:focus { background: var(--lp-card); }
.lp-2x2 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: .4rem; }
.lp-2x2 .form-control-sm { font-weight: 700; font-size: .85rem; }

.lp-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lp-tabs button { border: 0; border-radius: 12px; background: var(--lp-soft); color: var(--lp-mut); font-weight: 700; padding: .55rem 1rem; }
.lp-tabs button.on { background: var(--lp-c); color: #fff; }

.lp-ans { background: var(--lp-soft); border-radius: 16px; padding: 1.1rem; min-height: 200px; }
.lp-ans h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .6rem; }
.lp-load { color: var(--lp-mut); display: flex; align-items: center; gap: .5rem; }
.lp-k { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-c); margin-bottom: .6rem; }
.lp-z { background: var(--lp-card); border-radius: 12px; padding: .65rem .8rem; margin-bottom: .5rem; border-left: 4px solid var(--zc, var(--lp-ok)); }
.lp-z.ok { --zc: var(--lp-ok); } .lp-z.mild { --zc: var(--lp-mild); } .lp-z.warn { --zc: var(--lp-warn); } .lp-z.bad { --zc: var(--lp-bad); } .lp-z.na { --zc: var(--lp-na); }
.lp-z-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 600; }
.lp-z-top small { color: var(--lp-mut); font-weight: 700; }
.lp-z-top b { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--zc); }
.lp-z-scale { position: relative; height: 6px; border-radius: 6px; margin: .4rem 0 .25rem;
  background: linear-gradient(90deg, var(--lp-bad) 0 12.5%, var(--lp-warn) 12.5% 25%, var(--lp-ok) 25% 75%, var(--lp-warn) 75% 87.5%, var(--lp-bad) 87.5%); opacity: .85; }
.lp-z-scale i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--lp-card); border: 3px solid var(--zc); transform: translate(-50%, -50%); }
.lp-z-tx { color: var(--zc); font-weight: 700; font-size: .88rem; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.lp-stat { background: var(--lp-card); border-radius: 12px; padding: .6rem .75rem; }
.lp-stat span { display: block; font-size: .78rem; font-weight: 700; color: var(--lp-mut); text-transform: uppercase; letter-spacing: .03em; }
.lp-stat b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.lp-stat.hi b { color: var(--lp-c); }
.lp-verdict { display: flex; gap: .5rem; align-items: flex-start; background: var(--lp-card); border-radius: 12px; padding: .7rem .8rem; font-weight: 600; margin-bottom: .6rem; }
.lp-verdict.sig .bi { color: var(--lp-ok); } .lp-verdict.ns .bi { color: var(--lp-mut); }
.lp-report { font-size: .92rem; color: var(--lp-mut); background: var(--lp-card); border-radius: 12px; padding: .7rem .8rem; margin: 0; }
.lp-err { color: var(--lp-bad); font-weight: 600; margin: 0; }

.lp-table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--lp-line); }
.lp-table table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.lp-table th, .lp-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--lp-line); text-align: left; vertical-align: top; }
.lp-table thead th { background: var(--lp-soft); font-weight: 800; }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table tbody th { font-weight: 700; }
.lp-cmp td .ok { color: var(--lp-ok); margin-right: .3rem; }
.lp-cmp td:nth-child(2) { font-weight: 600; }

.lp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.lp-list li { display: flex; gap: .55rem; color: var(--lp-mut); }
.lp-list .bi { color: var(--lp-c); font-size: 1.1rem; flex: none; }
.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lp-chips li { background: var(--lp-soft); border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; font-weight: 600; }

.lp-band { display: flex; gap: 1.1rem; align-items: flex-start; background: linear-gradient(135deg, color-mix(in srgb, var(--lp-c) 10%, var(--lp-card)), var(--lp-card)); }
.lp-band-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--lp-c); background: color-mix(in srgb, var(--lp-c) 14%, transparent); }
.lp-link { font-weight: 700; color: var(--lp-c); text-decoration: none; }
.lp-link:hover { text-decoration: underline; }

.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.lp-feat { background: var(--lp-soft); border-radius: 16px; padding: 1rem; }
.lp-feat > .bi { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.25rem; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: .5rem; }
.lp-feat h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .3rem; }
.lp-feat p { font-size: .93rem; margin: 0; }
.lp-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.lp-steps li { counter-increment: s; background: var(--lp-soft); border-radius: 16px; padding: 1rem; display: grid; gap: .25rem; }
.lp-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--lp-c); margin-bottom: .3rem; }
.lp-steps span { color: var(--lp-mut); font-size: .93rem; }

.lp-faq { display: grid; gap: .5rem; }
.lp-faq details { background: var(--lp-soft); border-radius: 14px; padding: .2rem 1rem; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; gap: .8rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--lp-c); }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq p { margin: 0 0 .8rem; }

.lp-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.lp-more a { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 14px; background: var(--lp-soft); color: var(--lp-tx); text-decoration: none; font-weight: 700; }
.lp-more a > .bi:first-child { color: var(--c); font-size: 1.2rem; }
.lp-more a span { flex: 1; }
.lp-more a:hover { background: color-mix(in srgb, var(--c) 12%, var(--lp-soft)); }
.lp-go { color: var(--lp-mut); transition: transform .2s; }
.lp-more a:hover .lp-go { transform: translateX(3px); color: var(--c); }

.lp-final { text-align: center; padding: 2rem 1.4rem; background: linear-gradient(135deg, #4338ca, #0d9488); color: #fff; }
.lp-final p { color: rgba(255, 255, 255, .88); max-width: 60ch; margin: 0 auto 1.1rem; }
.lp-final-ic { font-size: 2rem; margin-bottom: .3rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lp-cta-left { justify-content: flex-start; margin-top: 1rem; }
.lp-btn, .lp-btn-line { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; border-radius: 12px; padding: .7rem 1.2rem; }
.lp-btn { background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; border: 0; }
.lp-btn:hover { color: #fff; filter: brightness(1.08); }
.lp-final .lp-btn { background: #fff; color: #312e81; }
.lp-btn-line { border: 2px solid currentColor; color: var(--lp-c); background: transparent; }
.lp-final .lp-btn-line { color: #fff; }

@media (max-width: 860px) {
  .lp-tool-grid, .lp-cols { grid-template-columns: 1fr; }
  .lp-feats, .lp-steps { grid-template-columns: 1fr; }
  .lp-hero { flex-direction: column; gap: .8rem; }
  .lp-ic { width: 54px; height: 54px; font-size: 1.6rem; }
  .lp-tool, .lp-sec, .lp-final { padding: 1.1rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lp-go { transition: none; } }
