/* Public marketing pages (home, demo, legal). Loaded after site.css by Views/Shared/_Layout.cshtml only, so the
   dashboard (/app) keeps site.css alone. Colours come from site.css's tokens, so dark mode follows automatically. */

:root { --ink-strong: #0b1a1c; --hero-a: #e7f6f3; --hero-b: #f6f8f8; --accent: #f59e0b; --bubble-ai: #e3f4f1; --bubble-me: #fff; }
@media (prefers-color-scheme: dark) {
  :root { --ink-strong: #f2f8f8; --hero-a: #10292a; --hero-b: #0d1314; --bubble-ai: #123532; --bubble-me: #1b2a2c; }
}

body.mk { -webkit-font-smoothing: antialiased; }
.mk h1, .mk h2 { color: var(--ink-strong); letter-spacing: -.02em; }
.mk section { scroll-margin-top: 80px; }

/* ---------- header ---------- */
.mk-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-header.scrolled { border-bottom-color: var(--border); }
.mk-header .container { display: flex; align-items: center; gap: 12px; height: 64px; }
.mk-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 17px; white-space: nowrap; }
.mk-logo span { color: var(--brand); }
.mk-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.mk-links a.link { font-size: 15px; color: var(--muted); }
.mk-links a.link:hover { color: var(--text); }
.mk-actions { display: flex; gap: 8px; align-items: center; }
.mk-menu-btn { display: none; margin-left: 4px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.mk-menu-btn svg { width: 22px; height: 22px; }
.mk-panel { display: none; }
@media (max-width: 860px) {
  .mk-links, .mk-actions .btn:not(.primary) { display: none; }
  .mk-actions { margin-left: auto; }
  .mk-actions .btn.primary { padding: 8px 12px; font-size: 14px; }
  .mk-menu-btn { display: inline-flex; }
  .mk-panel.open { display: block; position: fixed; inset: 64px 0 0; background: var(--bg); padding: 12px 16px 32px; overflow-y: auto; z-index: 29; }
  .mk-panel a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
  .mk-panel .btn { display: flex; justify-content: center; margin-top: 14px; border-bottom: 1px solid var(--border); }
  .mk-panel .btn.primary { border-color: var(--brand); }
  body.menu-open { overflow: hidden; }
}

/* ---------- shared ---------- */
.mk-section { padding: 72px 0; }
.mk-section.tint { background: var(--surface); border-block: 1px solid var(--border); }
.mk-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.mk-head h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.mk-head p { color: var(--muted); font-size: 17px; margin: 0; }
.mk-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.mk .btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.mk .btn.primary:hover { filter: brightness(1.08); }
.mk .btn:focus-visible, .mk a:focus-visible, .mk summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.mk-hero { background: radial-gradient(1200px 500px at 85% -10%, var(--hero-a), transparent 60%), linear-gradient(var(--hero-b), var(--bg)); padding: 56px 0 64px; }
.mk-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.mk-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; margin: 14px 0 18px; }
.mk-hero h1 em { font-style: normal; color: var(--brand); }
.mk-hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.mk-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.mk-checks { display: flex; gap: 8px 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.mk-checks li { display: flex; align-items: center; gap: 6px; }
.mk-checks svg { width: 16px; height: 16px; color: var(--brand); }
.mk-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text); box-shadow: var(--shadow); }
.mk-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); }

/* the phone mock-up */
.mk-phone { justify-self: center; width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 14px;
  box-shadow: 0 24px 60px rgba(15, 60, 58, .18), 0 2px 6px rgba(0,0,0,.06); }
.mk-phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid var(--border); }
.mk-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.mk-phone-top strong { display: block; font-size: 15px; }
.mk-phone-top small { color: var(--muted); font-size: 12px; }
.mk-live { margin-left: auto; font-size: 12px; font-weight: 700; color: #16a34a; display: flex; align-items: center; gap: 5px; }
.mk-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: mk-pulse 1.6s infinite; }
@keyframes mk-pulse { 50% { opacity: .3; } }
.mk-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 6px; font-size: 14px; }
.mk-msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; line-height: 1.4; }
.mk-msg.caller { align-self: flex-end; background: var(--bubble-me); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.mk-msg.ai { align-self: flex-start; background: var(--bubble-ai); border-bottom-left-radius: 4px; }
.mk-msg small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.mk-booked { margin: 8px 4px 2px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 60%, transparent); font-size: 13px; }
.mk-booked svg { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .mk-chat .mk-msg, .mk-booked { animation: mk-in .5s both; }
  .mk-chat .mk-msg:nth-child(2) { animation-delay: .5s; } .mk-chat .mk-msg:nth-child(3) { animation-delay: 1s; }
  .mk-chat .mk-msg:nth-child(4) { animation-delay: 1.5s; } .mk-booked { animation-delay: 2s; }
}
@keyframes mk-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- trust strip ---------- */
.mk-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -28px; position: relative; }
.mk-strip div { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 14px; }
.mk-strip strong { display: block; font-size: 15px; }
.mk-strip span { color: var(--muted); }
.mk-strip .ico { color: var(--brand); width: 26px; height: 26px; }

/* ---------- problem ---------- */
.mk-problem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-problem div { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.mk-problem b { display: block; font-size: 17px; margin-bottom: 6px; }
.mk-problem p { margin: 0; color: var(--muted); }

/* ---------- features ---------- */
.mk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-feature { padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.mk-feature .ico-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.mk-feature h3 { font-size: 18px; margin-bottom: 6px; }
.mk-feature p { margin: 0; color: var(--muted); }

/* ---------- steps ---------- */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.mk-steps li { position: relative; padding: 24px 22px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.mk-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 14px; }
.mk-steps h3 { font-size: 18px; margin-bottom: 6px; }
.mk-steps p { margin: 0; color: var(--muted); }

/* ---------- demo band ---------- */
.mk-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; padding: 36px; border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #0b3b6f)); color: #fff; }
.mk-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.mk-band p { margin: 0; opacity: .9; font-size: 17px; }
.mk-band .btn { background: #fff; color: #0b3b38; border-color: #fff; }
.mk-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mk-band .mk-cta { justify-content: flex-end; }
.mk-tries { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-tries li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 10px; border-radius: 99px; font-size: 13px; }

/* ---------- industries ---------- */
.mk-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mk-chips span { padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }

/* ---------- pricing ---------- */
.mk-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.mk-plan { display: flex; flex-direction: column; padding: 24px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.mk-plan.featured { border: 2px solid var(--brand); box-shadow: 0 16px 40px rgba(15, 118, 110, .16); }
.mk-plan .tag { position: absolute; top: -12px; left: 20px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.mk-plan h3 { font-size: 18px; margin: 0 0 4px; }
.mk-plan .for { color: var(--muted); font-size: 14px; margin: 0 0 14px; min-height: 2.6em; }
.mk-plan .price { font-size: 34px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.mk-plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.mk-plan .mins { font-weight: 600; margin: 4px 0 14px; }
.mk-plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.mk-plan li { display: flex; gap: 8px; align-items: flex-start; }
.mk-plan li svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.mk-plan .btn { justify-content: center; }
.mk-swipe { display: none; }
.mk-note { text-align: center; color: var(--muted); font-size: 14px; margin: 20px auto 0; max-width: 720px; }

/* ---------- FAQ ---------- */
.mk-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.mk-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; }
.mk-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--brand); transition: transform .2s; }
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- final CTA + footer ---------- */
.mk-final { text-align: center; padding: 72px 0 80px; }
.mk-final h2 { font-size: clamp(28px, 4.4vw, 42px); }
.mk-final p { color: var(--muted); font-size: 17px; margin: 0 auto 24px; max-width: 560px; }
.mk-final .mk-cta { justify-content: center; }
.mk-footer { border-top: 1px solid var(--border); padding: 36px 0 40px; font-size: 14px; }
.mk-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.mk-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.mk-footer a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.mk-footer a:hover { color: var(--brand); }
.mk-footer p { color: var(--muted); margin: 8px 0 0; max-width: 380px; }

/* ---------- phone bottom bar ---------- */
.mk-bar { display: none; }
@media (max-width: 860px) {
  .mk-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s; }
  .mk-bar.show { transform: none; }
  .mk-bar .btn { flex: 1; justify-content: center; padding: 12px; }
  body.mk { padding-bottom: 72px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .mk-plans { grid-template-columns: repeat(2, 1fr); }
  .mk-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mk-section { padding: 52px 0; }
  .mk-hero { padding: 28px 0 52px; }
  .mk-hero .container { grid-template-columns: 1fr; gap: 32px; }
  .mk-hero .lead { font-size: 17px; }
  .mk-cta .btn { flex: 1 1 100%; justify-content: center; }
  .mk-problem, .mk-features, .mk-steps { grid-template-columns: 1fr; }
  .mk-features { gap: 12px; }
  .mk-feature { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 18px; }
  .mk-feature .ico-wrap { grid-row: span 2; margin: 0; }
  .mk-steps { gap: 12px; }
  .mk-band { grid-template-columns: 1fr; padding: 26px 20px; }
  .mk-band .mk-cta { justify-content: stretch; }
  .mk-footer .container { grid-template-columns: 1fr 1fr; }
  .mk-footer .container > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .mk-actions { display: none; }
  .mk-menu-btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .mk-strip { grid-template-columns: 1fr; }
  /* plans: swipe sideways instead of four tall cards in a row */
  .mk-plans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 16px 16px 8px; margin: 0 -16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mk-plans::-webkit-scrollbar { display: none; }
  .mk-plan { flex: 0 0 82%; scroll-snap-align: center; }
  .mk-swipe { display: block; text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
  .mk-strip { margin-top: -24px; }
  .mk-head { margin-bottom: 26px; }
  .mk-head p { font-size: 16px; }
  .mk-plan .for { min-height: 0; }
}
