/* ==========================================================
   TruBible — Marketing site (homepage, support, status, legal)
   Loaded after style.css. Consumes design tokens only.
   All classes are prefixed .mk- so nothing leaks into the app.
   ========================================================== */

/* ---------- Shared nav fixes on marketing pages ---------- */
/* `.navbar .nav-links > a` outranks `.btn-primary`, which turned the
   "Start free" CTA text grey and its hover background flat. */
.navbar .nav-links > a.nav-cta,
.navbar .nav-links > a.nav-cta:hover {
  color: var(--text-on-primary);
  background: var(--grad-primary);
}

/* ---------- Layout primitives ---------- */
.mk { background: var(--bg-page); overflow-x: clip; }
.mk-container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.mk-container-sm { max-width: 960px; }
.mk-section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.mk-section-alt { background: var(--bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.mk-section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(36px, 5vw, 60px); }
.mk-section-head h2 { font-size: var(--fs-4xl); letter-spacing: -0.03em; margin: 14px 0 14px; }
.mk-section-head p { color: var(--text-muted); font-size: var(--fs-lg); line-height: 1.65; }
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--primary-bg); border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.mk-eyebrow svg { width: 14px; height: 14px; }
.mk-grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (max-width: 640px) {
  .mk-container { padding: 0 16px; }
  .mk-section-head p { font-size: var(--fs-base); }
}

/* Side slide-ins would poke past the viewport edge on phones before they
   reveal; use the vertical entrance there instead. */
@media (max-width: 1023px) {
  html.js .mk [data-reveal="left"]:not(.is-visible),
  html.js .mk [data-reveal="right"]:not(.is-visible) { transform: translateY(24px); }
}

/* Lists with check marks */
.mk-checks { list-style: none; display: grid; gap: 10px; }
.mk-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-secondary); line-height: 1.5; }
.mk-checks li > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--success); }

/* ---------- Buttons (marketing sizes) ---------- */
.mk-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn.mk-btn-white-outline {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35);
}
.btn.mk-btn-white-outline:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn .mk-arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .mk-arrow { transform: translateX(3px); }

/* ==========================================================
   HERO
   ========================================================== */
.mk-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06) 0%, var(--bg-page) 70%);
}
.mk-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mk-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  will-change: transform;
}
.mk-blob-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35), transparent 70%); }
.mk-blob-2 { width: 560px; height: 560px; top: -60px; right: -160px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 70%); }
.mk-blob-3 { width: 480px; height: 480px; bottom: -260px; left: 35%; background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%); }
.mk-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.mk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.mk-hero-copy > * { animation: fadeUp 0.7s var(--ease-out) both; }
.mk-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.mk-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.mk-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.mk-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.mk-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.mk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.75); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mk-pill svg { width: 15px; height: 15px; color: var(--primary); }
.mk-pill-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.mk-pill-success svg { color: var(--success); }
.mk-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.mk-hero h1 > span { display: block; }
.mk-hero-sub {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 30px;
}
.mk-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.mk-hero-ctas .btn { min-height: 54px; padding: 14px 26px; font-size: var(--fs-base); border-radius: 12px; }
.mk-hero-ctas .btn svg { width: 18px; height: 18px; }
.mk-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: var(--fs-sm); color: var(--text-light); font-weight: 500; }
.mk-trust li { display: inline-flex; align-items: center; gap: 7px; }
.mk-trust svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

@media (max-width: 1023px) {
  .mk-hero-grid { grid-template-columns: 1fr; }
  .mk-hero-copy { text-align: center; max-width: 680px; margin: 0 auto; }
  .mk-hero-pills, .mk-hero-ctas, .mk-trust { justify-content: center; }
  .mk-hero-sub { margin-left: auto; margin-right: auto; }
  .mk-demo-wrap { max-width: 600px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .mk-hero { padding-top: 28px; }
  .mk-hero-pills { margin-bottom: 18px; }
  .mk-pill { font-size: var(--fs-xs); padding: 5px 10px; }
  .mk-hero h1 { margin-bottom: 16px; }
  .mk-hero-sub { margin-bottom: 24px; }
  .mk-hero-ctas { flex-direction: column; align-items: stretch; }
  .mk-hero-ctas .btn { width: 100%; }
  .mk-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left; max-width: 360px; margin: 0 auto; }
  .mk-blob { filter: blur(48px); }
}

/* ---------- Live translation demo ---------- */
.mk-demo-wrap { position: relative; animation: fadeUp 0.8s var(--ease-out) 0.2s both; }
.mk-demo-wrap::before { /* soft brand glow behind the device */
  content: ''; position: absolute; inset: 8% 6% -4%; z-index: -1;
  background: var(--grad-brand); filter: blur(56px); opacity: 0.22; border-radius: 40%;
}
.mk-demo {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(167, 139, 250, 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.06);
  color: var(--text);
}
.mk-demo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 12px; }
.mk-demo-dots { display: flex; gap: 6px; }
.mk-demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mk-demo-title { font-size: var(--fs-xs); color: var(--text-light); font-weight: 600; letter-spacing: 0.02em; }
.mk-demo-speaker {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 16px 18px 14px;
}
.mk-demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mk-demo-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.6);
}
.mk-demo-avatar svg { width: 20px; height: 20px; }
.mk-demo-who { min-width: 0; flex: 1; }
.mk-demo-name { font-weight: 600; font-size: var(--fs-sm); color: var(--text); line-height: 1.3; }
.mk-demo-lang { font-size: var(--fs-xs); color: var(--text-light); }
.mk-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.14); color: #fca5a5;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.mk-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}
.mk-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 10px; }
.mk-wave span {
  flex: 1; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
  transform: scaleY(0.12); transform-origin: center;
  transition: transform 0.3s var(--ease-out);
  opacity: 0.9;
}
.mk-demo.is-speaking .mk-wave span { animation: mkWave 0.9s ease-in-out infinite alternate; }
@keyframes mkWave {
  0% { transform: scaleY(0.15); }
  100% { transform: scaleY(var(--h, 0.8)); }
}
.mk-caption {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 500; line-height: 1.5; color: var(--text);
  min-height: 3em; /* two lines: no layout shift while typing */
}
.mk-caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--primary); opacity: 0;
}
.mk-demo.is-speaking .mk-caret { opacity: 1; animation: pulse 0.9s steps(2) infinite; }

.mk-demo-flow { display: flex; justify-content: center; padding: 10px 0; position: relative; }
.mk-demo-flow::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}
.mk-ai-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted);
  transition: color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.mk-ai-chip svg { width: 14px; height: 14px; color: var(--accent); }
.mk-demo.is-translating .mk-ai-chip { color: var(--text); border-color: var(--accent-border); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12); }
.mk-demo.is-translating .mk-ai-chip svg { animation: spin 1.2s linear infinite; }

.mk-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-phone {
  position: relative;
  height: 236px;
  border-radius: 22px;
  padding: 18px 10px 10px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.55), 0 18px 40px -18px rgba(0,0,0,0.6);
  color: #0f172a;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.mk-phone::before { /* notch */
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 5px; border-radius: 4px; background: #cbd5e1;
}
.mk-phone-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-code {
  flex-shrink: 0;
  min-width: 26px; height: 20px; padding: 0 5px; border-radius: 6px;
  display: inline-grid; place-items: center;
  background: #0f172a; color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
}
.mk-langname { font-size: 0.74rem; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mk-phone-head svg { width: 14px; height: 14px; color: #0891b2; flex-shrink: 0; }
.mk-bubble {
  border-radius: 14px 14px 14px 4px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
  font-size: 0.8rem; line-height: 1.45; color: #0f172a;
  opacity: 0; transform: translateY(8px) scale(0.98);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
}
.mk-bubble[dir="rtl"] { border-radius: 14px 14px 4px 14px; text-align: right; }
.mk-phone.has-text .mk-bubble { opacity: 1; transform: none; }
.mk-phone-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: #64748b; font-weight: 600; }
.mk-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.mk-eq i { width: 3px; height: 100%; border-radius: 2px; background: #0891b2; transform: scaleY(0.3); transform-origin: bottom; }
.mk-phone.is-playing .mk-eq i { animation: mkEq 0.7s ease-in-out infinite alternate; }
.mk-phone.is-playing .mk-eq i:nth-child(2) { animation-delay: 0.15s; }
.mk-phone.is-playing .mk-eq i:nth-child(3) { animation-delay: 0.3s; }
.mk-phone.is-playing .mk-eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes mkEq { to { transform: scaleY(1); } }
.mk-phone-head .mk-code, .mk-phone-head .mk-langname { transition: opacity 0.25s ease; }
.mk-phone.is-switching .mk-code, .mk-phone.is-switching .mk-langname { opacity: 0; }

/* Paused (off-screen / hidden tab): freeze every loop in the demo */
.mk-demo.is-paused *, .mk-demo.is-paused *::before, .mk-demo.is-paused *::after { animation-play-state: paused !important; }

@media (max-width: 520px) {
  .mk-demo { padding: 12px; border-radius: var(--radius-lg); }
  .mk-demo-speaker { padding: 14px 14px 12px; }
  .mk-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mk-phone:nth-child(3) { display: none; }
  .mk-phone { height: 224px; }
}

/* ==========================================================
   PROOF: logos + stats
   ========================================================== */
.mk-proof { padding: clamp(40px, 6vw, 64px) 0; background: var(--bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.mk-proof-label { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.mk-logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.mk-logos li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--text-light); opacity: 0.85;
  transition: color var(--dur) ease, opacity var(--dur) ease;
}
.mk-logos li:hover { color: var(--text); opacity: 1; }
.mk-logos svg { width: 18px; height: 18px; color: var(--text-faint); }
.mk-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 52px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-card); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mk-stat { padding: 26px 20px; text-align: center; }
.mk-stat + .mk-stat { border-left: 1px solid var(--border-light); }
.mk-stat-value {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: inline-block; min-width: 4ch;
}
.mk-stat-label { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 6px; font-weight: 500; }
@media (max-width: 760px) {
  .mk-logos { gap: 10px 22px; }
  .mk-logos li { font-size: 0.92rem; }
  .mk-stats { grid-template-columns: 1fr 1fr; }
  .mk-stat:nth-child(3) { border-left: 0; }
  .mk-stat:nth-child(n+3) { border-top: 1px solid var(--border-light); }
  .mk-stat { padding: 20px 12px; }
}

/* ==========================================================
   FEATURES BENTO
   ========================================================== */
.mk-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mk-tile {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.mk-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mk-tile::after { /* gradient hairline on hover */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur) ease; pointer-events: none;
}
.mk-tile:hover::after { opacity: 0.7; }
.mk-tile h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.mk-tile p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.mk-tile .icon-chip { margin-bottom: 6px; transition: transform var(--dur) var(--ease-spring); }
.mk-tile:hover .icon-chip { transform: scale(1.06) rotate(-3deg); }
.mk-tile-visual { margin-top: auto; padding-top: 14px; }
.mk-t-realtime { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--bg-card) 40%, rgba(var(--primary-rgb), 0.06)); }
.mk-t-languages { grid-column: span 2; }
.mk-t-secure, .mk-t-control { grid-column: span 2; }

/* realtime visual: mini transcript */
.mk-mini-transcript { display: grid; gap: 10px; }
.mk-mini-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-subtle); border: 1px solid var(--border-light);
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.mk-mini-row .mk-code { background: var(--primary); }
.mk-mini-row.is-out { margin-left: 28px; background: var(--primary-bg); border-color: var(--primary-border); }
.mk-mini-row.is-out .mk-code { background: var(--accent); }
.mk-mini-row > span:last-child { min-width: 0; }
@media (max-width: 1023px) { .mk-mini-extra { display: none; } }
.mk-mini-wave { display: flex; align-items: center; gap: 3px; height: 28px; padding: 0 4px; }
.mk-mini-wave span { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--primary-light), var(--accent)); opacity: 0.55; }
.mk-latency { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); padding: 3px 10px; border-radius: var(--radius-full); align-self: flex-start; }
.mk-latency svg { width: 13px; height: 13px; }

/* languages visual: chip cloud */
.mk-lang-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-lang-cloud span {
  padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.mk-lang-cloud span:hover { background: var(--primary-bg); border-color: var(--primary-border); color: var(--primary-dark); transform: translateY(-1px); }
.mk-lang-cloud .is-more { background: var(--text); color: var(--bg); border-color: var(--text); }

/* small visuals */
.mk-qr-row { display: flex; align-items: center; gap: 12px; }
.mk-qr { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--text); color: var(--bg); flex-shrink: 0; }
.mk-qr svg { width: 30px; height: 30px; }
.mk-url { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); background: var(--bg-subtle); border: 1px dashed var(--border-strong); padding: 6px 10px; border-radius: var(--radius-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mk-avatars { display: flex; align-items: center; }
.mk-avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -8px;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #fff;
  border: 2px solid var(--bg-card);
  background: var(--grad-brand);
}
.mk-avatars span:first-child { margin-left: 0; }
.mk-avatars span:nth-child(2) { background: linear-gradient(135deg, #0ea5e9, #0891b2); }
.mk-avatars span:nth-child(3) { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.mk-avatars span:nth-child(4) { background: linear-gradient(135deg, #10b981, #059669); }
.mk-avatars span:nth-child(5) { background: linear-gradient(135deg, #f59e0b, #d97706); }
.mk-avatars .is-more { background: var(--bg-subtle); color: var(--text-muted); border-color: var(--bg-card); box-shadow: inset 0 0 0 1px var(--border); }
.mk-avatars .is-more svg { width: 15px; height: 15px; }
.mk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: 600;
  background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border);
}
.mk-tag svg { width: 14px; height: 14px; }
.mk-controls { display: grid; gap: 8px; }
.mk-control-row { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500; }
.mk-control-row > span:first-child { width: 120px; flex-shrink: 0; }
.mk-control-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-active); overflow: hidden; }
.mk-control-bar i { display: block; height: 100%; width: var(--v, 60%); border-radius: inherit; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out) 0.3s; }
.mk-tile.is-visible .mk-control-bar i { transform: scaleX(1); }
html:not(.js) .mk-control-bar i { transform: none; }

@media (max-width: 1023px) {
  .mk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-t-realtime { grid-column: span 2; grid-row: auto; }
  .mk-t-languages, .mk-t-secure, .mk-t-control { grid-column: span 2; }
}
@media (max-width: 640px) {
  .mk-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mk-bento > .mk-tile { grid-column: auto; }
  .mk-tile { padding: 22px 20px; }
  .mk-mini-row.is-out { margin-left: 16px; }
  .mk-control-row > span:first-child { width: 104px; }
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.mk-steps-wrap { position: relative; }
.mk-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mk-steps-line {
  position: absolute; top: 22px; left: calc(100% / 6); right: calc(100% / 6); height: 2px;
  background: var(--border); border-radius: 2px; overflow: hidden;
}
.mk-steps-line::after {
  content: ''; position: absolute; inset: 0; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.25s;
}
.mk-steps-line.is-visible::after { transform: scaleX(1); }
html:not(.js) .mk-steps-line::after { transform: none; }
.mk-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mk-step-num {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  background: var(--bg-card); color: var(--primary);
  border: 2px solid var(--primary-border);
  box-shadow: 0 0 0 6px var(--bg-page);
  margin-bottom: 20px;
  transition: background var(--dur-slow) ease, color var(--dur-slow) ease, border-color var(--dur-slow) ease;
}
.mk-step.is-visible .mk-step-num { background: var(--grad-brand); color: #fff; border-color: transparent; }
.mk-step-card {
  width: 100%; flex: 1;
  border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.mk-step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mk-step-card h3 { font-size: var(--fs-xl); }
.mk-step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.mk-step-ui {
  border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border-light);
  padding: 14px; margin-bottom: 8px; text-align: left; min-height: 116px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.mk-ui-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); }
.mk-ui-title { font-weight: 600; color: var(--text); }
.mk-ui-muted { color: var(--text-light); font-size: var(--fs-xs); }
.mk-ui-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-ui-langs span { padding: 3px 8px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); }
.mk-ui-mic { display: flex; align-items: center; gap: 12px; }
.mk-ui-mic-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--danger); color: #fff;
}
.mk-ui-mic-btn svg { width: 20px; height: 20px; }
.mk-ui-mic-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--live); animation: ripple 1.8s ease-out infinite; }
.mk-ui-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.mk-ui-wave span { flex: 1; border-radius: 2px; background: var(--primary); opacity: 0.5; }
.mk-ui-pick { display: grid; gap: 4px; }
.mk-ui-pick span { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-light); }
.mk-ui-pick span.is-on { border-color: var(--primary-border); background: var(--primary-bg); color: var(--primary-dark); }
.mk-ui-pick svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .mk-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 560px; margin: 0 auto; }
  .mk-steps-line { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .mk-steps-line::after { transform: scaleY(0); transform-origin: top; }
  .mk-steps-line.is-visible::after { transform: scaleY(1); }
  .mk-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .mk-step-num { margin-bottom: 0; flex-shrink: 0; }
}

/* Setup block (host gear + listeners) */
.mk-setup {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
}
.mk-setup-media {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background: var(--bg-card); aspect-ratio: 1 / 1;
}
.mk-setup-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.mk-setup-media:hover img { transform: scale(1.03); }
.mk-setup-copy h3 { font-size: var(--fs-3xl); margin: 12px 0 10px; }
.mk-setup-copy > p { color: var(--text-muted); margin-bottom: 22px; font-size: var(--fs-lg); }
.mk-setup-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mk-setup-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.mk-setup-item:hover { border-color: var(--primary-border); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mk-setup-item .icon-chip { width: 36px; height: 36px; border-radius: 10px; }
.mk-setup-item .icon-chip svg { width: 18px; height: 18px; }
.mk-setup-label { display: block; font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.mk-setup-flow { display: block; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin-top: 2px; }
.mk-setup-sub { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 4px 0 10px; }
.mk-listeners {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius); margin-bottom: 22px;
  background: var(--grad-brand-soft); border: 1px solid var(--primary-border);
}
.mk-listeners strong { display: block; color: var(--text); font-size: var(--fs-sm); }
.mk-listeners span { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .mk-setup { grid-template-columns: minmax(0, 1fr); }
  .mk-setup-media { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .mk-setup-list { grid-template-columns: minmax(0, 1fr); }
  .mk-setup-copy .btn { width: 100%; }
}

/* ==========================================================
   USE CASES
   ========================================================== */
.mk-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mk-use {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.mk-use::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.mk-use:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mk-use:hover::before { transform: scaleX(1); }
.mk-use h3 { font-size: var(--fs-xl); }
.mk-use > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.mk-use .mk-checks { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: var(--fs-sm); }
@media (max-width: 960px) { .mk-uses { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; } }

/* ==========================================================
   SHOWCASE (product mockup)
   ========================================================== */
.mk-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mk-showcase-media {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-xl); aspect-ratio: 1 / 1; background: var(--bg-card);
}
.mk-showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-showcase-copy h2 { font-size: var(--fs-4xl); margin: 14px 0; letter-spacing: -0.03em; }
.mk-showcase-copy > p { color: var(--text-muted); font-size: var(--fs-lg); margin-bottom: 24px; }
.mk-showcase-copy .mk-checks { margin-bottom: 28px; }
.mk-showcase-copy .mk-checks li { font-size: var(--fs-base); }
@media (max-width: 900px) {
  .mk-showcase { grid-template-columns: minmax(0, 1fr); }
  .mk-showcase-media { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) { .mk-showcase-copy .btn { width: 100%; } }

/* ==========================================================
   MISSION BAND (dark)
   ========================================================== */
.mk-mission { padding: clamp(24px, 4vw, 40px) 0; }
.mk-mission-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  background: linear-gradient(150deg, #0b1220 0%, #111a33 55%, #1b1240 100%);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.mk-mission-card::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 30% 40%, rgba(34, 211, 238, 0.22), transparent 70%), radial-gradient(45% 45% at 75% 50%, rgba(167, 139, 250, 0.22), transparent 70%);
}
.mk-mission-card .mk-eyebrow { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--primary); }
.mk-mission-card h2 { font-size: var(--fs-4xl); max-width: 820px; margin: 16px auto 14px; letter-spacing: -0.03em; }
.mk-mission-card p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 680px; margin: 0 auto 28px; line-height: 1.7; }
.mk-mission-card .mk-btn-row { justify-content: center; }
@media (max-width: 520px) {
  .mk-mission-card .mk-btn-row { flex-direction: column; align-items: stretch; }
  .mk-mission-card p { font-size: var(--fs-base); }
}

/* ==========================================================
   PRICING
   ========================================================== */
.mk-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; align-items: start; }
.mk-plan {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 3.4vw, 36px);
  color: var(--text);
}
.mk-plan-featured {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(80% 50% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #131a35 100%);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(167, 139, 250, 0.15);
}
.mk-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mk-plan-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; min-height: 1.5em; }
.mk-plan-name .icon-chip { width: 34px; height: 34px; border-radius: 10px; }
.mk-plan-name .icon-chip svg { width: 18px; height: 18px; }
[data-plan-name]:empty {
  display: inline-block; width: 7em; height: 0.95em; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, rgba(148,163,184,0.18) 25%, rgba(148,163,184,0.32) 50%, rgba(148,163,184,0.18) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.mk-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.mk-plan-badge svg { width: 13px; height: 13px; }
.mk-plan-badge.is-free { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.mk-plan-badge.is-popular { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.7); }
.mk-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.mk-price-amount { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-price-per { color: var(--text-light); font-weight: 500; }
.mk-plan-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 22px; min-height: 3.2em; }
.mk-plan .btn-block { min-height: 52px; font-size: var(--fs-base); border-radius: 12px; }
.mk-plan-note { text-align: center; color: var(--text-light); font-size: var(--fs-xs); margin-top: 10px; }
.mk-plan-features { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.mk-feat-group + .mk-feat-group { margin-top: 18px; }
.mk-feat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.mk-feat-list { list-style: none; display: grid; gap: 9px; }
.mk-feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; color: var(--text-secondary); }
.mk-feat-list li > svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--success); }
.mk-feat-list li.is-hl { color: var(--text); font-weight: 600; }
.mk-feat-list li.is-hl > svg { color: var(--primary); }
.mk-feat-list li.is-accent > svg { color: var(--accent); }
.mk-feat-more { display: block; }
html.js .mk-feat-more:not(.is-open) { display: none; }
.mk-feat-more.is-open { animation: fadeUp 0.45s var(--ease-out) both; }
.mk-feat-more > .mk-feat-group:first-child { margin-top: 18px; }
.mk-show-all {
  margin-top: 18px; width: 100%;
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px dashed var(--border-strong);
  background: transparent; color: var(--text-secondary); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
html.js .mk-show-all { display: flex; }
.mk-show-all:hover { background: var(--bg-hover); border-color: var(--primary-border); color: var(--text); }
.mk-show-all svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.mk-show-all[aria-expanded="true"] svg { transform: rotate(180deg); }
.mk-pricing-foot { text-align: center; margin-top: 28px; color: var(--text-light); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.mk-pricing-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mk-pricing-foot svg { width: 15px; height: 15px; color: var(--success); }
@media (max-width: 820px) {
  .mk-pricing { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .mk-plan-desc { min-height: 0; }
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.mk-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mk-quote {
  border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.mk-quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mk-stars { display: flex; gap: 2px; color: #f59e0b; }
.mk-stars svg { width: 17px; height: 17px; fill: currentColor; }
.mk-quote blockquote { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; flex: 1; }
.mk-quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.mk-quote .avatar-initials { width: 42px; height: 42px; font-size: 0.85rem; }
.mk-quote-name { font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.mk-quote-org { color: var(--text-light); font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .mk-quotes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none;
  }
  .mk-quotes::-webkit-scrollbar { display: none; }
  .mk-quote { scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .mk-quotes { scroll-padding: 0 16px; }
}

/* ==========================================================
   FAQ (accordion)
   ========================================================== */
.mk-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mk-faq-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.mk-faq-intro h2 { font-size: var(--fs-4xl); margin: 14px 0 12px; letter-spacing: -0.03em; }
.mk-faq-intro > p { color: var(--text-muted); margin-bottom: 24px; }
.mk-help-card { border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow-sm); }
.mk-help-card strong { display: block; font-family: var(--font-heading); font-size: var(--fs-lg); margin-bottom: 4px; }
.mk-help-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.mk-help-card .mk-btn-row { gap: 8px; }
.mk-acc { display: grid; gap: 10px; }
.mk-acc-item {
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.mk-acc-item:hover { border-color: var(--border-strong); }
.mk-acc-item.is-open { border-color: var(--primary-border); box-shadow: var(--shadow-sm); }
.mk-acc-item h3 { font-size: inherit; letter-spacing: normal; text-wrap: pretty; }
.mk-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 56px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--text);
  border-radius: var(--radius);
}
.mk-acc-btn:hover { color: var(--primary-dark); }
.mk-acc-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.mk-acc-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg-subtle); color: var(--text-muted);
  transition: transform var(--dur) var(--ease-out), background var(--dur) ease, color var(--dur) ease;
}
.mk-acc-icon svg { width: 16px; height: 16px; }
.mk-acc-item.is-open .mk-acc-icon { transform: rotate(45deg); background: var(--primary-bg); color: var(--primary); }
.mk-acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
html.js .mk-acc-panel { grid-template-rows: 0fr; }
html.js .mk-acc-item.is-open .mk-acc-panel { grid-template-rows: 1fr; }
.mk-acc-inner { overflow: hidden; min-height: 0; }
.mk-acc-body { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.7; font-size: 0.97rem; }
html.js .mk-acc-item:not(.is-open) .mk-acc-body { visibility: hidden; transition: visibility 0s linear var(--dur-slow); }
.mk-acc-body p + p, .mk-acc-body p + ul, .mk-acc-body ul + p { margin-top: 10px; }
.mk-acc-body ul { padding-left: 20px; display: grid; gap: 6px; }
.mk-acc-body strong { color: var(--text); }
@media (max-width: 900px) {
  .mk-faq { grid-template-columns: minmax(0, 1fr); }
  .mk-faq-intro { position: static; text-align: center; }
  .mk-faq-intro .mk-help-card { display: none; }
  .mk-faq-help-bottom { display: block !important; margin-top: 20px; }
}
.mk-faq-help-bottom { display: none; }
@media (max-width: 520px) {
  .mk-acc-btn { padding: 16px; font-size: 0.97rem; }
  .mk-acc-body { padding: 0 16px 18px; }
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.mk-cta { padding: clamp(24px, 5vw, 56px) 0 clamp(64px, 9vw, 104px); }
.mk-cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: var(--grad-brand);
  color: #fff; text-align: center;
  box-shadow: 0 30px 80px -30px rgba(79, 70, 229, 0.6);
}
.mk-cta-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
}
.mk-cta-card h2 { color: #fff; font-size: var(--fs-4xl); letter-spacing: -0.03em; margin-bottom: 14px; }
.mk-cta-card h2 span { display: block; }
.mk-cta-card p { color: rgba(255,255,255,0.86); font-size: var(--fs-lg); max-width: 600px; margin: 0 auto 30px; }
.mk-cta-card .mk-btn-row { justify-content: center; }
.mk-cta-card .btn-white { color: var(--primary-dark); }
.mk-cta-card .mk-cta-link { color: rgba(255,255,255,0.9); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 10px 8px; }
.mk-cta-card .mk-cta-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mk-cta-card .mk-cta-link svg { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .mk-cta-card .mk-btn-row { flex-direction: column; align-items: stretch; }
  .mk-cta-card p { font-size: var(--fs-base); }
  .mk-cta-card .mk-cta-link { justify-content: center; }
}

/* ==========================================================
   FOOTER (shared by every marketing page)
   ========================================================== */
.mk-footer { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(48px, 7vw, 72px) 0 calc(28px + var(--safe-bottom)); }
.mk-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.mk-footer-brand .mk-footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--text);
}
.mk-footer-brand .mk-footer-logo img { width: 36px; height: 36px; }
.mk-footer-brand p { color: var(--text-muted); font-size: var(--fs-sm); margin: 12px 0 18px; max-width: 340px; line-height: 1.6; }
.mk-footer-col h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.mk-footer-col ul { list-style: none; display: grid; gap: 4px; }
.mk-footer-col a {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 0;
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500;
}
.mk-footer-col a:hover { color: var(--primary-dark); }
.mk-footer-col a svg { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }
.mk-footer-col a span { min-width: 0; overflow-wrap: anywhere; }
.mk-footer-lang-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.mk-footer-lang-label svg { width: 14px; height: 14px; }
.mk-footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-lang-btn {
  min-height: 34px; padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.mk-lang-btn:hover { border-color: var(--border-strong); color: var(--text); }
html[lang="en"] .mk-lang-btn[data-lang="en"],
html[lang="es"] .mk-lang-btn[data-lang="es"],
html[lang="vi"] .mk-lang-btn[data-lang="vi"],
html[lang="zh"] .mk-lang-btn[data-lang="zh"],
html[lang="ko"] .mk-lang-btn[data-lang="ko"] { border-color: var(--primary-border); background: var(--primary-bg); color: var(--primary-dark); font-weight: 600; }
.mk-footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--text-light); font-size: var(--fs-sm);
}
.mk-footer-bottom a { color: var(--text-light); display: inline-flex; align-items: center; gap: 6px; }
.mk-footer-bottom a:hover { color: var(--primary-dark); }
.mk-footer-bottom svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .mk-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .mk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-footer-col:nth-child(2) { order: 1; }
  .mk-footer-col:nth-child(4) { order: 2; }
  .mk-footer-col:nth-child(3) { order: 3; grid-column: 1 / -1; }
  .mk-footer-col a { padding: 8px 0; }
  .mk-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   MOBILE STICKY CTA (homepage)
   ========================================================== */
.mk-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -16px rgba(15,23,42,0.25);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mk-sticky-cta.is-shown { transform: none; }
.mk-sticky-cta-text { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.3; }
.mk-sticky-cta-text strong { display: block; color: var(--text); font-family: var(--font-heading); }
.mk-sticky-cta-text span { color: var(--text-light); font-size: var(--fs-xs); }
.mk-sticky-cta .btn { flex-shrink: 0; min-height: 46px; }
@media (max-width: 640px) { .mk-sticky-cta { display: flex; } }
body.drawer-open .mk-sticky-cta { transform: translateY(110%); }

/* ==========================================================
   SUB-PAGE HERO (support, status, legal)
   ========================================================== */
.mk-page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06), var(--bg-page) 85%);
  text-align: center;
}
.mk-page-hero .mk-hero-bg .mk-blob { opacity: 0.4; }
.mk-page-hero h1 { font-size: var(--fs-5xl); letter-spacing: -0.035em; line-height: 1.06; margin: 16px auto 14px; max-width: 900px; }
.mk-page-hero .mk-lead { color: var(--text-muted); font-size: var(--fs-lg); max-width: 680px; margin: 0 auto; line-height: 1.65; }
.mk-page-hero > .mk-container > * { animation: fadeUp 0.6s var(--ease-out) both; }
.mk-page-hero > .mk-container > :nth-child(2) { animation-delay: 0.06s; }
.mk-page-hero > .mk-container > :nth-child(3) { animation-delay: 0.12s; }
@media (max-width: 640px) {
  .mk-page-hero h1 { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .mk-page-hero .mk-lead { font-size: var(--fs-base); }
}

/* ==========================================================
   SCHEDULE SUPPORT
   ========================================================== */
.mk-support { padding: 8px 0 clamp(56px, 8vw, 96px); }
.mk-support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.mk-support-form-col { position: sticky; top: calc(var(--nav-h) + 20px); }
.mk-card {
  border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 28px);
}
.mk-card + .mk-card { margin-top: 20px; }
.mk-card-title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xl); margin-bottom: 6px; }
.mk-card-sub { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 18px; }
.mk-card .mk-checks { font-size: 0.95rem; }
.mk-form-card { box-shadow: var(--shadow-lg); border-color: var(--border); position: relative; overflow: hidden; }
.mk-form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-brand); }
.mk-form .form-group { margin-bottom: 14px; }
.mk-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-form label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--text); }
.mk-form .req { color: var(--danger); margin-left: 2px; }
.mk-form .form-control { width: 100%; min-height: 46px; }
.mk-form textarea.form-control { min-height: 110px; resize: vertical; }
.mk-form .form-control[aria-invalid="true"] { border-color: var(--danger); box-shadow: var(--ring-danger); }
.mk-field-error { display: none; color: var(--danger); font-size: var(--fs-xs); margin-top: 5px; font-weight: 500; }
.mk-form .form-control[aria-invalid="true"] + .mk-field-error { display: block; }
.mk-form .btn-block { min-height: 54px; font-size: var(--fs-base); border-radius: 12px; margin-top: 6px; }
.mk-form-foot { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--text-light); font-size: var(--fs-xs); margin-top: 12px; }
.mk-form-foot svg { width: 14px; height: 14px; color: var(--success); }
.mk-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mk-contact {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 16px; border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--text); min-width: 0;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.mk-contact:hover { border-color: var(--primary-border); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text); }
.mk-contact strong { font-size: var(--fs-xs); color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.mk-contact-text { display: flex; flex-direction: column; min-width: 0; }
.mk-contact-text > span { font-weight: 600; font-size: var(--fs-base); overflow-wrap: anywhere; }
.mk-steps-mini { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.mk-steps-mini li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); font-size: 0.95rem; }
.mk-steps-mini li::before {
  counter-increment: s; content: counter(s);
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs);
  background: var(--primary-bg); color: var(--primary-dark); border: 1px solid var(--primary-border);
}
.mk-success { text-align: center; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 32px); }
.mk-success-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--success-bg); color: var(--success);
  border: 1px solid var(--success-border);
  animation: scaleIn 0.5s var(--ease-spring) both;
}
.mk-success-icon svg { width: 36px; height: 36px; }
.mk-success h2 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.mk-success p { color: var(--text-muted); max-width: 420px; margin: 0 auto 22px; }
.mk-verse {
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(150deg, #0b1220 0%, #111a33 55%, #1b1240 100%);
  color: var(--text); text-align: center; position: relative; overflow: hidden;
}
.mk-verse svg.mk-verse-mark { width: 32px; height: 32px; color: var(--primary); opacity: 0.8; margin-bottom: 10px; }
.mk-verse blockquote { font-family: var(--font-heading); font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.5; max-width: 760px; margin: 0 auto; color: var(--text); letter-spacing: -0.01em; }
.mk-verse cite { display: block; margin-top: 12px; color: var(--text-muted); font-style: normal; font-size: var(--fs-sm); }
@media (max-width: 920px) {
  .mk-support-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-support-form-col { position: static; order: -1; }
}
@media (max-width: 560px) {
  .mk-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ==========================================================
   STATUS PAGE
   ========================================================== */
.mk-status { padding: 8px 0 clamp(56px, 8vw, 96px); }
.mk-status-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.mk-status-banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--text-faint); }
.mk-status-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-subtle); color: var(--text-light); position: relative; }
.mk-status-icon svg { width: 26px; height: 26px; }
.mk-status-text { flex: 1; min-width: 0; }
.mk-status-headline { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-2xl); letter-spacing: -0.02em; line-height: 1.25; }
.mk-status-detail { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px; }
.mk-status-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mk-status-banner.operational::before { background: var(--success); }
.mk-status-banner.operational .mk-status-icon { background: var(--success-bg); color: var(--success); }
.mk-status-banner.degraded::before { background: var(--warning); }
.mk-status-banner.degraded .mk-status-icon { background: var(--warning-bg); color: var(--warning); }
.mk-status-banner.outage::before { background: var(--danger); }
.mk-status-banner.outage .mk-status-icon { background: var(--danger-bg); color: var(--danger); }
.mk-status-banner.operational .mk-status-icon::after,
.mk-status-banner.degraded .mk-status-icon::after,
.mk-status-banner.outage .mk-status-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid currentColor; opacity: 0;
  animation: mkStatusPulse 2.6s ease-out infinite;
}
@keyframes mkStatusPulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.32); opacity: 0; } }
.mk-status-section { margin-top: 36px; }
.mk-status-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mk-status-section-head h2 { font-size: var(--fs-xl); }
.mk-status-section-head span { color: var(--text-light); font-size: var(--fs-sm); }
.mk-components { border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.mk-component { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.mk-component + .mk-component { border-top: 1px solid var(--border-light); }
.mk-component .icon-chip { width: 38px; height: 38px; background: var(--bg-subtle); color: var(--text-muted); }
.mk-component .icon-chip svg { width: 18px; height: 18px; }
.mk-component-text { flex: 1; min-width: 0; }
.mk-component-name { font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.mk-component-desc { color: var(--text-light); font-size: var(--fs-xs); }
.mk-state { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; color: var(--text-light); }
.mk-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.mk-state.operational { color: var(--success); }
.mk-state.degraded { color: var(--warning); }
.mk-state.outage { color: var(--danger); }
.mk-uptime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mk-uptime {
  border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
}
.mk-uptime-window { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 48px; }
.mk-uptime-window > span:first-child { white-space: nowrap; }
.mk-uptime-pct { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); letter-spacing: -0.03em; margin: 6px 0 12px; font-variant-numeric: tabular-nums; color: var(--text); }
.mk-uptime-bar { height: 8px; border-radius: 8px; background: var(--bg-active); overflow: hidden; }
.mk-uptime-bar i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: var(--success); transition: width 1s var(--ease-out); }
.mk-uptime.is-warn .mk-uptime-bar i { background: var(--warning); }
.mk-uptime.is-bad .mk-uptime-bar i { background: var(--danger); }
.mk-uptime-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--text-light); font-size: var(--fs-xs); flex-wrap: wrap; }
.mk-uptime-meta b { color: var(--text-secondary); font-weight: 600; }
.mk-grade { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.mk-uptime.is-warn .mk-grade { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.mk-uptime.is-bad .mk-grade { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--text-light); font-size: var(--fs-xs); }
.mk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mk-status-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.mk-status-info .mk-card + .mk-card { margin-top: 0; }
.mk-status-info h3 { font-size: var(--fs-lg); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.mk-status-info p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.mk-status-info .mk-btn-row { margin-top: 14px; gap: 8px; }
@media (max-width: 860px) {
  .mk-uptime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-status-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mk-status-banner { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .mk-status-actions { width: 100%; }
  .mk-status-actions .btn { flex: 1; }
  .mk-status-headline { font-size: var(--fs-xl); }
  .mk-component { padding: 14px 16px; gap: 12px; }
  .mk-component-desc { display: none; }
  .mk-uptime-grid { gap: 10px; }
  .mk-uptime { padding: 14px; }
}
@media (max-width: 380px) {
  .mk-uptime-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================
   LEGAL PAGES (ToS / Privacy)
   ========================================================== */
.mk-legal-hero { text-align: left; }
.mk-legal-hero h1 { margin-left: 0; font-size: var(--fs-5xl); }
.mk-legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--text-light); font-size: var(--fs-sm); margin-top: 6px; }
.mk-legal-meta span, .mk-legal-meta a { display: inline-flex; align-items: center; gap: 6px; }
.mk-legal-meta svg { width: 15px; height: 15px; }
.mk-legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: 8px; padding-bottom: clamp(56px, 8vw, 96px); }
.mk-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.mk-toc-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; padding-left: 14px; }
.mk-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.mk-toc a {
  display: block; padding: 6px 12px 6px 14px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.4;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.mk-toc a:hover { color: var(--text); background: var(--bg-hover); }
.mk-toc a.is-active { color: var(--primary-dark); border-left-color: var(--primary); font-weight: 600; }
.mk-toc-mobile { display: none; }
.mk-legal-doc { max-width: 760px; }
.mk-legal-notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 28px;
  background: var(--primary-bg); border: 1px solid var(--primary-border); color: var(--text-secondary); font-size: var(--fs-sm);
}
.mk-legal-notice svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
html[lang="en"] .mk-legal-notice { display: none; }
.mk-legal-doc .legal-section {
  background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--border-light);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.mk-legal-doc .legal-section:last-child { border-bottom: 0; }
.mk-legal-doc .legal-section h2 { font-size: var(--fs-2xl); margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.mk-legal-doc .legal-section h2 .mk-sec-num { color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: 0.85em; }
.mk-legal-doc .legal-section p, .mk-legal-doc .legal-section li { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; }
.mk-legal-doc .legal-section ul { margin: 10px 0 0 22px; display: grid; gap: 6px; }
.mk-legal-doc .legal-section li::marker { color: var(--primary); }
.mk-legal-doc .legal-section strong { color: var(--text); }
.mk-legal-doc .legal-section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary-border); }
.mk-legal-contact { margin-top: 8px; }
.mk-back-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; }
.mk-back-top svg { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .mk-legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .mk-toc { display: none; }
  .mk-toc-mobile {
    display: block; margin-bottom: 24px;
    border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-xs);
  }
  .mk-toc-mobile summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px; min-height: 48px; font-weight: 600; color: var(--text);
  }
  .mk-toc-mobile summary::-webkit-details-marker { display: none; }
  .mk-toc-mobile summary svg { width: 18px; height: 18px; color: var(--text-light); transition: transform var(--dur) var(--ease-out); }
  .mk-toc-mobile[open] summary svg { transform: rotate(180deg); }
  .mk-toc-mobile ol { list-style: none; padding: 0 8px 10px; display: grid; gap: 2px; }
  .mk-toc-mobile a { display: block; padding: 10px 10px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: var(--fs-sm); }
  .mk-toc-mobile a:hover { background: var(--bg-hover); color: var(--text); }
  .mk-legal-doc .legal-section p, .mk-legal-doc .legal-section li { font-size: 1rem; }
}
@media (max-width: 640px) {
  .mk-legal-hero h1 { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .mk-legal-doc .legal-section h2 { font-size: var(--fs-xl); }
}

/* Print: legal pages print as clean documents */
@media print {
  .navbar, .support-bar, .mk-footer, .mk-toc, .mk-toc-mobile, .mk-hero-bg, .mk-sticky-cta, .mk-legal-notice, .mk-back-top { display: none !important; }
  .mk-legal-wrap { display: block; }
  .mk-page-hero { background: none; padding: 0 0 16px; }
}
