/**
 * Profit Alerts — public landing (aligned with dashboard: terminal, lead, feed).
 * Loaded only on public_dashboard.html. Keep animations subtle; respect reduced motion.
 */

.ld-root {
  --ld-accent: #38bdf8;
  --ld-accent-soft: rgba(56, 189, 248, 0.14);
  --ld-line: rgba(71, 85, 105, 0.38);
  --ld-surface: rgba(15, 23, 42, 0.55);
  --ld-elevated: rgba(11, 15, 22, 0.92);
}

.ld-shell {
  background: linear-gradient(180deg, #090c11 0%, #0d1219 38%, #090c11 100%);
  min-height: 100vh;
}

.ld-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.04), transparent 40%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.ld-main {
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.ld-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07) !important;
  background: rgba(9, 12, 17, 0.78) !important;
  backdrop-filter: blur(18px) saturate(160%);
}

.ld-nav .btn-primary {
  font-weight: 650;
  padding: 0.42rem 1.05rem;
  border-radius: 10px !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ld-nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.ld-nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.86) !important;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.ld-nav-link:hover {
  color: #fff !important;
  background: rgba(148, 163, 184, 0.08);
}

/* —— Section rhythm —— */
.ld-section {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.ld-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.92);
  margin-bottom: 0.65rem;
}

.ld-h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #f8fafc;
  margin: 0 0 0.65rem;
}

.ld-prose {
  color: rgba(148, 163, 184, 0.95);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  max-width: 36rem;
  margin: 0;
}

.ld-prose--wide {
  max-width: 40rem;
}

/* —— Hero —— */
.ld-hero-title {
  font-size: clamp(2.35rem, 5.8vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #f8fafc;
  margin: 0 0 1rem;
}

.ld-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ld-hero-urgency {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.95);
  margin: 0 0 0.45rem;
  padding: 0.28rem 0.5rem;
  display: inline-block;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.22);
}

.ld-hero-fomo {
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  color: rgba(186, 230, 253, 0.92);
  margin: 0 0 0.85rem;
  max-width: 28rem;
}

.ld-hero-sub {
  color: rgba(203, 213, 225, 0.88);
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.55;
  max-width: 26rem;
  margin: 0 0 1.35rem;
}

.ld-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.ld-btn-primary {
  font-weight: 650;
  padding: 0.78rem 1.5rem;
  border-radius: 11px !important;
  border: none;
  box-shadow: 0 4px 22px rgba(37, 99, 235, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ld-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.38);
}

.ld-btn-ghost {
  font-weight: 650;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.92) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    gap 0.2s ease;
}

.ld-btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.45);
  color: #fff !important;
  gap: 0.55rem;
}

.ld-hero-note {
  font-size: 0.8rem;
  color: rgba(100, 116, 139, 0.95);
  max-width: 34rem;
  line-height: 1.45;
  margin: 0;
}

.ld-cred-strip {
  display: grid;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(71, 85, 105, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .ld-cred-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ld-cred-item {
  padding: 1rem 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 42%),
    rgba(15, 23, 42, 0.68);
}

.ld-cred-item__k {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.92);
  margin-bottom: 0.45rem;
}

.ld-cred-item__v {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.ld-cred-item__sub {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
}

/* —— Product frame (matches dashboard DNA) —— */
.ld-frame {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(165deg, rgba(18, 24, 34, 0.96) 0%, rgba(9, 12, 17, 0.99) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 0 1px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  position: relative;
}

.ld-frame--hero {
  transform: scale(1.02);
  transform-origin: top center;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.22),
    0 0 64px rgba(56, 189, 248, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 1199.98px) {
  .ld-frame--hero {
    transform: none;
  }
}

.ld-frame-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.14), transparent 65%);
  pointer-events: none;
}

.ld-ms {
  position: relative;
  padding: 0.55rem 0.85rem 0.5rem;
  border-bottom: 1px solid var(--ld-line);
  background: rgba(9, 12, 17, 0.5);
}

.ld-ms-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
}

.ld-ms-urgency-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
  margin-bottom: 0.45rem;
}

.ld-ms-chip {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.16rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: rgba(203, 213, 225, 0.9);
}

.ld-ms-chip--impact {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.35);
}

.ld-ms-chip--sig {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(6, 78, 59, 0.3);
}

.ld-ms-chip--time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(12, 74, 110, 0.28);
}

.ld-ms-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.ld-ms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
  animation: ld-pulse 2.5s ease-in-out infinite;
}

.ld-ms-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 0.5rem;
}

@media (min-width: 480px) {
  .ld-ms-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.55fr) minmax(0, 0.55fr) minmax(0, 0.65fr);
    align-items: end;
  }

  .ld-ms-row--core {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 0.65fr) minmax(0, 0.55fr);
  }
}

.ld-ms-cell-label {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 0.08rem;
}

.ld-ms-signal {
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #86efac;
  line-height: 1.1;
}

.ld-ms-signal--hero {
  font-size: clamp(1rem, 2.6vw, 1.28rem);
  letter-spacing: -0.035em;
}

.ld-ms-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e2e8f0;
}

.ld-ms-num--hero {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #e0f2fe;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.2);
}

.ld-ms-num__pct {
  font-size: 0.55em;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 0.04em;
}

.ld-ms-num--time {
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.95);
}

.ld-ms-tape-chip {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(51, 65, 85, 0.38);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbf7d0;
}

.ld-ms-suggested {
  margin-top: 0.45rem;
  padding: 0.45rem 0.5rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.55) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.ld-ms-suggested__label {
  display: block;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 0.35rem;
}

.ld-ms-stance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.ld-ms-stance {
  text-align: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: rgba(148, 163, 184, 0.75);
  opacity: 0.75;
}

.ld-ms-stance--opp.is-active {
  opacity: 1;
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(6, 78, 59, 0.28);
}

.ld-ms-stance--risk.is-active {
  opacity: 1;
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.26);
}

.ld-ms-stance--obs.is-active {
  opacity: 1;
  color: #e2e8f0;
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(30, 58, 138, 0.22);
}

.ld-ms-pill {
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 7px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.22);
}

.ld-ms-line {
  margin: 0.4rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(51, 65, 85, 0.35);
  font-size: 0.65rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.85);
}

.ld-story {
  position: relative;
  margin: 0;
  padding: 1rem 1.05rem 1rem 1.15rem;
  border-bottom: 1px solid var(--ld-line);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.28) 0%, rgba(15, 23, 42, 0.62) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ld-story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, #4ade80, rgba(22, 101, 52, 0.85));
}

.ld-story-k {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 0.25rem;
}

.ld-story-title {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 750;
  color: #f8fafc;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.ld-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.ld-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
}

.ld-why {
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.9);
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(71, 85, 105, 0.35);
}

.ld-why-k {
  display: block;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.95);
  margin-bottom: 0.2rem;
}

.ld-feed {
  padding: 0.65rem 0.85rem 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.ld-feed-row {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.4);
  padding: 0.55rem 0.65rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ld-feed-row:hover {
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateX(2px);
}

.ld-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.ld-pill-stance {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.32rem;
  border-radius: 5px;
  border: 1px solid transparent;
}

.ld-pill-stance--risk {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.28);
}

.ld-pill-stance--opp {
  color: #bbf7d0;
  background: rgba(6, 78, 59, 0.25);
  border-color: rgba(52, 211, 153, 0.28);
}

.ld-pill-stance--neu {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.35);
  border-color: rgba(148, 163, 184, 0.2);
}

.ld-feed-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  margin: 0;
}

.ld-mono-muted {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.9);
}

/* —— Value cards —— */
.ld-value-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ld-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .ld-value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ld-value-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.4);
  padding: 1.35rem 1.25rem;
  height: 100%;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.ld-value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.ld-value-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--ld-accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  margin-bottom: 1rem;
}

.ld-value-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.ld-value-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
  margin: 0;
}

/* —— Wide preview —— */
.ld-preview-panel {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(9, 12, 17, 0.65) 100%);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}

.ld-preview-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
}

.ld-example {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.56) 0%, rgba(9, 12, 17, 0.72) 100%);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.ld-example__head {
  margin-bottom: 1.25rem;
}

.ld-example__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .ld-example__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ld-example__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ld-example__step {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(71, 85, 105, 0.3);
  background: rgba(15, 23, 42, 0.52);
  padding: 1rem 1rem 1.05rem;
  min-height: 100%;
}

.ld-example__k {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(12, 74, 110, 0.18);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 0.85rem;
}

.ld-example__step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 0.45rem;
}

.ld-example__step p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.94);
}

.ld-callouts {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ld-callouts {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.ld-annotate {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.85);
  background: rgba(12, 74, 110, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  pointer-events: none;
}

/* —— How it works —— */
.ld-steps {
  display: grid;
  gap: 1rem;
  counter-reset: ldstep;
}

@media (min-width: 768px) {
  .ld-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ld-step {
  position: relative;
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(71, 85, 105, 0.28);
  background: rgba(15, 23, 42, 0.35);
  transition: border-color 0.2s ease;
}

.ld-step:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

.ld-step::before {
  counter-increment: ldstep;
  content: counter(ldstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  margin-bottom: 0.75rem;
}

.ld-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.4rem;
}

.ld-step p {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.5;
  margin: 0;
}

/* —— Benefit band —— */
.ld-benefit {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background:
    radial-gradient(ellipse 55% 80% at 0% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 70% at 100% 80%, rgba(52, 211, 153, 0.06), transparent 45%),
    rgba(15, 23, 42, 0.45);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.ld-benefit ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .ld-benefit ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ld-benefit li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
}

.ld-benefit li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* —— Final CTA —— */
.ld-cta-final {
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(ellipse 70% 80% at 15% 10%, rgba(14, 165, 233, 0.12), transparent 52%),
    radial-gradient(ellipse 55% 70% at 92% 88%, rgba(16, 185, 129, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(9, 12, 17, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.ld-cta-final .ld-btn-primary {
  width: 100%;
}

.ld-cta-final .ld-btn-ghost {
  width: 100%;
  justify-content: center;
}

/* —— Motion (respect reduced motion) —— */
@keyframes ld-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes ld-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ld-reveal {
  opacity: 0;
  animation: ld-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ld-d1 {
  animation-delay: 0.08s;
}
.ld-d2 {
  animation-delay: 0.16s;
}
.ld-d3 {
  animation-delay: 0.24s;
}
.ld-d4 {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .ld-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ld-ms-dot {
    animation: none;
  }
  .ld-btn-primary:hover,
  .ld-btn-ghost:hover,
  .ld-value-card:hover,
  .ld-feed-row:hover {
    transform: none;
  }
}

/* —— Mobile: nav wrap, no horizontal scroll, full-width CTAs —— */
@media (max-width: 991.98px) {
  .ld-root.ld-shell,
  body.ld-root {
    overflow-x: clip;
  }

  .ld-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.75rem;
  }

  .ld-nav-actions {
    width: 100%;
    justify-content: flex-start !important;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    gap: 0.5rem !important;
  }

  .ld-nav-cta {
    margin-left: auto;
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ld-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .ld-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.45rem) !important;
    line-height: 1.08;
  }

  .ld-hero-sub {
    font-size: 1rem !important;
  }

  .ld-main.app-main {
    padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
  }

  .ld-cta-row {
    flex-direction: column;
    align-items: stretch !important;
  }

  .ld-cta-row .ld-btn-primary,
  .ld-cta-row .ld-btn-ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .ld-frame {
    max-width: 100%;
  }
}

html[data-theme="light"] .ld-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

html[data-theme="light"] .ld-shell::before {
  opacity: 0.35;
}

html[data-theme="light"] .ld-hero-title,
html[data-theme="light"] .ld-h2,
html[data-theme="light"] .ld-story-title,
html[data-theme="light"] .ld-value-card h3,
html[data-theme="light"] .ld-step h3 {
  color: #0f172a;
}

html[data-theme="light"] .ld-hero-sub,
html[data-theme="light"] .ld-prose,
html[data-theme="light"] .ld-value-card p,
html[data-theme="light"] .ld-step p {
  color: #475569;
}

html[data-theme="light"] .ld-frame,
html[data-theme="light"] .ld-preview-panel,
html[data-theme="light"] .ld-value-card,
html[data-theme="light"] .ld-step,
html[data-theme="light"] .ld-benefit {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .ld-ms,
html[data-theme="light"] .ld-story,
html[data-theme="light"] .ld-feed-row {
  background: rgba(248, 250, 252, 0.95);
}

/* —— Brand mark (navbar logo) —— */
.ld-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.ld-brand-name {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.ld-brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  opacity: 0.82;
  color: rgba(148, 163, 184, 0.9);
}

/* —— Pricing plans —— */
.ld-plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ld-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.ld-plan-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(155deg, rgba(16, 22, 36, 0.82) 0%, rgba(9, 12, 22, 0.92) 100%);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ld-plan-card:hover {
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.ld-plan-card--pro {
  border-color: rgba(56, 189, 248, 0.32);
  background: linear-gradient(155deg, rgba(14, 30, 54, 0.92) 0%, rgba(8, 14, 28, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.35);
}

.ld-plan-card--pro:hover {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.18),
    0 28px 72px rgba(0, 0, 0, 0.42);
}

.ld-plan-card__popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.ld-plan-card__header {
  margin-bottom: 1.25rem;
}

.ld-plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 7px;
  margin-bottom: 0.85rem;
}

.ld-plan-badge--free {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ld-plan-badge--pro {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.ld-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.ld-plan-price__amount {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f8fafc;
  line-height: 1;
}

.ld-plan-price__period {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
}

.ld-plan-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
  margin: 0;
}

.ld-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.ld-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ld-plan-feature--ok {
  color: rgba(226, 232, 240, 0.92);
}

.ld-plan-feature--off {
  color: rgba(100, 116, 139, 0.75);
}

.ld-plan-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #34d399;
}

.ld-plan-x {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: rgba(100, 116, 139, 0.6);
}

.ld-plan-cta {
  margin-top: auto;
}

.ld-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.15s ease;
}

.ld-plan-btn--free {
  background: rgba(51, 65, 85, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0 !important;
}

.ld-plan-btn--free:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(148, 163, 184, 0.42);
  color: #fff !important;
  transform: translateY(-1px);
}

.ld-plan-btn--pro {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.32);
}

.ld-plan-btn--pro:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(14, 165, 233, 0.42);
  color: #fff !important;
}

.ld-plan-btn--pro:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.ld-plan-fine {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(100, 116, 139, 0.88);
  margin: 0.65rem 0 0;
}

/* —— FAQ —— */
.ld-plans-faq {
  border-top: 1px solid rgba(71, 85, 105, 0.22);
  padding-top: 3rem;
}

.ld-faq-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .ld-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ld-faq-item {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(71, 85, 105, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

.ld-faq-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.ld-faq-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.95);
  margin: 0;
}

/* —— Footer —— */
.ld-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(71, 85, 105, 0.18);
  text-align: center;
}

.ld-footer__legal {
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(100, 116, 139, 0.88);
  max-width: 42rem;
  margin: 0 auto 0.5rem;
}

.ld-footer__copy {
  font-size: 0.72rem;
  color: rgba(71, 85, 105, 0.72);
  margin: 0;
}

/* —— Light mode overrides for new components —— */
html[data-theme="light"] .ld-plan-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .ld-plan-card--pro {
  background: linear-gradient(155deg, rgba(224, 242, 254, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(14, 165, 233, 0.3);
}

html[data-theme="light"] .ld-plan-price__amount,
html[data-theme="light"] .ld-plan-feature--ok,
html[data-theme="light"] .ld-faq-item h3 {
  color: #0f172a;
}

html[data-theme="light"] .ld-plan-desc,
html[data-theme="light"] .ld-faq-item p {
  color: #475569;
}

html[data-theme="light"] .ld-plan-btn--free {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(71, 85, 105, 0.25);
  color: #334155 !important;
}

html[data-theme="light"] .ld-plan-btn--free:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .ld-faq-item {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(71, 85, 105, 0.14);
}

html[data-theme="light"] .ld-footer__legal,
html[data-theme="light"] .ld-footer__copy,
html[data-theme="light"] .ld-plan-fine {
  color: #94a3b8;
}
