@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --mk-ink: #0c1813;
  --mk-muted: #5a6f64;
  --mk-line: rgba(12, 24, 19, 0.1);
  --mk-brand: #0f7a56;
  --mk-brand-deep: #0a4f38;
  --mk-soft: #e9f3ee;
  --mk-paper: #f6f9f7;
  --mk-font: "Outfit", sans-serif;
  --mk-mono: "IBM Plex Mono", monospace;
  --mk-radius: 18px;
  --mk-max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.mk {
  margin: 0;
  font-family: var(--mk-font);
  color: var(--mk-ink);
  background: var(--mk-paper);
  min-height: 100vh;
  line-height: 1.5;
}

.mk a { color: var(--mk-brand); text-decoration: none; }
.mk a:hover { text-decoration: underline; }

/* ——— Nav ——— */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(246, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mk-line);
}

.mk-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mk-brand-deep);
  text-decoration: none !important;
}

.mk-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.mk-nav-links a {
  color: var(--mk-muted);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.mk-nav-links a:hover { color: var(--mk-ink); }

.mk-nav-toggle {
  display: none;
  border: 1px solid var(--mk-line);
  background: #fff;
  border-radius: 10px;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ——— Buttons ——— */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mk-btn:hover { transform: translateY(-1px); }
.mk-btn-block { width: 100%; }
.mk-btn-primary { background: var(--mk-brand); color: #fff !important; }
.mk-btn-primary:hover { background: var(--mk-brand-deep); }
.mk-btn-ghost {
  background: transparent;
  border-color: var(--mk-line);
  color: var(--mk-ink) !important;
}
.mk-btn-light { background: #fff; color: var(--mk-brand-deep) !important; }
/* ——— Hero: clear light composition, illustration right ——— */
.mk-hero {
  position: relative;
  overflow: hidden;
  color: var(--mk-ink);
  background:
    radial-gradient(720px 360px at 88% 18%, rgba(46, 207, 140, 0.16), transparent 60%),
    radial-gradient(520px 280px at 8% 90%, rgba(15, 122, 86, 0.08), transparent 55%),
    linear-gradient(160deg, #f4faf7 0%, #e7f2ec 48%, #d9ebe3 100%);
}

.mk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 122, 86, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 122, 86, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 72%);
  pointer-events: none;
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 0; }
}

.mk-hero-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(2.75rem, 8vh, 4.75rem) clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.mk-hero-copy { animation: riseIn 0.55s ease both; }

.mk-brand-hero {
  display: block;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 1rem;
  color: var(--mk-brand-deep);
}

.mk-hero h2 {
  margin: 0 0 0.75rem;
  max-width: 15ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--mk-ink);
}

.mk-hero .lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--mk-muted);
  font-size: 1.05rem;
}

.mk-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.mk-hero-art {
  position: relative;
  margin: 0;
  min-height: 340px;
  animation: riseIn 0.65s ease both;
  animation-delay: 0.08s;
}

.mk-dash {
  position: relative;
  z-index: 1;
  margin-left: 8%;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #16352a, #0c1f18);
  color: #eaf6f0;
  box-shadow: 0 28px 50px rgba(12, 24, 19, 0.18);
  transform: rotate(-1.5deg);
}

.mk-dash-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.mk-dash-dots {
  display: inline-flex;
  gap: 0.35rem;
}
.mk-dash-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2ecf8c;
  display: block;
}
.mk-dash-dots i:first-child { background: #e35d5d; }
.mk-dash-dots i:nth-child(2) { background: #e3b65d; }

.mk-dash-title {
  flex: 1;
  font-size: 0.85rem;
  color: #9bb7aa;
}

.mk-dash-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #146b4a;
  color: #b7f0d4;
}

.mk-dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.mk-dash-metrics div {
  background: #0a1813;
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
}

.mk-dash-metrics small {
  display: block;
  color: #7fa894;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.mk-dash-metrics strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.mk-dash-chart {
  background: #0a1813;
  border-radius: 14px;
  padding: 0.85rem 0.7rem 0.4rem;
  height: 110px;
}

.mk-dash-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mk-dash-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(12, 24, 19, 0.12);
}

.mk-dash-float strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.mk-dash-float small {
  display: block;
  color: var(--mk-muted);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.mk-dash-alert {
  left: 0;
  bottom: 0.4rem;
  background: #fff;
  color: var(--mk-ink);
}

.mk-dash-agent {
  right: 0.4rem;
  bottom: 3.2rem;
  background: #123328;
  color: #eaf6f0;
  border: 1px solid rgba(46, 207, 140, 0.35);
}
.mk-dash-agent small { color: #a9c4b7; }

.mk-dash-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: 0 0 auto;
}
.mk-dash-dot.warn { background: #e3b65d; }
.mk-dash-dot.ok { background: #2ecf8c; }

/* ——— Sections ——— */
.mk-section {
  width: min(var(--mk-max), 100%);
  margin: 0 auto;
  padding: 3.75rem clamp(1rem, 3vw, 2rem);
}

.mk-section-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.mk-section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mk-section-head p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 1.02rem;
}

.mk-band {
  background: var(--mk-soft);
  border-block: 1px solid var(--mk-line);
}

/* Features — simple rows, not heavy cards */
.mk-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
}

.mk-feature {
  padding: 0;
  border: 0;
  background: transparent;
}

.mk-feature strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.mk-feature p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 0.98rem;
}

/* Steps */
.mk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.mk-step {
  padding-top: 0.85rem;
  border-top: 2px solid var(--mk-brand);
}

.mk-step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--mk-mono);
  color: var(--mk-brand);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.mk-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.mk-step p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 0.95rem;
}

/* ——— Pricing (interactive cards OK) ——— */
.mk-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.mk-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--mk-radius);
  background: #fff;
  border: 1px solid var(--mk-line);
  box-shadow: 0 10px 28px rgba(12, 24, 19, 0.04);
  animation: riseIn 0.5s ease both;
}

.mk-plan:nth-child(2) { animation-delay: 0.06s; }
.mk-plan:nth-child(3) { animation-delay: 0.12s; }
.mk-plan:nth-child(4) { animation-delay: 0.18s; }

.mk-plan.is-featured {
  background: linear-gradient(165deg, #0f1c17, #173528);
  color: #eaf6f0;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(10, 40, 28, 0.18);
}

.mk-plan-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(46, 207, 140, 0.2);
  color: #9ef0c6;
}

.mk-plan-head h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.mk-plan-tagline {
  margin: 0.35rem 0 0;
  color: var(--mk-muted);
  font-size: 0.92rem;
}

.mk-plan.is-featured .mk-plan-tagline,
.mk-plan.is-featured .mk-plan-meta,
.mk-plan.is-featured .mk-plan-points li {
  color: #a9c4b7;
}

.mk-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mk-plan-price strong {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mk-plan-price span {
  font-size: 0.92rem;
  opacity: 0.72;
}

.mk-plan-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mk-muted);
  font-weight: 500;
}

.mk-plan-points {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  flex: 1;
}

.mk-plan-points li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-bottom: 1px solid var(--mk-line);
  color: var(--mk-muted);
  font-size: 0.92rem;
}

.mk-plan.is-featured .mk-plan-points li {
  border-color: rgba(255, 255, 255, 0.08);
}

.mk-plan-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mk-brand);
}

.mk-plan.is-featured .mk-plan-points li::before {
  background: #2ecf8c;
}

.mk-plan-cta { margin-top: 0.35rem; }

.mk-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.mk-select {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #c9d6cf;
  font: inherit;
  background: #fff;
  color: var(--mk-ink);
}

.mk-plan.is-featured .mk-select {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf6f0;
}

.mk-empty-plans {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--mk-line);
  border-radius: var(--mk-radius);
  background: #fff;
}

.mk-empty-plans p { margin: 0 0 0.5rem; }
.mk-empty-hint { color: var(--mk-muted); font-size: 0.95rem; margin-bottom: 1rem !important; }

/* Page titles */
.mk-page-title {
  width: min(var(--mk-max), 100%);
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 3vw, 2rem) 0;
}

.mk-page-title h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.mk-page-title p {
  margin: 0;
  color: var(--mk-muted);
  max-width: 40ch;
}

.mk-final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.mk-note {
  margin-top: 1.5rem;
  color: var(--mk-muted);
  font-size: 0.95rem;
}

/* Contact */
.mk-contact-form {
  max-width: 480px;
  display: grid;
  gap: 0.25rem;
}

.mk-contact-form label { font-weight: 600; font-size: 0.9rem; }
.mk-contact-form input,
.mk-contact-form textarea {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #c9d6cf;
  font: inherit;
  margin-bottom: 0.65rem;
  background: #fff;
}

/* Auth */
.mk-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(640px 280px at 12% 0%, rgba(15, 122, 86, 0.1), transparent 60%),
    var(--mk-paper);
}

.mk-auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 16px 36px rgba(12, 24, 19, 0.05);
}

.mk-auth-card h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.mk-auth-card .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--mk-brand);
  font-weight: 700;
}

.mk-auth-card .lead {
  color: var(--mk-muted);
  margin: 0 0 1.15rem;
}

.mk-auth-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}

.mk-auth-card input,
.mk-auth-card select,
.mk-auth-card textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #c9d6cf;
  font: inherit;
  margin-bottom: 0.85rem;
}

.mk-auth-card .helptext,
.mk-auth-card .errorlist {
  font-size: 0.82rem;
  color: var(--mk-muted);
  margin: -0.45rem 0 0.65rem;
  padding: 0;
  list-style: none;
}

.mk-auth-card .errorlist { color: #b33; }
.mk-auth-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.35rem;
}

.mk-messages {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  width: min(var(--mk-max), 100%);
}

.mk-messages li {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #e7f6ee;
  color: #0b6e4f;
  margin: 0 clamp(1rem, 3vw, 2rem) 0.4rem;
}

.mk-messages li.error { background: #fdecea; color: #a13228; }

.mk-footer {
  padding: 2.25rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--mk-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--mk-muted);
  font-size: 0.9rem;
  width: min(var(--mk-max), 100%);
  margin: 0 auto;
}

.mk-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .mk-hero-panel {
    grid-template-columns: 1fr;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
    gap: 1.25rem;
  }
  .mk-hero-art {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
    min-height: 300px;
    animation: riseIn 0.7s ease both;
  }
  .mk-dash { margin-left: 0; transform: none; }
  .mk-brand-hero {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
  .mk-features,
  .mk-steps { grid-template-columns: 1fr; }
  .mk-nav-toggle { display: inline-grid; place-items: center; }
  .mk-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--mk-line);
    box-shadow: 0 12px 24px rgba(12, 24, 19, 0.06);
  }
  body.mk-nav-open .mk-nav-links { display: flex; }
  .mk-nav-links a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--mk-line);
  }
  .mk-nav-links .mk-btn {
    margin-top: 0.5rem;
    width: 100%;
  }
}
