/* ============================================================
   NOEM.AI LANDING PAGES - COMMON DESIGN SYSTEM
   ============================================================ */

/* Register Splitting's index custom properties as integers so calc()
   treats them as numbers in animation-delay math. Without @property,
   `var(--char-index) * 30ms` silently resolves to 0ms in Chrome — every
   char ends up with delay:0s and the per-char stagger is invisible.   */
@property --char-index { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --word-index { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --line-index { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --lp-stagger { syntax: '<time>';    inherits: true;  initial-value: 30ms; }
@property --lp-dur     { syntax: '<time>';    inherits: true;  initial-value: 1000ms; }

/* Metric-compatible fallback for Inter. Eliminates CLS caused by the font
   swap: system font is rendered first with adjusted metrics that match
   Inter's, so when Inter loads the layout doesn't shift. Values derived
   from Chrome's font-fallback generator for Inter vs Arial. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
}

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --noem-blue: #4D61FE;
  --noem-blue-light: #a5aff6;
  --noem-blue-dark: #3a4ac7;
  --noem-purple: #c84af1;
  --noem-green: #07e807;
  --noem-dark: #0b1a2e;
  --noem-dark-surface: #132742;
  --noem-light: #f8f9fc;
  --noem-white: #ffffff;
  --noem-gray-100: #f0f2f5;
  --noem-gray-200: #e4e7ec;
  --noem-gray-300: #cdd3dc;
  --noem-gray-400: #98a2b3;
  --noem-gray-500: #667085;
  --noem-gray-600: #6b7280;
  --noem-gray-800: #1f2937;
  --noem-gray-900: #111827;

  /* Typography */
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale (8px base) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(77,97,254,0.15);

  /* Transitions (legacy aliases — prefer --dur-* and --ease-* below) */
  --transition-fast: var(--dur-fast)  var(--ease-out-quint);
  --transition-base: var(--dur-base)  var(--ease-out-quint);
  --transition-slow: var(--dur-slow)  var(--ease-out-expo);

  /* ---- Motion tokens ---- */
  /* Durations */
  --dur-instant: 80ms;
  --dur-fast:    160ms;
  --dur-base:    280ms;
  --dur-slow:    520ms;
  --dur-slower:  900ms;

  /* Easings — expressive, not browser defaults */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-overshoot:    cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Spring-like linear() easing (supported in Chrome 113+, Safari 17.2+, FF 112+) */
  --ease-spring: linear(
    0, 0.006, 0.025, 0.1, 0.23, 0.4, 0.62, 0.88, 1.14, 1.35, 1.47, 1.52,
    1.49, 1.42, 1.29, 1.15, 1.01, 0.9, 0.82, 0.77, 0.75, 0.76, 0.79, 0.84, 0.9, 1
  );

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;

  /* Container widths */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  /* Prevent transform-based reveals (e.g. reverse-explosion, parallax) from
     expanding the layout viewport on iOS, which can make sections appear
     narrower than the header/footer. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6em;
  color: var(--noem-gray-800);
  background: var(--noem-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--noem-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--noem-blue-light);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--noem-gray-600);
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--noem-blue-light), var(--noem-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-hero {
  background: linear-gradient(180deg, #fff 0%, #c8d6e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Keep gradient-text visible after Splitting wraps characters/words in child
   spans. Without this, children lose the parent's background-clip and render
   with `-webkit-text-fill-color: transparent` only, making the text invisible. */
.text-gradient-hero .word,
.text-gradient-hero .char,
.text-gradient-blue .word,
.text-gradient-blue .char,
.text-gradient-purple .word,
.text-gradient-purple .char {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-purple { color: var(--noem-purple); }
.text-blue { color: var(--noem-blue); }
.text-blue-light { color: var(--noem-blue-light); }
.text-white { color: var(--noem-white); }
.text-center { text-align: center; }
.text-muted { color: var(--noem-gray-600); }
.lp-section--dark .text-muted { color: var(--noem-gray-300); }
.d-block { display: block; }

.subheading {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--noem-gray-700);
  max-width: 640px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--noem-blue-light);
  margin-bottom: var(--space-md);
}

/* --- Layout --- */
.lp-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.lp-container--narrow {
  max-width: var(--container-narrow);
}

.lp-section {
  padding: var(--space-4xl) 0;
}

.lp-section--dark {
  background: var(--noem-dark);
  color: var(--noem-white);
}

.lp-section--dark p {
  color: var(--noem-gray-300);
}

.lp-section--dark .subheading {
  color: var(--noem-gray-300);
}

.lp-section--light {
  background: var(--noem-white);
  color: var(--noem-gray-800);
}

.lp-section--alt {
  background: var(--noem-gray-100);
}

.lp-grid {
  display: grid;
  gap: var(--space-xl);
}

.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .lp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lp-grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - var(--space-xl) / 2); margin: 0 auto; }
  .lp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .lp-grid--2,
  .lp-grid--3,
  .lp-grid--4 { grid-template-columns: 1fr; }

  .lp-grid--3 > :last-child:nth-child(odd) { max-width: none; margin: 0; grid-column: auto; }

  .lp-section { padding: var(--space-3xl) 0; }
}

.lp-flex {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.lp-flex--center { justify-content: center; }
.lp-flex--between { justify-content: space-between; }
.lp-flex--col { flex-direction: column; }
.lp-flex--wrap { flex-wrap: wrap; }

/* --- Sticky Nav --- */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.lp-nav.scrolled {
  background: rgba(11, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.lp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.lp-nav__logo img {
  height: 5rem;
  width: auto;
}

.lp-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.lp-nav__links a {
  color: var(--noem-gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.lp-nav__links a:hover,
.lp-nav__links a.active {
  color: var(--noem-white);
}

.lp-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.lp-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--noem-white);
  margin: 5px 0;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .lp-nav__hamburger { display: block; }

  .lp-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 26, 46, 0.98);
    backdrop-filter: blur(12px);
    padding: var(--space-xl);
    gap: var(--space-lg);
  }

  .lp-nav__links.open { display: flex; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--noem-white);
  background: linear-gradient(135deg, var(--noem-blue) 0%, var(--noem-blue-light) 100%);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 114, 182, 0.4);
  color: var(--noem-white);
}

.btn-primary::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.15em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat;
  transition: transform var(--transition-fast);
  vertical-align: middle;
  position: relative;
  top: -0.05em;
}

.btn-primary:hover::after {
  transform: translateX(4px);
}

.btn-primary--large {
  padding: 1em 2.5em;
  font-size: 1.2rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--noem-white);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--noem-blue-light);
  background: rgba(77,97,254,0.1);
  color: var(--noem-white);
}

/* --- URL Input + CTA Combo --- */
.cta-input-group {
  display: flex;
  align-items: center;
  max-width: 560px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 5px;
  transition: border-color var(--transition-fast);
}

.cta-input-group:focus-within {
  border-color: var(--noem-blue-light);
  background: rgba(255,255,255,0.15);
}

.cta-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--noem-white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 1.2em;
  outline: none;
  min-width: 0;
}

.cta-input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.cta-input-group .btn-primary {
  flex-shrink: 0;
}

/* Light variant for light sections */
.cta-input-group--light {
  background: var(--noem-white);
  border-color: var(--noem-gray-200);
  box-shadow: var(--shadow-lg);
}

.cta-input-group--light input {
  color: var(--noem-gray-800);
}

.cta-input-group--light input::placeholder {
  color: var(--noem-gray-600);
}

.cta-input-group--light:focus-within {
  border-color: var(--noem-blue);
}

@media (max-width: 576px) {
  .cta-input-group {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
  }

  .cta-input-group input {
    width: 100%;
    text-align: center;
  }

  .cta-input-group .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--noem-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--noem-gray-200);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(165,175,246,0.1), rgba(77,97,254,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--noem-blue);
  margin-bottom: var(--space-lg);
}

.feature-card h3,
.feature-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--noem-gray-900);
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Dark variant */
.feature-card--dark {
  background: var(--noem-dark-surface);
  border-color: rgba(255,255,255,0.08);
}

.feature-card--dark h3,
.feature-card--dark h4 { color: var(--noem-white); }
.feature-card--dark p { color: var(--noem-gray-300); }

/* Auto-flip feature-cards placed inside a dark section so authors don't have
   to remember `.feature-card--dark`. Override with `.feature-card--light` when
   you explicitly want a white card on a dark background. */
.lp-section--dark .feature-card:not(.feature-card--light) {
  background: var(--noem-dark-surface);
  border-color: rgba(255,255,255,0.08);
}
.lp-section--dark .feature-card:not(.feature-card--light) h3,
.lp-section--dark .feature-card:not(.feature-card--light) h4 { color: var(--noem-white); }
.lp-section--dark .feature-card:not(.feature-card--light) p { color: var(--noem-gray-300); }

/* --- Stat Cards --- */
.stat-card {
  text-align: center;
  padding: var(--space-xl);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card__label {
  font-size: 0.95rem;
  color: var(--noem-gray-600);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: var(--noem-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--noem-gray-200);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--noem-blue-light);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--noem-gray-800);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  overflow: hidden;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--noem-gray-800);
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--noem-gray-600);
}

/* Testimonial carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform var(--transition-slow);
}

.testimonial-track .testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial-track .testimonial-card { flex: 0 0 calc((100% - var(--space-lg)) / 2); }
}

@media (min-width: 992px) {
  .testimonial-track .testimonial-card { flex: 0 0 calc((100% - (var(--space-lg) * 2)) / 3); }
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding: 4px 0;
  overflow: visible;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  display: block;
  border-radius: 50%;
  border: none;
  background: var(--noem-gray-300);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.testimonial-dots button.active {
  background: var(--noem-blue);
  transform: scale(1.3);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--noem-gray-200);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--noem-gray-800);
  text-align: left;
}

.faq-question:hover { color: var(--noem-blue); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: var(--space-md);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform var(--transition-base);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-size: 0.95rem;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.trust-bar:hover { opacity: 1; }

.trust-bar img {
  height: 28px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.trust-bar img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: var(--noem-dark);
  color: var(--noem-white);
}

.comparison-table th {
  padding: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.comparison-table th:first-child { text-align: left; }

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--noem-gray-200);
  text-align: center;
  font-size: 0.95rem;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table tbody tr:hover {
  background: var(--noem-gray-100);
}

.comparison-table .check {
  color: var(--noem-green);
  font-size: 1.3rem;
}

.comparison-table .cross {
  color: #ef4444;
  font-size: 1.3rem;
}

.comparison-table .highlight-col {
  background: rgba(77,97,254,0.05);
}

/* --- Steps Section --- */
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--noem-blue), var(--noem-blue-light));
  color: var(--noem-white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
   margin: 0 0 var(--space-xs);
  color: var(--noem-gray-900);
}

.step p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- Footer --- */
.lp-footer {
  background: var(--noem-dark);
  color: var(--noem-gray-300);
  padding: var(--space-2xl) 0;
  text-align: center;
  font-size: 0.85rem;
}

.lp-footer a {
  color: var(--noem-blue-light);
  margin: 0 var(--space-md);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* --- Utilities --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   SHARED PAGE PRIMITIVES
   These replace per-page copies of hero / problem-card / sticky-cta
   / footer / section-title overrides. Page CSS should extend via
   CSS variables or modifier classes, never redeclare structure.
   ============================================================ */

/* --- Hero frame --- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 75% 65%, rgba(200,74,241,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 50%, rgba(165,175,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(77,97,254,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(27,61,108,0.2) 0%, transparent 60%),
    linear-gradient(180deg, #060d19 0%, var(--noem-dark) 40%, #0a1628 100%);
}

/* Optional animated glow overlay, opt-in with modifier */
.lp-hero__bg--glow::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(77,97,254,0.35) 0%, transparent 70%);
  filter: blur(40px);
  animation: lp-hero-glow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.lp-hero__bg--glow::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(200,74,241,0.35) 0%, transparent 70%);
  filter: blur(40px);
  animation: lp-hero-glow-alt 13s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes lp-hero-glow {
  0%   { transform: translate(-20%, -10%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(25%, 20%)  scale(1.3); opacity: 1; }
}

@keyframes lp-hero-glow-alt {
  0%   { transform: translate(15%, 10%)  scale(1.1); opacity: 1; }
  100% { transform: translate(-25%, -15%) scale(0.85); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero__bg--glow::before,
  .lp-hero__bg--glow::after { animation: none; }
}

.lp-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-4xl);
}

.lp-hero__cta {
  margin-top: var(--space-xl);
}

.lp-hero__actions {
  margin-top: var(--space-md);
}

.lp-hero__microcopy {
  margin-top: var(--space-md);
  color: var(--noem-gray-300);
  font-size: 0.86rem;
}

.lp-hero__visual {
  margin-top: var(--space-2xl);
}

.lp-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(3, 7, 18, 0.38);
}

.lp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.lp-hero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(165,175,246,0.2);
  color: var(--noem-gray-200);
  font-size: 0.84rem;
  font-weight: 500;
}

/* Auto-adapt the chip for light sections so the same component reads on either
   background. Mirrors the .feature-card auto-flip pattern. Override with
   `.lp-hero__chip--dark` to force the dark-glass look on a light bg. */
.lp-section--light .lp-hero__chip:not(.lp-hero__chip--dark) {
  background: rgba(77, 97, 254, 0.06);
  border-color: rgba(77, 97, 254, 0.18);
  color: var(--noem-gray-800);
}

/* Bullet variant: flat checkmark feature-line, no pill. Use under a CTA
   input-group so outcome chips don't visually compete with the button.
   Works on dark and light sections. */
.lp-hero__chip--bullet {
  background: transparent;
  border: none;
  padding: 0.15rem 0;
  color: var(--noem-gray-300);
  font-weight: 500;
  font-size: 0.92rem;
  gap: 0.45rem;
}

.lp-hero__chip--bullet::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.lp-section--light .lp-hero__chip--bullet {
  background: transparent;
  border: none;
  color: var(--noem-gray-700);
}

@media (max-width: 768px) {
  .lp-hero {
    min-height: auto;
    padding-top: 92px;
  }
  .lp-hero__content {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }
  .lp-hero__chips {
    gap: 0.4rem;
  }
  .lp-hero__chip {
    width: 100%;
  }
  .lp-hero__chip--bullet {
    width: auto;
  }
}

/* --- Problem card (KPI stat + title + blurb) --- */
.lp-problem-card {
  background: var(--noem-white);
  border: 1px solid var(--noem-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.lp-problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.lp-problem-card__kpi {
  margin: 0 0 var(--space-md);
  color: var(--lp-kpi-color, var(--noem-blue));
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1;
  font-family: var(--font-display);
}

.lp-problem-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--noem-gray-900);
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.lp-problem-card p:not(.lp-problem-card__kpi) {
  margin: 0;
  color: var(--noem-gray-600);
  font-size: 0.93rem;
}

@media (max-width: 768px) {
  .lp-problem-card__kpi { font-size: 2.75rem; }
}

/* --- Section title helpers --- */
.lp-section-title--on-dark,
.lp-section--dark h1,
.lp-section--dark h2:not(.text-gradient-blue):not(.text-gradient-hero) {
  color: var(--noem-white);
}

/* --- FAQ on dark sections --- */
.lp-section--dark .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.lp-section--dark .faq-question {
  color: var(--noem-white);
}

.lp-section--dark .faq-question:hover {
  color: var(--noem-blue-light);
}

.lp-section--dark .faq-answer p {
  color: var(--noem-gray-300);
}

/* --- Sticky CTA (appears on scroll, hidden over hero and final CTA) --- */
.lp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: var(--space-md) 0 calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 14, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(165,175,246,0.2);
  box-shadow: 0 -20px 60px rgba(6, 13, 25, 0.28);
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.lp-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lp-sticky-cta__inner {
  max-width: 860px;
  margin: 0 auto;
}

.lp-sticky-cta__inner .cta-input-group {
  max-width: none;
  margin: 0 auto;
}

.lp-sticky-cta .cta-microcopy {
  text-align: center;
  margin: var(--space-sm) 0 0;
  color: var(--noem-gray-300);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .lp-sticky-cta { padding-top: var(--space-sm); }
}

@media (max-width: 576px) {
  .lp-sticky-cta__inner { max-width: none; }
  .lp-sticky-cta .cta-input-group { padding: var(--space-xs); }
  .lp-sticky-cta .cta-microcopy { font-size: 0.78rem; }
}

/* --- Footer logo sizing helper --- */
.lp-footer__logo {
  height: auto;
  width: min(360px, 70vw);
  display: inline-block;
  margin-bottom: var(--space-md);
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--noem-gray-200), var(--noem-gray-100));
  border: 2px dashed var(--noem-gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--noem-gray-600);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-xl);
  min-height: 200px;
}

.img-placeholder--dark {
  background: linear-gradient(135deg, var(--noem-dark-surface), var(--noem-dark));
  border-color: rgba(255,255,255,0.1);
  color: var(--noem-gray-300);
}

/* ============================================================
   Promoted primitives (previously duplicated in page CSS)
   Anything reusable across pages lives here, not in a page main.css.
   ============================================================ */

/* --- Trust badge (pill with KPI-style icon + multi-line caption) --- */
.lp-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--noem-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--noem-gray-800);
  line-height: 1.2;
}

.lp-trust-badge__icon {
  font-size: 1.3rem;
}

.lp-trust-badge__icon--stat {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--noem-blue);
}

.lp-trust-badge__text {
  text-align: left;
}

@media (max-width: 768px) {
  .lp-trust-badge {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-md);
  }
}

/* --- Trust strip (inline pill list, lighter weight than trust-badge) --- */
/* Section wrapper when used as a standalone compact strip between sections.
   Uses tighter vertical rhythm than a full .lp-section (which is 4xl).     */
.section-trust {
  padding: var(--space-xl) 0;
}

.lp-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.lp-trust-strip > span,
.lp-trust-strip__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--noem-gray-200);
  background: var(--noem-white);
  color: var(--noem-gray-600);
  font-size: 0.82rem;
  font-weight: 600;
}

/* --- CTA microcopy (small reassurance line under a CTA) --- */
.lp-cta-microcopy {
  font-size: 0.85rem;
  margin-top: var(--space-md);
  opacity: 0.9;
}

.lp-section--dark .lp-cta-microcopy,
.lp-sticky-cta .lp-cta-microcopy {
  color: var(--noem-gray-300);
}

.lp-section--light .lp-cta-microcopy,
.lp-section--alt .lp-cta-microcopy {
  color: var(--noem-gray-600);
}

/* --- Problem card KPI sub-unit (e.g. "/mo", "%") inside an .lp-problem-card__kpi --- */
.lp-problem-card__kpi-sub {
  font-size: 0.45em;
  opacity: 0.7;
  margin-left: 0.1em;
}

/* --- Section subtext helper (max-width paragraph under an h2) --- */
.lp-section-subtext {
  color: var(--noem-gray-600);
  max-width: 720px;
}

.lp-section--dark .lp-section-subtext {
  color: var(--noem-gray-300);
}

/* --- Feature list with checkmark bullets --- */
.lp-feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-lg);
}

.lp-feature-list li {
  padding: var(--space-xs) 0 var(--space-xs) 1.5em;
  font-size: 0.9rem;
  color: var(--noem-gray-600);
  position: relative;
}

.lp-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--noem-green);
  font-weight: 700;
}

.lp-section--dark .lp-feature-list li {
  color: var(--noem-gray-300);
}

/* --- Testimonial card stars row --- */
.testimonial-card__stars {
  margin-bottom: var(--space-md);
  color: var(--noem-purple);
  font-size: 1rem;
  letter-spacing: 0.15em;
}

/* --- Comparison table highlighted column --- */
.comparison-table .highlight-col {
  background: rgba(77,97,254,0.08);
  font-weight: 600;
}

/* --- Steps timeline (connector line between numbered steps) --- */
.steps-container {
  max-width: 700px;
  margin: 0 auto;
}

.steps-container .step {
  border-left: 2px solid rgba(77,97,254,0.2);
  margin-left: 28px;
  padding: 0 var(--space-xl) var(--space-xl);
  position: relative;
}

.steps-container .step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps-container .step__number {
  position: absolute;
  left: -29px;
}

.steps-container .step h3 {
  line-height: 56px;
  margin: 0;
}

.steps-container .step p {
  margin-top: var(--space-sm);
}

/* --- Final-CTA stats row (short horizontal stats under the final CTA) --- */
.lp-final-cta-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .lp-final-cta-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Nav CTA button sizing (inline nav buttons are smaller than section CTAs) --- */
.lp-nav .nav-cta,
.lp-nav__links .nav-cta {
  font-size: 0.9rem;
  padding: 0.45em 1.1em;
}

/* --- GTM noscript iframe: always hidden --- */
.gtm-frame {
  display: none;
  visibility: hidden;
}

/* --- Secondary button on dark sections: lighter border --- */
.lp-section--dark .btn-secondary {
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   MOTION SYSTEM
   Declarative animations keyed off data-lp-* attributes.
   Authors add data-lp-reveal / data-lp-scroll / etc. to markup;
   common.js wires IntersectionObservers and Lenis to drive them.

   Layers:
     1. Reduced-motion kill-switch
     2. Typography reveals  (data-lp-split + data-lp-reveal)
     3. Scroll-linked       (data-lp-scroll) -- reads --lp-progress
     4. Counters v2         (odometer + flash)
     5. Micro-interactions  (magnetic / tilt / cursor-glow / marquee)
   ============================================================ */

/* --- 1. Reduced-motion global kill-switch ------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  /* Force reveals to their final state so content is always visible. */
  [data-lp-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* Disable the HTML smooth-scroll when Lenis is active (Lenis owns it). */
html.lp-lenis { scroll-behavior: auto; }
html.lp-lenis, html.lp-lenis body { overscroll-behavior: none; }

/* --- 2. Typography reveals -------------------------------- */

/* Splitting sets --char-index / --word-index / --line-index on children.
   Authors set --lp-stagger (ms) on the parent to control cadence.
   Before reveal, children are "hidden" per variant; .is-revealed triggers
   the animation simultaneously via staggered --lp-delay.                */
[data-lp-split] {
  --lp-stagger: 30ms;   /* per-child stagger */
  --lp-dur:     1000ms; /* reveal duration   */
}
/* Hide split parents until reveal — prevents the brief unstyled-flash that
   happens between Splitting() rewrapping the DOM and the per-child hidden
   state applying. The parent stays invisible until .is-revealed adds, then
   the children animate in from their hidden state with their stagger. */
.lp-motion-ready [data-lp-reveal][data-lp-split]:not(.is-revealed) {
  opacity: 0;
}
/* Crisper text rendering on animated chars/words — avoids subpixel glyph
   reflow between layer-promoted and non-promoted frames. */
[data-lp-split] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[data-lp-split="chars"] .char  { display: inline-block; }
[data-lp-split="words"] .word  { display: inline-block; }
[data-lp-split="lines"] .word  { display: inline-block; }
/* Whitespace handling: Splitting wraps spaces as .whitespace; keep them inline */
[data-lp-split] .whitespace    { display: inline; white-space: pre; }

/* Per-child delay:
   chars  -> stagger by char index
   words  -> stagger by word index
   lines  -> stagger by line index
*/
/* Per-child stagger is set via inline animation-delay in JS at split time
   (see initTypography in common.js) — calc() with two var() refs proved
   unreliable across browsers even with @property registration.            */

/* --- Reveal variant: rise ---------------------------------- */
/* Per split-mode targeting: in `chars` mode Splitting nests .char inside
   .word, so we must animate ONLY .char (animating the parent .word would
   slide each whole word as one block, hiding the per-char stagger).      */
[data-lp-reveal="rise"] { overflow: hidden; }
.lp-motion-ready [data-lp-split="chars"][data-lp-reveal="rise"] .char,
.lp-motion-ready [data-lp-split="words"][data-lp-reveal="rise"] .word,
.lp-motion-ready [data-lp-split="lines"][data-lp-reveal="rise"] .word {
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  will-change: transform, opacity;
}
[data-lp-split="chars"][data-lp-reveal="rise"].is-revealed .char,
[data-lp-split="words"][data-lp-reveal="rise"].is-revealed .word,
[data-lp-split="lines"][data-lp-reveal="rise"].is-revealed .word {
  animation: lp-rise-in var(--dur-slow) var(--ease-out-expo) both;
  animation-duration: var(--lp-dur);
}
@keyframes lp-rise-in {
  from { transform: translate3d(0, 110%, 0); opacity: 0; }
  to   { transform: translate3d(0, 0, 0);    opacity: 1; }
}

/* Non-split rise: applies to the whole element */
.lp-motion-ready [data-lp-reveal="rise"]:not([data-lp-split]) {
  transform: translateY(40px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo),
              opacity   var(--dur-slow) var(--ease-out-expo);
  overflow: visible;
}
[data-lp-reveal="rise"]:not([data-lp-split]).is-revealed {
  transform: translateY(0); opacity: 1;
}

/* --- Reveal variant: blur-up ------------------------------- */
.lp-motion-ready [data-lp-split="chars"][data-lp-reveal="blur-up"] .char,
.lp-motion-ready [data-lp-split="words"][data-lp-reveal="blur-up"] .word,
.lp-motion-ready [data-lp-split="lines"][data-lp-reveal="blur-up"] .word {
  filter: blur(12px);
  opacity: 0;
  will-change: filter, opacity;
}
[data-lp-split="chars"][data-lp-reveal="blur-up"].is-revealed .char,
[data-lp-split="words"][data-lp-reveal="blur-up"].is-revealed .word,
[data-lp-split="lines"][data-lp-reveal="blur-up"].is-revealed .word {
  animation: lp-blur-up var(--dur-slower) var(--ease-out-quint) both;
  animation-duration: var(--lp-dur);
}
@keyframes lp-blur-up {
  from { filter: blur(12px); opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { filter: blur(0);    opacity: 1; transform: translate3d(0, 0, 0);   }
}
.lp-motion-ready [data-lp-reveal="blur-up"]:not([data-lp-split]) {
  filter: blur(12px); opacity: 0;
  transition: filter var(--dur-slower) var(--ease-out-quint),
              opacity var(--dur-slower) var(--ease-out-quint);
}
[data-lp-reveal="blur-up"]:not([data-lp-split]).is-revealed {
  filter: blur(0); opacity: 1;
}

/* --- Reveal variant: clip-up ------------------------------- */
.lp-motion-ready [data-lp-split="chars"][data-lp-reveal="clip-up"] .char,
.lp-motion-ready [data-lp-split="words"][data-lp-reveal="clip-up"] .word,
.lp-motion-ready [data-lp-split="lines"][data-lp-reveal="clip-up"] .word {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 8%, 0);
  will-change: clip-path, transform;
}
[data-lp-split="chars"][data-lp-reveal="clip-up"].is-revealed .char,
[data-lp-split="words"][data-lp-reveal="clip-up"].is-revealed .word,
[data-lp-split="lines"][data-lp-reveal="clip-up"].is-revealed .word {
  animation: lp-clip-up var(--dur-slow) var(--ease-out-expo) both;
  animation-duration: var(--lp-dur);
}
@keyframes lp-clip-up {
  from { clip-path: inset(0 0 100% 0); transform: translate3d(0, 8%, 0); }
  to   { clip-path: inset(0 0 0 0);    transform: translate3d(0, 0, 0);  }
}
/* Non-split clip-up: animates the whole element.
   Uses translate + opacity (NOT clip-path) as the hidden state — Chrome's
   IntersectionObserver reports isIntersecting:false on elements clipped to
   zero visible area, so starting with `clip-path: inset(0 0 100%)` would
   prevent the reveal from ever firing. */
.lp-motion-ready [data-lp-reveal="clip-up"]:not([data-lp-split]) {
  transform: translateY(24px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-slow) var(--ease-out-expo);
}
[data-lp-reveal="clip-up"]:not([data-lp-split]).is-revealed {
  transform: translateY(0);
  opacity: 1;
}

/* --- Reveal variant: gradient-sweep ------------------------ */
/* Continuous hue shimmer along a text gradient. Apply to an element that
   already has text-gradient classes, or it falls back to blue→purple.     */
[data-lp-reveal="gradient-sweep"] {
  background: linear-gradient(90deg,
    var(--noem-blue) 0%,
    var(--noem-purple) 50%,
    var(--noem-blue-light) 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: lp-gradient-sweep 6s linear infinite;
}
@keyframes lp-gradient-sweep {
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- Reveal variant: shine --------------------------------- */
/* A narrow highlight band sweeps across text on loop. Use sparingly — for
   labels like "Live" / "New" / short CTAs.

   IMPORTANT: cannot use `currentColor` in the gradient — we set
   `color: transparent` as a fallback for `-webkit-text-fill-color`, and
   `currentColor` would then resolve to transparent (the entire gradient
   becomes transparent → white → transparent and the text disappears
   between sweeps). Use the `--lp-shine-base` variable instead, and
   override it on dark backgrounds.                                        */
[data-lp-reveal="shine"] {
  --lp-shine-base: var(--noem-gray-900);
  background: linear-gradient(
    100deg,
    var(--lp-shine-base) 0%,
    var(--lp-shine-base) 42%,
    rgba(255,255,255,0.95) 50%,
    var(--lp-shine-base) 58%,
    var(--lp-shine-base) 100%);
  /* 400% width + no-repeat guarantees the bright band starts fully
     off the left edge (pos:100%) and ends fully off the right edge
     (pos:0%) regardless of how many lines the text wraps to. A
     smaller tile (e.g., 300%) or the default `repeat` caused the band
     to appear to stop mid-element on long/multi-line headlines. */
  background-size: 400% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: lp-shine 7.6s var(--ease-in-out-quart) infinite;
  /* Flicker mitigation: animating background-position on a
     background-clip:text element forces text re-rasterization every frame.
     Promote to an isolated GPU layer and force AA so the glyph edges stay
     stable across the sweep.                                                */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: background-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
}
.lp-section--dark [data-lp-reveal="shine"] {
  --lp-shine-base: var(--noem-white);
}
@keyframes lp-shine {
  0%, 40%   { background-position: 100% 0; }
  60%, 100% { background-position:   0% 0; }
}

/* --- 3. Scroll-linked utilities ---------------------------- */
/* Pattern:
   Every [data-lp-scroll] element receives --lp-progress (0..1) from JS
   (or from animation-timeline when supported). Effects read that var.
   Authors don't need to know which path is active.                        */
[data-lp-scroll] {
  --lp-progress: 0;
  will-change: transform, opacity;
}

/* parallax: translates inversely to scroll; speed 0..1 (1 = no move).
   Travel distance tuned for noticeable-but-tasteful motion on desktop. */
[data-lp-scroll="parallax"] {
  --lp-speed: 0.5;
  transform: translate3d(0, calc((1 - var(--lp-speed)) * var(--lp-progress) * -140px), 0);
}

/* scale-in: scales from --lp-from up to 1 over the element's ENTRY portion
   (progress 0 → 0.5), then holds. This way the element reaches full size
   while prominently in view rather than while exiting the top of the page. */
[data-lp-scroll="scale-in"] {
  --lp-from: 0.88;
  transform: scale(calc(var(--lp-from) + (1 - var(--lp-from)) * min(1, var(--lp-progress) * 2)));
  opacity: calc(0.3 + 0.7 * min(1, var(--lp-progress) * 2));
}

/* tint: crossfades between two background colors along section progress. */
[data-lp-scroll="tint"] {
  --lp-tint-from: #ffffff;
  --lp-tint-to:   #0a0b0f;
  background-color: color-mix(
    in srgb,
    var(--lp-tint-from)  calc((1 - var(--lp-progress)) * 100%),
    var(--lp-tint-to)    calc(var(--lp-progress) * 100%)
  );
  transition: background-color 0.05s linear;
}

/* rotate-in: 3D lean + rise as the element enters view. Same entry remap
   as scale-in so the card is upright while centered. The parent gets a
   perspective so the lean reads as depth (without it, rotateX looks flat). */
[data-lp-scroll="rotate-in"] {
  --lp-rot: 14deg;
  transform: perspective(900px)
             rotateX(calc((1 - min(1, var(--lp-progress) * 2)) * var(--lp-rot)))
             translateY(calc((1 - min(1, var(--lp-progress) * 2)) * 40px));
  opacity: calc(0.4 + 0.6 * min(1, var(--lp-progress) * 2));
  transform-origin: center 120%;
}
/* Give the element's containing block its own perspective so the lean isn't
   flattened by ancestor transforms. Applied as a scoped variable so authors
   can opt out by setting --lp-perspective: none on a wrapper. */
[data-lp-scroll="rotate-in"] { transform-style: preserve-3d; }

/* Native-CSS fast path: opt-in once browser support stabilizes.
   Authors add `data-lp-scroll-native` to use animation-timeline.          */
@supports (animation-timeline: view()) {
  [data-lp-scroll-native="fade-up"] {
    animation: lp-fade-up both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  @keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0);    }
  }
}

/* --- Reverse-explosion reveal ----------------------------- */
/* Narrative: support-ticket triage. List starts as chaos (items
   scattered / rotated / faded) and resolves to an ordered inbox as
   the user scrolls; each item "completes" with a green check at its
   own progress threshold.

   Driver: scroll-linked via --lp-progress (JS initScrollLinked writes it).
   JS initReverseExplosion seeds per-item --rx, --ry, --rot, --op-chaos
   (Mulberry32 PRNG) and toggles .is-done per-item as progress crosses
   each item's --lp-done-at threshold.                                   */

@property --rx        { syntax: '<length>';     inherits: false; initial-value: 0px; }
@property --ry        { syntax: '<length>';     inherits: false; initial-value: 0px; }
@property --rot       { syntax: '<angle>';      inherits: false; initial-value: 0deg; }
@property --op-chaos  { syntax: '<number>';     inherits: false; initial-value: 1; }

/* Container: also registers as data-lp-scroll via JS so --lp-progress flows. */
[data-lp-reveal="reverse-explosion"] {
  --lp-progress: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
  /* Clip any chaos-phase overflow so items can't push the layout viewport
     wider than the section on mobile. */
  overflow: clip;
}

/* Item: ticket-card default (light bg). Chaos transform interpolates to
   identity as --lp-progress 0 -> 1. perspective on parent so any rotate
   reads as 2D tilt -- keep it cheap. */
.reverse-explosion__item {
  --rx: 0px;
  --ry: 0px;
  --rot: 0deg;
  --op-chaos: 0.35;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--noem-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--noem-gray-800);
  /* Compress progress so chaos -> identity completes around mid-scroll. */
  --re-p: min(1, calc(var(--lp-progress) * 2));
  transform: translate3d(
      calc(var(--rx) * (1 - var(--re-p))),
      calc(var(--ry) * (1 - var(--re-p))),
      0)
    rotate(calc(var(--rot) * (1 - var(--re-p))));
  opacity: calc(var(--op-chaos) + (1 - var(--op-chaos)) * var(--re-p));
  will-change: transform, opacity;
  transition: box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.reverse-explosion__item.is-done {
  box-shadow: 0 2px 14px rgba(16, 185, 129, 0.14);
  background: color-mix(in srgb, var(--noem-white) 94%, #10b981 6%);
}

/* Auto-flip for dark sections. */
.lp-section--dark .reverse-explosion__item:not(.reverse-explosion__item--light) {
  background: var(--noem-dark-surface);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--noem-gray-300);
}
.lp-section--dark .reverse-explosion__item:not(.reverse-explosion__item--light).is-done {
  background: color-mix(in srgb, var(--noem-dark-surface) 88%, #10b981 12%);
}

/* Ticket internals (optional markup; used by starter demo). */
.reverse-explosion__subject {
  font-weight: 600;
  color: var(--noem-gray-900);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-section--dark .reverse-explosion__item:not(.reverse-explosion__item--light) .reverse-explosion__subject {
  color: var(--noem-white);
}
.reverse-explosion__sender {
  font-size: 0.82rem;
  color: var(--noem-gray-600);
  flex: 0 0 auto;
}
.lp-section--dark .reverse-explosion__item:not(.reverse-explosion__item--light) .reverse-explosion__sender {
  color: var(--noem-gray-300);
}
.reverse-explosion__status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(77, 97, 254, 0.12);
  color: var(--noem-blue);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.reverse-explosion__item.is-done .reverse-explosion__status {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

/* Green check SVG (JS auto-injects if absent). */
.reverse-explosion__check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  transition: background var(--transition-base), transform var(--transition-base);
}
.reverse-explosion__check svg {
  width: 14px;
  height: 14px;
  display: block;
  overflow: visible;
}
.reverse-explosion__check svg path {
  fill: none;
  stroke: var(--noem-gray-500, #94a3b8);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke var(--transition-base);
}
.reverse-explosion__item.is-done .reverse-explosion__check {
  background: #10b981;
  transform: scale(1.08);
  animation: lp-re-pop 420ms var(--ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) 1;
}
.reverse-explosion__item.is-done .reverse-explosion__check svg path {
  stroke: #ffffff;
  animation: lp-re-draw 420ms var(--ease-out-quart, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}

@keyframes lp-re-draw {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0;  }
}
@keyframes lp-re-pop {
  0%   { transform: scale(0.85); }
  55%  { transform: scale(1.18); }
  100% { transform: scale(1.08); }
}

/* Reduced motion: skip chaos offsets, items render ordered and done. */
@media (prefers-reduced-motion: reduce) {
  .reverse-explosion__item {
    transform: none !important;
    opacity: 1 !important;
  }
  .reverse-explosion__item.is-done .reverse-explosion__check svg path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .reverse-explosion__item.is-done .reverse-explosion__check {
    animation: none !important;
    transform: none !important;
  }
}

/* --- 4. Counters v2 --------------------------------------- */

/* Odometer digit flip: each digit column is a 10-digit strip translated
   vertically. JS sets --d on each .lp-odo__col to the target digit 0-9. */
.lp-odo {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lp-odo__col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: baseline;
  text-align: center;
  width: 0.62em; /* good fit for most numeric faces */
}
.lp-odo__strip {
  display: block;
  transform: translateY(calc(var(--d, 0) * -1em));
  transition: transform var(--dur-slower) var(--ease-out-expo);
  will-change: transform;
}
.lp-odo__strip span { display: block; height: 1em; line-height: 1; }
.lp-odo__sep { display: inline-block; } /* comma / dot / $ / % */

/* Number flash: one-shot colored halo when a KPI finishes counting. */
@keyframes lp-flash {
  0%   { text-shadow: 0 0 0   rgba(77,97,254,0);    color: inherit; }
  30%  { text-shadow: 0 0 30px rgba(77,97,254,0.55);
         color: color-mix(in srgb, currentColor 70%, var(--noem-blue)); }
  100% { text-shadow: 0 0 0   rgba(77,97,254,0);    color: inherit; }
}
.lp-flash { animation: lp-flash 900ms var(--ease-out-quint) 1; }

/* --- 5. Micro-interactions -------------------------------- */

/* Magnetic button: JS sets --mx / --my on element during pointermove.  */
[data-lp-magnetic] {
  --mx: 0px; --my: 0px;
  transition: transform var(--dur-slow) var(--ease-spring);
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}
[data-lp-magnetic]:active {
  transition-duration: var(--dur-fast);
}

/* Tilt: JS sets --rx / --ry on pointermove. */
[data-lp-tilt] {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform var(--dur-base) var(--ease-out-quint);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Cursor glow: radial gradient that tracks the pointer inside the element.
   JS sets --cx / --cy as percentages. The gradient is rendered via a
   pseudo-element so it doesn't interfere with existing backgrounds.     */
[data-lp-cursor-glow] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
[data-lp-cursor-glow]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(77, 97, 254, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-quint);
  z-index: 0;
}
[data-lp-cursor-glow]:hover::after { opacity: 1; }
[data-lp-cursor-glow] > * { position: relative; z-index: 1; }

/* Infinite marquee. Wrap content in .lp-marquee > .lp-marquee__track,
   duplicate children via JS (or hand-duplicate) for a seamless loop.    */
.lp-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-marquee__track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: lp-marquee-scroll var(--lp-marquee-speed, 40s) linear infinite;
}
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
@keyframes lp-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Underline-in-view: gradient underline that draws itself once in view. */
.lp-underline-in-view {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.lp-underline-in-view::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -0.12em;
  height: 0.18em;
  background: linear-gradient(90deg, var(--noem-blue), var(--noem-purple));
  border-radius: 2px;
  transition: right var(--dur-slower) var(--ease-out-expo);
}
.lp-underline-in-view.is-revealed::after { right: 0; }

/* Grain overlay: 1KB SVG noise for premium dark sections.
   Opt-in via class on the section.                                        */
.lp-grain {
  position: relative;
  isolation: isolate;
}
.lp-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
.lp-grain > * { position: relative; z-index: 1; }

/* ============================================================
   END MOTION SYSTEM
   ============================================================ */
