/* =========================================================================
   Mankai CRM product landing (site-within-site). No glass, minimal chrome.
   Scoped to .ep-mankai-shell
   ========================================================================= */

.ep-mankai-shell {
  padding-top: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mk-skip {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.mk-skip:focus {
  left: 16px;
  top: 16px;
}

/* ----- Header ----- */
.mk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.mk-header-scrolled {
  background: var(--bg);
}

:root[data-theme="light"] .ep-mankai-shell .mk-header,
body.ep-light.ep-mankai-shell .mk-header {
  background: var(--bg);
}

.mk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.mk-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.mk-logo:hover {
  text-decoration: none;
  color: inherit;
}

.mk-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.mk-logo-by {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mk-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.mk-nav a:hover {
  color: var(--text);
  background: var(--bg-3);
  text-decoration: none;
}

.mk-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mk-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-theme-toggle:hover {
  color: var(--text);
  background: var(--bg-3);
}

.mk-link-portal {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 6px;
}

.mk-link-portal:hover {
  color: var(--text);
  background: var(--bg-3);
  text-decoration: none;
}

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Global `body.ep-light a { color: red }` was winning over .mk-btn; force readable labels */
.ep-mankai-shell a.mk-btn-primary,
.ep-mankai-shell a.mk-btn-primary:hover,
.ep-mankai-shell a.mk-btn-primary:active {
  color: #ffffff !important;
  text-decoration: none !important;
}
.ep-mankai-shell a.mk-btn-secondary,
.ep-mankai-shell a.mk-btn-secondary:hover,
.ep-mankai-shell a.mk-btn-secondary:active {
  color: var(--text) !important;
  text-decoration: none !important;
}
.ep-mankai-shell .mk-btn-text {
  color: inherit !important;
}

.mk-btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mk-btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.16);
}

.mk-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.mk-btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.mk-btn-secondary:hover {
  border-color: var(--text-2);
  background: var(--bg-3);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.mk-btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .ep-mankai-shell .mk-btn-primary,
body.ep-light.ep-mankai-shell .mk-btn-primary {
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}
:root[data-theme="light"] .ep-mankai-shell .mk-btn-primary:hover,
body.ep-light.ep-mankai-shell .mk-btn-primary:hover {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
}

.mk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.mk-burger span {
  display: block;
  height: 2px;
  width: 20px;
  background: currentColor;
  margin: 0 auto;
}

.mk-mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8999;
  flex-direction: column;
  padding: 16px 24px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.mk-mobile-nav.is-open {
  display: flex;
}

.mk-mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mk-mobile-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

.mk-mobile-cta {
  margin-top: 8px;
  text-align: center;
  border-radius: 8px !important;
  background: var(--red) !important;
  color: var(--white) !important;
  border: none !important;
}

.mk-mobile-site {
  margin-top: auto;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  border: none !important;
  padding-top: 24px !important;
}

body.mk-nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .mk-nav,
  .mk-link-portal {
    display: none;
  }
  .mk-burger {
    display: flex;
  }
  .mk-header-actions .mk-btn-primary {
    display: none;
  }
}

@media (max-width: 400px) {
  .mk-theme-toggle {
    display: none;
  }
}

/* ----- Main ----- */
.mk-main {
  padding-top: 64px;
}

/* Hero */
.mk-hero {
  padding: 72px 0 88px;
}

.mk-hero--large {
  padding: 96px 0 120px;
}

.mk-hero--large .mk-hero-name {
  font-size: clamp(3.5rem, 10vw, 6.25rem);
}

.mk-hero--large .mk-hero-line {
  margin-top: 20px;
  font-size: clamp(1.35rem, 2.9vw, 1.95rem);
  max-width: 24ch;
}

.mk-hero--large .mk-lead {
  font-size: 1.125rem;
  max-width: 44ch;
  margin-bottom: 32px;
}

.mk-hero--large .mk-hero-actions .mk-btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 0.9375rem;
}

.mk-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.mk-hero-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.mk-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.mk-hero-title {
  margin: 0 0 20px;
  padding: 0;
}

.mk-hero-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--text);
}

.mk-hero-line {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-2);
  max-width: 22ch;
}

.mk-lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36ch;
  margin-bottom: 28px;
}

.mk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.mk-hero-actions .mk-btn {
  min-height: 48px;
  padding: 0 22px;
}

.mk-hero-note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.5;
}

.mk-hero-visual {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.mk-hero-visual-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.mk-hero-visual-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}

.mk-hero-visual img {
  width: 100%;
  display: block;
}

/* Core value strip */
.mk-value {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.mk-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mk-value-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.mk-value-item p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* Section common */
.mk-section {
  padding: 88px 0;
}

.mk-section-head {
  max-width: 560px;
  margin-bottom: 48px;
}

.mk-section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mk-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.mk-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.mk-section-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

.mk-section-head--wide {
  max-width: 42rem;
}

/* Coverage: flat grid, equal weight per capability */
.mk-coverage {
  border-bottom: 1px solid var(--border);
}

.mk-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.mk-cov-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-cov-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05);
}

.mk-cov-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--red);
}

.mk-cov-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mk-cov-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.mk-cov-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* Compare matrix */
.mk-compare {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mk-compare-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
}

.mk-compare-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.mk-compare-matrix thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  vertical-align: bottom;
  position: sticky;
  top: 0;
  z-index: 2;
}

.mk-compare-matrix thead th:first-child {
  text-align: left;
  text-transform: none;
  font-size: 0.75rem;
  letter-spacing: 0;
  min-width: 11rem;
  max-width: 22rem;
  left: 0;
  z-index: 3;
  box-shadow: 4px 0 12px -8px rgba(0, 0, 0, 0.12);
}

.mk-compare-matrix .mk-col-mankai {
  color: var(--red);
  background: rgba(200, 39, 31, 0.07);
}

.mk-compare-matrix tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-2);
  min-width: 11rem;
  max-width: 26rem;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 4px 0 12px -8px rgba(0, 0, 0, 0.1);
}

.mk-compare-matrix td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
  text-align: center;
}

.mk-compare-matrix--check td {
  font-size: 1rem;
}

.mk-compare-matrix tbody tr:last-child th,
.mk-compare-matrix tbody tr:last-child td {
  border-bottom: none;
}

.mk-compare-matrix tbody tr:nth-child(even) td:not(.mk-col-mankai) {
  background: rgba(0, 0, 0, 0.02);
}

.mk-compare-matrix tbody tr:nth-child(even) td.mk-col-mankai {
  background: rgba(200, 39, 31, 0.08);
}

.mk-compare-matrix td.mk-col-mankai {
  color: var(--text);
  font-weight: 600;
}

.mk-cb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.mk-cb-yes {
  color: #15803d;
}

.mk-cb-no {
  color: var(--muted);
  opacity: 0.85;
}

.mk-compare-subtitle {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 40px auto 14px;
  text-align: center;
  line-height: 1.2;
  max-width: 720px;
}

.mk-compare .mk-compare-subtitle:first-of-type {
  margin-top: 8px;
}

.mk-compare-lede {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.58;
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
}

.mk-compare-matrix-wrap--detail {
  margin-bottom: 28px;
}

.mk-compare-matrix--detail {
  min-width: 720px;
}

.mk-compare-matrix--detail tbody th {
  font-size: 0.78rem;
  line-height: 1.4;
}

.mk-compare-note {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Pricing */
.mk-pricing {
  padding-bottom: 96px;
}

.mk-pricing-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.mk-pricing-intro {
  margin-bottom: 40px;
}

.mk-pricing-wrap {
  padding: 0 0 24px;
}

.mk-pricing-wrap .ep-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  margin: 0 auto;
  gap: 20px;
  align-items: stretch;
}

.mk-pricing-wrap .ep-pkg-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 14px;
  padding: 32px 28px 28px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.06);
}

.mk-pricing-wrap .ep-pkg-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.mk-pricing-wrap .ep-pkg-desc {
  font-size: 0.875rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.mk-pricing-wrap .ep-pkg-price {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 4px;
}

.mk-pricing-wrap .ep-pkg-features {
  flex: 1 1 auto;
  margin-top: 20px;
  padding-top: 20px;
}

.mk-pricing-wrap .ep-pkg-card .ep-btn {
  margin-top: auto;
}

@media (max-width: 960px) {
  .mk-pricing-wrap .ep-pkg-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* FAQ */
.mk-faq {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.mk-faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.mk-faq-item {
  border-bottom: 1px solid var(--border);
}

.mk-faq-item summary {
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.mk-faq-item summary::-webkit-details-marker {
  display: none;
}

.mk-faq-item summary::after {
  content: '';
  float: right;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: 6px;
  transition: transform 0.2s ease;
}

.mk-faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 10px;
}

.mk-faq-body {
  padding: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
}

.mk-faq-body a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mk-faq-body a:hover {
  color: var(--text);
}

/* Final CTA */
.mk-cta {
  padding: 80px 0 100px;
  text-align: center;
}

.mk-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.mk-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}

.mk-cta p {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.55;
}

.mk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.mk-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mk-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.mk-footer-product {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.mk-footer-tagline {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

.mk-footer-tagline a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.mk-footer-tagline a:hover {
  text-decoration: underline;
}

.mk-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.mk-footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.mk-footer-nav a:hover {
  color: var(--text);
}

.mk-footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mk-footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .mk-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mk-hero-visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }
  .mk-value-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .mk-hero {
    padding: 48px 0 64px;
  }
  .mk-hero--large {
    padding: 56px 0 80px;
  }
  .mk-section {
    padding: 64px 0;
  }
  .mk-hero-line {
    max-width: none;
  }
}

/* Docs (ep_doc) under Mankai shell */
.ep-mankai-shell .ep-single-doc,
.ep-mankai-shell .ep-docs-archive {
  padding-top: 64px;
}

.ep-mankai-shell a.mk-mobile-cta {
  color: #ffffff !important;
  text-decoration: none !important;
}
.ep-mankai-shell .mk-mobile-cta {
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.ep-mankai-shell .mk-mobile-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
