/**
 * Landing pages — dark, compact design for audience-specific pages
 * Used by: cad-interoperability, cnc-manufacturing, 3d-printing,
 *          model-libraries, game-dev, cad-alternative, cad-tutorials
 * Palette: uses --accent (#10B981) from style.css
 */

.lp-wrap {
  padding: 20px 0 40px 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────── */

.lp-hero {
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid #1E2D40;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.lp-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.lp-hero .lp-tagline {
  font-size: 15px;
  color: #E2E8F0;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.lp-hero .lp-sub {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 20px 0;
}

.lp-cta {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  color: #fff !important;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.lp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lp-cta-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--accent) !important;
  background: transparent;
  border: 1px solid var(--accent);
  margin-left: 12px;
}

.lp-cta-secondary:hover {
  transform: translateY(-1px);
  background: rgba(16, 185, 129, 0.08);
}

.lp-note {
  font-size: 12px;
  color: #64748B;
  margin-top: 12px;
}

/* ── Image section ────────────────────────────────── */

.lp-img-section {
  margin-bottom: 20px;
}

.lp-img-section img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ── Section cards ────────────────────────────────── */

.lp-section {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid #1E2D40;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.lp-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #1E2D40;
}

/* ── Steps (3-step flow) ──────────────────────────── */

.lp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.lp-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.lp-step-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.lp-step strong {
  color: #E2E8F0;
  font-size: 13px;
}

.lp-step p {
  color: #94A3B8;
  font-size: 12px;
  margin: 4px 0 0 0;
}

/* ── Feature grid ─────────────────────────────────── */

.lp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-feature {
  flex: 1 1 calc(50% - 8px);
  min-width: 200px;
  padding: 16px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid #1E2D40;
  border-radius: 6px;
}

.lp-feature-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.lp-feature strong {
  color: #E2E8F0;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.lp-feature p {
  color: #94A3B8;
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

/* ── Table ────────────────────────────────────────── */

.lp-table-wrap {
  overflow-x: auto;
}

.lp-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.lp-table th {
  text-align: left;
  padding: 10px 12px;
  color: #fff;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  border-bottom: 2px solid var(--accent);
}

.lp-table td {
  padding: 8px 12px;
  color: #E2E8F0;
  border-top: 1px solid #1E2D40;
}

.lp-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.lp-table td.lp-yes { color: #34D399; }
.lp-table td.lp-no  { color: #EF4444; }

/* ── Before / After ───────────────────────────────── */

.lp-before-after {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.lp-ba {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
}

.lp-ba.before {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #EF4444;
}

.lp-ba.before h3 { color: #F87171; }

.lp-ba.after {
  background: rgba(16, 185, 129, 0.12);
  border-left: 4px solid #10B981;
}

.lp-ba.after h3 { color: #34D399; }

.lp-ba h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.lp-ba p, .lp-ba ul {
  margin: 0;
  color: #94A3B8;
  line-height: 1.5;
}

.lp-ba ul {
  padding-left: 16px;
  font-size: 12px;
}

.lp-ba ul li {
  margin-bottom: 4px;
}

/* ── Bottom CTA ───────────────────────────────────── */

.lp-cta-bottom {
  text-align: center;
  padding: 24px 0 10px 0;
}

.lp-cta-bottom .lp-note {
  margin-top: 12px;
}

/* ── Code blocks ──────────────────────────────────── */

.lp-code { color: var(--accent); font-family: monospace; }

.lp-code-block {
  background: #0D1321;
  border: 1px solid #1E2D40;
  border-radius: 6px;
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.7;
  overflow-x: auto;
}

.lp-comment { color: #64748B; }

/* ── Accent helpers ───────────────────────────────── */

.lp-accent-text { color: var(--accent); }
.lp-accent-link { color: var(--accent); text-decoration: none; }
.lp-accent-link:hover { text-decoration: underline; }

/* ── Format strip (horizontal badges) ─────────────── */

.lp-format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.lp-format-strip .badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Callout box ──────────────────────────────────── */

.lp-callout {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 12px;
}

.lp-callout strong {
  color: #34D399;
}

.lp-callout p {
  color: #94A3B8;
  font-size: 13px;
  margin: 4px 0 0 0;
  line-height: 1.5;
}

/* ── Price comparison ─────────────────────────────── */

.lp-price-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.lp-price-card {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.lp-price-card.competitor {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.lp-price-card.ours {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid var(--accent);
}

.lp-price-card .lp-price {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
}

.lp-price-card.competitor .lp-price {
  color: #EF4444;
  text-decoration: line-through;
}

.lp-price-card.ours .lp-price {
  color: #34D399;
}

.lp-price-card .lp-price-label {
  font-size: 12px;
  color: #94A3B8;
}

.lp-price-card .lp-price-name {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 600px) {
  .lp-hero { padding: 20px 16px; }
  .lp-section { padding: 16px; }
  .lp-steps { flex-direction: column; }
  .lp-before-after { flex-direction: column; }
  .lp-features { flex-direction: column; }
  .lp-feature { flex: 1 1 100%; }
  .lp-price-compare { flex-direction: column; }
  .lp-cta-secondary { margin-left: 0; margin-top: 8px; }
}
