/* marketing.css — Lucinity-inspired marketing layout.
   Brand SoT: scadacube-brand/README.md · shared tokens: /css/site.css */

.ld-util-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; min-height: 50vh;
}
body[data-ld-page="error"],
body[data-ld-page="success"] {
  min-height: 100vh; display: flex; flex-direction: column;
}

/* ── Brand wordmark (700/300, -0.3px per brand kit; overrides site.css 600/−0.5px) ── */
.ld-nav .wordmark,
.ld-footer .wordmark,
.ld-page-hero .wordmark {
  letter-spacing: -0.3px;
}

.ld-nav .wm-flow,
.ld-footer .wm-flow {
  font-weight: 700;
}

.ld-nav .wm-view,
.ld-footer .wm-view {
  font-weight: 300;
}

/* Brand palette utility strokes (Grid Blue, Signal Green, Data Yellow, Alert Red) */
.ld-stroke-blue { color: var(--fv-blue); }
.ld-stroke-green { color: var(--fv-green); }
.ld-stroke-yellow { color: var(--fv-yellow); }
.ld-stroke-red { color: var(--fv-red); }

.ld-bar-accent--blue { background: var(--fv-blue); }
.ld-bar-accent--green { background: var(--fv-green); }
.ld-bar-accent--yellow { background: var(--fv-yellow); }

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

.ld-preview-bar {
  background: var(--sc-slate-900, #0f172a);
  color: #e2e8f0;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
  line-height: 1.5;
}

.ld-preview-bar a {
  color: var(--fv-blue-light, #60a5fa);
  font-weight: 600;
  text-decoration: none;
}

.ld-preview-bar a:hover { text-decoration: underline; }

/* ── Mega navigation — taller header + larger logo ── */
.ld-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .ld-nav {
  background: rgba(15, 23, 42, 0.92);
}

.ld-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ld-nav .nav-logo {
  font-size: 28px;
  gap: 14px;
}

.ld-nav .nav-logo-icon {
  width: 56px;
  height: auto;
}

.ld-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.ld-nav-item { position: relative; }

.ld-nav-trigger,
.ld-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.ld-nav-trigger:hover,
.ld-nav-link:hover,
.ld-nav-item:focus-within .ld-nav-trigger {
  color: var(--text);
  background: var(--accent-light);
}

.ld-nav-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.ld-nav-item:focus-within .ld-nav-chevron,
.ld-nav-item:hover .ld-nav-chevron { transform: rotate(180deg); }

.ld-mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 520px;
  max-width: min(92vw, 640px);
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.ld-nav-item:hover .ld-mega,
.ld-nav-item:focus-within .ld-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ld-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ld-mega-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.ld-mega-link:hover { background: var(--accent-light); }

.ld-mega-link strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ld-mega-link span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.ld-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ld-nav-actions .nav-cta {
  padding: 10px 22px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-cta-short { display: none; }

/* Icon theme toggle (compact header on mobile) */
.nav-theme-toggle--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
}

.nav-theme-toggle--icon .nav-theme-icon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .nav-theme-toggle--icon .nav-theme-icon--sun { display: block; }
[data-theme="dark"] .nav-theme-toggle--icon .nav-theme-icon--moon { display: none; }
[data-theme="light"] .nav-theme-toggle--icon .nav-theme-icon--sun { display: none; }
[data-theme="light"] .nav-theme-toggle--icon .nav-theme-icon--moon { display: block; }

.ld-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ld-nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
}

/* ── Hero ── */
.ld-hero {
  padding: 88px 24px 72px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 55%, var(--bg-white) 100%);
}

.ld-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.ld-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fv-green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.ld-hero h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 14ch;
}

.ld-hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 28px;
}

.ld-hero-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 14px;
}

.ld-hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 32px 64px rgba(39, 111, 236, 0.08);
}

.ld-window-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.ld-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ld-window-dots span:nth-child(1) { background: var(--fv-red); }
.ld-window-dots span:nth-child(2) { background: var(--fv-yellow); }
.ld-window-dots span:nth-child(3) { background: var(--fv-green); }

.ld-window-viewport {
  background: #1e293b;
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .ld-window-viewport { background: #0f172a; }

/* ── Section shells ── */
.ld-section { padding: 88px 24px; }
.ld-section--muted { background: var(--bg); }
.ld-section-inner { max-width: 1100px; margin: 0 auto; }

.ld-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.ld-section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.ld-section-head p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Live homepage FAQ section headings (mirrors index.html) */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
}

/* Live homepage FAQ accordion (mirrors index.html) */
.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg-surface);
  transition: box-shadow 0.2s;
}

.faq details:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.faq details[open] { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq details[open] summary::after { content: "\2212"; }

.faq .faq-answer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Three pillars ── */
.ld-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ld-pillar {
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.ld-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ld-pillar h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.ld-pillar p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Split band ── */
.ld-band {
  padding: 72px 24px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
}

.ld-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.ld-band h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ld-band p {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 56ch;
}

.ld-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.ld-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ── Testimonial ── */
.ld-quote-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ld-quote-mark {
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.ld-quote-text {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 28px;
}

.ld-quote-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Platform cards ── */
.ld-platform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ld-platform-card {
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ld-platform-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(39, 111, 236, 0.1);
}

.ld-platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ld-platform-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.ld-platform-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.ld-platform-card a:hover { text-decoration: underline; }

.ld-bar-accent {
  height: 4px;
  width: 48px;
  border-radius: 99px;
  margin-bottom: 20px;
}

/* ── Use-case cards ── */
.ld-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ld-usecase {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  transition: transform 0.2s, border-color 0.2s;
}

.ld-usecase:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.ld-usecase-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.ld-usecase h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.ld-usecase p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.ld-usecase-cta {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Stats strip ── */
.ld-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.ld-stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.ld-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
}

.ld-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Trust duo ── */
.ld-trust-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ld-trust-panel {
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.ld-trust-panel h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.ld-trust-panel p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ld-trust-panel a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.ld-trust-panel a:hover { text-decoration: underline; }

/* ── News teaser ── */
.ld-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ld-news-card {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.ld-news-card:hover { border-color: var(--accent); }

.ld-news-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.ld-news-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ld-news-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .ld-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .ld-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .ld-hero-inner { grid-template-columns: 1fr; }
  .ld-hero h1 { max-width: none; }
  .ld-pillars,
  .ld-platform,
  .ld-usecases,
  .ld-news { grid-template-columns: 1fr; }
  .ld-trust-duo { grid-template-columns: 1fr; }
  .ld-band-inner { grid-template-columns: 1fr; text-align: center; }
  .ld-band p { margin: 0 auto; }

  /* Mega-nav drawer (issue #125) */
  .ld-nav-inner {
    height: 72px;
    padding: 0 16px;
    gap: 12px;
  }

  .ld-nav .nav-logo {
    font-size: 22px;
    min-width: 0;
    flex-shrink: 1;
  }

  .ld-nav .nav-logo-icon {
    width: 44px;
    flex-shrink: 0;
  }

  .ld-nav-menu { display: none; }

  .ld-nav-inner > .ld-nav-actions,
  .ld-nav-inner > .ld-nav-hamburger {
    flex-shrink: 0;
  }

  .ld-nav-inner > .ld-nav-actions {
    margin-left: auto;
  }

  .ld-nav-actions {
    gap: 8px;
  }

  .ld-nav-actions .nav-cta-long { display: none; }
  .ld-nav-actions .nav-cta-short { display: inline; }

  .ld-nav-actions .nav-cta {
    padding: 8px 14px;
    font-size: 14px;
  }

  .ld-nav-hamburger {
    display: block;
  }

  .ld-nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    align-items: stretch;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  }

  .ld-nav-menu.is-open .ld-nav-link,
  .ld-nav-menu.is-open .ld-nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 16px;
  }

  .ld-nav-menu.is-open .ld-mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px 8px;
    display: none;
  }

  .ld-nav-item.is-expanded .ld-mega {
    display: block;
  }

  .ld-nav-item.is-expanded .ld-nav-chevron {
    transform: rotate(180deg);
  }

  .ld-mega-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ld-stats { grid-template-columns: repeat(2, 1fr); }
  .ld-section { padding: 56px 24px; }
  .ld-hero { padding: 56px 24px 48px; }
  .section-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .ld-nav-inner { height: 64px; padding: 0 12px; gap: 8px; }
  .ld-nav .nav-logo { font-size: 20px; gap: 10px; }
  .ld-nav .nav-logo-icon { width: 38px; }
  .ld-nav-menu.is-open { top: 64px; max-height: calc(100vh - 64px); }
  .ld-stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ── Inner page hero (Lucinity product / company pages) ── */
.ld-page-hero {
  padding: 72px 24px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}

.ld-page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
  max-width: 18ch;
  margin: 0 auto 16px;
}

.ld-page-hero .ld-page-hero--wide { max-width: 28ch; }

.ld-page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 24px;
}

.ld-page-hero .ld-eyebrow { justify-content: center; margin-bottom: 16px; }

/* Product page: 3 benefit pillars above fold */
.ld-product-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.ld-benefit-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
}

.ld-benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ld-benefit-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Two-column showcase */
.ld-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ld-showcase.reverse .ld-showcase-text { order: 2; }
.ld-showcase.reverse .ld-showcase-visual { order: 1; }

.ld-showcase-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.ld-showcase-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.ld-showcase-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ld-showcase-list {
  list-style: none;
  padding: 0;
}

.ld-showcase-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}

.ld-showcase-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.ld-showcase-visual,
.ld-placeholder-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ld-placeholder-visual .fv-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Unverified / TBD marketing copy — shown in red until approved */
.ld-copy-placeholder,
.ld-copy-placeholder em,
.ld-prototype-notice {
  color: #dc2626 !important;
}

[data-theme="dark"] .ld-copy-placeholder,
[data-theme="dark"] .ld-copy-placeholder em,
[data-theme="dark"] .ld-prototype-notice {
  color: #f87171 !important;
}

.ld-placeholder-visual strong.ld-copy-placeholder {
  display: block;
  margin-bottom: 4px;
}

/* Platform overview module stack */
.ld-module-stack {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ld-module-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ld-module-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(39, 111, 236, 0.08);
}

.ld-module-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ld-module-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 52ch; }
.ld-module-card .ld-module-cta { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Pricing prototype */
.ld-pricing-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

.ld-billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.ld-billing-toggle label { font-size: 14px; color: var(--text-muted); cursor: pointer; }
.ld-billing-toggle label.active { color: var(--text); font-weight: 600; }

.ld-toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
}

.ld-toggle-switch.on { background: var(--accent); }

.ld-toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.ld-toggle-switch.on::after { transform: translateX(22px); }

.ld-save-badge {
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.ld-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ld-plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ld-plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.ld-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.ld-plan-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ld-plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.ld-plan-price { font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.ld-plan-price .period,
.ld-plan-price .currency { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.ld-plan-price .currency { font-size: 22px; vertical-align: top; }
.ld-plan-price .price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; min-height: 18px; }
.ld-plan-period {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 18px;
}
.ld-plan-period.muted { color: var(--text-muted); background: var(--bg); }
.ld-plan-period.success { color: var(--success-text); background: var(--success-bg); }
.ld-toggle-switch.toggle-switch { /* pricing.js alias */ }
.ld-save-badge { background: var(--success-bg); color: var(--success-text); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.ld-plan-features { list-style: none; flex: 1; margin: 16px 0 20px; font-size: 14px; }
.ld-plan-features li { padding: 5px 0; display: flex; gap: 8px; }
.ld-plan-features li::before { content: "\2713"; color: var(--success); font-weight: 700; }

/* Download cards */
.ld-download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.ld-download-card {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  text-align: center;
  padding: 32px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
}

.ld-download-card.recommended { border-color: var(--accent); }

/* Download page — dynamic release API (download.js) */
.ld-download-status-banner,
.download-status-banner {
  max-width: 720px; margin: 0 auto 32px; padding: 24px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--accent-light); text-align: left;
}
.download-status-banner[data-tone="warn"] { background: var(--warn-bg); border-color: var(--warn-border); }
.download-status-banner[data-tone="success"] { background: var(--success-bg); border-color: rgba(52, 211, 153, 0.35); }
.download-status-banner-inner { display: flex; gap: 20px; align-items: flex-start; }
.download-status-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-white); color: var(--accent);
}
.download-status-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.download-status-body { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.download-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.download-card-status { font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 0 0 12px; color: var(--accent); }
.ld-download-card[data-availability="unavailable"] .download-card-status { color: var(--warn); }
a.download-btn-pending, a.download-btn-pending:hover {
  background: var(--bg); color: var(--text-muted); border: 1px dashed var(--border);
  cursor: not-allowed; pointer-events: none; box-shadow: none;
}
.ld-version-info { text-align: center; padding: 24px; font-size: 13px; color: var(--text-muted); }
.ld-version-info a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ld-checksum-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px;
  word-break: break-all; color: var(--text-muted); margin: 12px 0;
}

/* Changelog timeline */
.ld-changelog { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }

.ld-release {
  position: relative;
  padding: 0 0 40px 28px;
  border-left: 2px solid var(--border);
}

.ld-release::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-white);
}

.ld-release-version {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 10px;
}

.ld-release-date { font-size: 13px; color: var(--text-tertiary); }
.ld-release-body { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-top: 12px; }
.ld-release-body ul { margin: 8px 0 8px 20px; }

/* Resource / case study grid */
.ld-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.ld-resource-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: border-color 0.2s;
}

.ld-resource-card:hover { border-color: var(--accent); }
.ld-resource-card h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px; }
.ld-resource-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.ld-resource-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

/* Contact / demo form */
.ld-form-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.ld-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ld-form input,
.ld-form textarea,
.ld-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--bg-white);
  color: var(--text);
}

.ld-form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.ld-prototype-notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 24px;
  text-align: center;
}

/* CTA band (product pages) */
.ld-cta-band {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg);
}

.ld-cta-band h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.ld-cta-band p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ld-footer-tagline { font-size: 12px; color: var(--text-muted); margin-top: 8px; max-width: 280px; }
.ld-footer-demo-note { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; max-width: 280px; }
.ld-footer-demo-note a { color: var(--accent); }

.ld-preview-bar code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .ld-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-product-benefits,
  .ld-showcase,
  .ld-resource-grid { grid-template-columns: 1fr; }
  .ld-showcase.reverse .ld-showcase-text,
  .ld-showcase.reverse .ld-showcase-visual { order: unset; }
  .ld-module-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ld-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ── Dark mode (uses site.css semantic tokens + layout overrides) ── */
[data-theme="dark"] .ld-preview-bar {
  background: #020617;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .ld-preview-bar code {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ld-hero {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 50%, var(--bg-white) 100%);
}

[data-theme="dark"] .ld-page-hero {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}

[data-theme="dark"] .ld-hero-visual {
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .ld-mega {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .ld-platform-card:hover {
  box-shadow: 0 16px 40px rgba(39, 111, 236, 0.18);
}

[data-theme="dark"] .faq details:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .faq details[open] {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .ld-band {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .ld-placeholder-visual {
  background: var(--bg-surface);
}

[data-theme="dark"] .ld-prototype-notice {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: var(--warn-border);
}

[data-theme="dark"] .ld-nav-menu.is-open {
  background: var(--bg-white);
}

[data-theme="dark"] .ld-window-viewport text {
  fill: var(--text-tertiary);
}

[data-theme="dark"] .ld-toggle-switch::after {
  background: #f1f5f9;
}

[data-theme="dark"] .ld-form input,
[data-theme="dark"] .ld-form textarea,
[data-theme="dark"] .ld-form select {
  background: var(--bg-surface);
  border-color: var(--border);
}

[data-theme="dark"] .ld-footer-demo-note a {
  color: var(--fv-blue-light);
}

