/* ==========================================================================
   QUANTECH ADVISORS — SITE DESIGN SYSTEM (all pages)
   --------------------------------------------------------------------------
   Tokens come from the QuantApp brand palette (mobile colors.ts, "source of
   truth: the logo"): deep navy #0F2A52, royal navy #1B3A6B, teal #2BA3B0,
   coral #E8744F (the person in the logo / the Q in Quantech).
   Classes are prefixed `mk-`. landing.css adds homepage-only sections.
   ========================================================================== */

:root {
  --mk-paper: #F6F4EF;
  --mk-paper-2: #EFECE4;
  --mk-white: #FFFFFF;
  --mk-line: #E2DED3;
  --mk-line-2: #D3CEC1;
  --mk-ink: #0B1B33;
  --mk-ink-2: #34445C;
  --mk-ink-3: #5B687D;
  --mk-navy: #0F2A52;
  --mk-royal: #1B3A6B;
  --mk-blue: #1E5FA8;
  --mk-teal: #2BA3B0;
  --mk-teal-2: #3FB8C5;
  --mk-teal-ink: #17707B;
  --mk-teal-soft: #DDF1F2;
  --mk-coral: #E8744F;
  --mk-coral-ink: #B04A28;
  --mk-coral-hd: #D45F3A; /* coral for large text on light backgrounds (≥3:1) */
  --mk-coral-soft: #FCE8E0;
  --mk-gold: #F5B841;
  --mk-success: #0A7A48;
  --mk-success-soft: #E3F6EC;
  --mk-warn: #8F5500;
  --mk-warn-soft: #FFF3DC;
  --mk-error: #C2352A;
  --mk-error-soft: #FDECEA;
  --mk-night: #071225;
  --mk-night-2: #0D1F3A;
  --mk-night-line: rgba(255, 255, 255, .11);
  --mk-night-text: #E9EFF7;
  --mk-night-muted: #9FB1C8;
  --mk-mint: #7EE3DA;
  --mk-app-side: #0A1628;

  --mk-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --mk-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mk-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --mk-max: 1200px;
  --mk-gutter: clamp(16px, 4vw, 40px);
  --mk-header-h: 76px;
  --mk-ease: cubic-bezier(.2, .7, .2, 1);
  --mk-radius: 16px;
  --mk-shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 12px 32px -18px rgba(11, 27, 51, .28);
}

/* ---------- Base (zero-specificity resets) ---------- */
:where(.mk) *, :where(.mk) *::before, :where(.mk) *::after { box-sizing: border-box; }
html:has(body.mk) { scroll-behavior: smooth; scroll-padding-top: calc(var(--mk-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.mk {
  margin: 0; background: var(--mk-paper); color: var(--mk-ink);
  font-family: var(--mk-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
:where(.mk) :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset) { margin: 0; padding: 0; }
:where(.mk) fieldset { border: 0; min-width: 0; }
:where(.mk) :where(ul, ol) { list-style: none; }
:where(.mk) :where(img, svg) { display: block; max-width: 100%; }
:where(.mk) a { color: inherit; }
:where(.mk) button { font: inherit; color: inherit; cursor: pointer; }
:where(.mk) [hidden] { display: none !important; }
.mk svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* Qora mark — the supplied black line-art PNG used as a mask, so it takes
   the current text colour (white on navy, grey in the app sidebar, etc.). */
.mk-qmark {
  display: inline-block; flex-shrink: 0; width: 20px; height: 20px; vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: url(/qora-160.png) center / contain no-repeat; mask: url(/qora-160.png) center / contain no-repeat;
}
.mk-qmark--lg { -webkit-mask-image: url(/qora-240.png); mask-image: url(/qora-240.png); }
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .mk-qmark { background: url(/qora-160.png) center / contain no-repeat; }
}
/* Qora tile — navy → teal, as in the app's Qora hero */
.mk-qtile {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #0F2A52 0%, #1B3A6B 55%, #2BA3B0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.mk-qtile .mk-qmark { width: 76%; height: 76%; }
.mk :focus-visible { outline: 3px solid var(--mk-teal); outline-offset: 3px; border-radius: 6px; }
.mk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mk-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--mk-ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.mk-skip:focus { top: 12px; }

.mk-wrap { width: 100%; max-width: calc(var(--mk-max) + 2 * var(--mk-gutter)); margin: 0 auto; padding: 0 var(--mk-gutter); }
.mk-wrap--narrow { max-width: calc(860px + 2 * var(--mk-gutter)); }

/* ---------- Type helpers ---------- */
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mk-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-teal-ink);
}
.mk-eyebrow b { font-weight: 500; color: var(--mk-ink-3); }
.mk-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.mk-h1 { font-family: var(--mk-display); font-weight: 700; letter-spacing: -.032em; line-height: 1; font-size: clamp(2.5rem, 5.4vw, 4.4rem); text-wrap: balance; }
.mk-h2 { font-family: var(--mk-display); font-weight: 700; letter-spacing: -.028em; line-height: 1.03; font-size: clamp(2.05rem, 4.4vw, 3.5rem); color: var(--mk-ink); text-wrap: balance; }
.mk-h1 em, .mk-h2 em { font-style: normal; color: var(--mk-coral-hd); }
.mk-page-hero--dark .mk-h1 em, .mk-qora .mk-h2 em { color: var(--mk-coral); }
.mk-h3 { font-family: var(--mk-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.mk-lead { font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: var(--mk-ink-2); max-width: 36em; text-wrap: pretty; }
.mk-note { font-family: var(--mk-mono); font-size: 12px; color: var(--mk-ink-3); letter-spacing: .02em; }
.mk-section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

/* ---------- Buttons ---------- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--mk-body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--mk-ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s, opacity .2s;
}
.mk-btn svg.i { width: 18px; height: 18px; transition: transform .25s var(--mk-ease); }
.mk-btn:hover svg.i { transform: translateX(3px); }
.mk-btn--primary { background: var(--mk-navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 24px -12px rgba(15,42,82,.7); }
.mk-btn--primary:hover { background: var(--mk-royal); transform: translateY(-1px); }
.mk-btn--ghost { border-color: var(--mk-line-2); color: var(--mk-ink); background: transparent; }
.mk-btn--ghost:hover { border-color: var(--mk-ink); background: var(--mk-white); }
.mk-btn--coral { background: var(--mk-coral); color: #fff; }
.mk-btn--coral:hover { background: var(--mk-coral-ink); transform: translateY(-1px); }
.mk-btn--light { background: #fff; color: var(--mk-ink); }
.mk-btn--light:hover { background: var(--mk-teal-soft); transform: translateY(-1px); }
.mk-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.mk-btn--block { width: 100%; }
.mk-btn[disabled], .mk-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.mk-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.mk-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: mk-spin .8s linear infinite; }
.mk-btn--ghost.is-loading::after, .mk-btn--light.is-loading::after { border-color: rgba(11,27,51,.2); border-top-color: var(--mk-ink); }
@keyframes mk-spin { to { transform: rotate(360deg); } }

.mk-textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--mk-ink); border-bottom: 1.5px solid var(--mk-line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; background: none; border-top: 0; border-left: 0; border-right: 0; }
.mk-textlink:hover { border-color: var(--mk-coral); color: var(--mk-coral-ink); }

/* ---------- Referral banner (markup injected by referral.js) ---------- */
body.mk #referral-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: var(--mk-navy); color: #fff; font-size: 14px; transition: opacity .4s ease, transform .4s ease; }
body.mk .referral-banner-inner { max-width: var(--mk-max); margin: 0 auto; padding: 11px var(--mk-gutter); display: flex; align-items: center; gap: 10px; }
body.mk .referral-banner-inner > svg { color: var(--mk-mint); flex-shrink: 0; }
body.mk #referral-banner-text { flex: 1; line-height: 1.4; }
body.mk .referral-banner-close { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 18px; line-height: 1; }

/* ---------- Header ---------- */
.mk-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--mk-header-h); transition: background-color .3s, box-shadow .3s, top .3s; }
.mk-header.is-scrolled, .mk-header--solid { background: rgba(246, 244, 239, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--mk-line); }
.mk-header .mk-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.mk-logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.mk-logo img { height: 56px; width: auto; }
.mk-nav { display: flex; gap: 4px; margin-left: 8px; }
.mk-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mk-ink-2); padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
.mk-nav a:hover { color: var(--mk-ink); background: rgba(11,27,51,.05); }
.mk-nav a[aria-current="page"] { color: var(--mk-ink); font-weight: 600; }
.mk-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mk-signin { text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; background: none; border: 0; }
.mk-signin:hover { background: rgba(11,27,51,.05); }
.mk-account { display: inline-flex; align-items: center; gap: 8px; }
.mk-account-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--mk-ink-2); max-width: 180px; }
.mk-account-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--mk-navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.mk-lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--mk-line-2); background: transparent; font-family: var(--mk-mono); font-size: 12px; font-weight: 500; }
.mk-lang span { padding: 4px 9px; border-radius: 999px; color: var(--mk-ink-3); transition: background-color .2s, color .2s; }
.mk-lang span.is-on { background: var(--mk-navy); color: #fff; }
.mk-lang--dark { border-color: var(--mk-night-line); }
.mk-lang--dark span { color: var(--mk-night-muted); }
.mk-lang--dark span.is-on { background: #fff; color: var(--mk-ink); }

.mk-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--mk-line-2); background: transparent; align-items: center; justify-content: center; }
.mk-burger span, .mk-burger span::before, .mk-burger span::after { display: block; width: 18px; height: 1.8px; background: var(--mk-ink); border-radius: 2px; position: relative; transition: transform .25s var(--mk-ease), background-color .2s; }
.mk-burger span::before, .mk-burger span::after { content: ""; position: absolute; left: 0; }
.mk-burger span::before { top: -6px; } .mk-burger span::after { top: 6px; }
.mk-burger[aria-expanded="true"] span { background: transparent; }
.mk-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mk-sheet { position: fixed; inset: var(--mk-header-h) 0 auto 0; z-index: 999; background: var(--mk-paper); border-bottom: 1px solid var(--mk-line); padding: 8px var(--mk-gutter) 24px; display: none; box-shadow: 0 24px 40px -24px rgba(11,27,51,.35); max-height: calc(100dvh - var(--mk-header-h)); overflow-y: auto; }
.mk-sheet.is-open { display: block; }
.mk-sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; font-family: var(--mk-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--mk-line); }
.mk-sheet nav a::after { content: "→"; font-family: var(--mk-body); color: var(--mk-ink-3); font-size: 18px; }
.mk-sheet-actions { display: grid; gap: 10px; margin-top: 20px; }
.mk-sheet-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* ---------- Reveal motion (only when JS runs) ---------- */
.mk-js .mk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--mk-ease), transform .8s var(--mk-ease); }
.mk-js .mk-reveal.is-in { opacity: 1; transform: none; }
.mk-js .mk-reveal[data-delay="1"] { transition-delay: .08s; }
.mk-js .mk-reveal[data-delay="2"] { transition-delay: .16s; }
.mk-js .mk-reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Inner-page hero ---------- */
.mk-page-hero { padding: calc(var(--mk-header-h) + clamp(40px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.mk-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--mk-line) 1px, transparent 1px), linear-gradient(90deg, var(--mk-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 10%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 80% 10%, #000 0%, transparent 70%);
}
.mk-page-hero .mk-h1 { margin: 18px 0 18px; max-width: 16em; }
.mk-page-hero .mk-lead { max-width: 40em; }
.mk-page-hero--dark { background: var(--mk-night); color: var(--mk-night-text); }
.mk-page-hero--dark::before { display: none; }
.mk-page-hero--dark .mk-h1 { color: #fff; }
.mk-page-hero--dark .mk-lead { color: var(--mk-night-muted); }
.mk-page-hero--dark .mk-eyebrow { color: var(--mk-mint); }
.mk-hero-net { position: absolute; right: -80px; top: 40px; width: 520px; height: 520px; opacity: .16; pointer-events: none; z-index: -1; }
.mk-page-hero--dark .mk-hero-net { opacity: .22; z-index: 0; }

/* ---------- Panels, cards, badges ---------- */
.mk-panel { background: #fff; border: 1px solid var(--mk-line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--mk-shadow); }
.mk-panel--flat { box-shadow: none; }
.mk-panel--night { background: var(--mk-night); color: var(--mk-night-text); border-color: transparent; }
.mk-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mk-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mk-badge--ok { background: var(--mk-success-soft); color: var(--mk-success); }
.mk-badge--warn { background: var(--mk-warn-soft); color: var(--mk-warn); }
.mk-badge--err { background: var(--mk-error-soft); color: var(--mk-error); }
.mk-badge--info { background: var(--mk-teal-soft); color: var(--mk-teal-ink); }
.mk-badge--muted { background: var(--mk-paper-2); color: var(--mk-ink-3); }
.mk-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--mk-line); border-top-color: var(--mk-navy); animation: mk-spin .8s linear infinite; }
.mk-state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(28px, 5vw, 48px) 12px; }
.mk-state p { color: var(--mk-ink-2); max-width: 30em; }
.mk-state-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.mk-state-icon svg.i { width: 26px; height: 26px; }
.mk-state-icon--ok { background: var(--mk-success-soft); color: var(--mk-success); }
.mk-state-icon--err { background: var(--mk-error-soft); color: var(--mk-error); }
.mk-state-icon--info { background: var(--mk-teal-soft); color: var(--mk-teal-ink); }
.mk-state-icon--warn { background: var(--mk-warn-soft); color: var(--mk-warn); }

/* ---------- Forms ---------- */
.mk-form { display: grid; gap: 18px; }
.mk-field { display: grid; gap: 7px; }
.mk-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mk-label { font-size: 14px; font-weight: 600; color: var(--mk-ink); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mk-label small { font-weight: 500; color: var(--mk-ink-3); font-size: 13px; }
.mk-input, .mk-select, .mk-textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; border: 1.5px solid var(--mk-line-2); background: #fff;
  font: inherit; font-size: 16px; color: var(--mk-ink); transition: border-color .2s, box-shadow .2s;
}
.mk-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.mk-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B687D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.mk-input::placeholder, .mk-textarea::placeholder { color: #98A2B3; }
.mk-input:hover, .mk-select:hover, .mk-textarea:hover { border-color: #B9B3A4; }
.mk-input:focus, .mk-select:focus, .mk-textarea:focus { outline: none; border-color: var(--mk-teal); box-shadow: 0 0 0 4px rgba(43,163,176,.18); }
.mk-input[aria-invalid="true"], .mk-select[aria-invalid="true"], .mk-textarea[aria-invalid="true"] { border-color: var(--mk-error); box-shadow: 0 0 0 4px rgba(194,53,42,.1); }
.mk-field-err { font-size: 13.5px; color: var(--mk-error); min-height: 0; }
.mk-field-hint { font-size: 13.5px; color: var(--mk-ink-3); }
.mk-pw { position: relative; }
.mk-pw .mk-input { padding-right: 52px; }
.mk-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--mk-ink-3); display: grid; place-items: center; }
.mk-pw-toggle:hover { color: var(--mk-ink); background: var(--mk-paper); }
.mk-pw-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; font-size: 13px; color: var(--mk-ink-3); }
.mk-pw-rules li { display: flex; align-items: center; gap: 7px; transition: color .2s; }
.mk-pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mk-line-2); flex-shrink: 0; transition: background-color .2s, border-color .2s; }
.mk-pw-rules li.ok { color: var(--mk-success); }
.mk-pw-rules li.ok::before { background: var(--mk-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center/9px no-repeat; border-color: var(--mk-success); }
.mk-meter { height: 5px; border-radius: 4px; background: var(--mk-paper-2); overflow: hidden; }
.mk-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--mk-error); transition: width .3s var(--mk-ease), background-color .3s; }
.mk-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; color: var(--mk-ink-2); cursor: pointer; }
.mk-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mk-navy); cursor: pointer; }
.mk-check a { color: var(--mk-navy); font-weight: 600; }
.mk-alert { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.mk-alert.is-shown { display: flex; }
.mk-alert svg.i { width: 18px; height: 18px; margin-top: 1px; }
.mk-alert--err { background: var(--mk-error-soft); color: #8E2219; }
.mk-alert--ok { background: var(--mk-success-soft); color: #0A6B40; }
.mk-alert--info { background: var(--mk-teal-soft); color: #105B64; }
.mk-alert--warn { background: var(--mk-warn-soft); color: #7A4A00; }
.mk-alert a, .mk-alert button.mk-linkbtn { color: inherit; font-weight: 700; }
.mk-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--mk-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-divider { display: flex; align-items: center; gap: 14px; color: var(--mk-ink-3); font-size: 13px; }
.mk-divider::before, .mk-divider::after { content: ""; flex: 1; height: 1px; background: var(--mk-line); }

/* ---------- Auth / account split layout ---------- */
.mk-auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.mk-auth-brand { position: relative; overflow: hidden; background: var(--mk-night); color: var(--mk-night-text); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.mk-auth-brand::before { content: ""; position: absolute; width: 760px; height: 760px; left: -200px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(43,163,176,.28), rgba(27,58,107,.12) 45%, transparent 70%); pointer-events: none; }
.mk-auth-brand .mk-logo-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 12px 6px 8px; width: max-content; text-decoration: none; }
.mk-auth-brand .mk-logo-chip img { height: 40px; width: auto; }
.mk-auth-net { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 560px; height: 560px; opacity: .22; pointer-events: none; }
.mk-auth-copy { margin-top: auto; position: relative; max-width: 30em; padding-top: 48px; }
.mk-auth-copy h2 { font-family: var(--mk-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; color: #fff; text-wrap: balance; }
.mk-auth-copy h2 span { color: var(--mk-mint); }
.mk-auth-copy p { margin-top: 16px; color: var(--mk-night-muted); }
.mk-auth-points { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--mk-night-line); }
.mk-auth-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--mk-night-line); font-size: 15px; color: var(--mk-night-muted); }
.mk-auth-points li strong { color: var(--mk-night-text); font-weight: 600; display: block; }
.mk-auth-points svg.i { color: var(--mk-mint); width: 20px; height: 20px; margin-top: 2px; }
.mk-auth-foot { margin-top: 32px; font-size: 13px; color: var(--mk-night-muted); position: relative; display: flex; gap: 16px; flex-wrap: wrap; }
.mk-auth-foot a { color: var(--mk-night-muted); }
.mk-auth-main { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 32px) clamp(16px, 5vw, 72px) 32px; background: var(--mk-paper); }
.mk-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mk-auth-top a.mk-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--mk-ink-2); padding: 8px 10px; border-radius: 8px; }
.mk-auth-top a.mk-back:hover { background: rgba(11,27,51,.05); color: var(--mk-ink); }
.mk-auth-top a.mk-back svg.i { transform: rotate(180deg); width: 16px; height: 16px; }
.mk-auth-card { width: 100%; max-width: 440px; margin: auto; padding: clamp(28px, 6vh, 64px) 0; }
.mk-auth-card h1 { font-family: var(--mk-display); font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.mk-auth-card > p, .mk-auth-sub { color: var(--mk-ink-2); margin: 10px 0 26px; }
.mk-auth-alt { margin-top: 22px; text-align: center; font-size: 15px; color: var(--mk-ink-2); }
.mk-oauth { display: grid; gap: 10px; }
.mk-oauth-google { min-height: 44px; display: flex; justify-content: center; }
.mk-oauth-apple { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 999px; background: #000; color: #fff; border: 0; font-weight: 600; font-size: 15px; width: 100%; max-width: 400px; justify-self: center; }
.mk-oauth-apple:hover { background: #1d1d1f; }
.mk-oauth-apple svg { width: 17px; height: 17px; fill: currentColor; }
.mk-view { display: none; }
.mk-view.is-active { display: block; animation: mk-fade .45s var(--mk-ease); }
@keyframes mk-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mk-view h1:focus, .mk-view h1:focus-visible { outline: none; }
.mk-auth-mlogo { display: none; }
.mk-auth-mlogo img { height: 40px; width: auto; }
.mk-session-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--mk-line); margin-bottom: 20px; font-size: 14.5px; }
.mk-session-chip > div { flex: 1; min-width: 0; }
.mk-session-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-session-chip span { color: var(--mk-ink-3); font-size: 13.5px; }

/* ---------- Generic content sections on inner pages ---------- */
.mk-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.mk-split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 48px); }
.mk-sticky { position: sticky; top: calc(var(--mk-header-h) + 32px); }
.mk-faq details { border-bottom: 1px solid var(--mk-line-2); }
.mk-faq details:first-child { border-top: 1px solid var(--mk-line-2); }
.mk-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 2px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; border-radius: 6px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; font-family: var(--mk-mono); font-size: 22px; font-weight: 400; color: var(--mk-ink-3); transition: transform .25s var(--mk-ease); flex-shrink: 0; }
.mk-faq details[open] summary::after { transform: rotate(45deg); color: var(--mk-coral); }
.mk-faq summary:hover { color: var(--mk-navy); }
.mk-faq details > div { padding: 0 2px 24px; color: var(--mk-ink-2); max-width: 44em; }
.mk-faq details > div p + p { margin-top: 10px; }
.mk-faq details a { color: var(--mk-navy); font-weight: 600; }

/* ---------- Billing page ---------- */
.mk-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mk-plan-card { position: relative; border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--mk-line); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--mk-shadow); }
.mk-plan-card--feature { background: var(--mk-night); color: var(--mk-night-text); border-color: transparent; overflow: hidden; }
.mk-plan-card--feature::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(43,163,176,.28), transparent 70%); pointer-events: none; }
.mk-plan-card > * { position: relative; z-index: 1; }
.mk-plan-card h3 { font-family: var(--mk-display); font-size: 24px; letter-spacing: -.02em; }
.mk-plan-card--feature h3 { color: #fff; }
.mk-plan-tag { position: absolute; top: 22px; right: 22px; font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(126,227,218,.14); color: var(--mk-mint); border: 1px solid rgba(126,227,218,.35); }
.mk-plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mk-plan-price strong { font-family: var(--mk-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-plan-price span { font-size: 15px; color: var(--mk-ink-3); }
.mk-plan-card--feature .mk-plan-price span { color: var(--mk-night-muted); }
.mk-plan-sub { font-size: 14.5px; color: var(--mk-teal-ink); min-height: 22px; }
.mk-plan-card--feature .mk-plan-sub { color: var(--mk-mint); }
.mk-plan-card .mk-btn { margin-top: 18px; }
.mk-plan-fine { font-size: 13.5px; color: var(--mk-ink-3); margin-top: 8px; }
.mk-plan-card--feature .mk-plan-fine { color: var(--mk-night-muted); }
.mk-incl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mk-incl-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--mk-line); font-size: 15.5px; color: var(--mk-ink-2); }
.mk-incl-grid svg.i { width: 18px; height: 18px; color: var(--mk-teal-ink); margin-top: 3px; }
.mk-incl-grid li strong { color: var(--mk-ink); font-weight: 650; }

.mk-sub-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; }
.mk-sub-card h2 { font-family: var(--mk-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.1; margin: 10px 0 8px; }
.mk-sub-card p { color: var(--mk-ink-2); }
.mk-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mk-ring { position: relative; width: 120px; height: 120px; }
.mk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mk-ring circle { fill: none; stroke-width: 9; }
.mk-ring .bg { stroke: var(--mk-paper-2); }
.mk-ring .fg { stroke: var(--mk-teal); stroke-linecap: round; transition: stroke-dasharray 1s var(--mk-ease); }
.mk-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mk-ring strong { font-family: var(--mk-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-ring span { font-size: 12px; color: var(--mk-ink-3); }

/* ---------- Referral dashboard ---------- */
.mk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mk-kpi { background: #fff; border: 1px solid var(--mk-line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.mk-kpi span { display: block; font-size: 13px; color: var(--mk-ink-3); font-weight: 600; }
.mk-kpi strong { display: block; font-family: var(--mk-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.mk-link-box { display: flex; gap: 10px; align-items: center; background: var(--mk-paper); border: 1px dashed var(--mk-line-2); border-radius: 14px; padding: 8px 8px 8px 16px; }
.mk-link-box code { flex: 1; min-width: 0; font-family: var(--mk-mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mk-ink); }
.mk-table-wrap { overflow-x: auto; border: 1px solid var(--mk-line); border-radius: 16px; background: #fff; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mk-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-ink-3); font-weight: 700; padding: 12px 16px; background: var(--mk-paper); border-bottom: 1px solid var(--mk-line); white-space: nowrap; }
.mk-table td { padding: 13px 16px; border-bottom: 1px solid var(--mk-line); color: var(--mk-ink-2); white-space: nowrap; }
.mk-table tr:last-child td { border-bottom: 0; }
.mk-table td:first-child { color: var(--mk-ink); font-weight: 600; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mk-empty { padding: 28px 16px; text-align: center; color: var(--mk-ink-3); font-size: 15px; }
.mk-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.mk-bars i { flex: 1; min-width: 3px; border-radius: 4px 4px 0 0; background: var(--mk-teal); opacity: .85; position: relative; }
.mk-bars i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--mk-coral); border-radius: 4px 4px 0 0; }

/* ---------- Consultation ---------- */
.mk-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-service { text-align: left; display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--mk-line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s var(--mk-ease); }
.mk-service:hover { border-color: var(--mk-ink-3); transform: translateY(-1px); }
.mk-service[aria-checked="true"] { border-color: var(--mk-navy); box-shadow: 0 0 0 3px rgba(15,42,82,.12); }
.mk-service strong { font-size: 16.5px; }
.mk-service span { font-size: 14.5px; color: var(--mk-ink-2); }
.mk-service em { font-style: normal; font-family: var(--mk-mono); font-size: 12px; color: var(--mk-teal-ink); }
.mk-steps-bar { display: flex; gap: 8px; margin-bottom: 26px; }
.mk-steps-bar li { flex: 1; display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mk-ink-3); }
.mk-steps-bar li::before { content: ""; height: 4px; border-radius: 4px; background: var(--mk-line); transition: background-color .3s; }
.mk-steps-bar li.is-done::before, .mk-steps-bar li.is-current::before { background: var(--mk-navy); }
.mk-steps-bar li.is-current { color: var(--mk-ink); }
.mk-timeline { display: grid; gap: 0; margin-top: 18px; }
.mk-timeline li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; font-size: 15px; color: var(--mk-ink-3); }
.mk-timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mk-line-2); background: #fff; margin: 4px 0 0 5px; position: relative; z-index: 1; }
.mk-timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: 0; width: 2px; background: var(--mk-line); }
.mk-timeline li:last-child::after { display: none; }
.mk-timeline li.is-done { color: var(--mk-ink); }
.mk-timeline li.is-done::before { background: var(--mk-navy); border-color: var(--mk-navy); }
.mk-timeline li.is-cancel::before { background: var(--mk-error); border-color: var(--mk-error); }
.mk-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 15px; }
.mk-dl dt { color: var(--mk-ink-3); }
.mk-dl dd { color: var(--mk-ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Legal ---------- */
.mk-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.mk-toc { position: sticky; top: calc(var(--mk-header-h) + 28px); }
.mk-toc p { font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-ink-3); margin-bottom: 12px; }
.mk-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--mk-line-2); }
.mk-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--mk-ink-2); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.mk-toc a:hover { color: var(--mk-ink); }
.mk-toc a.is-current { color: var(--mk-ink); border-color: var(--mk-coral); font-weight: 600; }
.mk-legal-body { max-width: 720px; }
.mk-legal-body .legal-section { padding: 28px 0; border-bottom: 1px solid var(--mk-line); scroll-margin-top: calc(var(--mk-header-h) + 20px); }
.mk-legal-body .legal-section:first-child { padding-top: 0; }
.mk-legal-body h2 { font-family: var(--mk-display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.mk-legal-body h2 .num { font-family: var(--mk-mono); font-size: 13px; color: var(--mk-coral-ink); font-weight: 500; min-width: 22px; }
.mk-legal-body h3 { font-size: 17px; margin: 18px 0 8px; }
.mk-legal-body p, .mk-legal-body li { color: var(--mk-ink-2); font-size: 16.5px; line-height: 1.7; }
.mk-legal-body p + p, .mk-legal-body p + ul, .mk-legal-body ul + p { margin-top: 12px; }
.mk-legal-body ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.mk-legal-body ul li { padding-left: 20px; position: relative; }
.mk-legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mk-teal); }
.mk-legal-body a { color: var(--mk-navy); font-weight: 600; }
.mk-legal-body strong { color: var(--mk-ink); }
.mk-legal-body .highlight-box { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--mk-teal-soft); color: #105B64; font-size: 15.5px; }
.mk-legal-body code { font-family: var(--mk-mono); font-size: .88em; background: var(--mk-paper-2); padding: 1px 6px; border-radius: 6px; color: var(--mk-ink); }
.mk-legal-body .contact-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--mk-line); }
.mk-legal-body .contact-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mk-navy); display: grid; place-items: center; flex-shrink: 0; }
.mk-legal-body .contact-text div { font-weight: 600; color: var(--mk-ink); }
.mk-legal-body .data-table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--mk-line); border-radius: 14px; background: #fff; }
.mk-legal-body .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mk-legal-body .data-table th { text-align: left; font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-ink-3); font-weight: 500; padding: 12px 16px; background: var(--mk-paper); border-bottom: 1px solid var(--mk-line); }
.mk-legal-body .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--mk-line); color: var(--mk-ink-2); vertical-align: top; line-height: 1.5; }
.mk-legal-body .data-table tr:last-child td { border-bottom: 0; }
.mk-legal-body .data-table td:first-child { color: var(--mk-ink); font-weight: 650; white-space: nowrap; }
.mk-legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14.5px; color: var(--mk-ink-3); }

/* ---------- Footer ---------- */
.mk-footer { border-top: 1px solid var(--mk-line); padding: 56px 0 32px; font-size: 15px; background: var(--mk-paper); }
.mk-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.mk-foot-brand img { height: 60px; width: auto; margin-bottom: 12px; }
.mk-foot-brand p { color: var(--mk-ink-2); max-width: 22em; font-size: 15px; }
.mk-footer h4 { font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-ink-3); font-weight: 500; margin-bottom: 14px; }
.mk-footer li + li { margin-top: 8px; }
.mk-footer li a { text-decoration: none; color: var(--mk-ink-2); }
.mk-footer li a:hover { color: var(--mk-ink); text-decoration: underline; text-underline-offset: 3px; }
.mk-foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mk-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--mk-ink-3); font-size: 14px; }
.mk-foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.mk-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 1200; background: var(--mk-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); transition: opacity .3s, transform .3s var(--mk-ease); pointer-events: none; }
.mk-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .mk-nav { display: none; }
  .mk-burger { display: inline-flex; }
  .mk-header-actions .mk-signin, .mk-header-actions .mk-lang, .mk-header-actions .mk-account-name { display: none; }
  .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.mk { font-size: 16px; }
  .mk-split, .mk-legal { grid-template-columns: minmax(0, 1fr); }
  .mk-sticky, .mk-toc { position: static; }
  .mk-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 0 16px; }
  .mk-toc a { padding-left: 0; border-left: 0; }
  .mk-auth { grid-template-columns: minmax(0, 1fr); }
  .mk-auth-brand { display: none; }
  .mk-auth-mlogo { display: inline-flex; }
  .mk-auth-top a.mk-back span { display: none; }
  .mk-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-foot-brand { grid-column: 1 / -1; }
  .mk-plans { grid-template-columns: minmax(0, 1fr); }
  .mk-sub-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --mk-header-h: 62px; }
  .mk-logo img { height: 40px; }
  .mk-header-actions .mk-btn { display: none; }
  .mk-field-row, .mk-pw-rules, .mk-services, .mk-incl-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-toc ol { grid-template-columns: minmax(0, 1fr); }
  .mk-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mk-hero-net { width: 320px; height: 320px; right: -120px; }
  .mk-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mk-dl dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.mk) { scroll-behavior: auto; }
  .mk *, .mk *::before, .mk *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .mk-js .mk-reveal { opacity: 1; transform: none; }
}
@media print {
  .mk-header, .mk-sheet, .mk-skip, .mk-toast { display: none !important; }
  .mk-js .mk-reveal { opacity: 1; transform: none; }
  body.mk { background: #fff; }
}

/* ==========================================================================
   PREMIUM DIRECTION LAYER (from "QuantApp Landing — Premium Direction")
   Adopted: section folios, sun accents, flat colour planes (one per block),
   condensing pill nav + scroll-spy, mono form labels, arrow-dot primary CTA.
   Kept: the brand palette from the logo (navy / teal / coral) and the hero.
   Rule: on colour planes, text is ink or ink-2 only (≥ 5.5:1).
   ========================================================================== */
:root {
  --mk-sun: #F5B841;           /* app guide "gold" — folios, marquee, CTA dot */
  --mk-sun-soft: #FDF1D2;
  --mk-plane-sun: #F8CF6A;
  --mk-plane-teal: #7CCFD6;
  --mk-plane-coral: #F7B49E;
  --mk-plane-sky: #C6DAF5;
  --mk-radius-l: 28px;
  --mk-fast: 180ms;
  --mk-base: 320ms;
}

/* ---------- Planes ---------- */
.mk-plane { border-radius: var(--mk-radius-l); }
.mk-plane--sun { background: var(--mk-plane-sun); }
.mk-plane--teal { background: var(--mk-plane-teal); }
.mk-plane--coral { background: var(--mk-plane-coral); }
.mk-plane--sky { background: var(--mk-plane-sky); }
.mk-plane--soft { background: var(--mk-paper-2); }
.mk-plane--ink { background: var(--mk-night); color: var(--mk-night-text); }
:is(.mk-plane--sun, .mk-plane--teal, .mk-plane--coral, .mk-plane--sky) { color: var(--mk-ink); }
:is(.mk-plane--sun, .mk-plane--teal, .mk-plane--coral, .mk-plane--sky) :is(p, li, small, .mk-note):not(.mk-btn *) { color: var(--mk-ink-2); }

/* ---------- Section folio: sun disc · name · hairline · right tag ---------- */
.mk-folio { display: flex; align-items: center; gap: 14px; width: 100%; font-family: var(--mk-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mk-ink-2); }
.mk-folio > b { flex-shrink: 0; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mk-sun); color: var(--mk-ink); font-weight: 500; letter-spacing: 0; font-size: 12.5px; }
.mk-folio > b svg.i { width: 16px; height: 16px; }
.mk-folio > span { flex-shrink: 0; }
.mk-folio > i { flex: 1; height: 1px; background: var(--mk-line-2); min-width: 24px; }
.mk-folio > small { flex-shrink: 0; font-size: 11.5px; letter-spacing: .16em; color: var(--mk-ink-3); }
.mk-folio--dark { color: var(--mk-night-text); }
.mk-folio--dark > i { background: var(--mk-night-line); }
.mk-folio--dark > small { color: var(--mk-night-muted); }
.mk-folio + .mk-h2, .mk-folio + .mk-h1, .mk-folio + * > .mk-h2 { margin-top: 26px !important; }

/* ---------- Primary CTA: ink pill with a sun arrow-dot ---------- */
.mk-btn--primary > svg.i { width: 28px; height: 28px; padding: 6px; margin-right: -12px; border-radius: 50%; background: var(--mk-sun); color: var(--mk-ink); stroke-width: 2.2; transition: transform var(--mk-fast) var(--mk-ease); }
.mk-btn--primary:hover > svg.i { transform: scale(1.15); }
.mk-btn--primary:focus-visible { outline: 4px solid var(--mk-sun); outline-offset: 2px; }
.mk-btn--light > svg.i, .mk-btn--ghost > svg.i { width: 18px; height: 18px; }

/* ---------- Forms: mono caps labels ---------- */
.mk-label { font-family: var(--mk-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-ink-2); }
.mk-label small { font-family: var(--mk-mono); font-size: 11px; letter-spacing: .1em; }
.mk-label .mk-linkbtn { font-family: var(--mk-body); text-transform: none; letter-spacing: 0; }
.mk-input:focus, .mk-select:focus, .mk-textarea:focus { border-color: var(--mk-ink); box-shadow: 0 0 0 4px rgba(245,184,65,.35); }

/* ---------- Segmented control (auth tabs, legal language) ---------- */
.mk-seg-ctl { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--mk-paper-2); border: 1px solid var(--mk-line); }
.mk-seg-ctl a, .mk-seg-ctl button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mk-ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--mk-fast), color var(--mk-fast); }
.mk-seg-ctl [aria-current="page"], .mk-seg-ctl [aria-pressed="true"] { background: var(--mk-night); color: #fff; }

/* ---------- Nav: full width at top, floating glass pill after 80px ---------- */
.mk-header, .mk-header--solid { transition: top var(--mk-base) var(--mk-ease), background-color var(--mk-base), box-shadow var(--mk-base); }
.mk-header .mk-wrap { transition: max-width var(--mk-base) var(--mk-ease), height var(--mk-base) var(--mk-ease), background-color var(--mk-base), box-shadow var(--mk-base), border-radius var(--mk-base), padding var(--mk-base); }
.mk-header .mk-logo img { transition: height var(--mk-base) var(--mk-ease); }
.mk-header.is-condensed { top: 12px; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.mk-header.is-condensed .mk-wrap {
  max-width: min(1160px, calc(100% - 24px)); height: 60px; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .84); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 0 0 1px rgba(11,27,51,.07), 0 14px 34px -18px rgba(11,27,51,.45);
}
.mk-header.is-condensed .mk-logo img { height: 42px; }
.mk-nav a { position: relative; }
.mk-nav a.is-current { color: var(--mk-ink); }
.mk-nav a.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--mk-sun); }

/* ---------- FAQ (one open at a time is handled in site.js) ---------- */
.mk-faq summary { padding-top: 24px; padding-bottom: 24px; }

@media (max-width: 640px) {
  .mk-folio > small { display: none; }
  .mk-folio > i { margin-right: 0; }
  .mk-header.is-condensed { top: 8px; }
  .mk-header.is-condensed .mk-wrap { height: 54px; padding: 0 6px 0 14px; }
  .mk-header.is-condensed .mk-logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-header, .mk-header .mk-wrap, .mk-header .mk-logo img { transition: none; }
}

/* Legal: numbered contents + help box */
.mk-toc ol a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; }
.mk-toc ol a em { font-style: normal; font-family: var(--mk-mono); font-size: 12px; color: var(--mk-ink-3); padding-top: 1px; }
.mk-toc ol a.is-current em { color: var(--mk-coral-ink); }
.mk-toc-help { margin-top: 22px; padding: 16px; border-radius: 18px; background: var(--mk-paper-2); font-size: 14px; color: var(--mk-ink-2); display: grid; gap: 2px; }
.mk-toc-help strong { color: var(--mk-ink); }
.mk-toc-help a { display: inline; padding: 0; margin: 0; border: 0; color: var(--mk-navy); font-weight: 600; overflow-wrap: anywhere; font-size: 14px; }
.mk-legal-meta { align-items: center; gap: 12px 20px; }

/* Auth: segmented tabs + labelled brand points */
.mk-auth-tabs { margin-bottom: 26px; }
.mk-auth-points li { grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; }
.mk-auth-k { font-family: var(--mk-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mk-sun); }
@media (max-width: 640px) { .mk-auth-tabs { display: flex; } .mk-auth-tabs a { flex: 1; text-align: center; } }

/* Consultation: next-steps card + Qora note */
.mk-next { border-radius: var(--mk-radius-l); padding: 22px; }
.mk-next .mk-label { color: var(--mk-ink-2); }
.mk-next ol { margin-top: 12px; border-top: 1px solid rgba(11,27,51,.14); }
.mk-next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(11,27,51,.14); font-size: 14.5px; }
.mk-next li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mk-night); color: #fff; font-family: var(--mk-mono); font-size: 11px; font-weight: 500; }
.mk-next li strong { color: var(--mk-ink); }
.mk-qnote { margin-top: 12px; display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 22px; background: var(--mk-paper-2); font-size: 14.5px; color: var(--mk-ink-2); }
.mk-qnote .mk-qtile { width: 36px; height: 36px; border-radius: 10px; }
.mk-qnote strong { color: var(--mk-ink); }

/* Referral: earnings example, how-it-works planes, closing row */
.mk-earn { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.mk-earn-card { border-radius: var(--mk-radius-l); padding: 24px 26px; display: grid; gap: 6px; align-content: center; }
.mk-earn-card .mk-label { color: var(--mk-ink-2); }
.mk-earn-card strong { font-family: var(--mk-display); font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-earn-card span:last-child { color: var(--mk-ink-2); font-size: 15px; }
.mk-earn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-earn-steps div { border-radius: var(--mk-radius-l); background: var(--mk-paper-2); padding: 20px; display: grid; gap: 4px; align-content: end; }
.mk-earn-steps b { font-family: var(--mk-display); font-size: 34px; line-height: 1; }
.mk-earn-steps span { font-size: 13.5px; color: var(--mk-ink-2); }
.mk-earn-steps strong { font-family: var(--mk-mono); font-size: 15px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mk-earn > .mk-note { grid-column: 1 / -1; }
.mk-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-how li { border-radius: var(--mk-radius-l); padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.mk-how li > span { font-family: var(--mk-mono); font-size: 12px; color: var(--mk-ink-2); margin-bottom: auto; }
.mk-how li strong { font-family: var(--mk-display); font-size: 1.45rem; letter-spacing: -.02em; }
.mk-how li p { font-size: 15px; }
.mk-ref-close { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--mk-line-2); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.mk-ref-close .mk-h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 22em; }
.mk-ref-close em { font-style: normal; color: var(--mk-coral-hd); }
@media (max-width: 900px) { .mk-earn, .mk-how { grid-template-columns: minmax(0, 1fr); } .mk-how li { min-height: 0; } }
@media (max-width: 640px) { .mk-earn-steps { grid-template-columns: minmax(0, 1fr); } }

/* Six nav links need ~1240px in Spanish; below that the menu button takes over. */
.mk-nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .mk-nav { display: none; }
  .mk-burger { display: inline-flex; }
}
