/*
==================================================================
  TraderMetric — Landing redesign overlay
  Loaded AFTER landing-page.css. Preserves the dark-navy + indigo
  + blue + gold palette; changes type, hero shape, and the structural
  chrome around the problem / audience sections.

  Scoped exclusively to the landing route — selectors are either
  prefixed with .lp- (new elements) or target the existing landing
  classes with a .lp-redesign guard on <body>.
==================================================================
*/

/* -------------------------------------------------- */
/* Type system                                         */
/* -------------------------------------------------- */

:root {
  --lp-serif: "Instrument Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --lp-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --lp-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Chart vernacular — up/down follow candlestick convention and
     match the brand gold already in landing-page.css. */
  --lp-up:    #22c55e;
  --lp-down:  #f97066;
  --lp-grid:  rgba(255,255,255,.06);
  --lp-rule:  rgba(255,255,255,.08);
}

/* Body stays Inter on landing-redesign pages */
body.lp-redesign { font-family: var(--lp-sans); }

/* Serif takes over for display headings only. One family across
   hero/section/final-CTA so the voice stays consistent. */
body.lp-redesign .hero-title,
body.lp-redesign .section-heading,
body.lp-redesign .proof-heading,
body.lp-redesign .final-cta h2,
body.lp-redesign .lp-hero-headline {
  font-family: var(--lp-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

/* Retire ALL-CAPS proof-eyebrow treatment. Lead sentences read
   like editorial section labels, not SaaS template chrome. */
body.lp-redesign .proof-eyebrow,
body.lp-redesign .hero-eyebrow {
  font-family: var(--lp-sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-gold);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Small gold mark preceding each eyebrow — a quiet signpost */
body.lp-redesign .proof-eyebrow::before,
body.lp-redesign .hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand-gold);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* Suppress the gradient-text-on-a-single-phrase template default.
   The hero headline earns its weight through specificity, not color. */
body.lp-redesign .hero-title .gradient-text,
body.lp-redesign .gradient-text {
  background: none;
  -webkit-text-fill-color: inherit;
  background-clip: initial;
  color: inherit;
  /* Thin gold underline on the accented phrase instead — a chart annotation feel */
  box-shadow: inset 0 -0.08em 0 rgba(245,181,70,0.55);
  padding: 0 0.05em;
}

/* -------------------------------------------------- */
/* HERO — live-trade card next to prose headline       */
/* -------------------------------------------------- */

body.lp-redesign .hero-section {
  padding: 100px 0 60px;
  overflow: hidden;
}

/* Hide the existing centered-video hero machinery on redesign pages;
   we're replacing the whole hero. */
body.lp-redesign .hero-bg-video-wrap,
body.lp-redesign .hero-particles,
body.lp-redesign .hero-centered,
body.lp-redesign .scroll-indicator {
  display: none !important;
}

/* Hero background is drawn by js/landing-hero-bg.js (see landing-hero-bg.css). */
body.lp-redesign .lp-hero {
  position: relative;
  padding: 1rem 0;
}

body.lp-redesign .lp-hero .container {
  position: relative;
  z-index: 1;
}


body.lp-redesign .lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

body.lp-redesign .lp-hero-copy {
  position: relative;
  z-index: 2;
}

body.lp-redesign .lp-hero-headline {
  color: var(--text-high);
  font-size: clamp(2.4rem, 4.2vw + 1rem, 4rem);
  margin: 0 0 1.25rem;
}

body.lp-redesign .lp-hero-sub {
  font-family: var(--lp-sans);
  color: var(--text-med);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 48ch;
  margin: 0 0 1.75rem;
}

body.lp-redesign .lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

body.lp-redesign .lp-hero-note {
  font-family: var(--lp-sans);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* -------------------------------------------------- */
/* Live-trade card                                     */
/* -------------------------------------------------- */

body.lp-redesign .lp-trade-card {
  position: relative;
  background: linear-gradient(180deg, rgba(23,35,64,.9), rgba(17,26,46,.95));
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  font-family: var(--lp-sans);
}

body.lp-redesign .lp-trade-card::after {
  /* Subtle rim glow using the blue token — belongs to the palette */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(54,147,255,.25), transparent 55%);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.6;
}

body.lp-redesign .lp-trade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

body.lp-redesign .lp-trade-symbol {
  font-family: var(--lp-mono);
  color: var(--text-high);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

body.lp-redesign .lp-trade-symbol .lp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-up);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

body.lp-redesign .lp-trade-tf {
  font-family: var(--lp-mono);
  color: var(--text-dim);
  font-size: 0.78rem;
}

body.lp-redesign .lp-trade-dir {
  font-family: var(--lp-mono);
  font-size: 0.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  color: var(--lp-up);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  letter-spacing: 0.04em;
}

body.lp-redesign .lp-trade-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.9rem;
}

/* Three stat rows beneath the chart — real metrics, mono numbers */
body.lp-redesign .lp-trade-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--surface-border);
  padding-top: 0.75rem;
}

body.lp-redesign .lp-trade-stat {
  padding: 0 0.75rem;
  border-left: 1px solid var(--surface-border);
}

body.lp-redesign .lp-trade-stat:first-child {
  border-left: none;
  padding-left: 0;
}

body.lp-redesign .lp-trade-stat-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

body.lp-redesign .lp-trade-stat-value {
  display: block;
  font-family: var(--lp-mono);
  color: var(--text-high);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

body.lp-redesign .lp-trade-stat-value--up { color: var(--lp-up); }

/* Annotation callouts beneath the stat row — the "insight" moment */
body.lp-redesign .lp-trade-insight {
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-left: 2px solid var(--brand-gold);
  background: linear-gradient(90deg, rgba(245,181,70,.08), transparent 70%);
  font-size: 0.82rem;
  color: var(--text-med);
  line-height: 1.4;
}

body.lp-redesign .lp-trade-insight strong {
  color: var(--brand-gold);
  font-weight: 600;
}

/* -------------------------------------------------- */
/* HERO reveal — one orchestrated moment               */
/* -------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  body.lp-redesign .lp-hero-copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: lp-reveal 0.7s ease-out forwards;
  }
  body.lp-redesign .lp-hero-eyebrow { animation-delay: 0.05s; }
  body.lp-redesign .lp-hero-headline { animation-delay: 0.15s; }
  body.lp-redesign .lp-hero-sub { animation-delay: 0.3s; }
  body.lp-redesign .lp-hero-cta { animation-delay: 0.45s; }
  body.lp-redesign .lp-hero-note { animation-delay: 0.55s; }

  body.lp-redesign .lp-trade-card {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    animation: lp-reveal-card 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
  }
}

@keyframes lp-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-reveal-card {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Retire the fade-in-everywhere pattern on redesign pages — the main
   JS adds `.visible` to `.fade-in` elements. We make them visible
   immediately so motion only happens in the hero. */
body.lp-redesign .fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* -------------------------------------------------- */
/* PROBLEM — comparison table                          */
/* -------------------------------------------------- */

body.lp-redesign .lp-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0 1.5rem;
  font-family: var(--lp-sans);
}

body.lp-redesign .lp-compare thead th {
  padding: 1rem 0.75rem;
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: bottom;
}

body.lp-redesign .lp-compare thead th:first-child {
  color: var(--text-high);
}

body.lp-redesign .lp-compare thead th.lp-compare-us {
  color: var(--brand-gold);
  font-weight: 600;
}

body.lp-redesign .lp-compare tbody td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--lp-rule);
  color: var(--text-med);
  font-size: 0.95rem;
}

body.lp-redesign .lp-compare tbody tr:last-child td {
  border-bottom: none;
}

body.lp-redesign .lp-compare td:first-child {
  color: var(--text-high);
  font-weight: 500;
}

body.lp-redesign .lp-compare td.lp-compare-no {
  color: var(--text-dim);
}

body.lp-redesign .lp-compare td.lp-compare-yes {
  color: var(--brand-gold);
  font-weight: 500;
}

body.lp-redesign .lp-compare td.lp-compare-us {
  background: linear-gradient(90deg, rgba(245,181,70,.04), rgba(245,181,70,.02));
}

body.lp-redesign .problem-bridge {
  font-family: var(--lp-sans);
  color: var(--text-med);
  font-size: 1.1rem;
  max-width: 68ch;
  margin: 1.75rem auto 0;
}

/* -------------------------------------------------- */
/* AUDIENCE — three columns, hairline dividers         */
/* -------------------------------------------------- */

body.lp-redesign .lp-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

body.lp-redesign .lp-audience-col {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--surface-border);
  font-family: var(--lp-sans);
}

body.lp-redesign .lp-audience-col:first-child {
  border-left: none;
  padding-left: 0;
}

body.lp-redesign .lp-audience-col:last-child {
  padding-right: 0;
}

body.lp-redesign .lp-audience-tag {
  color: var(--brand-gold);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

body.lp-redesign .lp-audience-title {
  font-family: var(--lp-serif);
  color: var(--text-high);
  font-size: 1.6rem;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

body.lp-redesign .lp-audience-blurb {
  color: var(--text-med);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

body.lp-redesign .lp-audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.lp-redesign .lp-audience-list li {
  color: var(--text-med);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.45;
}

body.lp-redesign .lp-audience-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--brand-blue);
  font-family: var(--lp-mono);
  font-size: 0.95rem;
}

/* -------------------------------------------------- */
/* Section headings — serif-aware size + weight        */
/* -------------------------------------------------- */

body.lp-redesign .section-heading {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 3rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

body.lp-redesign .proof-heading {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem);
  font-weight: 400;
}

body.lp-redesign .section-subheading {
  font-family: var(--lp-sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Final CTA inherits the voice */
body.lp-redesign .final-cta h2 {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 400;
}

/* -------------------------------------------------- */
/* Mobile — hero stacks, chart stays legible           */
/* -------------------------------------------------- */

@media (max-width: 991.98px) {
  body.lp-redesign .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  body.lp-redesign .lp-hero-sub { max-width: none; }
  body.lp-redesign .lp-audience {
    grid-template-columns: 1fr;
  }
  body.lp-redesign .lp-audience-col {
    border-left: none;
    border-top: 1px solid var(--surface-border);
    padding: 2rem 0;
  }
  body.lp-redesign .lp-audience-col:first-child {
    border-top: none;
    padding-top: 1rem;
  }
}

/* Comparison table scrolls inside its own region on narrow screens: the
   page itself is overflow-x: hidden, so without this the right-hand
   columns (including TraderMetric's) were clipped with no way to reach
   them. The row labels stay pinned while the comparison swipes. */
body.lp-redesign .lp-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

body.lp-redesign .lp-compare-scroll:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: 6px;
}

body.lp-redesign .lp-compare-hint {
  display: none;
}

@media (max-width: 767.98px) {
  body.lp-redesign .lp-compare {
    min-width: 600px;
    margin-top: 0.75rem;
  }
  body.lp-redesign .lp-compare th:first-child,
  body.lp-redesign .lp-compare td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 132px;
    min-width: 132px;
    background: #0b1322;
    box-shadow: 1px 0 0 var(--surface-border), 8px 0 12px -8px rgba(0,0,0,.6);
  }
  body.lp-redesign .lp-compare-hint {
    display: block;
    margin: 2rem 0 0;
    text-align: right;
    color: var(--text-dim);
    font-size: 0.8rem;
  }
}

/* The fixed navbar pill overlaps the hero's first lines when stacked;
   give the copy room to start below it. */
@media (max-width: 991.98px) {
  body.lp-redesign .hero-section.lp-hero {
    padding-top: 6.5rem;
  }
}

@media (max-width: 575.98px) {
  body.lp-redesign .lp-compare {
    font-size: 0.85rem;
  }
  body.lp-redesign .lp-compare thead th,
  body.lp-redesign .lp-compare tbody td {
    padding: 0.7rem 0.4rem;
  }
  body.lp-redesign .lp-trade-stat-value {
    font-size: 0.95rem;
  }
}

/* -------------------------------------------------- */
/* Proof-section vector illustrations (.lp-illus)      */
/* -------------------------------------------------- */
/*
 * Each proof section (Analytics / Journal / Playbooks / Strategy Lab)
 * swaps its screenshot for a crafted SVG mini-dashboard that matches the
 * hero trade card's visual language. Calendar section keeps its image.
 *
 * The container inherits the existing .proof-visual glow via position-
 * relative, and inherits the hover-lift from the proof-visual rules.
 */

body.lp-redesign .proof-visual img {
  /* Hide the original screenshots on redesign pages. The <img> stays in
     the DOM so the structured-data crawl and the "preserved for later
     use elsewhere" promise both hold. */
  display: none;
}

body.lp-redesign .lp-illus {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, rgba(23,35,64,0.9), rgba(17,26,46,0.95));
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  position: relative;
  z-index: 1;
}

body.lp-redesign .proof-visual:hover .lp-illus {
  transform: translateY(-6px);
}

body.lp-redesign .lp-illus svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Force Poppins across every SVG text inside a proof illustration.
   The real app uses Poppins for all page chrome and data, so the
   mockups should too — regardless of what font-family= each <text>
   element carries as a presentation attribute. Scoped to .lp-illus
   only; the hero's `.lp-trade-card` is NOT a page reproduction and
   keeps its JetBrains Mono readouts and Instrument Serif styling. */
body.lp-redesign .lp-illus svg text,
body.lp-redesign .lp-illus svg tspan {
  font-family: "Poppins", Inter, -apple-system, sans-serif !important;
}

/* Fine rim glow matching the hero card */
body.lp-redesign .lp-illus::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(54,147,255,.2), transparent 55%);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
}

/* -------------------------------------------------- */
/* Analytics reveal — one orchestrated moment          */
/* -------------------------------------------------- */
/*
 * Fires once when the Analytics illustration scrolls into view (observer
 * adds `.is-playing` in the extra_js init). SVG lifts into place, then
 * the P&L bars grow from the zero line in a left-to-right stagger, then
 * the cumulative line draws itself in with its area fill flooding
 * underneath. Nothing loops. Nothing scattered on the other illustrations.
 *
 * Baseline (pre-play) hides the animatable elements; .is-playing swaps
 * them in. prefers-reduced-motion gets the final state immediately.
 */

body.lp-redesign .lp-illus-analytics svg {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

body.lp-redesign .lp-illus-analytics .an-bar {
  transform-box: fill-box;
  transform: scaleY(0.001);
}
body.lp-redesign .lp-illus-analytics .an-bar-up   { transform-origin: center bottom; }
body.lp-redesign .lp-illus-analytics .an-bar-down { transform-origin: center top; }

body.lp-redesign .lp-illus-analytics .an-area-fill {
  opacity: 0;
}

body.lp-redesign .lp-illus-analytics .an-line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

/* Play state — observer adds .is-playing to the wrapper div */
body.lp-redesign .lp-illus-analytics.is-playing svg {
  opacity: 1;
  transform: translateY(0);
}

body.lp-redesign .lp-illus-analytics.is-playing .an-bar {
  animation: an-bar-grow 480ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(400ms + var(--i, 0) * 55ms);
}

body.lp-redesign .lp-illus-analytics.is-playing .an-area-fill {
  animation: an-area-reveal 900ms ease-out forwards;
  animation-delay: 800ms;
}

body.lp-redesign .lp-illus-analytics.is-playing .an-line {
  animation: an-line-draw 1100ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 800ms;
}

@keyframes an-bar-grow {
  from { transform: scaleY(0.001); }
  to   { transform: scaleY(1); }
}

@keyframes an-area-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes an-line-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* Reduced-motion: skip the reveal entirely, show the final state. */
@media (prefers-reduced-motion: reduce) {
  body.lp-redesign .lp-illus-analytics svg,
  body.lp-redesign .lp-illus-analytics .an-bar,
  body.lp-redesign .lp-illus-analytics .an-area-fill,
  body.lp-redesign .lp-illus-analytics .an-line {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- */
/* Journal reveal — SVG lifts, KPIs cascade, entries   */
/* stagger in top-to-bottom                            */
/* -------------------------------------------------- */

body.lp-redesign .lp-illus-journal svg {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
body.lp-redesign .lp-illus-journal .jn-kpi,
body.lp-redesign .lp-illus-journal .jn-entry {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  transform: translateY(12px) scale(0.98);
}

body.lp-redesign .lp-illus-journal.is-playing svg {
  opacity: 1;
  transform: translateY(0);
}
body.lp-redesign .lp-illus-journal.is-playing .jn-kpi {
  animation: jn-rise 500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(300ms + var(--i, 0) * 80ms);
}
body.lp-redesign .lp-illus-journal.is-playing .jn-entry {
  animation: jn-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(700ms + var(--i, 0) * 70ms);
}

@keyframes jn-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.lp-redesign .lp-illus-journal svg,
  body.lp-redesign .lp-illus-journal .jn-kpi,
  body.lp-redesign .lp-illus-journal .jn-entry {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- */
/* Playbooks reveal — same shape as Journal, scoped to */
/* .pb-kpi and .pb-row groups                           */
/* -------------------------------------------------- */

body.lp-redesign .lp-illus-playbooks svg {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
body.lp-redesign .lp-illus-playbooks .pb-kpi,
body.lp-redesign .lp-illus-playbooks .pb-row {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  transform: translateY(12px) scale(0.98);
}

body.lp-redesign .lp-illus-playbooks.is-playing svg {
  opacity: 1;
  transform: translateY(0);
}
body.lp-redesign .lp-illus-playbooks.is-playing .pb-kpi {
  animation: jn-rise 500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(300ms + var(--i, 0) * 80ms);
}
body.lp-redesign .lp-illus-playbooks.is-playing .pb-row {
  animation: jn-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(700ms + var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  body.lp-redesign .lp-illus-playbooks svg,
  body.lp-redesign .lp-illus-playbooks .pb-kpi,
  body.lp-redesign .lp-illus-playbooks .pb-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- */
/* Calendar reveal — SVG lifts, event blocks cascade   */
/* in Mon→Fri reading order                            */
/* -------------------------------------------------- */

body.lp-redesign .lp-illus-calendar svg {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
body.lp-redesign .lp-illus-calendar .cal-ev {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  transform: translateY(10px) scale(0.92);
}

body.lp-redesign .lp-illus-calendar.is-playing svg {
  opacity: 1;
  transform: translateY(0);
}
body.lp-redesign .lp-illus-calendar.is-playing .cal-ev {
  animation: cal-pop 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(450ms + var(--i, 0) * 55ms);
}

@keyframes cal-pop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.lp-redesign .lp-illus-calendar svg,
  body.lp-redesign .lp-illus-calendar .cal-ev {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- */
/* Strategy Lab reveal — SVG lifts, cards cascade      */
/* across the four columns in reading order            */
/* -------------------------------------------------- */

body.lp-redesign .lp-illus-strategy svg {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
body.lp-redesign .lp-illus-strategy .sl-card {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center center;
  transform: translateY(12px) scale(0.96);
}

body.lp-redesign .lp-illus-strategy.is-playing svg {
  opacity: 1;
  transform: translateY(0);
}
body.lp-redesign .lp-illus-strategy.is-playing .sl-card {
  animation: sl-rise 440ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(450ms + var(--i, 0) * 90ms);
}

@keyframes sl-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.lp-redesign .lp-illus-strategy svg,
  body.lp-redesign .lp-illus-strategy .sl-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------- */
/* Built for MetaTrader                                */
/* -------------------------------------------------- */

body.lp-redesign .mt-section {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(180deg, #0b1220 0%, #0c1527 100%);
  overflow: hidden;
}

@media (min-width: 992px) {
  body.lp-redesign .mt-section { padding: 96px 0; }
}

.mt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.mt-points {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-points li { display: flex; align-items: flex-start; gap: 0.85rem; }

.mt-points i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(54, 147, 255, 0.12);
  color: var(--brand-blue);
  font-size: 1rem;
}

.mt-points strong { display: block; color: var(--text-high); font-weight: 600; font-size: 0.98rem; }
.mt-points span { color: var(--text-med); font-size: 0.9rem; }

/* Staggered tile wall (our own wordmarks; no third-party logo art) */
.mt-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.mt-col { display: flex; flex-direction: column; gap: 1rem; }
.mt-col--raised { transform: translateY(-52px); }

.mt-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #111a2e 0%, #0d1526 100%);
}

.mt-tile--ghost { background: rgba(255, 255, 255, 0.015); border-color: rgba(255, 255, 255, 0.05); }

.mt-tile--platform {
  border-color: rgba(54, 147, 255, 0.28);
  background: linear-gradient(180deg, #16223f 0%, #101a30 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(54, 147, 255, 0.08);
}

.mt-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  color: var(--text-high);
  font-family: var(--lp-sans, inherit);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.mt-wordmark b {
  color: var(--brand-gold);
  font-family: var(--lp-mono, ui-monospace, monospace);
  font-size: 1.5rem;
  font-weight: 600;
}

.mt-tile-meta { color: var(--text-dim); font-size: 0.74rem; }

.mt-tile--info i { color: var(--brand-blue); font-size: 1.3rem; margin-bottom: 0.15rem; }
.mt-tile--info strong { color: var(--text-high); font-size: 0.9rem; font-weight: 600; }
.mt-tile--info span { color: var(--text-dim); font-size: 0.74rem; }

.mt-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  color: var(--lp-up, #22c55e) !important;
  font-size: 0.7rem !important;
  font-weight: 600;
}

.mt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-up, #22c55e);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: mt-live 1.8s ease-out infinite;
}

@keyframes mt-live {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.mt-legal {
  margin: 2.5rem 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .mt-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mt-tiles {
    grid-template-columns: repeat(2, 1fr);
    -webkit-mask-image: none;
            mask-image: none;
  }
  .mt-col { display: contents; }
  .mt-col--raised { transform: none; }
  .mt-tile--ghost { display: none; }
  .mt-tile { min-height: 120px; }
  /* Platforms first, side by side; accounts tile closes the grid full-width */
  .mt-tile--mt4 { order: -2; }
  .mt-tile--mt5 { order: -1; }
  .mt-tile--accounts { grid-column: 1 / -1; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-live-dot { animation: none; }
}

.mt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.mt-learn { color: #9cc8ff; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.mt-learn:hover { color: #fff; }
.mt-learn i { transition: transform 0.15s ease; }
.mt-learn:hover i { transform: translateX(3px); }
