.module-product {
  --module: #4f46e5;
  --module-dark: #3730a3;
  --module-soft: #eef2ff;
  --module-border: #c7d2fe;
  --module-glow: rgba(79, 70, 229, 0.17);
  color: var(--surface-900);
  background: #fff;
}

.module-product.theme-kp {
  --module: #059669;
  --module-dark: #047857;
  --module-soft: #ecfdf5;
  --module-border: #a7f3d0;
  --module-glow: rgba(5, 150, 105, 0.16);
}

.module-product.theme-converter {
  --module: #0284c7;
  --module-dark: #0369a1;
  --module-soft: #eff6ff;
  --module-border: #bae6fd;
  --module-glow: rgba(2, 132, 199, 0.17);
}

.module-product .nav-cta .btn-primary,
.module-product .mp-btn-primary {
  background: var(--module);
  border-color: var(--module);
  box-shadow: 0 8px 24px var(--module-glow);
}

.module-product .nav-cta .btn-primary:hover,
.module-product .mp-btn-primary:hover {
  background: var(--module-dark);
  border-color: var(--module-dark);
}

.mp-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 82px;
  background:
    radial-gradient(circle at 13% 18%, var(--module-glow), transparent 34%),
    radial-gradient(circle at 88% 74%, var(--module-glow), transparent 31%),
    linear-gradient(180deg, var(--module-soft), #fff 78%);
}

.mp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.mp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 62px;
  align-items: center;
}

.mp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--module-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--module-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mp-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--module);
  box-shadow: 0 0 0 4px var(--module-soft);
}

.mp-title {
  max-width: 730px;
  margin-top: 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.mp-title .accent { color: var(--module); }

.mp-lead {
  max-width: 670px;
  margin-top: 24px;
  color: var(--surface-600);
  font-size: 18px;
  line-height: 1.72;
}

.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mp-actions .btn { min-height: 50px; }

.mp-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 27px;
  color: var(--surface-600);
  font-size: 12.5px;
  font-weight: 650;
}

.mp-points span::before {
  content: '✓';
  margin-right: 7px;
  color: var(--module);
  font-weight: 900;
}

.mp-app {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 75px rgba(15, 23, 42, 0.18), 0 0 0 10px rgba(255, 255, 255, 0.34);
  isolation: isolate;
}

.mp-appbar {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--surface-200);
}

.mp-appdots { display: flex; gap: 6px; }
.mp-appdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-200); }
.mp-appdots i:first-child { background: #fb7185; }
.mp-appdots i:nth-child(2) { background: #fbbf24; }
.mp-appdots i:nth-child(3) { background: #34d399; }
.mp-appname { color: var(--surface-600); font-size: 12px; font-weight: 750; }

.mp-appbody {
  min-height: 460px;
  display: grid;
  grid-template-columns: 154px 1fr;
  background: #f8fafc;
}

.mp-sidebar {
  padding: 21px 13px;
  background: #0f172a;
  color: #fff;
}

.mp-side-brand { margin: 0 8px 22px; font-size: 16px; font-weight: 850; letter-spacing: -0.03em; }
.mp-side-brand b { color: var(--module); }
.mp-side-label { display: block; margin: 18px 8px 7px; color: #94a3b8; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.mp-side-item { display: flex; align-items: center; gap: 8px; margin: 3px 0; padding: 8px 9px; border-radius: 7px; color: #cbd5e1; font-size: 11px; font-weight: 650; }
.mp-side-item.active { background: color-mix(in srgb, var(--module) 25%, transparent); color: #fff; }
.mp-side-icon { display: inline-flex; width: 15px; height: 15px; flex: 0 0 15px; align-items: center; justify-content: center; }
.mp-side-icon svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mp-workspace { padding: 23px; overflow: hidden; }
.mp-worktop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mp-worktop small { color: var(--module); font-size: 9px; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.mp-worktop h2 { margin-top: 5px; font-size: 24px; letter-spacing: -0.04em; }
.mp-worktop p { margin-top: 5px; color: var(--surface-600); font-size: 10.5px; }
.mp-app-button { padding: 9px 13px; border-radius: 8px; background: var(--module); color: #fff; font-size: 10px; font-weight: 800; }

.mp-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 20px; }
.mp-stat { min-width: 0; padding: 13px; border: 1px solid var(--surface-200); border-radius: 10px; background: #fff; }
.mp-stat span { display: block; color: var(--surface-600); font-size: 9px; white-space: nowrap; }
.mp-stat strong { display: block; margin-top: 5px; color: var(--surface-900); font-size: 18px; line-height: 1.05; white-space: nowrap; }
.mp-stat em { display: block; margin-top: 4px; color: var(--module-dark); font-size: 8px; font-style: normal; font-weight: 650; }

.mp-panel { margin-top: 11px; border: 1px solid var(--surface-200); border-radius: 11px; overflow: hidden; background: #fff; }
.mp-panelhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--surface-100); }
.mp-panelhead strong { font-size: 11px; }
.mp-panelhead span { color: var(--module-dark); font-size: 9px; font-weight: 750; }
.mp-row { display: grid; grid-template-columns: 1.35fr 0.75fr 0.8fr 0.55fr; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--surface-100); font-size: 9.25px; color: var(--surface-600); }
.mp-row:last-child { border-bottom: 0; }
.mp-row strong { color: var(--surface-900); font-size: 9.75px; }
.mp-row .money { text-align: right; color: var(--module-dark); font-weight: 750; }
.mp-status { justify-self: start; padding: 3px 6px; border-radius: 999px; color: var(--module-dark); background: var(--module-soft); font-size: 8px; font-weight: 800; }

.mp-flowbox { margin-top: 20px; padding: 18px; border: 1px dashed var(--module-border); border-radius: 13px; background: var(--module-soft); text-align: center; }
.mp-flowbox strong { display: block; font-size: 12px; }
.mp-flowbox span { display: block; margin-top: 5px; color: var(--surface-600); font-size: 9.5px; }
.mp-flowline { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 8px; margin-top: 13px; }
.mp-file { padding: 13px 10px; border: 1px solid var(--surface-200); border-radius: 9px; background: #fff; }
.mp-file b { display: block; font-size: 10px; }
.mp-file small { color: var(--surface-600); font-size: 8.5px; }
.mp-arrow { color: var(--module); font-size: 20px; font-weight: 800; }

.mp-trust {
  border-top: 1px solid var(--surface-100);
  border-bottom: 1px solid var(--surface-100);
  background: #fff;
}
.mp-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mp-trust-item { padding: 23px 25px; border-right: 1px solid var(--surface-100); }
.mp-trust-item:last-child { border-right: 0; }
.mp-trust-item strong { display: block; font-size: 14px; }
.mp-trust-item span { display: block; margin-top: 5px; color: var(--surface-500); font-size: 12px; line-height: 1.5; }

.mp-section { padding: 96px 0; }
.mp-section.soft { background: var(--surface-50); }
.mp-section-head { max-width: 720px; margin-bottom: 42px; }
.mp-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.mp-eyebrow { color: var(--module); font-size: 10px; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.mp-section-title { margin-top: 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.044em; }
.mp-section-sub { margin-top: 16px; color: var(--surface-600); font-size: 16px; line-height: 1.7; }

.mp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-step { position: relative; padding: 28px 25px; border: 1px solid var(--surface-200); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.mp-step-no { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--module-soft); color: var(--module-dark); font-size: 12px; font-weight: 850; }
.mp-step h3 { margin-top: 20px; font-size: 18px; letter-spacing: -0.02em; }
.mp-step p { margin-top: 9px; color: var(--surface-600); font-size: 14px; line-height: 1.65; }

.mp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-feature { padding: 25px; border: 1px solid var(--surface-200); border-radius: 18px; background: #fff; box-shadow: var(--shadow-xs); }
.mp-feature-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--module-soft); color: var(--module-dark); font-size: 17px; font-weight: 900; }
.mp-feature h3 { margin-top: 17px; font-size: 17px; letter-spacing: -0.02em; }
.mp-feature p { margin-top: 9px; color: var(--surface-600); font-size: 13.5px; line-height: 1.62; }

.mp-usecase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: center;
}
.mp-usecase-copy ul { display: grid; gap: 14px; margin-top: 25px; padding: 0; list-style: none; }
.mp-usecase-copy li { position: relative; padding-left: 28px; color: var(--surface-700); font-size: 14px; line-height: 1.55; }
.mp-usecase-copy li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--module); font-weight: 900; }
.mp-usecase-card { padding: 28px; border: 1px solid var(--module-border); border-radius: 22px; background: linear-gradient(145deg, #fff, var(--module-soft)); box-shadow: 0 24px 55px var(--module-glow); }
.mp-usecase-card h3 { font-size: 20px; }
.mp-usecase-card p { margin-top: 9px; color: var(--surface-600); font-size: 14px; line-height: 1.65; }
.mp-audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.mp-audience span { padding: 12px 13px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 10px; background: rgba(255, 255, 255, 0.75); color: var(--surface-700); font-size: 12px; font-weight: 650; }

.mp-faq { max-width: 840px; margin: 0 auto; }
.mp-faq details { border-bottom: 1px solid var(--surface-200); }
.mp-faq summary { position: relative; padding: 22px 42px 22px 0; cursor: pointer; list-style: none; color: var(--surface-900); font-size: 15px; font-weight: 750; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary::after { content: '+'; position: absolute; right: 5px; top: 18px; color: var(--module); font-size: 24px; font-weight: 400; }
.mp-faq details[open] summary::after { content: '−'; }
.mp-faq p { padding: 0 42px 22px 0; color: var(--surface-600); font-size: 14px; line-height: 1.72; }

.mp-final { padding: 88px 0; }
.mp-final-card { position: relative; overflow: hidden; padding: 56px; border-radius: 25px; background: #0f172a; color: #fff; }
.mp-final-card::after { content: ''; position: absolute; width: 340px; height: 340px; right: -100px; top: -150px; border-radius: 50%; background: var(--module); opacity: 0.2; filter: blur(5px); }
.mp-final-card > * { position: relative; z-index: 1; }
.mp-final-card h2 { max-width: 720px; color: #fff; font-size: clamp(32px, 4vw, 47px); line-height: 1.08; letter-spacing: -0.04em; }
.mp-final-card p { max-width: 690px; margin-top: 15px; color: #cbd5e1; font-size: 16px; line-height: 1.65; }
.mp-final-card .mp-actions { margin-top: 25px; }
.mp-final-card .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.mp-final-card .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.42); }

.mp-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.mp-related a { padding: 8px 12px; border: 1px solid var(--surface-200); border-radius: 999px; color: var(--surface-600); background: #fff; font-size: 11px; font-weight: 700; }
.mp-related a:hover { border-color: var(--module-border); color: var(--module-dark); }

@media (max-width: 1040px) {
  .mp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mp-hero-copy { max-width: 800px; }
  .mp-app { max-width: 760px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .mp-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-trust-item:nth-child(2) { border-right: 0; }
  .mp-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--surface-100); }
  .mp-steps, .mp-feature-grid { grid-template-columns: 1fr; }
  .mp-usecase { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .mp-hero { padding: 78px 0 60px; }
  .mp-title { font-size: 42px; }
  .mp-lead { font-size: 16px; }
  .mp-actions { flex-direction: column; }
  .mp-actions .btn { width: 100%; }
  .mp-appbody { min-height: 390px; grid-template-columns: 1fr; }
  .mp-sidebar { display: none; }
  .mp-workspace { padding: 17px; }
  .mp-statgrid { grid-template-columns: repeat(2, 1fr); }
  .mp-stat:nth-child(n+3) { display: none; }
  .mp-row { grid-template-columns: 1.2fr 0.8fr 0.65fr; }
  .mp-row > :nth-child(3) { display: none; }
  .mp-trust-grid { grid-template-columns: 1fr; }
  .mp-trust-item { border-right: 0; border-bottom: 1px solid var(--surface-100); }
  .mp-trust-item:last-child { border-bottom: 0; }
  .mp-section { padding: 72px 0; }
  .mp-final { padding: 66px 0; }
  .mp-final-card { padding: 36px 24px; }
  .mp-audience { grid-template-columns: 1fr; }
}
