/* ==========================================================================
   Pantera LP — components
   Requires tokens.css. Pure CSS; behaviour hooks live in motion.js.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html.lp-html { scroll-behavior: smooth; overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html.lp-html { scroll-behavior: auto; } }

body.lp-body {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-fg);
  font-family: var(--lp-font);
  font-size: var(--lp-text-base);
  line-height: var(--lp-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}
body.lp-body h1, body.lp-body h2, body.lp-body h3, body.lp-body h4, body.lp-body p, body.lp-body ul { margin: 0; }
body.lp-body ul { padding: 0; list-style: none; }
body.lp-body img { max-width: 100%; display: block; }
body.lp-body a { color: inherit; }
body.lp-body button { font: inherit; color: inherit; }
body.lp-body :focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 3px; border-radius: 4px; }
body.lp-body ::selection { background: var(--lp-accent); color: var(--lp-on-accent); }

body.lp-body { scrollbar-width: thin; scrollbar-color: rgba(245, 245, 245, 0.3) transparent; }
body.lp-body::-webkit-scrollbar { width: 8px; }
body.lp-body::-webkit-scrollbar-thumb { background: rgba(245, 245, 245, 0.25); border-radius: 8px; }

.lp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Layout shells ------------------------------------------------------- */
.lp-container { width: var(--lp-content); margin-inline: auto; }
.lp-section { padding-block: var(--lp-section-y); position: relative; }
.lp-section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.lp-section__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.5rem; margin-bottom: var(--lp-head-gap);
}
.lp-section__head > .lp-tag { margin-bottom: 0.25rem; }
.lp-section__head .lp-lead { max-width: 44rem; }

/* --- Typography ---------------------------------------------------------- */
.lp-display { font-size: var(--lp-text-7xl); font-weight: 600; line-height: var(--lp-leading-display); letter-spacing: var(--lp-tracking-display); text-wrap: balance; }
.lp-h2 { font-size: var(--lp-text-6xl); font-weight: 600; line-height: var(--lp-leading-heading); letter-spacing: var(--lp-tracking-display); text-wrap: balance; max-width: 22ch; }
.lp-h3 { font-size: var(--lp-text-2xl); font-weight: 600; line-height: var(--lp-leading-snug); text-wrap: balance; }
.lp-h4 { font-size: var(--lp-text-xl); font-weight: 600; line-height: var(--lp-leading-snug); }
.lp-lead { font-size: var(--lp-text-xl); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); text-wrap: balance; }
.lp-lead strong { color: var(--lp-fg); font-weight: 600; }
.lp-body-sm { font-size: var(--lp-text-sm); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); }
.lp-muted { color: var(--lp-fg-muted); }
.lp-caps { font-size: var(--lp-text-xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; }

/* Gradient text (white -> gold), applied by motion.js after the word reveal (.is-done) */
.lp-grad, .lp-grad-gold {
  color: var(--lp-fg);
  transition: color var(--lp-dur-slow) var(--lp-ease-std);
}
.lp-grad.is-done, .lp-grad.is-static {
  background-image: var(--lp-grad-heading);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.1em; margin-bottom: -0.1em;
}
.lp-grad-gold.is-done, .lp-grad-gold.is-static, .lp-text.is-done .lp-grad-gold {
  background-image: var(--lp-grad-gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* (kept inline so the span can still wrap between words; inline background-clip covers descenders) */
/* Engines that don't support clipping a background to text keep the solid color set
   above instead of ending up transparent with nothing painted underneath. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .lp-grad.is-done, .lp-grad.is-static,
  .lp-grad-gold.is-done, .lp-grad-gold.is-static, .lp-text.is-done .lp-grad-gold {
    background-image: none;
    color: var(--lp-fg);
  }
}

/* --- Surfaces -------------------------------------------------------------- */
.lp-card {
  background: var(--lp-grad-card);
  border: 1px solid var(--lp-card-border);
  box-shadow: var(--lp-shadow-card), inset 0 1px 0 var(--lp-card-inset);
  border-radius: var(--lp-radius);
}
.lp-card--glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: linear-gradient(to bottom right, rgba(28, 28, 28, 0.78), rgba(28, 28, 28, 0.45)); }
.lp-card--inset { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
.lp-card--gold {
  background: var(--lp-grad-cta);
  color: var(--lp-on-accent);
  border: 0;
  box-shadow: var(--lp-shadow-cta);
  border-radius: var(--lp-radius);
}
.lp-surface-gold { background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta); }

/* --- Tag pill / badges ----------------------------------------------------- */
.lp-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  font-size: var(--lp-text-sm); font-weight: 500; line-height: 1.4;
  color: var(--lp-fg);
  background: var(--lp-grad-card); border: 1px solid var(--lp-card-border);
  border-radius: var(--lp-radius-full);
  width: fit-content;
}
.lp-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 10px var(--lp-accent); }
.lp-tag--plain::before { display: none; }

.lp-badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: var(--lp-text-2xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
  border-radius: var(--lp-radius-full);
  background: var(--lp-grad-cta); color: var(--lp-on-accent);
  white-space: nowrap;
}
.lp-badge--soft { background: var(--lp-accent-soft); color: var(--lp-accent); border: 1px solid var(--lp-accent-line); }

/* --- Buttons --------------------------------------------------------------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.5rem;
  font-size: var(--lp-text-sm); font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border-radius: var(--lp-radius-full); border: 1px solid transparent;
  transition: transform var(--lp-dur-fast) var(--lp-ease-std), box-shadow var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std), filter var(--lp-dur-fast) var(--lp-ease-std), color var(--lp-dur-fast) var(--lp-ease-std);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.lp-btn:active { transform: scale(0.97); }
.lp-btn--primary { background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta); font-weight: 600; }
.lp-btn--primary:hover { box-shadow: var(--lp-shadow-cta-hover); filter: brightness(1.03); }
.lp-btn--secondary { background: var(--lp-grad-secondary); color: var(--lp-fg); border-color: #2e2e2e; box-shadow: var(--lp-shadow-card); }
.lp-btn--secondary:hover { border-color: #3a3a3a; background: #2a2a2a; }
.lp-btn--ghost { background: transparent; color: var(--lp-fg); border-color: rgba(255, 255, 255, 0.18); }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.lp-btn--lg { min-height: 3.25rem; padding: 0 2rem; font-size: var(--lp-text-base); }
.lp-btn--xl { min-height: 3.5rem; padding: 0 2.25rem; font-size: var(--lp-text-lg); font-weight: 600; }
.lp-btn--block { width: 100%; }
.lp-btn--icon { width: 2.25rem; min-height: 2.25rem; padding: 0; border-radius: var(--lp-radius-sm); }
.lp-btn--round { width: 2.5rem; min-height: 2.5rem; padding: 0; border-radius: 50%; }
.lp-btn:disabled, .lp-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Stagger text roll (reference ButtonStagger): motion.js wraps each char in .lp-btn__c */
.lp-btn__t { display: inline-block; overflow: hidden; line-height: 1.25em; height: 1.25em; }
.lp-btn__c { display: inline-block; text-shadow: 0 1.25em currentColor; transition: transform var(--lp-dur-hover) var(--lp-ease-out); transition-delay: calc(var(--i, 0) * 10ms); }
.lp-btn__c--space { white-space: pre; }
@media (hover: hover) and (min-width: 768px) {
  .lp-btn:hover .lp-btn__c { transform: translateY(-1.25em); }
}

/* Legacy pulse kept as a soft glow (the old page scaled the button) */
.lp-btn.pulse { animation: lp-cta-glow 2.6s ease-in-out infinite; }

/* --- Icon circle / check square ------------------------------------------ */
.lp-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta);
  font-size: 1.05rem; flex-shrink: 0;
}
.lp-icon-circle--lg { width: 4rem; height: 4rem; font-size: 1.35rem; }
.lp-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 0.45rem; flex-shrink: 0;
  background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta);
  font-size: 0.6rem;
}
.lp-check--muted { background: rgba(255, 255, 255, 0.06); color: var(--lp-accent); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.08); }
.lp-check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.lp-check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--lp-text-sm); line-height: var(--lp-leading-snug); }
.lp-check-list li .lp-check { margin-top: 0.05em; }

/* --- Nav (floating pill + animated dropdown) ------------------------------ */
.lp-nav {
  position: fixed; z-index: 1000;
  top: var(--lp-nav-top); left: 50%; transform: translateX(-50%);
  width: var(--lp-content);
}
.lp-nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--lp-radius);
  transition: box-shadow var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-nav.is-scrolled .lp-nav__bar { box-shadow: var(--lp-shadow-float), inset 0 1px 0 var(--lp-card-inset); }
.lp-nav__logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: var(--lp-text-lg); font-weight: 600; color: var(--lp-fg); letter-spacing: -0.01em; }
.lp-nav__logo img { height: 2rem; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.lp-nav__logo span { background-image: var(--lp-grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-nav__links { display: none; align-items: center; gap: 0.1rem; }
.lp-nav__links a {
  display: inline-flex; align-items: center; padding: 0.5rem 0.5rem; white-space: nowrap;
  font-size: 0.875rem; font-weight: 500; color: var(--lp-fg-muted); text-decoration: none;
  border-radius: var(--lp-radius-full);
  transition: color var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-nav__links a:hover { color: var(--lp-fg); background: rgba(255, 255, 255, 0.06); }
.lp-nav__links a[aria-current="page"] { color: var(--lp-fg); text-decoration: underline; text-decoration-color: var(--lp-accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.lp-nav__right { display: flex; align-items: center; gap: 0.5rem; }
.lp-nav__cta { min-height: 2.5rem; padding-inline: 1.25rem; }
/* Burger: neutral dark circle (card surface + hairline); gold only on hover / focus / open */
.lp-nav__burger {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer;
  background: var(--lp-grad-secondary); border: 1px solid #2e2e2e; box-shadow: var(--lp-shadow-card);
  transition: border-color var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-nav__burger span {
  position: absolute; width: 0.85rem; height: 1.5px; background: var(--lp-fg); border-radius: 2px;
  transition: transform var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-nav__burger span:nth-child(1) { transform: translateY(-3px); }
.lp-nav__burger span:nth-child(2) { transform: translateY(3px); }
.lp-nav__burger:hover, .lp-nav__burger:focus-visible, .lp-nav.is-open .lp-nav__burger { border-color: var(--lp-accent); }
.lp-nav__burger:hover span, .lp-nav__burger:focus-visible span, .lp-nav.is-open .lp-nav__burger span { background: var(--lp-accent); }
.lp-nav.is-open .lp-nav__burger span:nth-child(1) { transform: rotate(45deg); }
.lp-nav.is-open .lp-nav__burger span:nth-child(2) { transform: rotate(-45deg); }

/* Panel: the nav's own dark glass surface under the bar, full nav width; 2-column grid of dark tiles
   (white label + small arrow, gold text + gold hairline on hover/focus); the CTA spans both columns and is the only gold element */
.lp-nav__menu {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.75rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 0.75rem;
  padding: 1.1rem 1rem; border-radius: var(--lp-radius);
  background: linear-gradient(to bottom right, rgba(28, 28, 28, 0.94), rgba(28, 28, 28, 0.86));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--lp-card-border); box-shadow: var(--lp-shadow-float), inset 0 1px 0 var(--lp-card-inset);
  max-height: calc(100vh - var(--lp-nav-top) - var(--lp-nav-h) - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std), visibility 0s linear var(--lp-dur-fast);
}
.lp-nav.is-open .lp-nav__menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.lp-nav__menu li { min-width: 0; }
.lp-nav__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3rem; padding: 0.75rem 0.9rem; text-decoration: none;
  font-size: var(--lp-text-sm); font-weight: 600; color: var(--lp-fg);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--lp-radius-sm);
  transition: color var(--lp-dur-fast) var(--lp-ease-std), border-color var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-nav__menu a > span { min-width: 0; overflow-wrap: anywhere; }
.lp-nav__menu a > svg { width: 1em; height: 1em; flex-shrink: 0; opacity: 0.7; transition: transform var(--lp-dur-fast) var(--lp-ease-std), opacity var(--lp-dur-fast) var(--lp-ease-std); }
.lp-nav__menu a:hover, .lp-nav__menu a:focus-visible { color: var(--lp-accent); border-color: var(--lp-accent-line); background: rgba(244, 196, 48, 0.06); outline: none; }
.lp-nav__menu a:hover > svg, .lp-nav__menu a:focus-visible > svg { transform: rotate(45deg); opacity: 1; }
.lp-nav__menu a[aria-current="page"] { color: var(--lp-fg); border-color: var(--lp-accent-line); box-shadow: inset 3px 0 0 var(--lp-accent); }
.lp-nav__menu li.lp-nav__menu-cta { grid-column: 1 / -1; margin-top: 0.5rem; }
.lp-nav__menu li.lp-nav__menu-cta a { justify-content: center; background: var(--lp-grad-cta); color: var(--lp-on-accent); border-color: transparent; border-radius: var(--lp-radius-full); box-shadow: var(--lp-shadow-cta); font-weight: 700; }
.lp-nav__menu li.lp-nav__menu-cta a:hover, .lp-nav__menu li.lp-nav__menu-cta a:focus-visible { color: var(--lp-on-accent); background: var(--lp-grad-cta); box-shadow: var(--lp-shadow-cta-hover); }
.lp-nav__menu li.lp-nav__menu-cta a > svg { display: none; }

/* 6 inline links + logo + CTA need ~990px; 1100px leaves 962px, so the inline nav starts at 1200px */
@media (min-width: 1200px) {
  .lp-nav__links { display: inline-flex; }
  .lp-nav__burger { display: none; }
  .lp-nav__menu { display: none; }
}
@media (max-width: 480px) {
  .lp-nav__logo { white-space: nowrap; }
  .lp-nav__logo span { display: none; } /* the panther mark (alt text) carries the brand on tiny screens */
  .lp-nav__cta { padding-inline: 0.9rem; font-size: var(--lp-text-xs); }
  .lp-nav__bar { padding-left: 0.75rem; }
}

/* --- Marquee (CSS translate loop; JS duplicates the track) ---------------- */
.lp-marquee { overflow: hidden; position: relative; -webkit-mask-image: var(--lp-mask-x); mask-image: var(--lp-mask-x); }
.lp-marquee--soft { -webkit-mask-image: var(--lp-mask-x-soft); mask-image: var(--lp-mask-x-soft); }
.lp-marquee__track {
  display: flex; gap: var(--lp-marquee-gap, 1rem); width: max-content;
  animation: lp-marquee-x var(--lp-marquee-duration, 30s) linear infinite;
  animation-direction: var(--lp-marquee-dir, normal);
  will-change: transform;
}
.lp-marquee--v { -webkit-mask-image: var(--lp-mask-y); mask-image: var(--lp-mask-y); height: var(--lp-marquee-h, 32rem); }
.lp-marquee--v .lp-marquee__track { flex-direction: column; width: auto; height: max-content; animation-name: lp-marquee-y; }
.lp-marquee[data-marquee-pause]:hover .lp-marquee__track,
.lp-marquee[data-marquee-pause]:focus-within .lp-marquee__track { animation-play-state: paused; }
.lp-marquee__track > * { flex-shrink: 0; }

/* Logo tile for the integrations marquee */
.lp-logo-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 11rem; height: 6rem; padding: 1.1rem 1.4rem;
  border-radius: var(--lp-radius-md);
  transition: transform var(--lp-dur-fast) var(--lp-ease-std), border-color var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.6) contrast(0.9); opacity: 0.7; transition: filter var(--lp-dur-fast) var(--lp-ease-std), opacity var(--lp-dur-fast) var(--lp-ease-std); border-radius: 4px; }
.lp-logo-card:hover { transform: translateY(-4px); border-color: var(--lp-accent-line); }
.lp-logo-card:hover img { filter: none; opacity: 1; }
.lp-logo-card__badge {
  position: absolute; left: 50%; top: -0.5rem; transform: translate(-50%, 0.25rem);
  padding: 0.35rem 0.7rem; border-radius: var(--lp-radius-xs);
  background: var(--lp-grad-cta); color: var(--lp-on-accent);
  font-size: var(--lp-text-2xs); font-weight: 700; white-space: nowrap; letter-spacing: 0.02em;
  opacity: 0; pointer-events: none;
  transition: opacity var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-logo-card:hover .lp-logo-card__badge { opacity: 1; transform: translate(-50%, -100%); }

/* --- Feature card with pointer-tracking border glow ----------------------- */
.lp-feature {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: var(--lp-card-pad); min-height: 17rem; height: 100%;
  border-radius: var(--lp-radius);
}
.lp-feature__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.lp-feature__body { display: flex; flex-direction: column; gap: 0.4rem; }
.lp-feature__body p { font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); }

.lp-glow {
  --spread: 40; --start: 0; --active: 0; --bw: 1.5px;
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.lp-glow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; /* ring sits on the card edge: no overhang, no scroll overflow */
  border: var(--bw) solid transparent;
  background:
    radial-gradient(circle, var(--lp-accent) 10%, transparent 20%),
    radial-gradient(circle at 40% 40%, #7a6420 5%, transparent 15%),
    repeating-conic-gradient(from 236.84deg at 50% 50%, var(--lp-accent) 0%, #7a6420 5%, var(--lp-accent) 10%);
  opacity: var(--active);
  transition: opacity var(--lp-dur-fast) var(--lp-ease-std);
  -webkit-mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
  mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
  -webkit-mask-clip: padding-box, border-box; mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* --- Grid helpers ---------------------------------------------------------- */
.lp-grid { display: grid; gap: var(--lp-gap); grid-template-columns: 1fr; }
.lp-grid > * { min-width: 0; }
@media (min-width: 640px) { .lp-grid--2, .lp-grid--3, .lp-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid--3 { grid-template-columns: repeat(3, 1fr); } .lp-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Metric / step card ---------------------------------------------------- */
.lp-step { display: flex; flex-direction: column; gap: 1.25rem; padding: var(--lp-card-pad); height: 100%; }
.lp-step__num { font-size: var(--lp-text-7xl); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.lp-step__body { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 1.1rem; border-top: 1px solid var(--lp-line); }
.lp-step__body p { color: var(--lp-fg-muted); font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); }

/* --- Testimonial card ------------------------------------------------------ */
.lp-quote { display: flex; flex-direction: column; gap: 1rem; padding: 1.35rem 1.5rem; width: 100%; }
.lp-quote__stars { display: flex; gap: 0.25rem; color: var(--lp-accent); font-size: 0.7rem; }
.lp-quote__text { font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); color: var(--lp-fg); text-wrap: pretty; }
.lp-quote__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.lp-quote__who { display: flex; flex-direction: column; min-width: 0; }
.lp-quote__author { font-size: var(--lp-text-sm); font-weight: 600; }
.lp-quote__company { font-size: var(--lp-text-xs); color: var(--lp-fg-muted); }

/* --- Carousel: native scroll-snap, arrows beside the content, dots ---------
   The track is a plain horizontal scroller (touch stays native, no JS drag),
   sized so the next card always peeks; motion.js adds dots, keyboard support,
   a live status and hides the controls when everything fits (.is-static). --- */
.lp-carousel { position: relative; display: flex; flex-direction: column; gap: 1.25rem; width: 100%; --lp-carousel-per-view: 3.3; --lp-carousel-gaps: 2; }
.lp-carousel__viewport { position: relative; }
.lp-carousel__track {
  position: relative; display: flex; gap: var(--lp-gap); align-items: stretch;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-block: 0.25rem; margin-block: -0.25rem;
  border-radius: var(--lp-radius);
}
.lp-carousel__track::-webkit-scrollbar { display: none; }
.lp-carousel__track:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 6px; }
.lp-carousel__track > * { flex: 0 0 calc((100% - var(--lp-carousel-gaps) * var(--lp-gap)) / var(--lp-carousel-per-view)); scroll-snap-align: start; min-width: 0; }
.lp-carousel:not(.is-at-end) .lp-carousel__track { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.lp-carousel:not(.is-at-start) .lp-carousel__track { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%); mask-image: linear-gradient(to right, transparent, #000 12%); }
.lp-carousel:not(.is-at-start):not(.is-at-end) .lp-carousel__track { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.lp-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.lp-carousel__dots { display: flex; align-items: center; justify-content: center; gap: 0.2rem; }
.lp-carousel__dot { width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--lp-radius-full); }
.lp-carousel__dot::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: var(--lp-radius-full); background: rgba(255, 255, 255, 0.22); transition: width var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std); }
.lp-carousel__dot:hover::before { background: rgba(255, 255, 255, 0.45); }
.lp-carousel__dot[aria-current="true"]::before { width: 1.5rem; background: var(--lp-accent); }
.lp-carousel__arrow { flex-shrink: 0; }
.lp-carousel.is-static .lp-carousel__controls, .lp-carousel.is-static .lp-carousel__arrow, .lp-carousel.is-static .lp-carousel__dots { display: none; }
@media (max-width: 1023px) { .lp-carousel { --lp-carousel-per-view: 2.25; --lp-carousel-gaps: 1; } }
@media (max-width: 639px) { .lp-carousel { --lp-carousel-per-view: 1.18; --lp-carousel-gaps: 0.2; } }
@media (min-width: 1024px) {
  .lp-carousel__controls { display: contents; }
  .lp-carousel__dots { order: 2; }
  .lp-carousel__arrow { position: absolute; top: calc(var(--lp-carousel-viewport-h, 20rem) / 2); transform: translateY(-50%); z-index: 2; }
  .lp-carousel__arrow--prev { left: -1.375rem; }
  .lp-carousel__arrow--next { right: -1.375rem; }
  .lp-carousel__arrow:active { transform: translateY(-50%) scale(0.96); }
  /* variant: everything fits on large screens -> plain grid, controls hidden by motion.js (.is-static) */
  .lp-carousel--grid-lg .lp-carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  .lp-carousel--grid-lg .lp-carousel__track > * { flex: none; }
}

/* --- Tier (pricing journey) card ------------------------------------------ */
.lp-tier { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: var(--lp-card-pad); height: 100%; position: relative; }
.lp-tier__img { width: 5.5rem; height: 5.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.lp-tier__img img { max-height: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); transition: transform var(--lp-dur-fast) var(--lp-ease-std); }
.lp-tier:hover .lp-tier__img img { transform: scale(1.08); }
.lp-tier__title { font-size: var(--lp-text-xs); font-weight: 700; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }
.lp-tier__rate { font-size: var(--lp-text-6xl); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.lp-tier__range { font-size: var(--lp-text-xs); font-weight: 600; color: var(--lp-fg); padding: 0.35rem 0.8rem; border-radius: var(--lp-radius-full); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lp-line); }
.lp-tier__desc { font-size: var(--lp-text-sm); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); }
.lp-tier--final { border-color: var(--lp-accent-line); box-shadow: 0 0 0 1px var(--lp-accent-line), 0 20px 50px -30px rgba(244, 196, 48, 0.55); }
.lp-tier--final .lp-tier__title { color: var(--lp-accent); }
.lp-tier--final .lp-tier__range { background: var(--lp-accent-soft); border-color: var(--lp-accent-line); color: var(--lp-accent); }

/* --- Accordion (reference FaqSimple) --------------------------------------- */
.lp-faq { display: flex; flex-direction: column; gap: 0.75rem; width: min(100%, 52rem); margin-inline: auto; }
.lp-faq__item { padding: 0.35rem 0.35rem 0.35rem 1.25rem; cursor: pointer; user-select: none; }
.lp-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 0.65rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: var(--lp-text-lg); font-weight: 500; line-height: var(--lp-leading-snug); color: var(--lp-fg);
}
.lp-faq__icon {
  position: relative; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--lp-radius-sm);
  background: var(--lp-grad-cta); box-shadow: var(--lp-shadow-cta);
  transition: transform var(--lp-dur-fast) var(--lp-ease-std);
}
.lp-faq__icon::before, .lp-faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--lp-on-accent); border-radius: 2px; transform: translate(-50%, -50%); }
.lp-faq__icon::before { width: 0.9rem; height: 1.5px; }
.lp-faq__icon::after { width: 1.5px; height: 0.9rem; }
.lp-faq__item.is-open .lp-faq__icon { transform: rotate(45deg); }
.lp-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--lp-dur-fast) var(--lp-ease-out), opacity var(--lp-dur-fast) var(--lp-ease-out); opacity: 0; }
.lp-faq__a > div { overflow: hidden; }
.lp-faq__a p { padding: 0.35rem 3rem 0.85rem 0; font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); }
.lp-faq__item.is-open .lp-faq__a { grid-template-rows: 1fr; opacity: 1; }

/* --- Countdown tile -------------------------------------------------------- */
.lp-count { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 5.5rem; padding: 0.9rem 1rem; border-radius: var(--lp-radius-md); }
.lp-count__n { font-size: var(--lp-text-4xl); font-weight: 700; line-height: 1; color: var(--lp-accent); font-variant-numeric: tabular-nums; }
.lp-count__l { font-size: var(--lp-text-2xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }

/* --- Scroll-to-top --------------------------------------------------------- */
.lp-totop {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 900;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std), visibility 0s linear var(--lp-dur-fast);
}
.lp-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lp-totop:hover { transform: translateY(-3px); }
@media (max-width: 767px) { .lp-totop { width: 2.5rem; height: 2.5rem; right: 0.75rem; bottom: 0.75rem; font-size: 0.85rem; } }

/* --- Backgrounds ----------------------------------------------------------- */
/* Site aurora (fixed): rotated soft gold/white ellipses, no filters (cheap) */
.lp-bg-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--lp-bg); }
.lp-bg-aurora span { position: absolute; border-radius: 100%; background: radial-gradient(closest-side, var(--c, rgba(244, 196, 48, 0.12)), transparent 70%); }
.lp-bg-aurora span:nth-child(1) { --c: rgba(244, 196, 48, 0.13); top: -30vh; left: 44%; width: 30vw; height: 130vh; transform: rotate(-52deg); }
.lp-bg-aurora span:nth-child(2) { --c: rgba(255, 255, 255, 0.07); top: -20vh; right: 2vw; width: 26vw; height: 110vh; transform: rotate(-60deg); }
.lp-bg-aurora span:nth-child(3) { --c: rgba(244, 196, 48, 0.09); top: -20vh; left: 1vw; width: 28vw; height: 150vh; transform: rotate(-45deg); }
.lp-bg-aurora span:nth-child(4) { --c: rgba(255, 255, 255, 0.05); bottom: -40vh; left: -10vw; width: 120vw; height: 60vh; transform: rotate(-16deg); }
.lp-bg-aurora::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(244, 196, 48, 0.06), transparent 70%); }

/* Hero light rays (absolute inside the hero): grid + 8 pulsing rays */
.lp-bg-rays { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.lp-bg-rays__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(244, 196, 48, 0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(244, 196, 48, 0.05) 1px, transparent 1px);
  background-size: 10vw 10vw;
  -webkit-mask-image: radial-gradient(55% 55% at 50% 0%, #fff 0%, transparent 100%); mask-image: radial-gradient(55% 55% at 50% 0%, #fff 0%, transparent 100%);
}
.lp-bg-rays__box {
  position: absolute; top: -571px; left: -373px; width: 1142px; height: 179vh; transform: rotate(-38deg);
  overflow: hidden;
  -webkit-mask-image: radial-gradient(50% 109%, #000 0%, rgba(0, 0, 0, 0.96) 0%, transparent 96%); mask-image: radial-gradient(50% 109%, #000 0%, rgba(0, 0, 0, 0.96) 0%, transparent 96%);
}
/* Each ray is blurred on its own (static raster) so the opacity pulse stays compositor-only.
   A blur on the whole box (as in the reference) re-rasterises ~1100x1250px every frame and stalls the GPU. */
.lp-bg-rays__ray {
  position: absolute; top: -352px; bottom: -920px; left: calc(50% - var(--w, 35px) / 2); width: var(--w, 35px);
  transform-origin: top right; transform: var(--t, rotate(0deg));
  background: radial-gradient(50% 50% at 50% 50%, rgba(244, 196, 48, 0.85) 0%, rgba(244, 196, 48, 0.35) 40%, transparent 100%);
  filter: blur(6px);
  animation: lp-ray-pulse var(--d, 4s) ease-in-out var(--delay, 0s) infinite both;
  opacity: 0;
}
.lp-bg-rays__halo { position: absolute; left: calc(50% - 432px); top: -252px; width: 865px; height: 929px; opacity: 0.16; background: radial-gradient(50% 50% at 50% 50%, rgba(244, 196, 48, 0.9) 0%, transparent 100%); }

/* --- Orbit composition (reference OrbitingIcons) ---------------------------
   Three rings around the logo: inner = tracking tools, middle = gateways,
   outer = more gateways offset by half a step. Radii are container-relative
   so rings never overlap the core, each other or the copy column. ---------- */
.lp-orbit {
  position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  perspective: 2000px; container-type: inline-size;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%);
  --lp-orbit-r1: 125px; --lp-orbit-r2: 185px; --lp-orbit-r3: 245px; /* px fallback (34rem box) */
}
@supports (width: 1cqi) { .lp-orbit { --lp-orbit-r1: 23cqi; --lp-orbit-r2: 34cqi; --lp-orbit-r3: 45cqi; } }
.lp-orbit__scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform: rotateY(18deg) rotateX(16deg) rotateZ(-18deg); transform-style: preserve-3d; }
.lp-orbit__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(244, 196, 48, 0.22); box-shadow: 0 0 40px -20px rgba(244, 196, 48, 0.35); }
.lp-orbit__ring--1 { width: calc(var(--lp-orbit-r1) * 2); height: calc(var(--lp-orbit-r1) * 2); opacity: 0.95; }
.lp-orbit__ring--2 { width: calc(var(--lp-orbit-r2) * 2); height: calc(var(--lp-orbit-r2) * 2); opacity: 0.75; }
.lp-orbit__ring--3 { width: calc(var(--lp-orbit-r3) * 2); height: calc(var(--lp-orbit-r3) * 2); opacity: 0.55; }
.lp-orbit__core {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lp-grad-cta); box-shadow: var(--lp-shadow-cta), 0 30px 60px -20px rgba(244, 196, 48, 0.5);
  animation: lp-float 6s ease-in-out infinite;
}
.lp-orbit__core img { width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35)); }
.lp-orbit__sat {
  --lp-sat: 2.75rem;
  position: absolute; top: 50%; left: 50%;
  width: var(--lp-sat); height: var(--lp-sat); margin: calc(var(--lp-sat) / -2) 0 0 calc(var(--lp-sat) / -2);
  padding: 0.5rem; border-radius: var(--lp-radius-sm);
  display: flex; align-items: center; justify-content: center;
  /* resting position = first keyframe; this is also the reduced-motion state */
  transform: rotate(var(--initial-position, 0deg)) translateX(var(--translate-position, 160px)) rotate(calc(-1 * var(--initial-position, 0deg)));
  animation: lp-orbit var(--lp-orbit-dur) linear infinite;
}
.lp-orbit__sat img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.lp-orbit__sat--inner  { --lp-sat: 2.5rem; --translate-position: var(--lp-orbit-r1); animation-duration: 40s; }
.lp-orbit__sat--middle { --translate-position: var(--lp-orbit-r2); animation-duration: 60s; animation-direction: reverse; }
.lp-orbit__sat--outer  { --translate-position: var(--lp-orbit-r3); animation-duration: 80s; }
@media (max-width: 639px) {
  .lp-orbit { --lp-orbit-r1: 90px; --lp-orbit-r2: 143px; }
  @supports (width: 1cqi) { .lp-orbit { --lp-orbit-r1: 25cqi; --lp-orbit-r2: 40cqi; } }
  .lp-orbit__sat { --lp-sat: 2.5rem; padding: 0.45rem; }
  .lp-orbit__sat--inner { --lp-sat: 2.25rem; }
  .lp-orbit__ring--3, .lp-orbit__sat--outer { display: none; } /* outer ring folds away on small widths */
}

/* --- Footer reveal (fixed footer clipped by its section) ------------------- */
.lp-footer-wrap { position: relative; z-index: 0; width: 100%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); margin-top: var(--lp-section-y); }
.lp-footer-fixed { position: fixed; bottom: 0; left: 0; width: 100%; }
.lp-footer { background: linear-gradient(180deg, var(--lp-light-bg) 0%, var(--lp-light-bg-2) 100%); color: var(--lp-light-fg); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) { .lp-footer-fixed { position: static; } }

/* --- Preloader ------------------------------------------------------------- */
.lp-preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--lp-bg); transition: opacity 0.5s ease, visibility 0.5s ease; }
.lp-preloader.fade-out { opacity: 0; visibility: hidden; }
.lp-preloader .loader { width: 2rem; height: 2rem; border: 2px solid var(--lp-fg); border-top-color: transparent; border-radius: 50%; animation: lp-spin 1s linear infinite; }

/* --- Pricing statement (restrained intro, replaces the gold block) --------- */
.lp-statement { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem); max-width: 52rem; margin-inline: auto; overflow: hidden; }
.lp-statement::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 6rem; height: 2px; background: var(--lp-grad-cta); border-radius: 2px; }
.lp-statement h3 { font-size: var(--lp-text-2xl); font-weight: 600; letter-spacing: -0.01em; }
.lp-statement p { font-size: var(--lp-text-lg); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); text-wrap: balance; }

/* --- Tier ladder: the canonical rate table, compact, 6-up on desktop ------- */
.lp-ladder { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.lp-ladder__tier { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; padding: 1.1rem 0.75rem 1rem; border-radius: var(--lp-radius-md); transition: border-color var(--lp-dur-fast) var(--lp-ease-std), box-shadow var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std); }
.lp-ladder__medal { width: 3.25rem; height: 3.25rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.lp-ladder__medal img { max-height: 100%; width: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.lp-ladder__name { font-size: var(--lp-text-2xs); font-weight: 700; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }
.lp-ladder__rate { font-size: var(--lp-text-4xl); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.lp-ladder__range { font-size: var(--lp-text-2xs); font-weight: 600; color: var(--lp-fg); padding: 0.25rem 0.6rem; border-radius: var(--lp-radius-full); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--lp-line); white-space: nowrap; }
.lp-ladder__desc { font-size: var(--lp-text-xs); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); text-wrap: pretty; }
/* every tier the simulation reaches keeps its gold border (no text on the card; the month lives in the simulator results) */
.lp-ladder__tier.is-reached { border-color: var(--lp-accent); box-shadow: 0 0 0 1px rgba(244, 196, 48, 0.35), 0 16px 40px -30px rgba(244, 196, 48, 0.5); }
.lp-ladder__tier.is-current { box-shadow: 0 0 0 1px var(--lp-accent), 0 20px 50px -28px rgba(244, 196, 48, 0.7); }
.lp-ladder__tier--final .lp-ladder__name { color: var(--lp-accent); }
@media (max-width: 379px) { .lp-ladder { gap: 0.5rem; } .lp-ladder__tier { padding: 0.9rem 0.5rem 0.85rem; } .lp-ladder__range { white-space: normal; text-align: center; line-height: 1.3; } .lp-ladder__rate { font-size: var(--lp-text-3xl); } }
@media (min-width: 640px) { .lp-ladder { grid-template-columns: repeat(3, 1fr); gap: var(--lp-gap); } }
@media (min-width: 1024px) {
  .lp-ladder { grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
  .lp-ladder::before { content: ''; position: absolute; left: 8%; right: 8%; top: calc(1.1rem + 1.625rem); height: 1px; background: linear-gradient(90deg, transparent, var(--lp-accent-line) 15%, var(--lp-accent-line) 85%, transparent); pointer-events: none; }
  .lp-ladder__tier { padding-inline: 0.5rem; }
}

/* --- Fee simulator (simulator.js) ----------------------------------------- */
.lp-sim { display: flex; flex-direction: column; gap: 1.5rem; padding: var(--lp-card-pad); min-width: 0; }
.lp-sim__head { display: flex; flex-direction: column; gap: 0.35rem; text-align: center; align-items: center; }
.lp-sim__head p { max-width: 42rem; text-wrap: balance; }
/* minmax(0, …) tracks + min-width: 0 so long figures and the control groups can never force the card wider than the viewport */
.lp-sim__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.lp-sim__grid > * { min-width: 0; }
@media (min-width: 1024px) { .lp-sim__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; } }
.lp-sim__controls { display: flex; flex-direction: column; gap: 1rem; min-width: 0; container-type: inline-size; }
.lp-sim__label { font-size: var(--lp-text-xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }
.lp-sim__help { font-size: var(--lp-text-xs); line-height: 1.45; color: var(--lp-fg-muted); margin-top: -0.35rem; }
.lp-sim__field { display: flex; align-items: center; gap: 0.5rem; min-width: 0; padding: 0.35rem 0.9rem 0.35rem 1rem; border-radius: var(--lp-radius-md); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lp-line); transition: border-color var(--lp-dur-fast) var(--lp-ease-std), box-shadow var(--lp-dur-fast) var(--lp-ease-std); }
.lp-sim__field:focus-within { border-color: var(--lp-accent-line); box-shadow: 0 0 0 3px var(--lp-accent-soft); }
.lp-sim__input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; color: var(--lp-fg); font-size: clamp(1.0625rem, 6.5cqi, 1.375rem); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0.35rem 0; outline: none; }
.lp-sim__suffix { font-size: var(--lp-text-sm); color: var(--lp-fg-muted); font-weight: 500; white-space: nowrap; }
.lp-sim__range { width: 100%; height: 2rem; margin: 0; accent-color: var(--lp-accent); cursor: pointer; }
.lp-sim__range:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 4px; border-radius: var(--lp-radius-full); }
.lp-sim__scale { display: flex; justify-content: space-between; font-size: var(--lp-text-2xs); color: var(--lp-fg-subtle); margin-top: -0.6rem; }
.lp-sim__presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lp-sim__preset { padding: 0.45rem 0.85rem; border-radius: var(--lp-radius-full); border: 1px solid var(--lp-line); background: rgba(255, 255, 255, 0.04); color: var(--lp-fg-muted); font-size: var(--lp-text-xs); font-weight: 600; cursor: pointer; transition: color var(--lp-dur-fast) var(--lp-ease-std), border-color var(--lp-dur-fast) var(--lp-ease-std), background-color var(--lp-dur-fast) var(--lp-ease-std); }
.lp-sim__preset:hover { color: var(--lp-fg); border-color: rgba(255, 255, 255, 0.2); }
.lp-sim__preset[aria-pressed="true"] { background: var(--lp-grad-cta); color: var(--lp-on-accent); border-color: transparent; box-shadow: var(--lp-shadow-cta); }
.lp-sim__horizon { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lp-sim__horizon legend { padding: 0; margin-bottom: 0.5rem; }
.lp-sim__seg { display: inline-flex; flex-wrap: wrap; gap: 0.15rem; max-width: 100%; padding: 0.25rem; border-radius: var(--lp-radius-full); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lp-line); width: fit-content; }
.lp-sim__seg label { position: relative; }
.lp-sim__seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lp-sim__seg span { display: inline-flex; padding: 0.4rem 0.9rem; border-radius: var(--lp-radius-full); font-size: var(--lp-text-xs); font-weight: 600; color: var(--lp-fg-muted); transition: background-color var(--lp-dur-fast) var(--lp-ease-std), color var(--lp-dur-fast) var(--lp-ease-std); }
.lp-sim__seg input:checked + span { background: var(--lp-grad-cta); color: var(--lp-on-accent); box-shadow: var(--lp-shadow-cta); }
.lp-sim__seg input:focus-visible + span { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.lp-sim__hint { font-size: var(--lp-text-2xs); line-height: 1.5; color: var(--lp-fg-subtle); }
.lp-sim__results { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; container-type: inline-size; padding: 1.25rem; border-radius: var(--lp-radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--lp-line); }
.lp-sim__summary { font-size: var(--lp-text-sm); line-height: var(--lp-leading-snug); color: var(--lp-fg); text-wrap: pretty; }
.lp-sim__summary b { color: var(--lp-accent); font-weight: 600; }
.lp-sim__totals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
@media (min-width: 640px) { .lp-sim__totals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lp-sim__total { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lp-sim__total-label { font-size: var(--lp-text-2xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }
/* figures scale with the results box (cqi) so "R$ 300.000,00" never clips on a 320px phone */
.lp-sim__total strong { font-size: clamp(1.0625rem, 7.5cqi, 1.375rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.lp-sim__total--pantera strong { color: var(--lp-accent); }
.lp-sim__bar { height: 0.5rem; border-radius: var(--lp-radius-full); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lp-sim__bar span { display: block; height: 100%; width: 0; border-radius: var(--lp-radius-full); background: var(--lp-grad-cta); transition: width var(--lp-dur) var(--lp-ease-out); }
.lp-sim__bar--others span { background: rgba(255, 255, 255, 0.35); }
.lp-sim__savings { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--lp-line); }
.lp-sim__savings-label { font-size: var(--lp-text-xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); width: 100%; }
.lp-sim__savings-value { font-size: clamp(1.375rem, 10cqi, 2.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-sim__tier strong, .lp-sim__plaques { overflow-wrap: anywhere; }
@media (max-width: 480px) { .lp-sim { padding: 1rem; } .lp-sim__results { padding: 1rem; } .lp-sim__savings-pct { font-size: var(--lp-text-xs); } }
.lp-sim__savings-pct { font-size: var(--lp-text-sm); font-weight: 600; color: var(--lp-accent); padding: 0.2rem 0.6rem; border-radius: var(--lp-radius-full); background: var(--lp-accent-soft); border: 1px solid var(--lp-accent-line); font-variant-numeric: tabular-nums; }
.lp-sim__tier { display: flex; align-items: center; gap: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--lp-line); }
.lp-sim__tier-medal { width: 3rem; height: 3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.lp-sim__tier-medal img { max-height: 100%; width: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.lp-sim__tier-label { display: block; font-size: var(--lp-text-2xs); font-weight: 600; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-muted); }
.lp-sim__tier strong { font-size: var(--lp-text-lg); font-weight: 600; }
.lp-sim__tier-when { display: block; font-size: var(--lp-text-xs); color: var(--lp-fg-muted); }
.lp-sim__plaques { font-size: var(--lp-text-xs); line-height: var(--lp-leading-snug); color: var(--lp-fg-muted); }
.lp-sim__plaques b { color: var(--lp-accent); font-weight: 600; }
.lp-sim__chart { width: 100%; height: auto; display: block; }
.lp-sim__gridline { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.lp-sim__tick { fill: var(--lp-fg-subtle); font-size: 9px; font-family: var(--lp-font); }
.lp-sim__area { fill: rgba(244, 196, 48, 0.12); }
.lp-sim__line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-sim__line--pantera { stroke: var(--lp-accent); }
.lp-sim__line--others { stroke: rgba(255, 255, 255, 0.45); stroke-dasharray: 4 3; }
.lp-sim__legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: var(--lp-text-2xs); color: var(--lp-fg-muted); }
.lp-sim__legend i { display: inline-block; width: 1rem; height: 2px; vertical-align: middle; margin-right: 0.35rem; background: var(--lp-accent); border-radius: 2px; }
.lp-sim__legend i.is-others { background: rgba(255, 255, 255, 0.45); }
.lp-sim__cta { display: flex; justify-content: center; }

/* --- Awards wall: the plaques as mounted awards ---------------------------- */
.lp-wall { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--lp-radius); background: linear-gradient(180deg, #171717 0%, #0e0e0e 100%); border: 1px solid var(--lp-card-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -40px 60px -40px rgba(0, 0, 0, 0.8); overflow: hidden; }
.lp-wall::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 60% at 50% -10%, rgba(244, 196, 48, 0.1), transparent 60%); }
@media (min-width: 1024px) { .lp-wall { grid-template-columns: repeat(4, 1fr); } }
.lp-award { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lp-award__spot { position: absolute; left: 0; right: 0; top: -6%; aspect-ratio: 1; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgba(244, 196, 48, 0.2), rgba(244, 196, 48, 0.06) 45%, transparent 70%); transition: opacity var(--lp-dur) var(--lp-ease-out); }
.lp-award__frame { position: relative; z-index: 1; width: 100%; padding: 5px; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #6e5514 0%, #d7b23c 22%, #8c6d1d 48%, #f2d06b 70%, #7a5f16 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 20px 30px -18px rgba(0, 0, 0, 0.9), 0 40px 50px -30px rgba(0, 0, 0, 0.7); transition: box-shadow var(--lp-dur-hover) var(--lp-ease-out), transform var(--lp-dur-hover) var(--lp-ease-out); }
.lp-award__frame::before { content: ''; position: absolute; inset: 5px; z-index: 2; border-radius: 3px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.06); }
.lp-award__frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: #000; }
.lp-award__sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.05) 52%, transparent 65%); transform: translateX(-130%); transition: transform 0.9s var(--lp-ease-out); }
@media (hover: hover) {
  .lp-award:hover .lp-award__sheen { transform: translateX(130%); }
  .lp-award:hover .lp-award__frame { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 24px 34px -18px rgba(0, 0, 0, 0.9), 0 46px 56px -30px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(244, 196, 48, 0.35); }
}
.lp-award__shadow { width: 78%; height: 12px; margin-top: -0.5rem; border-radius: 50%; z-index: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.75), transparent 70%); }
.lp-award__cap { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; z-index: 1; }
.lp-award__milestone { font-size: var(--lp-text-lg); font-weight: 600; letter-spacing: 0.01em; color: var(--lp-fg); }
.lp-award__rule { width: 2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--lp-accent), transparent); }
.lp-award__tier { font-size: var(--lp-text-sm); font-weight: 600; letter-spacing: 0.12em; font-variant-caps: all-small-caps; color: var(--lp-fg-muted); }
/* not reached in the simulation: dimmer plaque, dimmer light; earned: lit frame */
.lp-award__frame img { transition: filter var(--lp-dur) var(--lp-ease-out); }
.lp-award__cap { transition: opacity var(--lp-dur) var(--lp-ease-out); }
.lp-award.is-dim .lp-award__frame img { filter: brightness(0.55) saturate(0.75); }
.lp-award.is-dim .lp-award__frame { background: linear-gradient(160deg, #4a3a10 0%, #8a7330 22%, #5a4614 48%, #9c8340 70%, #4f3d10 100%); }
.lp-award.is-dim .lp-award__spot { opacity: 0.3; }
.lp-award.is-dim .lp-award__cap { opacity: 0.6; }
.lp-award.is-earned .lp-award__frame { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 20px 30px -18px rgba(0, 0, 0, 0.9), 0 40px 50px -30px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(244, 196, 48, 0.55), 0 0 44px -8px rgba(244, 196, 48, 0.45); }
@media (max-width: 639px) { .lp-award__milestone { font-size: var(--lp-text-base); } .lp-award__tier { font-size: var(--lp-text-xs); } }

/* --- Trail: step-by-step path A -> B (data-trail) ----------------------------
   Ordered list of steps; motion.js draws an SVG path through the nodes and
   fills it with scroll (--lp-trail-progress), lighting each node in turn.
   Mobile/tablet: vertical timeline, line on the left. Desktop: horizontal wave. */
.lp-trail { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; --lp-trail-progress: 0; }
.lp-trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.lp-trail__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-trail__base { stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.lp-trail__draw { stroke: var(--lp-accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp-trail-progress)); filter: drop-shadow(0 0 6px rgba(244, 196, 48, 0.55)); transition: stroke-dashoffset 160ms linear; }
.lp-trail__step { position: relative; z-index: 1; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.lp-trail__node {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--lp-bg-2); border: 1px solid var(--lp-accent-line); color: var(--lp-fg-muted);
  font-weight: 700; font-size: var(--lp-text-sm); box-shadow: var(--lp-shadow-card);
  transition: background var(--lp-dur-fast) var(--lp-ease-std), color var(--lp-dur-fast) var(--lp-ease-std), box-shadow var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std), border-color var(--lp-dur-fast) var(--lp-ease-std);
}
/* A/B labels live on the <li> (absolutely positioned pseudo of the grid container, so they never size a track) */
.lp-trail__step[data-trail-label]::after {
  content: attr(data-trail-label); position: absolute; left: 50%; top: calc(3.25rem + 0.4rem); transform: translateX(-50%);
  font-size: var(--lp-text-2xs); font-weight: 700; letter-spacing: var(--lp-tracking-caps); text-transform: uppercase; color: var(--lp-fg-subtle); white-space: nowrap;
  transition: color var(--lp-dur-fast) var(--lp-ease-std); pointer-events: none;
}
.lp-trail__step.is-lit .lp-trail__node { background: var(--lp-grad-cta); color: var(--lp-on-accent); border-color: transparent; box-shadow: var(--lp-shadow-cta), 0 0 0 6px rgba(244, 196, 48, 0.14); transform: scale(1.06); }
.lp-trail__step.is-lit[data-trail-label]::after { color: var(--lp-accent); }
.lp-trail__card { display: flex; flex-direction: column; gap: 0.4rem; padding: var(--lp-card-pad); min-width: 0; transition: border-color var(--lp-dur-fast) var(--lp-ease-std); }
.lp-trail__card p { color: var(--lp-fg-muted); font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); }
.lp-trail__step.is-lit .lp-trail__card { border-color: var(--lp-accent-line); }
@media (max-width: 1023px) { .lp-trail__step[data-trail-label]::after { display: none; } }
@media (min-width: 1024px) {
  .lp-trail { grid-template-columns: repeat(4, 1fr); gap: var(--lp-gap); }
  .lp-trail__step { grid-template-columns: minmax(0, 1fr); grid-template-rows: 3.25rem minmax(0, 1fr); justify-items: center; gap: 2.25rem; }
  .lp-trail__node { width: 3.25rem; height: 3.25rem; font-size: var(--lp-text-base); }
  .lp-trail__card { width: 100%; }
}

/* --- Utilities ------------------------------------------------------------- */
.lp-mask-y { -webkit-mask-image: var(--lp-mask-y); mask-image: var(--lp-mask-y); }
.lp-mask-x { -webkit-mask-image: var(--lp-mask-x); mask-image: var(--lp-mask-x); }
.lp-mask-bottom { -webkit-mask-image: var(--lp-mask-bottom); mask-image: var(--lp-mask-bottom); }
.lp-hide-mobile { display: none !important; }
@media (min-width: 768px) { .lp-hide-mobile { display: initial !important; } }

/* Body copy reads better justified in the narrow single-column phone layout. Left-aligned
   multi-line paragraphs only — never headings, buttons, lists or the centered section
   leads/statements (those stay centered and ragged, justify on 1–2 short centered lines
   just creates rivers). */
@media (max-width: 767px) {
  .lp-feature__body p, .lp-faq__a p, .lp-trail__card p {
    text-align: justify;
    hyphens: auto;
  }
}
