/* Round 79: marketing site stylesheet -- same design language as the app
   (slate + indigo tokens) as a small standalone file; no dependency on
   the app's stylesheet. Meets the same ADA baseline (skip link, AA
   contrast, reduced-motion). */

:root {
  --ink: #14181f;
  --ink-soft: #4c5566;
  --muted: #667085;
  --line: #e5e8ee;
  --line-soft: #eef0f4;
  --bg: #f5f6f9;
  --panel: #ffffff;
  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --accent-soft: #eef0ff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-md: 0 6px 20px rgba(20, 24, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }
.mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }
.muted { color: var(--muted); }

/* ---- skip link (ADA) ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---- nav ---- */
.mk-nav { background: #14181f; }
.mk-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  min-height: 60px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.mk-brand {
  display: flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
}
.mk-brand img { border-radius: 6px; }
.mk-nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.mk-nav-links a {
  color: #b7c0d1; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 11px; border-radius: 7px; transition: color .12s, background .12s;
}
.mk-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.mk-nav-spacer { flex: 0 0 12px; }

/* ---- buttons ---- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .12s, box-shadow .12s;
}
.mk-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25); }
.mk-btn-primary:hover { background: var(--accent-ink); }
.mk-btn-ghost { background: transparent; color: #e5e8ee; border: 1px solid rgba(255,255,255,0.25); }
.mk-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.mk-btn-light { background: #fff; color: var(--accent-ink); }
.mk-btn-light:hover { background: var(--accent-soft); }

/* ---- layout ---- */
.mk-main { max-width: 1080px; margin: 0 auto; padding: 40px 20px 40px; }
.mk-hero { text-align: center; padding: 56px 0 40px; }
.mk-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.5px; margin: 0 0 14px; line-height: 1.15; }
.mk-hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }
.mk-hero .mk-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mk-hero .mk-cta-row .mk-btn { padding: 13px 26px; font-size: 15px; }
.mk-hero .mk-cta-row .mk-btn-primary { box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3); }

.mk-section { padding: 34px 0; }
.mk-section > h2 { font-size: 26px; letter-spacing: -0.3px; margin: 0 0 8px; }
.mk-section > p.section-lead { color: var(--muted); margin: 0 0 24px; max-width: 640px; }

/* ---- feature cards ---- */
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 1px 2px rgba(20,24,31,0.05);
}
.mk-card .mk-card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px;
}
.mk-card h3 { margin: 0 0 6px; font-size: 16px; }
.mk-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- steps ---- */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.mk-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
}
.mk-step .mk-step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.mk-step h3 { margin: 0 0 6px; font-size: 15px; }
.mk-step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- pricing ---- */
.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mk-plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: 0 1px 2px rgba(20,24,31,0.05); text-align: center;
}
.mk-plan h3 { margin: 0 0 4px; font-size: 17px; }
.mk-plan .mk-price { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin: 6px 0 2px; }
.mk-plan .mk-interval { color: var(--muted); font-size: 13px; }
.mk-plan ul { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; }
.mk-plan li { padding: 5px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.mk-plan li:last-child { border-bottom: none; }

/* ---- contact ---- */
.mk-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ---- footer ---- */
.mk-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 26px 20px; text-align: center; font-size: 13.5px; color: var(--muted);
}
.mk-footer a { color: var(--ink-soft); margin: 0 4px; }

/* ---- cookie consent banner (fixed overlay; links work without JS) ---- */
.mk-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: center;
  background: rgba(17, 20, 28, 0.97); color: #e5e8ee;
  padding: 14px 20px; font-size: 14px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
}
.mk-consent-text { margin: 0; max-width: 660px; }
.mk-consent-text a { color: #9ecbff; }
.mk-consent-actions { display: flex; gap: 10px; }
.mk-consent .mk-btn { padding: 8px 20px; font-size: 14px; }
@media (max-width: 560px) {
  .mk-consent { flex-direction: column; text-align: center; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .mk-cards, .mk-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mk-cards, .mk-steps { grid-template-columns: 1fr; }
  .mk-nav-inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- FAQ (Round 83) ---- */
.mk-faq-section { margin-top: 26px; }
.mk-faq-section h2 { font-size: 19px; margin-bottom: 10px; }
.mk-faq {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  margin-bottom: 8px; overflow: hidden;
}
.mk-faq summary {
  cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--ink);
  list-style-position: outside;
}
.mk-faq summary:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: -2px; }
.mk-faq[open] summary { border-bottom: 1px solid var(--line); color: var(--ink-strong, var(--ink)); }
.mk-faq-answer { padding: 12px 14px; color: var(--ink-soft, var(--ink)); line-height: 1.55; }

/* ---- How-to guide (Round 83) ---- */
.mk-toc {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 14px 16px; margin: 18px 0 8px; display: flex; flex-direction: column; gap: 4px;
  font-size: 14.5px;
}
.mk-guide-part { margin-top: 34px; }
.mk-guide-part > h2 { font-size: 24px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mk-step { margin-top: 26px; }
.mk-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mk-step-head h3 { font-size: 17.5px; margin: 0; }
.mk-step-num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent, #4f46e5); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-step img {
  display: block; width: 100%; max-width: 980px; height: auto;
  border: 1px solid var(--line); border-radius: 8px; margin-top: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mk-step ul { margin: 6px 0 0 18px; }
.mk-step li { margin: 3px 0; }
.mk-guide-outro { margin-top: 30px; font-size: 15px; }

/* footer: solutions + legal rows (Round 84) */
.mk-footer .mk-footer-legal { font-size: 12.5px; line-height: 1.6; }
.mk-footer .mk-footer-solutions { margin-top: 6px; font-size: 13px; }
.mk-footer .mk-footer-solutions a { color: var(--ink-soft); }

/* footer badge (launch record, Round 84) */
.mk-footer-badges { margin-top: 10px; }
.mk-footer-badges img { display: inline-block; width: 180px; height: auto; vertical-align: middle; }

/* Round 105: billing period SLIDING SWITCH -- one accent pill (the
   thumb) slides under the Monthly / Yearly labels. The labels keep their
   NATURAL widths (they are very different: the yearly side carries the
   "2 months free" badge), so equal-half thumb math would overlap the
   text -- instead pricing-slider.js positions the thumb to the active
   label's exact box (left/width, transition-animated). Without JS the
   thumb stays hidden and the active label gets the classic accent
   background (Round 88's look), so nothing ever overlaps. :has() still
   swaps the monthly/yearly prices; radios remain the mechanism. */
.mk-billing-toggle {
  position: relative; display: inline-grid; grid-template-columns: auto auto;
  width: fit-content; max-width: 100%; margin: 10px auto 24px;
  padding: 4px;
  background: var(--bg, #f2f4f8); border: 1px solid var(--line);
  border-radius: 999px;
}
.mk-billing-toggle label {
  position: relative; z-index: 1;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-soft, #5d6675);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: color .15s ease;
}
.mk-billing-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mk-billing-thumb {
  display: none; /* pricing-slider.js positions + reveals it */
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  border-radius: 999px;
  background: var(--accent, #4f46e5);
  box-shadow: 0 2px 8px rgba(30, 30, 80, .18);
  transition: left .18s ease, width .18s ease;
}
.mk-billing-toggle.mk-billing-js .mk-billing-thumb { display: block; }
.mk-billing-toggle.mk-billing-js:has(#mk-billing-m:checked) label[for="mk-billing-m"],
.mk-billing-toggle.mk-billing-js:has(#mk-billing-y:checked) label[for="mk-billing-y"] { color: #fff; }
/* no-JS fallback: the classic filled-pill on the active label */
.mk-billing-toggle:not(.mk-billing-js):has(#mk-billing-m:checked) label[for="mk-billing-m"],
.mk-billing-toggle:not(.mk-billing-js):has(#mk-billing-y:checked) label[for="mk-billing-y"] {
  background: var(--accent, #4f46e5); color: #fff;
  box-shadow: 0 2px 8px rgba(30, 30, 80, .18);
}
.mk-billing-input:focus-visible ~ .mk-billing-thumb { outline: 2px solid var(--accent, #4f46e5); outline-offset: 2px; }
.mk-billing-toggle:not(.mk-billing-js) .mk-billing-input:focus-visible + label { outline: 2px solid var(--accent, #4f46e5); outline-offset: 2px; }
.mk-save-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: #dcfce7; color: #116933; padding: 2px 8px; border-radius: 999px;
}
.mk-billing-toggle:has(#mk-billing-y:checked) label[for="mk-billing-y"] .mk-save-badge { background: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 480px) {
  .mk-billing-toggle label { padding: 8px 12px; font-size: 13.5px; gap: 6px; }
  .mk-save-badge { font-size: 10px; padding: 1px 6px; }
}

/* Round 105: the PLAN slider -- drag to select a plan; the selected
   plan's card renders alone in the spotlight (pricing-slider.js
   re-parents it from the hidden grid). */
.mk-plan-spotlight {
  display: flex; justify-content: center;
  margin: 0 auto 4px;
}
.mk-plan-spotlight .mk-plan { width: min(420px, 100%); margin: 0; }
.mk-plan-slider { max-width: 680px; margin: 0 auto 30px; }
.mk-plan-slider input[type="range"] {
  width: 100%; accent-color: var(--accent, #4f46e5); cursor: pointer; margin: 0;
}
.mps-ticks { display: flex; justify-content: space-between; margin-top: 4px; }
.mps-tick { font-size: 12.5px; font-weight: 600; color: var(--muted, #5d6675); }
.mps-tick.active { color: var(--accent, #4f46e5); font-weight: 700; }
@media (max-width: 700px) {
  .mps-tick { font-size: 11px; }
}
/* monthly/yearly price + interval swap (radio lives in the toggle
   above the .mk-plans grid, both inside .mk-main) */
.mk-p-y { display: none; }
.mk-main:has(#mk-billing-y:checked) .mk-p-m { display: none; }
.mk-main:has(#mk-billing-y:checked) .mk-p-y { display: inline; }

/* ghost button on LIGHT backgrounds (Round 84) -- the original
   .mk-btn-ghost is tuned for the dark hero; on light sections its
   near-white text disappears. Landing pages + guide use this variant. */
.mk-btn-ghost-dark {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
}
.mk-btn-ghost-dark:hover { background: var(--accent-soft); }

/* ---- mobile nav + layout (Round 84; Round 88: CSS-only toggle) ---- */
/* The menu toggle is a hidden checkbox + label: no JS, CSP-safe, and
   the input stays keyboard-focusable (space/enter flips :checked). */
.mk-nav-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mk-nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
  color: #fff; padding: 8px 12px; font-size: 16px; line-height: 1; cursor: pointer;
}
.mk-nav-toggle:hover { background: rgba(255,255,255,0.08); }
.mk-nav-toggle-input:focus-visible + .mk-nav-toggle { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 820px) {
  .mk-nav-inner { flex-wrap: wrap; padding: 10px 16px; }
  .mk-nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
  /* collapsible link block: hidden until the checkbox is :checked
     (pure CSS -- no class toggling, no script) */
  .mk-nav-links {
    display: none;
    flex-direction: column; align-items: stretch; width: 100%;
    gap: 2px; padding: 6px 0 10px;
  }
  .mk-nav-toggle-input:checked ~ .mk-nav-links { display: flex; }
  .mk-nav-links a { padding: 11px 12px; font-size: 15px; border-radius: 8px; }
  .mk-nav-links .mk-nav-spacer { display: none; }
  .mk-nav-links .mk-btn { display: flex; justify-content: center; margin-top: 6px; }
  .mk-main { padding: 28px 16px 32px; }
  .mk-section { padding: 26px 0; }
  .mk-section > h2 { font-size: 22px; }
  h1 { font-size: clamp(26px, 7vw, 34px); }
  .mk-hero { padding: 40px 0 28px; }
  .mk-hero p.lead { font-size: 17px; }
  .mk-cards, .mk-steps { grid-template-columns: 1fr; }
  .mk-step img { border-radius: 6px; }
  .mk-footer { padding: 22px 16px; }
  .mk-footer div { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
  .mk-footer .mk-footer-solutions { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .mk-btn { width: 100%; justify-content: center; }
  .mk-step p a, p a { overflow-wrap: anywhere; }
  .mk-section .mk-btn { margin-bottom: 8px; }
}

/* Round 84 polish: current-page highlight in the marketing nav +
   sturdier billing toggle, centered. */
.mk-nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
@media (max-width: 820px) {
  .mk-nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
}
.mk-billing-toggle {
  display: flex;
  justify-content: center;
  margin-left: auto; margin-right: auto;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 5px;
}
.mk-billing-toggle button {
  font-weight: 700; font-size: 15px; padding: 10px 24px; color: var(--muted);
}
.mk-billing-toggle button.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}

/* desktop safety net (Round 84 fix): above 820px the links are ALWAYS
   visible and the toggle hidden, even if the mobile .open state was
   left behind by a rotation/resize -- this is what caused the
   "hamburger and full nav showing at once" report. */
@media (min-width: 821px) {
  .mk-nav-toggle { display: none !important; }
  .mk-nav-links { display: flex !important; flex-direction: row; align-items: center; width: auto; }
}

/* ---- resources & support article sections (Round 87) ---- */
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.mk-chips a {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
}
.mk-chips a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mk-post-list { max-width: 760px; }
.mk-post { padding: 18px 0 20px; border-bottom: 1px solid var(--line-soft); }
.mk-post:last-child { border-bottom: 0; }
.mk-post h2 { margin: 8px 0; font-size: 20px; }
.mk-post h2 a { color: var(--ink); text-decoration: none; }
.mk-post h2 a:hover { text-decoration: underline; }
.mk-post-meta { font-size: 13px; color: var(--muted); }
.mk-post-cat {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); font-size: 12px; color: var(--ink-soft);
}
.mk-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.mk-breadcrumb a { color: var(--muted); }
.mk-article-body { max-width: 760px; }
.mk-article-body p, .mk-article-body li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.mk-article-body h2 { margin: 28px 0 10px; }
.mk-article-body ul { padding-left: 22px; margin: 10px 0; }
.mk-article-body li { margin: 4px 0; }
.mk-article-body .mono, .mk-post .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.mk-article-body .mk-note { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* ---- Round 92c: free tools (DNS propagation + redirect checker) ---- */
.mk-tool-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; align-items: center; }
.mk-tool-form input[type="text"], .mk-tool-form input[type="url"], .mk-tool-form select {
  flex: 1 1 200px; min-width: 170px; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line, #dcdbe2); border-radius: 8px; background: #fff; color: var(--ink, #23202b);
}
.mk-tool-form .mk-btn { flex: 0 0 auto; }
.mk-tool-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; background: #fff; }
.mk-tool-table th, .mk-tool-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line, #eceaf1); vertical-align: top; }
.mk-tool-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #6b6478); }
.mk-tool-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.mk-tool-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.mk-tool-ok { background: #e7f6ec; color: #1b7a3d; }
.mk-tool-warn { background: #fdeee0; color: #a05a12; }
.mk-tool-bad { background: #fdeaea; color: #b3261e; }
.mk-tool-muted { color: var(--muted, #6b6478); }
.mk-tool-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.mk-tool-card { border: 1px solid var(--line, #eceaf1); border-radius: 12px; padding: 22px; background: #fff; }
.mk-tool-card h3 { margin: 0 0 10px; font-size: 17px; }
.mk-tool-card p { font-size: 14px; color: var(--muted, #4a4553); margin: 0 0 16px; }
