/*
 * Public pages — site/assets/ui.css
 *
 * The shared design layer for every public page (home, contact, blog, legal pages and any page you add). One small system,
 * deliberately restrained:
 *   colour  — six values only: ink, paper, stone, line, mute and one accent (focus, the playing waveform, one dot, error text).
 *             No gradients and no second brand colour.
 *   type    — Inter (light display, regular body). Nothing else.
 *   shape   — pill buttons, hairline rules instead of boxed cards, and one decorative motif: the arch.
 * Scoped to body.mk-site so the customer dashboard and the admin are untouched. Page-specific parts live beside it:
 * blog.css, legal.css, auth-ui.css.
 */
.mk-site {
  --btn-h: 41px; /* one height for every button on the public site */
  --ink: #0c0a09; --paper: #fdfcfc; --stone: #f5f3f1; --line: #e7e3df; --mute: #5c5854; --accent: #b4472b;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-heading: var(--font-body);
  background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mk-site *, .mk-site *::before, .mk-site *::after { box-sizing: border-box; }
.mk-site a { color: inherit; }
.mk-site :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.h-main { display: block; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mk-site .site-header { background: rgba(253, 252, 252, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: none; }
.mk-site .nav-container { max-width: 1200px; height: 68px; padding: 0 28px; grid-template-columns: 1fr auto 1fr; gap: 28px; }
.mk-site .main-nav { justify-self: center; margin: 0; }
.mk-site .site-header .logo { justify-self: start; }
.mk-site .main-nav ul { display: flex; gap: 2px; list-style: none; }
.mk-site .nav-link { font: 500 .9rem var(--font-body); color: var(--mute); padding: 8px 13px; border-radius: 999px; background: none; }
.mk-site .nav-link:hover { color: var(--ink); background: var(--stone); }
.mk-site .nav-link.active { color: var(--ink); background: none; }
.mk-site .nav-ctas { gap: 4px; justify-self: end; }
.mk-site .h-link { font: 500 .9rem var(--font-body); color: var(--mute); padding: 9px 14px; border-radius: 999px; text-decoration: none; }
.mk-site .h-link:hover { color: var(--ink); background: var(--stone); }
.mk-site .btn, .mk-site .h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); min-height: var(--btn-h); padding: 0 24px; border-radius: 999px; font: 500 .95rem var(--font-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.mk-site .btn:hover, .mk-site .h-btn:hover { background: var(--mute); border-color: var(--mute); transform: none; box-shadow: none; }
.mk-site .h-start { height: var(--btn-h); padding: 0 20px; font-size: .9rem; }
.mk-site .h-btn.line { background: transparent; color: var(--ink); border-color: var(--line); }
.mk-site .h-btn.line:hover { background: var(--stone); border-color: var(--mute); }
.mk-site .h-btn.on-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mk-site .h-btn.on-ink:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.mk-site .h-btn.sm { height: var(--btn-h); padding: 0 18px; font-size: .9rem; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.h-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mk-site h1, .mk-site h2, .mk-site h3 { font-family: var(--font-body); color: var(--ink); margin: 0; }
.mk-site h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.mk-site h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.mk-site h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.h-lead { font-size: 1.2rem; line-height: 1.6; color: var(--mute); max-width: 540px; margin: 26px 0 0; font-weight: 400; }
.h-p { color: var(--mute); margin: 0 0 16px; font-size: 1.04rem; }
.h-p strong { color: var(--ink); font-weight: 500; }
.h-note { font-size: .86rem; color: var(--mute); margin: 18px 0 0; }
.h-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.h-wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 54px; }
.h-wave i { display: block; flex: 1 1 0; max-width: 5px; min-width: 2px; height: calc(var(--h) * 1%); border-radius: 3px; background: var(--mute); opacity: .32; transition: background .12s, opacity .12s; }
.h-wave i.on { background: var(--ink); opacity: 1; }
.is-playing .h-wave i.on { background: var(--accent); }
.h-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.h-play:hover { background: var(--mute); }
.h-play svg { width: 18px; height: 18px; fill: currentColor; }
.h-play .i-pause { display: none; }
.is-playing .h-play .i-play { display: none; }
.is-playing .h-play .i-pause { display: block; }
.h-meta { font-size: .84rem; color: var(--mute); line-height: 1.4; min-width: 0; }
.h-meta b { display: block; color: var(--ink); font-weight: 500; font-size: .92rem; }
.h-sec { padding: 112px 0; }
.h-sec.tint { background: var(--stone); }
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.h-head { margin-bottom: 52px; max-width: 720px; }
.h-head .h-lead { margin-top: 18px; }
.h-stuck { position: sticky; top: 112px; }
.h-dl { margin: 30px 0 0; padding: 0; }
.h-dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.h-dl > div:last-child { border-bottom: 1px solid var(--line); }
.h-dl dt { color: var(--mute); font-size: .92rem; margin: 0; }
.h-dl dd { margin: 0; font-size: .98rem; }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.h-step { border-top: 1px solid var(--ink); padding-top: 22px; }
.h-step .no { font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--mute); display: block; margin-bottom: 36px; font-variant-numeric: tabular-nums; }
.h-step h3 { margin-bottom: 10px; font-size: 1.45rem; font-weight: 400; letter-spacing: -.02em; }
.h-step p { margin: 0; color: var(--mute); }
.h-rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 34px 0; border-top: 1px solid var(--line); }
.h-rows > div:last-child { border-bottom: 1px solid var(--line); }
.h-rows h3 { font-size: 1.45rem; font-weight: 300; letter-spacing: -.025em; }
.h-rows p { margin: 0; color: var(--mute); max-width: 620px; }
.h-rows p + p { margin-top: 10px; }
.h-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.h-use { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.h-use h3 { margin-bottom: 8px; }
.h-use p { margin: 0; color: var(--mute); font-size: .98rem; }
.h-more { margin: 28px 0 0; font-size: .95rem; }
.h-more a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.h-more a:hover { text-decoration-color: var(--ink); }
.h-faq { max-width: 760px; }
.h-faq details { border-top: 1px solid var(--line); }
.h-faq details:last-child { border-bottom: 1px solid var(--line); }
.h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary h3 { font-size: 1.12rem; font-weight: 400; letter-spacing: -.01em; }
.h-faq summary::after { content: ''; flex: none; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 0v12M0 6h12' stroke='%230c0a09' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.h-faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M0 6h12' stroke='%230c0a09' stroke-width='1.5'/%3E%3C/svg%3E"); }
.h-faq .ans { padding: 0 48px 26px 0; color: var(--mute); }
.h-faq .ans p { margin: 0; }
.h-faq .ans a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.h-final { padding: 40px 0 112px; }
.h-band { background: var(--ink); color: var(--paper); border-radius: 50% 50% 28px 28px / 150px 150px 28px 28px; padding: 112px 28px 72px; text-align: center; }
.h-band h2 { color: var(--paper); max-width: 640px; margin: 0 auto; }
.h-band p { color: rgba(253, 252, 252, .72); max-width: 480px; margin: 20px auto 0; }
.h-band .h-cta { justify-content: center; }
.h-band .h-note { color: rgba(253, 252, 252, .62); }
.mk-site .site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--mute); padding: 72px 0 0; }
.mk-site .footer-grid { max-width: 1200px; padding: 0 28px 56px; }
.mk-site .footer-brand p { color: var(--mute); font-size: .92rem; margin-top: 14px; max-width: 280px; }
.mk-site .footer-col h4, .mk-site .footer-col .f-h { font: 500 .78rem var(--font-body); letter-spacing: .08em; color: var(--ink); text-transform: uppercase; margin-bottom: 18px; }
.mk-site .footer-col ul li a { font-size: .92rem; color: var(--mute); }
.mk-site .footer-col ul li a[style] { color: var(--ink) !important; font-weight: 500 !important; }
.mk-site .footer-col ul li a[style] span { display: none; }
.mk-site .footer-col ul li a:hover { color: var(--ink); }
.mk-site .footer-bottom { border-top: 1px solid var(--line); }
.mk-site .footer-bottom .container { max-width: 1200px; padding: 0 28px; }
.mk-site .footer-bottom p, .mk-site .footer-bottom a { color: var(--mute); font-size: .82rem; }
.mk-site .footer-bottom a:hover { color: var(--ink); }
@media (max-width: 1024px) {
  .h-split, .h-rows > div { grid-template-columns: 1fr; gap: 20px; }
  .h-stuck { position: static; }
  .h-uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mk-site .nav-container { height: 60px; padding: 0 20px; grid-template-columns: 1fr auto auto; gap: 8px; }
  .mk-site .nav-ctas { display: flex; }
  .mk-site .h-link { display: none; }
  .mk-site .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }   /* a blurred header becomes the containing block of the fixed menu panel */
  .mk-site .main-nav.mobile-open { top: 61px; height: calc(100vh - 61px); background: var(--paper); border-bottom: 0; }
  .mk-site .main-nav.mobile-open .nav-link { font-size: 1.05rem; color: var(--ink); border-radius: 12px; }
  .h-wrap { padding: 0 20px; }
  .h-sec { padding: 72px 0; }
  .h-head { margin-bottom: 36px; }
  .h-steps { grid-template-columns: 1fr; gap: 30px; }
  .h-step .no { margin-bottom: 18px; }
  .h-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .h-uses { grid-template-columns: 1fr; }
  .h-faq .ans { padding-right: 0; }
  .h-band { border-radius: 50% 50% 24px 24px / 120px 120px 24px 24px; padding: 90px 22px 56px; }
  .h-final { padding-bottom: 76px; }
  .h-cta .h-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-site * { transition: none !important; scroll-behavior: auto !important; }
}

/* the admin's own logo image, kept as uploaded */
.mk-site .site-header .logo, .mk-site .site-footer .logo { display: inline-flex; align-items: center; }
.mk-site .site-header .logo img, .mk-site .site-footer .logo img { width: auto !important; height: auto !important; max-width: 153px !important; max-height: 35.4px !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the theme's own link and menu-icon colours (navy) are not part of this palette */
.mk-site .logo { color: var(--ink); }
.mk-site .mobile-toggle span { background: var(--ink); }
.mk-site .footer-col .f-h { margin: 0 0 18px; }

/* Footer column 3: no heading, reads as a continuation of Resources. The blank heading keeps its links level with the other columns. */
.mk-site .footer-col .f-h-blank { visibility: hidden; user-select: none; }
@media (max-width: 768px) { .mk-site .footer-col-cont .f-h-blank { display: none; } .mk-site .footer-col-cont { margin-top: -14px; } }
