/* ============================================================
   Public marketing pages (landing "/" + login "/login") — shared design
   system. Full-bleed, theme-aware, no external assets. All colour comes
   from design-system.css custom properties so it tracks the dark/light
   toggle. Graphics are inline SVG (zero copyright, zero extra requests).
   Extracted from templates/auth/login.html's inline <style> 11 Sep 2026
   when the landing page split off "/" so both pages share one system
   instead of drifting. See LANDING_PAGE_PLAN.md.
   ============================================================ */
.lp-root { width: 100%; margin: 0; padding: 0; max-width: none; }

.lp { --lp-max: 1180px; color: var(--ds-text); position: relative; }
.lp::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 12% 0%, color-mix(in srgb, var(--ds-primary) 14%, transparent), transparent 70%),
    radial-gradient(45% 45% at 95% 8%, color-mix(in srgb, var(--ds-info) 12%, transparent), transparent 70%);
}
.lp-container { max-width: var(--lp-max); margin: 0 auto; padding-inline: 20px; }

.lp a { text-decoration: none; }
.lp h2 { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--ds-text); margin: 0; }
.lp .lp-lead { color: var(--ds-text-secondary); font-size: .95rem; max-width: 62ch; margin: .5rem 0 0; line-height: 1.6; }

/* ---- HERO ---- */
.lp-hero { position: relative; isolation: isolate; padding: 36px 0 56px; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lp-hero-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 44% at 16% 10%, color-mix(in srgb, var(--ds-primary) 34%, transparent), transparent 68%),
    radial-gradient(34% 46% at 90% 2%, color-mix(in srgb, var(--ds-info) 26%, transparent), transparent 68%),
    radial-gradient(50% 44% at 55% 108%, color-mix(in srgb, var(--ds-primary) 14%, transparent), transparent 70%);
  animation: lpFloat 18s ease-in-out infinite alternate;
}
.lp-hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; color: var(--ds-border-strong); }

.lp-hero-inner {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: 1.05fr minmax(340px, 0.9fr);
}
@media (max-width: 900px) { .lp-hero-inner { grid-template-columns: 1fr; gap: 26px; } }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ds-text-secondary);
  background: color-mix(in srgb, var(--ds-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ds-primary) 28%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.lp-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ds-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-success) 25%, transparent); }

.lp-h1 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  margin: 18px 0 0; color: var(--ds-text);
}
.lp-h1 .grad {
  background: linear-gradient(100deg, var(--ds-primary), var(--ds-info));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-h1 .lp-rotate { display: inline-block; position: relative; }
.lp-hero-sub { margin: 16px 0 0; color: var(--ds-text-secondary); font-size: 1rem; line-height: 1.65; max-width: 52ch; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 500; color: var(--ds-text-secondary);
  background: var(--ds-surface-raised); border: 1px solid var(--ds-border);
  padding: 6px 11px; border-radius: 8px;
}
.lp-chip i { color: var(--ds-primary); font-size: .9rem; }

.lp-hero-illus { margin-top: 30px; }
.lp-hero-illus svg { width: 100%; height: auto; max-width: 440px; display: block; filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--ds-primary) 22%, transparent)); }
@media (max-width: 900px) { .lp-hero-illus { display: none; } }

/* ---- HERO CTA (landing page — no embedded form) ---- */
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp-btn-lg { padding: 13px 22px; font-size: .95rem; width: auto; }

/* ---- AUTH CARD (login page) ---- */
.lp-auth-card {
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-lg);
  padding: 26px 24px;
}
.lp-auth-card .lp-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-sm); }
.lp-brand-lockup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-brand-lockup .lp-mirae { height: 30px; width: auto; border-radius: 5px; }
.lp-brand-lockup .lp-sep { width: 1px; height: 26px; background: var(--ds-border-strong); }
.lp-auth-title { font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; margin: 12px 0 2px; }
.lp-auth-sub { color: var(--ds-text-muted); font-size: .8rem; margin: 0 0 14px; }

.lp-field { margin-bottom: 12px; }
.lp-field label { display: block; font-size: .74rem; font-weight: 600; color: var(--ds-text-secondary); margin-bottom: 5px; }
.lp-field .form-control { background: var(--bg-input); border: 1px solid var(--ds-border); color: var(--ds-text); border-radius: var(--ds-radius); }
.lp-field .form-control:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-primary) 22%, transparent); }
.lp-field .form-text { font-size: .68rem; color: var(--ds-text-muted); }

.lp-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(100deg, var(--ds-primary), var(--ds-primary-hover));
  color: #fff; font-weight: 700; font-size: .9rem;
  padding: 11px 16px; border-radius: var(--ds-radius);
  transition: transform .12s var(--ds-ease), box-shadow .12s var(--ds-ease);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ds-primary) 32%, transparent);
}
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--ds-primary) 40%, transparent); color: #fff; }

.lp-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-weight: 600; font-size: .86rem;
  color: var(--ds-success); background: var(--ds-success-soft);
  border: 1px solid color-mix(in srgb, var(--ds-success) 40%, transparent);
  padding: 10px 16px; border-radius: var(--ds-radius);
  transition: background .12s var(--ds-ease);
}
.lp-btn-ghost:hover { background: color-mix(in srgb, var(--ds-success) 18%, transparent); color: var(--ds-success); }

.lp-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .86rem; color: var(--ds-text);
  background: transparent; border: 1px solid var(--ds-border-strong);
  padding: 10px 16px; border-radius: var(--ds-radius);
  transition: border-color .12s var(--ds-ease), background .12s var(--ds-ease);
}
.lp-btn-outline:hover { border-color: var(--ds-primary); background: color-mix(in srgb, var(--ds-primary) 8%, transparent); color: var(--ds-text); }

.lp-or { display: flex; align-items: center; gap: 10px; color: var(--ds-text-muted); font-size: .72rem; margin: 14px 0; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: var(--ds-border); }

.lp-auth-alert {
  font-size: .72rem; line-height: 1.5; color: var(--ds-text-secondary);
  background: var(--ds-warning-soft); border: 1px solid color-mix(in srgb, var(--ds-warning) 32%, transparent);
  border-radius: var(--ds-radius); padding: 9px 11px; margin-bottom: 12px;
}
.lp-auth-alert a { color: var(--ds-primary); font-weight: 600; }
.lp-auth-foot { text-align: center; font-size: .74rem; color: var(--ds-text-muted); margin-top: 14px; }
.lp-auth-foot a { color: var(--ds-primary); font-weight: 600; }

/* ---- SECTIONS ---- */
.lp-section { padding: 56px 0; }
.lp-section-alt { background: var(--ds-bg-subtle); border-block: 1px solid var(--ds-border); }
.lp-sec-head { text-align: center; max-width: 60ch; margin: 0 auto 32px; }
.lp-sec-head .lp-lead { margin-inline: auto; }
.lp-kicker { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-primary); margin-bottom: 8px; }

.lp-grid { display: grid; gap: 16px; }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .lp-grid-4, .lp-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .lp-grid-4, .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-section { padding: 38px 0; }
  .lp-hero { padding-bottom: 34px; }
  .lp-sec-head { margin-bottom: 22px; }
}

.lp-card {
  background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg); padding: 20px;
  transition: transform .15s var(--ds-ease), border-color .15s var(--ds-ease), box-shadow .15s var(--ds-ease);
}
.lp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ds-primary) 45%, transparent); box-shadow: var(--ds-shadow-md); }
.lp-card h3 { font-size: .92rem; font-weight: 700; color: var(--ds-text); margin: 12px 0 5px; letter-spacing: -0.01em; }
.lp-card p { font-size: .8rem; color: var(--ds-text-secondary); line-height: 1.55; margin: 0; }

.lp-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-info));
}
.lp-ico.g-green { background: linear-gradient(135deg, var(--ds-success), var(--ds-info)); }
.lp-ico.g-amber { background: linear-gradient(135deg, var(--ds-warning), var(--ds-danger)); }
.lp-ico.g-violet { background: linear-gradient(135deg, #8b5cf6, var(--ds-primary)); }

/* ---- FACTS band ---- */
.lp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 780px) { .lp-facts { grid-template-columns: repeat(2, 1fr); } }
.lp-fact {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius); padding: 14px 15px;
}
.lp-fact i { color: var(--ds-primary); font-size: 1.05rem; margin-top: 1px; }
.lp-fact span { font-size: .78rem; color: var(--ds-text-secondary); line-height: 1.45; }

/* ---- 3-STEP FLOW ---- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; align-items: stretch; counter-reset: lpstep; }
@media (max-width: 780px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  position: relative; background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg); padding: 22px 20px; text-align: center;
}
.lp-step-num {
  width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-info));
}
.lp-step h3 { font-size: .95rem; font-weight: 700; margin: 0 0 6px; }
.lp-step p { font-size: .8rem; color: var(--ds-text-secondary); line-height: 1.55; margin: 0; }
.lp-step-arrow {
  display: flex; align-items: center; justify-content: center; color: var(--ds-border-strong); font-size: 1.4rem;
}
@media (max-width: 780px) { .lp-step-arrow { transform: rotate(90deg); padding: 4px 0; } }

/* ---- OD note + tips ---- */
.lp-note {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .76rem; color: var(--ds-text-muted); line-height: 1.55;
  background: var(--ds-surface-raised); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius); padding: 11px 13px; margin: 20px 0 0;
}
.lp-note i { color: var(--ds-warning); margin-top: 1px; }
.lp-cta-row { text-align: center; margin-top: 20px; }
.lp-cta-row .lp-btn-ghost, .lp-cta-row .lp-btn-outline { width: auto; padding-inline: 22px; }

.lp-tip {
  background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-left: 3px solid var(--ds-primary);
  border-radius: 0 var(--ds-radius) var(--ds-radius) 0; padding: 14px 16px;
}
.lp-tip strong { font-size: .84rem; color: var(--ds-text); }
.lp-tip p { font-size: .76rem; color: var(--ds-text-secondary); line-height: 1.5; margin: 4px 0 0; }
.lp-footnote { text-align: center; font-size: .72rem; color: var(--ds-text-muted); margin: 28px 0 0; }

/* ---- CLOSING CTA BAND ---- */
.lp-cta-band {
  border-radius: var(--ds-radius-xl); padding: 40px 30px; text-align: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ds-primary) 16%, var(--ds-surface)), color-mix(in srgb, var(--ds-info) 12%, var(--ds-surface)));
  border: 1px solid var(--ds-border-strong);
}
.lp-cta-band h2 { margin-bottom: 8px; }
.lp-cta-band .lp-lead { margin: 0 auto 22px; }
.lp-cta-band .lp-hero-cta { justify-content: center; margin-top: 0; }

/* ---- TWO-COLUMN (about page — "what it is" / "what it isn't") ---- */
.lp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.lp-two-col h3 { font-size: 1rem; font-weight: 700; color: var(--ds-text); margin: 0 0 14px; }
@media (max-width: 780px) { .lp-two-col { grid-template-columns: 1fr; gap: 20px; } }
.lp-contact-card {
  background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg); padding: 22px; text-align: center;
}
.lp-contact-card .lp-ico { margin: 0 auto 12px; }
.lp-contact-card h3 { font-size: .92rem; font-weight: 700; color: var(--ds-text); margin: 0 0 6px; }
.lp-contact-card p, .lp-contact-card a { font-size: .86rem; color: var(--ds-text-secondary); }
.lp-contact-card a { color: var(--ds-primary); font-weight: 600; }

/* ---- FOOTER (Safal-style columns, landing page only) ---- */
.lp-footer { padding: 44px 0 26px; background: var(--ds-bg-subtle); border-top: 1px solid var(--ds-border); }
.lp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-footer-grid { grid-template-columns: 1fr; } }
.lp-footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-footer-brand img { height: 28px; border-radius: 6px; }
.lp-footer-brand span { font-weight: 800; font-size: 1rem; color: var(--ds-text); }
.lp-footer-ap { font-size: .78rem; font-weight: 700; color: var(--ds-text); line-height: 1.7; }
.lp-footer-ap .muted { font-weight: 500; color: var(--ds-text-secondary); font-size: .72rem; }
.lp-footer h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ds-text); margin: 0 0 12px; }
.lp-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-footer-links a { color: var(--ds-text-secondary); font-size: .82rem; }
.lp-footer-links a:hover { color: var(--ds-primary); }
.lp-footer-disclaimer { font-size: .68rem; color: var(--ds-text-muted); line-height: 1.6; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--ds-border); text-align: center; }
.lp-footer-bottom { text-align: center; font-size: .74rem; color: var(--ds-text-muted); margin-top: 14px; }

/* subtle enter animation — content is ALWAYS visible; JS only opts into the
   slide/fade. No-JS or a slow IntersectionObserver never hides anything. */
html.lp-js .lp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ds-ease), transform .5s var(--ds-ease); }
html.lp-js .lp-reveal.in { opacity: 1; transform: none; }

@keyframes lpFloat { from { transform: translate3d(-1%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .lp-hero-bg::before { animation: none; }
  html.lp-js .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-card:hover, .lp-btn-primary:hover { transform: none; }
}

/* 7 Oct 2026: FAQ (templates/includes/_faq.html) */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-item { border: 1px solid var(--ds-border); border-radius: 12px; background: var(--ds-surface-raised); padding: 0 16px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 24px 14px 0; font-weight: 700; color: var(--ds-text); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.2rem; color: var(--ds-primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: var(--ds-text-secondary); font-size: .92rem; line-height: 1.6; }

/* ───────────────────────────────────────────────────────────────────────────
   21 Nov 2026 — public-page motion (operator: "make some animation in the public page so that website become
   more presentable … marketing and appeal"). Pure CSS + static/js/lp-motion.js (loaded from _public_footer.html).
   Content never depends on it: everything is visible without JS, and prefers-reduced-motion turns it all off.
   ─────────────────────────────────────────────────────────────────────────── */

/* Hero: a faint candlestick chart drifting across the background */
.lp-hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  opacity: .07; pointer-events: none;
  background-repeat: repeat-x; background-size: 640px 100%; background-position: 0 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='200' viewBox='0 0 640 200' preserveAspectRatio='none'><g stroke-width='2'><g stroke='%2316c784' fill='%2316c784'><line x1='20' y1='150' x2='20' y2='110'/><rect x='14' y='120' width='12' height='24' rx='2'/><line x1='60' y1='135' x2='60' y2='92'/><rect x='54' y='100' width='12' height='28' rx='2'/><line x1='140' y1='120' x2='140' y2='70'/><rect x='134' y='78' width='12' height='34' rx='2'/><line x1='180' y1='96' x2='180' y2='52'/><rect x='174' y='60' width='12' height='28' rx='2'/><line x1='300' y1='118' x2='300' y2='74'/><rect x='294' y='82' width='12' height='30' rx='2'/><line x1='340' y1='98' x2='340' y2='50'/><rect x='334' y='58' width='12' height='30' rx='2'/><line x1='380' y1='80' x2='380' y2='36'/><rect x='374' y='44' width='12' height='28' rx='2'/><line x1='500' y1='110' x2='500' y2='66'/><rect x='494' y='74' width='12' height='28' rx='2'/><line x1='540' y1='92' x2='540' y2='48'/><rect x='534' y='56' width='12' height='28' rx='2'/><line x1='620' y1='120' x2='620' y2='84'/><rect x='614' y='92' width='12' height='22' rx='2'/></g><g stroke='%23f6465d' fill='%23f6465d'><line x1='100' y1='130' x2='100' y2='96'/><rect x='94' y='104' width='12' height='20' rx='2'/><line x1='220' y1='88' x2='220' y2='126'/><rect x='214' y='94' width='12' height='24' rx='2'/><line x1='260' y1='110' x2='260' y2='150'/><rect x='254' y='118' width='12' height='24' rx='2'/><line x1='420' y1='54' x2='420' y2='96'/><rect x='414' y='62' width='12' height='26' rx='2'/><line x1='460' y1='84' x2='460' y2='128'/><rect x='454' y='92' width='12' height='28' rx='2'/><line x1='580' y1='70' x2='580' y2='112'/><rect x='574' y='78' width='12' height='26' rx='2'/></g></g><polyline fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linejoin='round' points='0,140 60,118 100,116 140,98 180,78 220,100 260,124 300,100 340,76 380,58 420,74 460,100 500,90 540,72 580,88 620,104 640,100'/></svg>");
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
          mask-image: linear-gradient(to top, #000 30%, transparent);
  animation: lpChartDrift 60s linear infinite;
}
@keyframes lpChartDrift { from { background-position: 0 100%; } to { background-position: -640px 100%; } }

/* Headline gradient words shimmer slowly; the "live" dot pulses */
.lp-h1 .grad { background-size: 220% 100%; animation: lpShimmerText 7s ease-in-out infinite alternate; }
@keyframes lpShimmerText { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lp-eyebrow .dot { animation: lpPulse 2.2s ease-out infinite; }
@keyframes lpPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-success) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--ds-success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-success) 0%, transparent); }
}

/* Hero text enters in steps */
html.lp-js .lp-hero .lp-eyebrow,
html.lp-js .lp-hero .lp-h1,
html.lp-js .lp-hero .lp-hero-sub,
html.lp-js .lp-hero .lp-hero-cta { animation: lpRise .7s var(--ds-ease) both; }
html.lp-js .lp-hero .lp-h1 { animation-delay: .08s; }
html.lp-js .lp-hero .lp-hero-sub { animation-delay: .16s; }
html.lp-js .lp-hero .lp-hero-cta { animation-delay: .24s; }
@keyframes lpRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Cards in a revealed grid appear one after another */
html.lp-js .lp-grid.lp-reveal > *, html.lp-js .lp-steps.lp-reveal > *, html.lp-js .lp-facts.lp-reveal > * {
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .55s var(--ds-ease), transform .55s var(--ds-ease), border-color .2s, box-shadow .2s;
}
html.lp-js .lp-reveal.in > * { opacity: 1; transform: none; }
html.lp-js .lp-reveal.in > *:nth-child(2) { transition-delay: .06s; }
html.lp-js .lp-reveal.in > *:nth-child(3) { transition-delay: .12s; }
html.lp-js .lp-reveal.in > *:nth-child(4) { transition-delay: .18s; }
html.lp-js .lp-reveal.in > *:nth-child(5) { transition-delay: .24s; }
html.lp-js .lp-reveal.in > *:nth-child(6) { transition-delay: .30s; }
html.lp-js .lp-reveal.in > *:nth-child(7) { transition-delay: .36s; }
html.lp-js .lp-reveal.in > *:nth-child(8) { transition-delay: .42s; }
html.lp-js .lp-reveal.in > *:nth-child(9) { transition-delay: .48s; }
html.lp-js .lp-reveal.in > *:nth-child(n+10) { transition-delay: .54s; }
html.lp-js .lp-reveal.in > .lp-card:hover { transition-delay: 0s; }

/* Cards: soft spotlight that follows the mouse (vars set by lp-motion.js) + floating icon */
.lp-card { position: relative; overflow: hidden; }
.lp-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--ds-primary) 16%, transparent), transparent 70%);
}
.lp-card:hover::before { opacity: 1; }
.lp-card:hover .lp-ico { animation: lpIconFloat 1.6s ease-in-out infinite; }
.lp-ico { transition: transform .25s var(--ds-ease), box-shadow .25s; }
.lp-card:hover .lp-ico { box-shadow: 0 8px 20px color-mix(in srgb, var(--ds-primary) 35%, transparent); }
@keyframes lpIconFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }

/* Primary buttons: an occasional light sweep */
.lp-btn-primary { position: relative; overflow: hidden; }
.lp-btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: lpSweep 5.5s ease-in-out infinite;
}
@keyframes lpSweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Section kickers: a short line grows in when the section appears */
.lp-kicker { position: relative; }
html.lp-js .lp-sec-head.lp-reveal .lp-kicker::after {
  content: ""; display: block; height: 2px; width: 0; margin-top: 6px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-info)); transition: width .7s var(--ds-ease) .15s;
}
html.lp-js .lp-sec-head.lp-reveal.in .lp-kicker::after { width: 42px; }
.lp-sec-head[style*="text-align:center"] .lp-kicker::after, .lp-sec-head.text-center .lp-kicker::after { margin-left: auto; margin-right: auto; }

/* Feature ticker strip (templates/includes/_feature_marquee.html) */
.lp-marquee { position: relative; overflow: hidden; padding: 12px 0; border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border);
  background: color-mix(in srgb, var(--ds-primary) 5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee-track { display: flex; gap: 12px; width: max-content; animation: lpMarquee 48s linear infinite; }
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
.lp-marquee-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .8rem; font-weight: 600;
  color: var(--ds-text-secondary); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--ds-border); background: var(--ds-surface-raised); }
.lp-marquee-item i { color: var(--ds-primary); }
@keyframes lpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Thin scroll-progress bar (lp-motion.js) */
.lp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 2000; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--lp-progress, 0));
  background: linear-gradient(90deg, var(--ds-primary), var(--ds-info), var(--ds-success)); }

/* 23 Nov 2026: /platform "New on the Chart" — the red "Not found Strong Pattern" pill blinks like the real Chart */
.lp-show-fig .s-blink { animation: lpShowBlink 1.2s steps(2, start) infinite; }
@keyframes lpShowBlink { to { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .lp-hero-bg::after, .lp-show-fig .s-blink, .lp-h1 .grad, .lp-eyebrow .dot, .lp-btn-primary::after, .lp-marquee-track,
  .lp-card:hover .lp-ico, html.lp-js .lp-hero .lp-eyebrow, html.lp-js .lp-hero .lp-h1,
  html.lp-js .lp-hero .lp-hero-sub, html.lp-js .lp-hero .lp-hero-cta { animation: none !important; }
  html.lp-js .lp-grid.lp-reveal > *, html.lp-js .lp-steps.lp-reveal > *, html.lp-js .lp-facts.lp-reveal > * {
    opacity: 1; transform: none; transition: none; }
  .lp-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .lp-marquee-track [aria-hidden="true"] { display: none; }
  .lp-progress { display: none; }
}
