/* ==========================================================================
   ERPDocs — Landing page (v2 "Ocean", motion-led)
   Depends on tokens.css + marketing.css. Page-specific classes use lp-.
   1. Hero (dark, live signing stage)   5. Feature tiles (animated)
   2. Doc-type marquee                  6. Security (seal + hash)
   3. Stats                             7. CTA signature
   4. Story (sticky scroll)             8. Responsive + reduced motion
   ========================================================================== */

/* 1. Hero ---------------------------------------------------------------- */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--ds-nav-height));
  padding-block: calc(var(--ds-nav-height) + clamp(3rem, 2rem + 4vw, 6rem)) clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--ds-dark-deep); color: var(--ds-on-dark-muted);
}
.lp-aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .9; }
.lp-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: lp-drift 22s ease-in-out infinite alternate; }
.lp-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 0%; background: radial-gradient(circle, rgba(3,105,161,.85), transparent 65%); }
.lp-aurora span:nth-child(2) { width: 34vw; height: 34vw; left: 66%; top: 38%; background: radial-gradient(circle, rgba(56,189,248,.45), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.lp-aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 8%; top: 55%; background: radial-gradient(circle, rgba(5,150,105,.28), transparent 65%); animation-duration: 32s; animation-delay: -12s; }
.lp-gridbg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(6,18,42,.6)); }

.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: var(--ds-radius-full);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--ds-on-dark); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-medium);
}
/* Long Act name: wrap inside the pill on phones instead of overflowing. */
@media (max-width: 480px) { .lp-eyebrow { max-width: 100%; border-radius: var(--ds-radius-lg); line-height: 1.35; } }
.lp-eyebrow b { flex-shrink: 0; font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semi); padding: 2px 8px; border-radius: var(--ds-radius-full); background: var(--ds-primary); color: var(--ds-on-primary); }
.lp-h1 { margin-top: var(--ds-space-6); font-size: clamp(2.25rem, 1rem + 3vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: var(--ds-weight-bold); color: var(--ds-on-dark) !important; }
.lp-line { display: block; overflow: hidden; padding-bottom: .08em; }
.lp-line > span { display: inline-block; animation: lp-rise-in 1s var(--ds-ease-out) both; }
.lp-line:nth-child(2) > span { animation-delay: .12s; }
.lp-ink { position: relative; font-style: normal; white-space: nowrap; background: linear-gradient(100deg, #7dd3fc 10%, #e0f2fe 55%, #7dd3fc 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lp-sheen 6s ease-in-out 1.4s infinite; }
.lp-underline { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.lp-underline path { fill: none; stroke: var(--ds-sky); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: lp-draw 1.1s var(--ds-ease-out) .9s forwards; }
.lp-lead { margin-top: var(--ds-space-6); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 52ch; color: rgba(255,255,255,.74); animation: lp-fade-up .9s var(--ds-ease-out) .25s both; }
.lp-cta { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); margin-top: var(--ds-space-8); animation: lp-fade-up .9s var(--ds-ease-out) .35s both; }
.lp-proof { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-6); margin-top: var(--ds-space-6); font-size: var(--ds-text-sm); color: rgba(255,255,255,.66); animation: lp-fade-up .9s var(--ds-ease-out) .45s both; }
.lp-proof span { display: inline-flex; align-items: center; gap: 6px; }
.lp-proof .ds-icon { color: #34d399; }
.lp-btn-glow { position: relative; }
.lp-btn-glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(125,211,252,.45); animation: lp-pulse-ring 2.8s ease-out 2s infinite; pointer-events: none; }

/* Stage: tilted paper + floating panels */
.lp-stage { position: relative; perspective: 1600px; padding: 24px 0 40px; animation: lp-fade-up 1.1s var(--ds-ease-out) .3s both; }
.lp-paper {
  position: relative; margin-left: auto; width: min(100%, 470px); aspect-ratio: 0.9;
  background: #fff; color: #1f2f4a; border-radius: 10px; padding: 28px 30px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 40px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d;
  transition: transform 1.2s var(--ds-ease-out);
  display: flex; flex-direction: column; font-size: 11px;
}
.lp-stage:hover .lp-paper { transform: rotateY(-6deg) rotateX(3deg) rotateZ(0deg); }
.lp-paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ds-ink); }
.lp-paper-head small { display: block; font-family: var(--ds-font-mono); font-size: 9px; color: var(--ds-subtle); letter-spacing: .04em; }
.lp-paper-head b { display: block; font-size: 16px; color: var(--ds-ink); letter-spacing: -0.01em; margin-top: 2px; }
.lp-paper-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; color: var(--ds-ink); }
.lp-paper-logo img { width: 18px; height: 18px; }
.lp-clauses { display: grid; gap: 9px; padding-block: 16px 14px; flex: 1; align-content: start; }
.lp-clause { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start; }
.lp-clause > span { font-family: var(--ds-font-mono); font-size: 9px; color: var(--ds-subtle); line-height: 7px; }
.lp-clause div { display: grid; gap: 5px; }
.lp-clause i { display: block; height: 5px; border-radius: 3px; background: #e7edf4; }
.lp-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.lp-field label { display: block; font-size: 9px; font-weight: 600; color: var(--ds-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.lp-box { position: relative; height: 48px; border-bottom: 1.5px solid #c3cfdc; display: flex; align-items: flex-end; padding: 0 4px 4px; }
.lp-hint {
  position: absolute; inset: 2px 0 4px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--ds-primary); border-radius: 6px; background: rgba(3,105,161,.06);
  color: var(--ds-primary); font-weight: 600; font-size: 10px; transition: opacity .35s var(--ds-ease);
  animation: lp-hint-pulse 1.8s ease-in-out infinite;
}
.lp-field.is-active .lp-hint, .lp-field.is-done .lp-hint { opacity: 0; }
.lp-sig { font-family: var(--ds-font-signature); font-size: 32px; line-height: 1; color: #0c2a6b; white-space: nowrap; clip-path: inset(-20% 100% -20% 0); transform: translateY(6px) rotate(-3deg); transform-origin: left bottom; }
.lp-field.is-writing .lp-sig { animation: lp-write var(--lp-write, 1.3s) cubic-bezier(.45,.05,.55,.95) forwards; }
.lp-field.is-done .lp-sig { clip-path: inset(-20% 0 -20% 0); }
.lp-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 9px; color: var(--ds-muted); }
.lp-date { font-family: var(--ds-font-mono); color: var(--ds-ink); min-height: 1em; }
.lp-field-dsc { grid-column: 1 / -1; }
.lp-field-dsc .lp-box { height: 56px; }
.lp-dsc-token { position: absolute; left: 10px; top: 50%; display: flex; align-items: center; gap: 8px; transform: translate(-30px, -50%); opacity: 0; transition: all .6s var(--ds-ease-out); font-size: 10px; color: var(--ds-ink); font-weight: 600; }
.lp-dsc-token .tok { width: 30px; height: 14px; border-radius: 3px; background: var(--ds-ink); position: relative; }
.lp-dsc-token .tok::after { content: ""; position: absolute; right: -6px; top: 3px; width: 6px; height: 8px; background: #94a3b8; border-radius: 1px; }
.lp-pin { display: inline-flex; gap: 4px; margin-left: 6px; }
.lp-pin i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ds-muted); transition: background .15s; }
.lp-field.is-token .lp-hint { opacity: 0; }
.lp-field.is-token .lp-dsc-token { opacity: 1; transform: translate(0, -50%); }
.lp-field.is-token .lp-pin i { animation: lp-pin .2s forwards; }
.lp-field.is-token .lp-pin i:nth-child(2) { animation-delay: .25s; }
.lp-field.is-token .lp-pin i:nth-child(3) { animation-delay: .5s; }
.lp-field.is-token .lp-pin i:nth-child(4) { animation-delay: .75s; }
.lp-dsc-block {
  position: absolute; inset: 2px auto 4px 0; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border: 1.5px solid var(--ds-accent); border-radius: 6px; background: #f0fdf7; font-family: var(--ds-font-mono); font-size: 8.5px; line-height: 1.45; color: #05603a;
  clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ds-ease-out);
}
.lp-dsc-block b { font-family: var(--ds-font-sans); font-size: 10px; display: block; }
.lp-dsc-block .ds-icon { color: var(--ds-accent); }
.lp-field.is-done .lp-dsc-token { opacity: 0; }
.lp-field-dsc.is-done .lp-dsc-block { clip-path: inset(0 0 0 0); }

.lp-pen { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 5; pointer-events: none; opacity: 0; transform: translate(520px, 300px); transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45,.05,.55,.95); filter: drop-shadow(0 6px 6px rgba(12,30,61,.3)); }
.lp-pen.is-on { opacity: 1; }
.lp-pen svg { display: block; margin: -30px 0 0 -2px; transform-origin: 2px 30px; }
.lp-pen.is-writing svg { animation: lp-wiggle .16s ease-in-out infinite alternate; }

.lp-seal {
  position: absolute; right: 26px; top: 76px; width: 104px; height: 104px; z-index: 4; pointer-events: none;
  opacity: 0; transform: scale(1.8) rotate(-30deg);
}
.lp-seal svg { width: 100%; height: 100%; }
.lp-seal-ring { animation: lp-spin 18s linear infinite; transform-origin: 60px 60px; }
.is-sealed .lp-seal { animation: lp-stamp .55s cubic-bezier(.2,1.4,.4,1) forwards; }
.is-sealed .lp-paper { animation: lp-thud .35s ease-out .42s; }
.lp-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ds-accent); opacity: 0; }
.is-sealed .lp-ripple { animation: lp-ripple .9s ease-out .45s; }

.lp-panel {
  position: absolute; left: -64px; top: 132px; width: 250px; z-index: 6;
  padding: 14px; border-radius: var(--ds-radius-lg);
  background: rgba(12,30,61,.78); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px -12px rgba(0,0,0,.5);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--ds-on-dark); font-size: 12px;
}
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.lp-panel-head b { font-weight: 600; }
.lp-panel-head span { color: rgba(255,255,255,.66); font-variant-numeric: tabular-nums; }
.lp-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 10px 0 12px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ds-sky), #34d399); border-radius: inherit; transition: width .7s var(--ds-ease-out); }
.lp-rows { display: grid; gap: 8px; }
.lp-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.lp-row .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.1); color: var(--ds-on-dark); transition: background .3s; }
.lp-row b { display: block; font-size: 12px; font-weight: 600; }
.lp-row small { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); }
.lp-st { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); transition: all .3s var(--ds-ease); white-space: nowrap; }
.lp-row[data-state="waiting"] .lp-st { background: rgba(251,191,36,.16); color: #fcd34d; }
.lp-row[data-state="signed"] .lp-st { background: rgba(52,211,153,.18); color: #6ee7b7; }
.lp-row[data-state="signed"] .av { background: rgba(52,211,153,.25); }
.lp-row[data-state="signed"] .lp-st { animation: lp-pop .4s var(--ds-ease-out); }

.lp-toast {
  position: absolute; right: -12px; top: 0; z-index: 7; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: var(--ds-radius-lg); background: #fff; color: var(--ds-ink);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); font-size: 12px;
  opacity: 0; transform: translateY(-10px) scale(.96); transition: all .5s var(--ds-ease-out);
}
.lp-toast .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ds-success-bg); color: var(--ds-success); }
.lp-toast b { display: block; font-size: 12.5px; }
.lp-toast small { color: var(--ds-muted); font-size: 11px; }
.is-certified .lp-toast { opacity: 1; transform: none; }
.lp-stage.is-fading .lp-paper > *:not(.lp-pen), .lp-stage.is-fading .lp-toast { transition: opacity .5s; opacity: 0; }

/* 2. What teams sign: rotator (default) or doc grid -------------------- */
.lp-signs-band { padding-block: var(--ds-space-12) var(--ds-space-4); background: var(--ds-surface); }
.lp-signs-band { overflow: hidden; }
.lp-signs-band:not([data-variant="grid"]) .lp-docgrid,
.lp-signs-band[data-variant="grid"] .lp-rotator-wrap,
.lp-signs-band:not([data-variant="cards"]) .lp-dmarq,
.lp-signs-band[data-variant="none"] { display: none; }
.lp-dmarq { margin-top: var(--ds-space-8); display: grid; gap: var(--ds-space-3); padding-bottom: var(--ds-space-8); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-drow { display: flex; gap: var(--ds-space-3); width: max-content; animation: lp-marquee 70s linear infinite; }
.lp-drow.rev { animation-direction: reverse; animation-duration: 80s; }
.lp-dmarq:hover .lp-drow { animation-play-state: paused; }
.lp-dcard { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 330px; padding: 12px 14px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); background: var(--ds-surface); box-shadow: var(--ds-shadow-xs); transition: border-color var(--ds-dur), box-shadow var(--ds-dur); }
.lp-dcard:hover { border-color: var(--ds-primary-border); box-shadow: var(--ds-shadow-md); }
.lp-dthumb { position: relative; width: 40px; height: 50px; padding: 7px 6px; border-radius: 5px; background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-xs); display: grid; gap: 3px; align-content: start; }
.lp-dthumb i { display: block; height: 3px; border-radius: 2px; background: var(--ds-border); }
.lp-dthumb i:first-child { width: 65%; background: var(--ds-primary); opacity: .7; }
.lp-dthumb i:nth-child(3) { width: 80%; }
.lp-dthumb svg { position: absolute; left: 6px; bottom: 5px; width: 26px; height: 9px; }
.lp-dthumb path { fill: none; stroke: #0c2a6b; stroke-width: 1.3; stroke-linecap: round; }
.lp-dmeta { min-width: 0; }
.lp-dmeta b { display: block; font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semi); color: var(--ds-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dmeta small { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: var(--ds-text-xs); color: var(--ds-muted); white-space: nowrap; overflow: hidden; }
.lp-dmeta small .ds-icon { color: var(--ds-primary); }
.lp-rotator-wrap { text-align: center; }
.lp-rotator-line { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: var(--ds-weight-bold); letter-spacing: -0.025em; color: var(--ds-ink); line-height: 1.2; }
.lp-rotator { display: inline-block; position: relative; vertical-align: bottom; overflow: hidden; padding: 0 .1em .08em; }
.lp-rotator::after { content: ""; position: absolute; left: .1em; right: .1em; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ds-primary), var(--ds-sky)); }
.lp-rotator-word { display: inline-block; color: var(--ds-primary); transition: transform .32s var(--ds-ease), opacity .32s var(--ds-ease), filter .32s var(--ds-ease); }
.lp-rotator-word.is-out { transform: translateY(-60%); opacity: 0; filter: blur(4px); }
.lp-rotator-word.is-in { transform: translateY(60%); opacity: 0; filter: blur(4px); transition: none; }
.lp-rotator-sub { margin-top: var(--ds-space-3); font-size: var(--ds-text-sm); color: var(--ds-muted); letter-spacing: .02em; }

/* 1b. Hero background variants (data-hero-bg) ----------------------------- */
.lp-dots, .lp-beam, .lp-guilloche, .lp-ruled, .lp-glow { display: none; }
.lp-guilloche { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lp-guilloche path, .lp-guilloche ellipse { fill: none; stroke-width: .7; }
.lp-guilloche path { stroke: rgba(125, 211, 252, .055); }
.lp-guilloche ellipse { stroke: rgba(125, 211, 252, .07); }
.lp-rosette { transform-box: view-box; }
.lp-dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--ds-border-strong) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 25%, transparent 75%); }
.lp-beam { position: absolute; z-index: -1; left: 40%; top: -30%; width: 80%; height: 140%; background: conic-gradient(from 200deg at 50% 0%, transparent 0deg, rgba(56,189,248,.22) 18deg, transparent 40deg); filter: blur(30px); animation: lp-beam 14s ease-in-out infinite alternate; }

/* Executive base: calm navy + one glow; animated layer on top (data-anim) */
.lp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 50%); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, #000 50%); }
.lp-canvas-front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.lp-bg-executive .lp-glow { display: none; }
.lp-bg-executive { background: linear-gradient(180deg, #0a1f44 0%, var(--ds-dark-deep) 100%); }
.lp-bg-executive .lp-aurora, .lp-bg-executive .lp-gridbg { display: none; }
.lp-bg-executive .lp-ruled { display: none; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 32px); mask-image: linear-gradient(90deg, transparent 30%, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%); }
.lp-bg-executive .lp-glow { display: block; position: absolute; z-index: -1; right: 4%; top: 12%; width: 720px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(3,105,161,.42), transparent); filter: blur(10px); }

/* Security paper: navy, faint static wave guilloche + rosette */

/* Deep spotlight: one soft light, nothing else */

/* Ocean gradient: brighter, brand-forward */

/* Ink beam: near-black with a light beam behind the paper */

/* Light + Light mesh: white page, dark text */

/* 3. Stats --------------------------------------------------------------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-xl); background: var(--ds-surface); overflow: hidden; }
.lp-stat { padding: var(--ds-space-8) var(--ds-space-6); border-right: 1px solid var(--ds-border); }
.lp-stat:last-child { border-right: 0; }
.lp-stat b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: var(--ds-weight-bold); letter-spacing: -0.04em; line-height: 1; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.lp-stat b em { font-style: normal; color: var(--ds-primary); }
.lp-stat > span { display: block; margin-top: var(--ds-space-3); font-size: var(--ds-text-sm); color: var(--ds-muted); }

/* 4. How it works: auto-playing stepper + app window ------------------- */
.lp-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.lp-steps { position: relative; padding-left: 44px; }
.lp-steps-rail { position: absolute; left: 15px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: var(--ds-border); }
.lp-steps-rail i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(var(--ds-primary), var(--ds-sky)); transform: scaleY(0); transform-origin: top; }
.lp-step { position: relative; min-height: 58vh; padding-block: var(--ds-space-6) var(--ds-space-10); display: flex; flex-direction: column; justify-content: center; opacity: .42; transition: opacity .5s var(--ds-ease); }
.lp-step:last-child { min-height: 52vh; }
.lp-step.is-active { opacity: 1; }
.lp-step-dot { position: absolute; left: -44px; top: 50%; margin-top: -120px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--ds-surface); border: 2px solid var(--ds-border-strong); color: var(--ds-muted); transition: all .4s var(--ds-ease); }
.lp-step.is-active .lp-step-dot, .lp-step.is-past .lp-step-dot { background: var(--ds-primary); border-color: var(--ds-primary); color: var(--ds-on-primary); box-shadow: 0 0 0 5px var(--ds-primary-soft-2); }
.lp-step small { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semi); text-transform: uppercase; letter-spacing: var(--ds-tracking-caps); color: var(--ds-primary); }
.lp-step h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: var(--ds-weight-bold); letter-spacing: -0.02em; line-height: 1.2; margin-block: var(--ds-space-2) var(--ds-space-3); }
.lp-step p { font-size: var(--ds-text-lg); color: var(--ds-muted); max-width: 46ch; }
.lp-step-list { list-style: none; margin: var(--ds-space-5) 0 0; padding: var(--ds-space-4) var(--ds-space-5); display: grid; gap: var(--ds-space-3); background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-xs); }
.lp-step-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--ds-space-2); font-size: var(--ds-text-sm); color: var(--ds-text); }
.lp-step-list .ds-icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ds-success-bg); color: var(--ds-success); }
.lp-step-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--ds-space-4); }
.lp-step-chips span { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semi); padding: 4px 10px; border-radius: var(--ds-radius-full); background: var(--ds-primary-soft); color: var(--ds-primary-text); border: 1px solid var(--ds-primary-border); }
.lp-story-sticky { position: sticky; top: calc(var(--ds-nav-height) + max(24px, (100vh - var(--ds-nav-height) - 540px) / 2)); }

.lp-app { position: relative; border-radius: var(--ds-radius-xl); background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-lg); overflow: hidden; }
.lp-app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ds-surface-alt); border-bottom: 1px solid var(--ds-border); }
.lp-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ds-border-strong); }
.lp-app-bar span { margin-left: 10px; flex: 1; max-width: 320px; padding: 3px 10px; border-radius: 6px; background: var(--ds-surface); border: 1px solid var(--ds-border); font-family: var(--ds-font-mono); font-size: 11.5px; color: var(--ds-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-app-tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--ds-border-soft); overflow-x: auto; scrollbar-width: none; }
.lp-app-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: var(--ds-radius-full); font-size: 12px; font-weight: var(--ds-weight-semi); color: var(--ds-subtle); white-space: nowrap; transition: all var(--ds-dur) var(--ds-ease); }
.lp-app-tabs b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; background: var(--ds-surface-alt); border: 1px solid var(--ds-border); transition: all var(--ds-dur) var(--ds-ease); }
.lp-app-tabs span.is-active { background: var(--ds-primary-soft); color: var(--ds-primary-text); }
.lp-app-tabs span.is-active b { background: var(--ds-primary); border-color: var(--ds-primary); color: var(--ds-on-primary); }
.lp-app-tabs span.is-done { color: var(--ds-success-text); }
.lp-app-tabs span.is-done b { background: var(--ds-success-bg); border-color: transparent; color: var(--ds-success); }
.lp-app-body { position: relative; height: 420px; background: linear-gradient(180deg, var(--ds-surface-alt), var(--ds-surface) 60%); }
.sc { position: absolute; inset: 20px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ds-ease), transform .45s var(--ds-ease-out), visibility .45s; font-size: 13px; }
.lp-app[data-step="1"] .sc-1, .lp-app[data-step="2"] .sc-2, .lp-app[data-step="3"] .sc-3, .lp-app[data-step="4"] .sc-4 { opacity: 1; visibility: visible; transform: none; }
.sc b { font-weight: var(--ds-weight-semi); color: var(--ds-ink); }
.sc small { display: block; font-size: 11.5px; color: var(--ds-muted); }

/* step 1 */
.u-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--ds-primary-border); border-radius: var(--ds-radius-lg); background: var(--ds-primary-soft); }
.u-drop .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ds-surface); color: var(--ds-primary); box-shadow: var(--ds-shadow-xs); }
.u-file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; padding: 12px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); box-shadow: var(--ds-shadow-xs); }
.u-file .pdf { width: 34px; height: 42px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--ds-danger-bg); color: var(--ds-danger-text); }
.u-prog { display: block; height: 5px; margin-top: 7px; border-radius: 5px; background: var(--ds-primary-soft-2); overflow: hidden; }
.u-prog i { display: block; height: 100%; width: 0; background: var(--ds-primary); border-radius: inherit; }
.lp-app[data-step="1"] .u-prog i { animation: lp-fill 1.4s var(--ds-ease-out) .35s forwards; }
.u-ok { color: var(--ds-success); opacity: 0; transform: scale(.6); }
.lp-app[data-step="1"] .u-ok { animation: lp-okpop .4s var(--ds-ease-out) 1.8s forwards; }
.u-tpl-h { margin: 18px 0 8px; font-size: 11px; font-weight: var(--ds-weight-semi); text-transform: uppercase; letter-spacing: var(--ds-tracking-caps); color: var(--ds-subtle); }
.u-tpl { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--ds-radius); }
.u-tpl + .u-tpl { border-top: 1px solid var(--ds-border-soft); }
.u-tpl .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ds-surface-alt); color: var(--ds-primary); border: 1px solid var(--ds-border); }
.u-tpl .use { font-size: 12px; font-weight: var(--ds-weight-semi); color: var(--ds-primary); }
.lp-app[data-step="1"] .u-tpl { animation: lp-fade-up .5s var(--ds-ease-out) both; }
.lp-app[data-step="1"] .u-tpl:nth-of-type(4) { animation-delay: .1s; } .lp-app[data-step="1"] .u-tpl:nth-of-type(5) { animation-delay: .2s; } .lp-app[data-step="1"] .u-tpl:nth-of-type(6) { animation-delay: .3s; }

/* step 2 */
.sc-2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
.p-pal { display: grid; gap: 6px; align-content: start; }
.p-pal small { font-size: 11px; font-weight: var(--ds-weight-semi); text-transform: uppercase; letter-spacing: var(--ds-tracking-caps); color: var(--ds-subtle); margin-bottom: 2px; }
.p-pal span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 7px; border: 1px solid var(--ds-border); background: var(--ds-surface); font-size: 12px; font-weight: var(--ds-weight-medium); color: var(--ds-ink); }
.p-pal .ds-icon { color: var(--ds-primary); }
.p-page { position: relative; padding: 22px 24px; border-radius: 8px; background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-md); display: grid; gap: 8px; align-content: start; }
.p-page i, .d-doc i { display: block; height: 6px; border-radius: 3px; background: #e7edf4; }
.p-page i.t, .d-doc i.t { width: 55%; height: 10px; background: var(--ds-ink); opacity: .85; margin-bottom: 6px; }
.p-f { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 11.5px; font-weight: var(--ds-weight-semi); border: 1.5px dashed var(--ds-primary); background: var(--ds-primary-soft); color: var(--ds-primary-text); border-radius: 6px; white-space: nowrap; opacity: 0; }
.p-f.alt { border-color: var(--ds-accent); background: var(--ds-success-bg); color: var(--ds-success-text); }
.p-f1 { left: 7%; top: 60%; } .p-f2 { left: 53%; top: 60%; } .p-f3 { left: 7%; top: 76%; } .p-f4 { left: 53%; top: 76%; }
.lp-app[data-step="2"] .p-f { animation: lp-fieldin .55s cubic-bezier(.2,1.3,.4,1) forwards; }
.lp-app[data-step="2"] .p-f2 { animation-delay: .25s; } .lp-app[data-step="2"] .p-f3 { animation-delay: .5s; } .lp-app[data-step="2"] .p-f4 { animation-delay: .75s; }
.p-ai { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--ds-radius-full); background: var(--ds-dark); color: var(--ds-on-dark); font-size: 11.5px; font-weight: var(--ds-weight-semi); box-shadow: var(--ds-shadow-md); opacity: 0; }
.p-ai .ds-icon { color: var(--ds-sky); }
.lp-app[data-step="2"] .p-ai { animation: lp-okpop .45s var(--ds-ease-out) 1.2s forwards; }

/* step 3 */
.s-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.s-mode { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--ds-surface-alt); border: 1px solid var(--ds-border); font-size: 11.5px; font-weight: var(--ds-weight-semi); }
.s-mode span { padding: 3px 9px; border-radius: 6px; color: var(--ds-muted); }
.s-mode span.on { background: var(--ds-surface); color: var(--ds-ink); box-shadow: var(--ds-shadow-xs); }
.s-row { display: grid; grid-template-columns: 16px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; margin-bottom: 7px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); }
.s-row .n { font-size: 11px; font-weight: 700; color: var(--ds-primary); text-align: center; }
.s-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row > span:nth-child(3) { min-width: 0; }
.lp-app[data-step="3"] .s-row { animation: lp-slidein .45s var(--ds-ease-out) both; }
.lp-app[data-step="3"] .s-row:nth-of-type(3) { animation-delay: .1s; } .lp-app[data-step="3"] .s-row:nth-of-type(4) { animation-delay: .2s; }
.s-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-top: 4px; border-radius: var(--ds-radius); background: var(--ds-surface-alt); color: var(--ds-text); font-size: 12px; }
.s-msg .ds-icon { color: var(--ds-primary); margin-top: 2px; }
.s-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ds-muted); }
.s-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.s-send { padding: 8px 14px; border-radius: 8px; background: var(--ds-primary); color: var(--ds-on-primary); font-weight: var(--ds-weight-semi); }
.lp-app[data-step="3"] .s-send { animation: lp-press .3s ease 2.2s; }
.s-toast { position: absolute; left: 50%; bottom: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--ds-radius-full); background: var(--ds-dark); color: var(--ds-on-dark); font-size: 12.5px; font-weight: var(--ds-weight-semi); box-shadow: var(--ds-shadow-lg); opacity: 0; transform: translate(-50%, 10px); white-space: nowrap; }
.s-toast .ds-icon { color: #34d399; }
.lp-app[data-step="3"] .s-toast { animation: lp-toastin .45s var(--ds-ease-out) 2.5s forwards; }

/* step 4 */
.sc-4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.d-doc { position: relative; padding: 20px 20px 16px; border-radius: 8px; background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-md); display: grid; gap: 7px; align-content: start; }
.d-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.d-sigs span { border-bottom: 1px solid var(--ds-border-strong); padding-bottom: 2px; }
.d-sigs em { display: block; font-style: normal; font-family: var(--ds-font-signature); font-size: 22px; line-height: 1.2; color: #0c2a6b; clip-path: inset(-30% 100% -30% 0); }
.d-sigs small { font-size: 9.5px; }
.lp-app[data-step="4"] .d-sigs em { animation: lp-write 1s ease-in-out .2s forwards; }
.lp-app[data-step="4"] .d-sigs span:nth-child(2) em { animation-delay: .8s; }
.d-dsc { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 9px; border-radius: 6px; border: 1.5px solid var(--ds-accent); background: var(--ds-success-bg); color: var(--ds-success-text); font-family: var(--ds-font-mono); font-size: 9.5px; clip-path: inset(0 100% 0 0); }
.lp-app[data-step="4"] .d-dsc { animation: lp-write .8s var(--ds-ease-out) 1.5s forwards; }
.d-seal { position: absolute; right: 10px; top: 10px; width: 72px; height: 72px; opacity: 0; transform: scale(1.8) rotate(-30deg); }
.lp-app[data-step="4"] .d-seal { animation: lp-stamp .55s cubic-bezier(.2,1.4,.4,1) 2.2s forwards; }
.d-cert { align-self: center; padding: 16px; border-radius: var(--ds-radius-lg); background: var(--ds-surface); border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-lg); opacity: 0; }
.lp-app[data-step="4"] .d-cert { animation: lp-fade-up .5s var(--ds-ease-out) 2.6s forwards; }
.d-cert-h { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ds-border-soft); }
.d-cert-h .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ds-success-bg); color: var(--ds-success); }
.d-cert dl { margin: 10px 0 12px; display: grid; gap: 7px; }
.d-cert dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.d-cert dt { color: var(--ds-muted); }
.d-cert dd { margin: 0; color: var(--ds-ink); font-weight: var(--ds-weight-medium); text-align: right; }
.d-cert dd.mono { font-family: var(--ds-font-mono); font-size: 11px; }
.d-actions { display: flex; gap: 6px; }
.d-actions .b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 8px; border-radius: 7px; border: 1px solid var(--ds-border-strong); font-size: 11.5px; font-weight: var(--ds-weight-semi); color: var(--ds-ink); white-space: nowrap; }
.d-actions .b.pri { background: var(--ds-primary); border-color: var(--ds-primary); color: var(--ds-on-primary); }

/* 5. Feature tiles ------------------------------------------------------- */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--ds-space-4); }
.lp-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 320px;
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-xl); background: var(--ds-surface);
  transition: border-color var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
}
.lp-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(3,105,161,.09), transparent 60%); }
.lp-tile:hover { border-color: var(--ds-primary-border); box-shadow: var(--ds-shadow-md); transform: translateY(-3px); }
.lp-tile:hover::before { opacity: 1; }
.lp-tile-copy { padding: var(--ds-space-6) var(--ds-space-6) 0; }
.lp-tile-copy small { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semi); color: var(--ds-primary); text-transform: uppercase; letter-spacing: var(--ds-tracking-caps); }
.lp-tile-copy h3 { font-size: var(--ds-text-lg); font-weight: var(--ds-weight-semi); margin-block: var(--ds-space-2) var(--ds-space-2); }
.lp-tile-copy p { font-size: var(--ds-text-sm); color: var(--ds-muted); max-width: 46ch; }
.lp-tile-vis { position: relative; flex: 1; min-height: 170px; margin-top: var(--ds-space-4); }
.lp-plan { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 1px 6px; border-radius: 4px; background: var(--ds-neutral-bg); color: var(--ds-neutral-text); }
.t-span4 { grid-column: span 4; } .t-span3 { grid-column: span 3; } .t-span2 { grid-column: span 2; }
.lp-tile.is-row { flex-direction: row; } .lp-tile.is-row .lp-tile-copy { flex: 0 0 42%; padding-bottom: var(--ds-space-6); align-self: center; } .lp-tile.is-row .lp-tile-vis { margin-top: 0; }
.lp-bento:not(.is-inview) .lp-tile * { animation-play-state: paused !important; }

/* Templates: chips fly from palette to the page */
.v-tpl { position: absolute; inset: 22px 22px 0 22px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.v-pal { display: grid; gap: 6px; align-content: start; }
.v-pal span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11px; font-weight: 600; border: 1px solid var(--ds-border); border-radius: 6px; background: var(--ds-surface-alt); color: var(--ds-ink); }
.v-pal .ds-icon { color: var(--ds-primary); }
.v-page { position: relative; background: #fff; border: 1px solid var(--ds-border); border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: var(--ds-shadow-md); padding: 18px 20px; display: grid; gap: 7px; align-content: start; }
.v-page i { display: block; height: 6px; border-radius: 3px; background: #e7edf4; }
.v-drop { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 11px; font-weight: 600; border: 1.5px dashed var(--ds-primary); border-radius: 5px; background: var(--ds-primary-soft); color: var(--ds-primary-text); animation: lp-snap 7s cubic-bezier(.2,1.2,.4,1) infinite; }
.v-drop.alt { border-color: var(--ds-accent); background: var(--ds-success-bg); color: var(--ds-success-text); }
.v-page .v-title { width: 55%; height: 9px; background: var(--ds-ink); opacity: .8; }
.v-d1 { left: 8%; top: 62%; } .v-d2 { left: 52%; top: 62%; animation-delay: .5s; } .v-d3 { left: 8%; top: 78%; animation-delay: 1s; } .v-d4 { left: 52%; top: 78%; animation-delay: 1.5s; }

/* DSC: token, PIN, signed */
.v-dsc { position: absolute; inset: 0; display: grid; place-items: center; }
.v-port { position: relative; width: 200px; padding: 16px; border-radius: 12px; background: var(--ds-dark); color: #fff; box-shadow: var(--ds-shadow-lg); }
.v-port .tokrow { display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(255,255,255,.7); }
.v-port .tok { width: 44px; height: 18px; border-radius: 4px; background: linear-gradient(#e2e8f0, #94a3b8); animation: lp-plug 6s ease-in-out infinite; }
.v-port .pins { display: flex; gap: 8px; margin: 14px 0 12px; }
.v-port .pins i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); animation: lp-pinloop 6s steps(1) infinite; }
.v-port .pins i:nth-child(2) { animation-delay: .25s; } .v-port .pins i:nth-child(3) { animation-delay: .5s; } .v-port .pins i:nth-child(4) { animation-delay: .75s; } .v-port .pins i:nth-child(5) { animation-delay: 1s; } .v-port .pins i:nth-child(6) { animation-delay: 1.25s; }
.v-port .ok { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #6ee7b7; animation: lp-okloop 6s ease infinite; }

/* AI: scan beam + chips */
.v-ai { position: absolute; inset: 18px 18px 0; }
.v-ai .doc { position: absolute; left: 0; top: 0; width: 58%; bottom: 0; background: #fff; border: 1px solid var(--ds-border); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 14px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.v-ai .doc i { display: block; height: 5px; border-radius: 3px; background: #e7edf4; }
.v-ai .doc i.hl { background: rgba(3,105,161,.25); animation: lp-hl 5s ease infinite; }
.v-ai .beam { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(to bottom, transparent, rgba(56,189,248,.35), transparent); border-bottom: 2px solid var(--ds-sky); animation: lp-scan 5s ease-in-out infinite; }
.v-ai .out { position: absolute; right: 0; top: 10px; width: 46%; display: grid; gap: 8px; }
.v-ai .out span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: var(--ds-surface); border: 1px solid var(--ds-primary-border); box-shadow: var(--ds-shadow-sm); font-size: 11px; font-weight: 600; color: var(--ds-ink); opacity: 0; animation: lp-chipin 5s var(--ds-ease-out) infinite; }
.v-ai .out span .ds-icon { color: var(--ds-primary); }
.v-ai .out span:nth-child(2) { animation-delay: .35s; } .v-ai .out span:nth-child(3) { animation-delay: .7s; }

/* Signing order: rows swap */
.v-order { position: absolute; inset: 20px 22px 0; display: grid; gap: 8px; align-content: start; }
.v-order div { display: grid; grid-template-columns: 18px 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid var(--ds-border); border-radius: 8px; background: #fff; font-size: 11.5px; box-shadow: var(--ds-shadow-xs); }
.v-order .n { font-weight: 700; color: var(--ds-primary); }
.v-order .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--ds-primary-soft-2); color: var(--ds-primary-text); }
.v-order .r2 { animation: lp-swapdown 6s var(--ds-ease) infinite; }
.v-order .r3 { animation: lp-swapup 6s var(--ds-ease) infinite; }
.v-order .tag { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--ds-surface-alt); color: var(--ds-muted); }

/* Reminders: bell + stacked notifications */
.v-rem { position: absolute; inset: 18px 22px 0; }
.v-rem .bell { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ds-warning-bg); color: var(--ds-warning); animation: lp-ring 3s ease-in-out infinite; transform-origin: 50% 10%; }
.v-rem .stack { position: absolute; left: 60px; right: 0; top: 0; display: grid; gap: 8px; }
.v-rem .stack div { padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--ds-border); box-shadow: var(--ds-shadow-sm); font-size: 11px; color: var(--ds-muted); animation: lp-notif 6s var(--ds-ease-out) infinite; opacity: 0; }
.v-rem .stack b { display: block; color: var(--ds-ink); font-size: 11.5px; }
.v-rem .stack div:nth-child(2) { animation-delay: .6s; } .v-rem .stack div:nth-child(3) { animation-delay: 1.2s; }

/* Audit: ticking timeline */
.v-audit { position: absolute; inset: 14px 24px 0; display: grid; gap: 0; align-content: start; }
.v-audit div { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 11.5px; position: relative; opacity: 0; animation: lp-tick 8s var(--ds-ease-out) infinite; }
.v-audit div:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 29px; height: 14px; width: 1px; background: var(--ds-border); }
.v-audit .d { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-primary-soft); color: var(--ds-primary); }
.v-audit .d.ok { background: var(--ds-success-bg); color: var(--ds-success); }
.v-audit time { font-family: var(--ds-font-mono); font-size: 10.5px; color: var(--ds-subtle); }
.v-audit small { color: var(--ds-muted); }
.v-audit div:nth-child(2) { animation-delay: .5s; } .v-audit div:nth-child(3) { animation-delay: 1s; } .v-audit div:nth-child(4) { animation-delay: 1.5s; } .v-audit div:nth-child(5) { animation-delay: 2s; }

/* API: typed code */
.v-api { position: absolute; inset: 14px 22px 0; background: var(--ds-dark-deep); border-radius: 10px 10px 0 0; padding: 14px 16px; font-family: var(--ds-font-mono); font-size: 11.5px; line-height: 1.75; color: #cbd5e1; overflow: hidden; }
.v-api .ln { display: block; white-space: pre; overflow: hidden; width: 0; animation: lp-type 9s steps(40, end) infinite; }
.v-api .ln:nth-child(2) { animation-delay: .5s; } .v-api .ln:nth-child(3) { animation-delay: 1s; } .v-api .ln:nth-child(4) { animation-delay: 1.5s; } .v-api .ln:nth-child(5) { animation-delay: 2s; } .v-api .ln:nth-child(6) { animation-delay: 2.5s; } .v-api .ln:nth-child(7) { animation-delay: 3.2s; }
.v-api .k { color: #7dd3fc; } .v-api .s { color: #86efac; } .v-api .c { color: #64748b; } .v-api .ok { color: #6ee7b7; }

/* 6. Security ------------------------------------------------------------ */
.lp-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.lp-bigseal { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin-inline: auto; }
.lp-bigseal svg { width: 100%; height: 100%; overflow: visible; }
.lp-bigseal .ring { transform-origin: 160px 160px; animation: lp-spin 40s linear infinite; }
.lp-bigseal .ring2 { transform-origin: 160px 160px; animation: lp-spin 60s linear infinite reverse; }
.lp-bigseal::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.28), transparent 70%); filter: blur(20px); animation: lp-breathe 5s ease-in-out infinite; }
.lp-hash { margin-top: var(--ds-space-6); padding: var(--ds-space-4); border-radius: var(--ds-radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); font-family: var(--ds-font-mono); font-size: var(--ds-text-xs); color: var(--ds-on-dark-muted); }
.lp-hash div { display: flex; justify-content: space-between; gap: 12px; }
.lp-hash code { color: var(--ds-primary-on-dark); word-break: break-all; }
.lp-hash .ok { color: #6ee7b7; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--ds-font-sans); font-weight: 600; }
.lp-sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-6) var(--ds-space-8); margin-top: var(--ds-space-10); }
.lp-sec-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--ds-space-4); }
.lp-sec-item .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(125,211,252,.1); color: var(--ds-primary-on-dark); border: 1px solid rgba(125,211,252,.18); }
.lp-sec-item h3 { color: var(--ds-on-dark); font-size: var(--ds-text-base); font-weight: var(--ds-weight-semi); margin-bottom: 4px; }
.lp-sec-item p { font-size: var(--ds-text-sm); }
.lp-sec-item a { color: var(--ds-primary-on-dark); font-weight: 600; }

/* 7. Final CTA: try-signing pad --------------------------------------------- */
.lp-final-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem); border-radius: 24px;
  background: radial-gradient(700px 420px at 85% 50%, rgba(3,105,161,.45), transparent 70%), radial-gradient(500px 300px at 0% 0%, rgba(56,189,248,.12), transparent 70%), var(--ds-dark-deep);
  color: var(--ds-on-dark-muted); box-shadow: 0 40px 80px -30px rgba(6,18,42,.5);
}
.lp-final-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.lp-final-rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lp-final-rings g { transform-origin: 560px 250px; transform: rotate(-8deg); }
.lp-final-rings ellipse { fill: none; stroke: rgba(125,211,252,.10); stroke-width: 1; stroke-dasharray: 2 6; animation: lp-dash 30s linear infinite; }
.lp-final-rings ellipse:nth-child(2) { animation-duration: 42s; animation-direction: reverse; }
.lp-final-rings ellipse:nth-child(3) { animation-duration: 56s; }
.lp-final-copy h2 { margin-top: var(--ds-space-5); color: var(--ds-on-dark); font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); font-weight: var(--ds-weight-bold); letter-spacing: -0.03em; line-height: 1.08; }
.lp-final-copy > p { margin-top: var(--ds-space-4); font-size: var(--ds-text-lg); max-width: 46ch; color: rgba(255,255,255,.72); }
.lp-final-points { list-style: none; margin: var(--ds-space-6) 0 0; padding: 0; display: grid; gap: var(--ds-space-3); }
.lp-final-points li { display: flex; align-items: center; gap: var(--ds-space-3); font-size: var(--ds-text-sm); color: rgba(255,255,255,.7); }
.lp-final-points li .ds-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: rgba(125,211,252,.1); border: 1px solid rgba(125,211,252,.18); color: var(--ds-primary-on-dark); }
.lp-final-points b { color: var(--ds-on-dark); font-weight: var(--ds-weight-semi); }
.lp-final .lp-cta { margin-top: var(--ds-space-8); animation: none; }

.lp-pad { position: relative; background: var(--ds-surface); color: var(--ds-ink); border-radius: var(--ds-radius-xl); padding: var(--ds-space-5); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-1deg); transition: transform .5s var(--ds-ease-out); }
.lp-pad:hover { transform: rotate(0); }
.lp-pad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--ds-space-3); }
.lp-pad-head b { display: block; font-size: var(--ds-text-base); font-weight: var(--ds-weight-semi); }
.lp-pad-head small { display: block; font-size: var(--ds-text-xs); color: var(--ds-muted); }
.lp-pad-clear { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--ds-radius); border: 1px solid var(--ds-border); background: var(--ds-surface); font: inherit; font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semi); color: var(--ds-muted); cursor: pointer; }
.lp-pad-clear:hover { border-color: var(--ds-ink); color: var(--ds-ink); }
.lp-pad-area { position: relative; height: 170px; margin-top: var(--ds-space-4); border-radius: var(--ds-radius-lg); border: 1.5px dashed var(--ds-primary-border); background: linear-gradient(180deg, var(--ds-primary-soft), var(--ds-surface)); transition: border-color var(--ds-dur), background var(--ds-dur); touch-action: none; }
.lp-pad-area::after { content: ""; position: absolute; left: 44px; right: 20px; bottom: 38px; height: 1.5px; background: var(--ds-border-strong); pointer-events: none; }
.lp-pad.is-signed .lp-pad-area { border-style: solid; border-color: var(--ds-success); background: var(--ds-surface); }
.lp-pad-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; z-index: 1; }
.lp-pad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semi); color: var(--ds-primary); pointer-events: none; transition: opacity .3s; animation: lp-hint-fade 2.4s ease-in-out infinite; }
.lp-pad.is-drawing .lp-pad-hint, .lp-pad.is-signed .lp-pad-hint, .lp-pad.is-demo .lp-pad-hint { opacity: 0; animation: none; }
.lp-pad-x { position: absolute; left: 20px; bottom: 34px; font-size: 20px; color: var(--ds-subtle); pointer-events: none; }
.lp-pad-seal { position: absolute; right: 14px; top: 12px; width: 76px; height: 76px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.8) rotate(-30deg); }
.lp-pad.is-signed .lp-pad-seal { animation: lp-stamp .55s cubic-bezier(.2,1.4,.4,1) .15s forwards; }
.lp-pad-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--ds-space-6); align-items: end; margin-top: var(--ds-space-4); padding-top: var(--ds-space-4); border-top: 1px solid var(--ds-border-soft); }
.lp-pad-foot small { display: block; font-size: var(--ds-text-xs); color: var(--ds-muted); }
.lp-pad-foot b { display: block; font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semi); font-variant-numeric: tabular-nums; }
.lp-pad-done { display: flex; align-items: center; gap: 8px; max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; padding: 0 12px; border-radius: var(--ds-radius); background: var(--ds-success-bg); color: var(--ds-success-text); font-size: var(--ds-text-sm); transition: max-height .4s var(--ds-ease), opacity .4s, margin .4s, padding .4s; }
.lp-pad-done a { color: var(--ds-success-text); font-weight: var(--ds-weight-semi); text-decoration: underline; text-underline-offset: 2px; }
.lp-pad.is-signed .lp-pad-done { max-height: 60px; opacity: 1; margin-top: var(--ds-space-3); padding: 10px 12px; }
.lp-pad-note { margin-top: var(--ds-space-3); font-size: var(--ds-text-xs); color: var(--ds-subtle); text-align: center; }
@keyframes lp-dash { to { stroke-dashoffset: -400; } }
@keyframes lp-hint-fade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Section reveal stagger */
[data-stagger] > * { transition: opacity .7s var(--ds-ease-out), transform .7s var(--ds-ease-out); }
[data-stagger].is-pending > * { opacity: 0; transform: translateY(18px); }
[data-stagger] > *:nth-child(2) { transition-delay: .07s; } [data-stagger] > *:nth-child(3) { transition-delay: .14s; } [data-stagger] > *:nth-child(4) { transition-delay: .21s; } [data-stagger] > *:nth-child(5) { transition-delay: .28s; } [data-stagger] > *:nth-child(6) { transition-delay: .35s; } [data-stagger] > *:nth-child(7) { transition-delay: .42s; }

/* Keyframes -------------------------------------------------------------- */
@keyframes lp-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.08); } 100% { transform: translate(4%, -5%) scale(.96); } }
@keyframes lp-rise-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lp-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(125,211,252,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(125,211,252,0); } }
@keyframes lp-hint-pulse { 0%, 100% { background: rgba(3,105,161,.05); } 50% { background: rgba(3,105,161,.13); } }
@keyframes lp-write { to { clip-path: inset(-30% 0 -30% 0); } }
@keyframes lp-wiggle { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(3deg) translateY(-2px); } }
@keyframes lp-pin { to { background: var(--ds-ink); border-color: var(--ds-ink); } }
@keyframes lp-stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-30deg); } 60% { opacity: 1; transform: scale(.94) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(-10deg); } }
@keyframes lp-thud { 0%, 100% { translate: 0 0; } 40% { translate: 0 2px; } }
@keyframes lp-ripple { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@keyframes lp-fill { to { width: 100%; } }
@keyframes lp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-fly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes lp-snap { 0%, 8% { opacity: 0; transform: translate(-150px, 10px) scale(.85); } 20%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes lp-plug { 0%, 10% { transform: translateX(-20px); opacity: .4; } 22%, 85% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-20px); opacity: .4; } }
@keyframes lp-pinloop { 0%, 30% { background: transparent; } 30.1%, 88% { background: #fff; border-color: #fff; } 88.1%, 100% { background: transparent; } }
@keyframes lp-okloop { 0%, 55% { opacity: 0; transform: translateY(4px); } 62%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes lp-scan { 0% { top: -40px; } 55% { top: 100%; } 100% { top: 100%; } }
@keyframes lp-hl { 0%, 30% { background: #e7edf4; } 40%, 90% { background: rgba(3,105,161,.25); } 100% { background: #e7edf4; } }
@keyframes lp-chipin { 0%, 45% { opacity: 0; transform: translateX(-16px); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lp-swapdown { 0%, 35% { transform: translateY(0); } 50%, 85% { transform: translateY(calc(100% + 8px)); } 100% { transform: translateY(0); } }
@keyframes lp-swapup { 0%, 35% { transform: translateY(0); } 50%, 85% { transform: translateY(calc(-100% - 8px)); } 100% { transform: translateY(0); } }
@keyframes lp-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(14deg); } 70% { transform: rotate(-12deg); } 75% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes lp-notif { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes lp-tick { 0% { opacity: 0; transform: translateX(-10px); } 6%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes lp-type { 0% { width: 0; } 30%, 90% { width: 100%; } 100% { width: 0; } }
@keyframes lp-rosette { from { transform: translate(1180px, 430px) rotate(0deg); } to { transform: translate(1180px, 430px) rotate(360deg); } }
@keyframes lp-beam { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes lp-stepbar { to { transform: scaleX(1); } }
@keyframes lp-okpop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lp-fieldin { 0% { opacity: 0; transform: translate(-30px, -8px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes lp-slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-press { 50% { transform: scale(.94); } }
@keyframes lp-toastin { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes lp-breathe { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }

/* 8. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-span4, .t-span3 { grid-column: span 2; } .t-span2 { grid-column: span 1; }
  .lp-panel { left: -16px; }
  .lp-toast { right: 0; }
}
@media (max-width: 960px) {
  .lp-hero-grid, .lp-sec, .lp-final-card { grid-template-columns: minmax(0, 1fr); }
  .lp-stage { max-width: 560px; margin-inline: auto; width: 100%; }
  .lp-paper { margin-inline: auto; transform: rotateY(-6deg) rotateX(4deg); }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-story { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-4); }
  .lp-story-sticky { order: -1; top: calc(var(--ds-nav-height) + 8px); z-index: 2; }
  .lp-app-body { height: 330px; }
  .lp-step { min-height: 0; padding-block: var(--ds-space-8); opacity: 1; }
  .lp-step-dot { top: var(--ds-space-8); margin-top: 0; }
  .lp-stat:nth-child(2) { border-right: 0; }
  .lp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ds-border); }
  .lp-bigseal { width: min(70%, 280px); }
}
@media (max-width: 640px) {
  .lp-bento { grid-template-columns: minmax(0, 1fr); }
  .t-span4, .t-span3, .t-span2 { grid-column: auto; }
  .lp-tile.is-row { flex-direction: column; } .lp-tile.is-row .lp-tile-copy { flex: none; }
  .v-tpl { grid-template-columns: minmax(0, 1fr); } .v-pal { display: none; }
  .lp-sec-list { grid-template-columns: minmax(0, 1fr); }
  .sc-2 { grid-template-columns: minmax(0, 1fr); } .p-pal { display: none; }
  .sc-4 { grid-template-columns: minmax(0, 1fr); } .d-doc { display: none; }
  .lp-app-body { height: 400px; }
  .lp-dcard { width: 260px; }
  .lp-paper { padding: 20px 18px; font-size: 10px; }
  .lp-sig { font-size: 26px; }
  .lp-stage { padding-bottom: 0; }
  .lp-panel { position: relative; width: auto; margin: -28px 12px 0; left: 0; top: 0; }
  .lp-toast { right: 4px; }
  .lp-cta .ds-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-line > span, .lp-ink, .lp-underline path { animation: none !important; }
  .lp-underline path { stroke-dashoffset: 0; }
  .lp-sig, .st-sig { clip-path: none !important; }
  .lp-seal, .st-seal { opacity: 1 !important; transform: rotate(-10deg) !important; }
  .lp-drow { animation: none !important; }
  [data-stagger].is-pending > * { opacity: 1; transform: none; }
}
