/* ============================================================
   Marketing landing — uses design tokens from theme.css
   ============================================================ */

body { background: var(--app-bg); color: var(--text); }

/* ----- Container ----- */
.mk-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (max-width: 700px) {
  .mk-container { padding: 0 var(--space-4); }
}

/* ----- Header ----- */
.mk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .mk-header { background: rgba(17, 23, 41, 0.85); }
.mk-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  height: var(--topbar-h);
}
.mk-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.mk-brand__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .25);
}
.mk-brand__mark svg { width: 16px; height: 16px; display:block; }
.mk-brand__name { font-weight: 700; font-size: 1rem; }

.mk-nav {
  display: flex; gap: var(--space-6);
}
.mk-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--t);
}
.mk-nav a:hover { color: var(--text); }

.mk-header__actions { display: flex; align-items: center; gap: 8px; }
.mk-icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.mk-icon-btn:hover { background: var(--surface-3); color: var(--text); }
.mk-icon-btn .icon-moon { display:block; }
.mk-icon-btn .icon-sun  { display:none; }
html[data-theme="dark"] .mk-icon-btn .icon-moon { display:none; }
html[data-theme="dark"] .mk-icon-btn .icon-sun  { display:block; }

.mk-burger { display: none; }

@media (max-width: 900px) {
  .mk-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--t);
  }
  .mk-nav.is-open { transform: translateY(0); }
  .mk-nav a { padding: 12px 16px; border-radius: 8px; }
  .mk-nav a:hover { background: var(--surface-3); }
  .mk-burger { display: inline-grid; }
  .mk-header__actions .btn { display:none; }
  .mk-header__actions .btn--primary { display: inline-flex; }
}

/* ----- Hero ----- */
.mk-hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.mk-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) {
  .mk-hero { padding: 56px 0 40px; }
  .mk-hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.mk-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.mk-hero__text h1 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.mk-grad {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 540px;
  line-height: 1.6;
}
.mk-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.mk-hero__points {
  list-style: none; padding: 0;
  margin: var(--space-8) 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.mk-hero__points li { display: flex; align-items: center; gap: 10px; }
.mk-tick {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--success-100);
  color: var(--success-600);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}

.mk-hero__art {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.mk-hero__art img { display: block; width: 100%; height: auto; }
.mk-hero__art-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(99,102,241,.25), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* ----- Stats strip ----- */
.mk-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
  background: var(--surface-2);
}
.mk-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.mk-stats__grid > div { display: flex; flex-direction: column; }
.mk-stats__grid strong { color: var(--text); font-size: 1rem; font-weight: 600; }
.mk-stats__grid span  { color: var(--text-muted); font-size: 0.8125rem; }
@media (max-width: 700px) {
  .mk-stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* ----- Sections ----- */
.mk-section { padding: 96px 0; }
.mk-section--alt { background: var(--surface-2); }
@media (max-width: 700px) { .mk-section { padding: 64px 0; } }

.mk-section__head { text-align: center; margin-bottom: var(--space-10); max-width: 640px; margin-left: auto; margin-right: auto; }
.mk-section__head h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.mk-section__lead { color: var(--text-muted); font-size: 1rem; }

/* ----- Features ----- */
.mk-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .mk-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mk-features { grid-template-columns: 1fr; } }

.mk-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
}
.mk-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mk-feature h3 {
  font-size: 1.0625rem; margin-bottom: 8px;
}
.mk-feature p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.mk-feature__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: var(--space-4);
  background: var(--brand-50);
  color: var(--brand-600);
}
.mk-feature__icon svg { width: 20px; height: 20px; display:block; }
.mk-feature__icon[data-tone="success"] { background: var(--success-50); color: var(--success-600); }
.mk-feature__icon[data-tone="warning"] { background: var(--warning-50); color: var(--warning-600); }
.mk-feature__icon[data-tone="danger"]  { background: var(--danger-50);  color: var(--danger-600); }
.mk-feature__icon[data-tone="info"]    { background: var(--info-50);    color: var(--info-600); }
.mk-feature__icon[data-tone="accent"]  { background: #f5f3ff;           color: var(--accent-600); }

/* ----- Plans ----- */
.mk-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 900px) { .mk-plans { grid-template-columns: 1fr; } }

.mk-plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-xs);
}
.mk-plan--popular {
  border-color: var(--brand-300);
  box-shadow: 0 12px 30px rgba(99, 102, 241, .15);
  transform: translateY(-4px);
}
@media (max-width: 900px) { .mk-plan--popular { transform: none; } }
.mk-plan__badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--brand-600);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mk-plan h3 { font-size: 1rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mk-plan__price {
  font-size: 1.875rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
.mk-plan__price span { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.mk-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-plan ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  color: var(--text);
}
.mk-plan ul li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--success-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

/* ----- About ----- */
.mk-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.mk-about img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.mk-about h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: var(--space-4); letter-spacing: -0.02em; }
.mk-about p { color: var(--text-muted); margin-bottom: var(--space-4); line-height: 1.65; }
@media (max-width: 900px) { .mk-about { grid-template-columns: 1fr; } }

/* ----- Footer ----- */
.mk-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--space-10) 0 0;
}
.mk-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}
.mk-footer h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: var(--space-3); font-weight: 600; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: var(--text-muted); }
.mk-footer a { color: var(--text-muted); text-decoration: none; }
.mk-footer a:hover { color: var(--text); }
.mk-brand--footer .mk-brand__name { font-size: 0.9375rem; }
.mk-footer__bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 700px) {
  .mk-footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
