/* ============================================================
   Docreach — Marketing surface (landing + self-signup)
   Builds on the design-system CSS layer (styles.css). Layout-only
   rules here; everything references tokens. Prefix: .mk-
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: var(--type-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* paper grain, very subtle */
.mk-grain::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.022'/%3E%3C/svg%3E");
}

.mk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.mk-eyebrow {
  font: var(--type-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 8px;
}
.mk-eyebrow svg { width: 14px; height: 14px; }
.mk-display {
  font-family: var(--font-serif); font-weight: var(--w-semibold);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08;
  letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0;
  text-wrap: balance;
}
.mk-h2 {
  font-family: var(--font-serif); font-weight: var(--w-semibold);
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12;
  letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0;
  text-wrap: balance;
}
.mk-lede { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--ink-2); margin: 0; }
.mk-section { padding: clamp(64px, 9vw, 116px) 0; position: relative; z-index: 1; }
.mk-section-head { max-width: 640px; margin: 0 0 48px; display: flex; flex-direction: column; gap: 16px; }
.mk-section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------------------------------------------------------- NAV */
.mk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mk-nav--scrolled { border-bottom-color: var(--line); background: color-mix(in oklab, var(--paper) 92%, transparent); }
.mk-nav__inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mk-nav__logo { height: 26px; width: auto; }
.mk-nav__links { display: flex; align-items: center; gap: 30px; }
.mk-nav__links a { font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--ink-2); transition: color var(--dur-fast) var(--ease); }
.mk-nav__links a:hover { color: var(--ink); }
.mk-nav__cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .mk-nav__links { display: none; } }

/* ---------------------------------------------------------- HERO */
.mk-hero { padding: 132px 0 80px; position: relative; overflow: hidden; }
.mk-hero__grid {
  display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center;
}
.mk-hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 540px; }
.mk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.mk-hero__trust { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .05em; color: var(--ink-3); text-transform: uppercase; margin-top: 8px; }
.mk-hero__trust svg { width: 14px; height: 14px; color: var(--sage); }
.mk-hero__stats { display: flex; gap: 32px; margin-top: 6px; }
.mk-hero__stat b { font-family: var(--font-serif); font-weight: var(--w-semibold); font-size: var(--text-2xl); color: var(--ink); display: block; line-height: 1; }
.mk-hero__stat span { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; display: block; }
@media (max-width: 940px) {
  .mk-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-hero { padding-top: 116px; }
}

/* ---------------------------------------------------------- CONSOLE MOCK (product shot) */
.mk-shot { position: relative; }
.mk-shot__glow { position: absolute; inset: -8% -6% -12% -6%; z-index: 0; background: radial-gradient(60% 55% at 70% 30%, rgba(14,126,150,.20), transparent 70%); filter: blur(8px); }
.mk-win {
  position: relative; z-index: 1; background: var(--surface);
  border: 1px solid var(--line-cool); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mk-win__bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-ink); border-bottom: 1px solid var(--line-dark); }
.mk-win__dots { display: flex; gap: 6px; }
.mk-win__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mk-win__title { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); margin-left: 4px; }
.mk-win__id { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--on-dark-2); letter-spacing: .04em; }
.mk-win__body { padding: 18px; background: var(--paper); }

.mk-case__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mk-case__pt { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: var(--w-semibold); color: var(--ink); line-height: 1.1; }
.mk-case__meta { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-3); margin-top: 5px; letter-spacing: .03em; display: flex; gap: 10px; }
.mk-stack { display: flex; flex-direction: column; gap: 12px; }
.mk-floatchip {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line-cool);
  border-radius: 10px; box-shadow: var(--shadow-md); padding: 9px 12px; display: flex; align-items: center; gap: 9px;
  font-size: var(--text-xs); font-weight: var(--w-medium); color: var(--ink);
}
.mk-floatchip svg { width: 15px; height: 15px; }
.mk-floatchip--tl { top: 14px; left: -26px; }
.mk-floatchip--br { bottom: 22px; right: -22px; }
@media (max-width: 540px) { .mk-floatchip { display: none; } }

/* ---------------------------------------------------------- TRUST STRIP */
.mk-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mk-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding: 22px 24px; }
.mk-strip__item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mk-strip__item svg { width: 15px; height: 15px; color: var(--ink-4); }

/* ---------------------------------------------------------- STEPS (how it works) */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-step { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 12px; position: relative; }
.mk-step__n { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .12em; color: var(--teal); font-weight: var(--w-semibold); }
.mk-step__ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--teal-tint); color: var(--teal-ink); display: flex; align-items: center; justify-content: center; }
.mk-step__ic svg { width: 20px; height: 20px; }
.mk-step h3 { font: var(--type-h3); margin: 0; color: var(--ink); }
.mk-step p { margin: 0; font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--ink-2); }
@media (max-width: 820px) { .mk-steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- BENEFITS */
.mk-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-benefit { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 11px; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.mk-benefit:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mk-benefit__ic { width: 38px; height: 38px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--paper-sunk); color: var(--ink-2); }
.mk-benefit__ic svg { width: 19px; height: 19px; }
.mk-benefit h3 { font-size: var(--text-md); font-weight: var(--w-semibold); margin: 0; color: var(--ink); }
.mk-benefit p { margin: 0; font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--ink-2); }
@media (max-width: 820px) { .mk-benefits { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- SHOWCASE (AI in action) */
.mk-showcase { background: var(--surface-ink); color: var(--on-dark); position: relative; overflow: hidden; }
.mk-showcase__glow { position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 0%, rgba(14,126,150,.28), transparent 60%); pointer-events: none; }
.mk-showcase .mk-eyebrow { color: var(--teal-bright); }
.mk-showcase .mk-h2 { color: #fff; }
.mk-showcase .mk-lede { color: var(--on-dark-2); }
.mk-showcase__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.mk-showcase__list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.mk-feat { display: flex; gap: 14px; }
.mk-feat__ic { width: 36px; height: 36px; border-radius: var(--radius-md); flex: none; background: rgba(255,255,255,.07); color: var(--teal-bright); display: flex; align-items: center; justify-content: center; }
.mk-feat__ic svg { width: 18px; height: 18px; }
.mk-feat h4 { margin: 0 0 4px; font-size: var(--text-md); font-weight: var(--w-semibold); color: #fff; }
.mk-feat p { margin: 0; font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--on-dark-2); }
@media (max-width: 940px) { .mk-showcase__grid { grid-template-columns: 1fr; gap: 36px; } }

/* panel used inside showcase — a light console card on dark */
.mk-panel { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }

/* ---------------------------------------------------------- INTERACTIVE DEMO (showcase) */
.mk-demo { position: relative; }
.mk-demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mk-seg { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; }
.mk-seg__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: none; background: none; cursor: pointer; border-radius: 9px; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--w-semibold); color: var(--on-dark-2); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); white-space: nowrap; }
.mk-seg__btn svg { width: 14px; height: 14px; }
.mk-seg__btn:hover { color: #fff; }
.mk-seg__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.mk-seg__btn.is-active.mk-seg__btn--flag { background: var(--flag-tint); color: var(--flag-ink); }
.mk-demo__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.mk-demo__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); animation: mk-live 1.8s var(--ease) infinite; }
@keyframes mk-live { 0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,.5); } 50% { box-shadow: 0 0 0 5px rgba(8,145,178,0); } }

.mk-demo__win { position: relative; z-index: 1; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mk-demo__body { padding: 20px; background: var(--paper); min-height: 446px; }
.mk-demo__case { display: none; }
.mk-demo__case.is-active { display: block; }

/* progressive reveal of staged elements */
.mk-demo [data-rev] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); will-change: opacity, transform; }
.mk-demo [data-rev].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mk-demo [data-rev] { opacity: 1; transform: none; transition: none; } }

/* copilot "thinking" indicator */
.mk-think { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line-cool); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 14px; }
.mk-think.is-done { display: none; }
.mk-think__av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--agent-tint); color: var(--agent-ink); display: flex; align-items: center; justify-content: center; }
.mk-think__av svg { width: 17px; height: 17px; }
.mk-think__txt { font-size: var(--text-sm); color: var(--ink-2); font-weight: var(--w-medium); }
.mk-think__dots { display: inline-flex; gap: 5px; margin-left: 2px; vertical-align: middle; }
.mk-think__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--agent-ink); animation: mk-think 1.2s var(--ease) infinite; }
.mk-think__dots i:nth-child(2) { animation-delay: .18s; }
.mk-think__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes mk-think { 0%, 60%, 100% { opacity: .22; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* copilot message bubble */
.mk-bubble { display: flex; gap: 11px; padding: 13px 15px; background: var(--agent-tint); border-radius: var(--radius-md); margin: 14px 0; }
.mk-bubble--flag { background: var(--flag-tint); }
.mk-bubble__av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface); color: var(--agent-ink); display: flex; align-items: center; justify-content: center; }
.mk-bubble--flag .mk-bubble__av { color: var(--flag-ink); }
.mk-bubble__av svg { width: 17px; height: 17px; }
.mk-bubble__who { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .05em; text-transform: uppercase; font-weight: var(--w-semibold); color: var(--agent-ink); margin-bottom: 3px; }
.mk-bubble--flag .mk-bubble__who { color: var(--flag-ink); }
.mk-bubble__txt { font-size: var(--text-sm); line-height: var(--lh-normal); color: var(--ink); }

.mk-demo__act { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.mk-demo__case.is-complete .mk-demo__act { display: none; }
.mk-demo__done { display: none; gap: 11px; align-items: flex-start; padding: 14px 15px; border-radius: var(--radius-md); animation: mk-pop var(--dur-slow) var(--ease-out); }
.mk-demo__case.is-complete .mk-demo__done { display: flex; }
.mk-demo__done--ok { background: var(--sage-tint); }
.mk-demo__done--flag { background: var(--flag-tint); }
.mk-demo__done svg { flex: none; margin-top: 1px; }
.mk-demo__done--ok svg { color: var(--sage-ink); }
.mk-demo__done--flag svg { color: var(--flag-ink); }
.mk-demo__done__t { font-size: var(--text-sm); font-weight: var(--w-semibold); }
.mk-demo__done--ok .mk-demo__done__t { color: var(--sage-ink); }
.mk-demo__done--flag .mk-demo__done__t { color: var(--flag-ink); }
.mk-demo__done__d { font-size: var(--text-sm); line-height: var(--lh-snug); margin-top: 2px; color: var(--ink-2); }

/* cue ring on the primary action while it waits for the doctor */
.mk-cue { animation: mk-cue 1.7s var(--ease) infinite; }
@keyframes mk-cue { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,126,150,0); } 50% { box-shadow: 0 0 0 6px rgba(14,126,150,.16); } }

/* controls under the panel */
.mk-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mk-demo__steps { display: flex; gap: 7px; }
.mk-demo__steps i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); transition: background var(--dur) var(--ease); }
.mk-demo__steps i.is-on { background: var(--teal-bright); }
.mk-replay { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; color: var(--on-dark-2); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: var(--w-semibold); transition: color var(--dur-fast) var(--ease); }
.mk-replay:hover { color: #fff; }
.mk-replay svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- PRICING */
.mk-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.mk-tier { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-xl); padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-xs); position: relative; }
.mk-tier--featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.mk-tier__tag { position: absolute; top: -11px; left: 26px; }
.mk-tier__name { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: var(--w-semibold); }
.mk-tier__price { display: flex; align-items: baseline; gap: 6px; }
.mk-tier__price b { font-family: var(--font-serif); font-weight: var(--w-semibold); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.mk-tier__price span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); }
.mk-tier__desc { font-size: var(--text-sm); color: var(--ink-2); line-height: var(--lh-normal); margin: -4px 0 0; }
.mk-tier__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.mk-tier__list li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--ink-2); line-height: var(--lh-snug); }
.mk-tier__list svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 1px; }
@media (max-width: 820px) { .mk-pricing { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- FAQ */
.mk-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.mk-faq__item { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); overflow: hidden; }
.mk-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--w-semibold); color: var(--ink); }
.mk-faq__q svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--dur) var(--ease); flex: none; }
.mk-faq__item[open] .mk-faq__q svg { transform: rotate(45deg); }
.mk-faq__a { padding: 0 22px 20px; font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--ink-2); }
.mk-faq__item summary::-webkit-details-marker { display: none; }
.mk-faq__item summary { list-style: none; }

/* ---------------------------------------------------------- FINAL CTA */
.mk-cta { text-align: center; }
.mk-cta__box {
  background: var(--surface-ink); border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px) 32px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.mk-cta__box .mk-h2 { color: #fff; max-width: 640px; }
.mk-cta__box p { color: var(--on-dark-2); margin: 0; max-width: 520px; font-size: var(--text-md); line-height: var(--lh-relaxed); }
.mk-cta__glow { position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(14,126,150,.30), transparent 65%); pointer-events: none; }
.mk-cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }

/* ---------------------------------------------------------- FOOTER */
.mk-footer { background: var(--surface-ink); color: var(--on-dark-2); padding: 56px 0 36px; }
.mk-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.mk-footer__logo { height: 24px; margin-bottom: 16px; }
.mk-footer__about { font-size: var(--text-sm); line-height: var(--lh-relaxed); color: var(--on-dark-2); max-width: 280px; }
.mk-footer h5 { font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--on-dark-2); margin: 0 0 14px; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-footer a { font-size: var(--text-sm); color: var(--on-dark); opacity: .82; transition: opacity var(--dur-fast) var(--ease); }
.mk-footer a:hover { opacity: 1; }
.mk-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .04em; color: var(--on-dark-2); }
@media (max-width: 820px) { .mk-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* buttons on dark surfaces — secondary should read on ink */
.mk-on-dark .dr-btn--secondary, .dr-btn--on-dark { background: rgba(255,255,255,.08); color: var(--on-dark); border-color: rgba(255,255,255,.18); }
.mk-on-dark .dr-btn--secondary:hover, .dr-btn--on-dark:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }

/* reveal-on-scroll */
.mk-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.mk-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mk-reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   SIGNUP WIZARD
   ============================================================ */
.mk-signup { min-height: 100vh; display: grid; grid-template-columns: 440px 1fr; }
.mk-signup__aside {
  background: var(--surface-ink); color: var(--on-dark); position: relative; overflow: hidden;
  padding: 40px 44px; display: flex; flex-direction: column;
}
.mk-signup__glow { position: absolute; inset: 0; background: radial-gradient(54% 42% at 30% 22%, rgba(14,126,150,.30), transparent 62%); pointer-events: none; }
.mk-signup__aside > * { position: relative; z-index: 1; }
.mk-signup__logo { height: 26px; width: auto; }
.mk-signup__asidebody { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 28px; }
.mk-signup__pitch h2 { font-family: var(--font-serif); font-weight: var(--w-semibold); font-size: var(--text-2xl); line-height: 1.16; color: #fff; margin: 0 0 12px; letter-spacing: var(--tracking-tight); }
.mk-signup__pitch p { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--on-dark-2); margin: 0; }

/* vertical stepper */
.mk-stepper { display: flex; flex-direction: column; gap: 2px; }
.mk-stepper__row { display: flex; align-items: center; gap: 13px; padding: 9px 0; }
.mk-stepper__dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--w-semibold); border: 1px solid rgba(255,255,255,.22); color: var(--on-dark-2); background: rgba(255,255,255,.04); transition: all var(--dur) var(--ease); }
.mk-stepper__dot svg { width: 15px; height: 15px; }
.mk-stepper__label { font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--on-dark-2); transition: color var(--dur) var(--ease); }
.mk-stepper__row[data-state="active"] .mk-stepper__dot { background: var(--teal-bright); border-color: var(--teal-bright); color: #fff; }
.mk-stepper__row[data-state="active"] .mk-stepper__label { color: #fff; }
.mk-stepper__row[data-state="done"] .mk-stepper__dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.mk-stepper__row[data-state="done"] .mk-stepper__label { color: var(--on-dark); }

.mk-signup__assurance { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-2); }
.mk-signup__assurance svg { width: 14px; height: 14px; color: var(--teal-bright); }

/* right side — form panel */
.mk-signup__main { background: var(--paper); display: flex; flex-direction: column; padding: 32px 40px; overflow-y: auto; }
.mk-signup__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; }
.mk-signup__progress { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mk-form { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; }
.mk-form__head { margin-bottom: 26px; }
.mk-form__head h1 { font-family: var(--font-serif); font-weight: var(--w-semibold); font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 8px; }
.mk-form__head p { font-size: var(--text-base); color: var(--ink-2); line-height: var(--lh-normal); margin: 0; }
.mk-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mk-form__grid .mk-col-2 { grid-column: span 2; }
.mk-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.mk-step-pane { display: none; }
.mk-step-pane.is-active { display: block; }
.mk-step-pane.is-enter { animation: mk-pane var(--dur-slow) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .mk-step-pane.is-enter { animation: none; } }
@keyframes mk-pane { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mk-hint { font-size: var(--text-xs); color: var(--ink-3); margin-top: 6px; line-height: var(--lh-normal); }
.mk-hint--err { color: var(--flag); }

/* phone input with country code */
.mk-phone { display: flex; align-items: stretch; }
.mk-phone__cc { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-2); }
.mk-phone .dr-input { border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-mono); }

/* OTP boxes */
.mk-otp { display: flex; gap: 10px; }
.mk-otp input {
  width: 52px; height: 60px; text-align: center; font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: var(--w-medium);
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.mk-otp input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--focus-ring); }
.mk-otp input.is-filled { border-color: var(--teal); background: var(--teal-tint); }
@media (max-width: 460px) { .mk-otp input { width: 44px; height: 54px; } }

/* file dropzone */
.mk-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); padding: 32px 24px; text-align: center; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.mk-drop:hover, .mk-drop.is-over { border-color: var(--teal); background: var(--teal-tint); }
.mk-drop__ic { width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--paper-sunk); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mk-drop__ic svg { width: 22px; height: 22px; }
.mk-drop h4 { margin: 0 0 4px; font-size: var(--text-md); font-weight: var(--w-semibold); color: var(--ink); }
.mk-drop p { margin: 0; font-size: var(--text-sm); color: var(--ink-3); }
.mk-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-cool); border-radius: var(--radius-md); background: var(--surface); margin-top: 12px; }
.mk-file__ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--teal-tint); color: var(--teal-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.mk-file__ic svg { width: 18px; height: 18px; }
.mk-file__body { flex: 1; min-width: 0; }
.mk-file__name { font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-file__size { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-3); margin-top: 2px; }

/* radio cards (specialty / clinic context) */
.mk-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-radio { position: relative; }
.mk-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mk-radio__card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); transition: all var(--dur-fast) var(--ease); height: 100%; }
.mk-radio__card svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; margin-top: 1px; }
.mk-radio__t { font-size: var(--text-sm); font-weight: var(--w-semibold); color: var(--ink); }
.mk-radio__d { font-size: var(--text-xs); color: var(--ink-3); margin-top: 2px; line-height: var(--lh-snug); }
.mk-radio input:checked + .mk-radio__card { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 1px var(--teal); }
.mk-radio input:checked + .mk-radio__card svg { color: var(--teal-ink); }
.mk-radio input:focus-visible + .mk-radio__card { box-shadow: 0 0 0 3px var(--focus-ring); }
@media (max-width: 520px) { .mk-radios { grid-template-columns: 1fr; } .mk-form__grid { grid-template-columns: 1fr; } .mk-form__grid .mk-col-2 { grid-column: auto; } }

/* success / done pane */
.mk-done { text-align: center; max-width: 460px; margin: auto; padding: 40px 0; }
.mk-done__seal { width: 76px; height: 76px; border-radius: 50%; background: var(--sage-tint); color: var(--sage-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; animation: mk-pop var(--dur-slow) var(--ease-out); }
.mk-done__seal svg { width: 36px; height: 36px; }
@keyframes mk-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mk-done h1 { font-family: var(--font-serif); font-weight: var(--w-semibold); font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); color: var(--ink); margin: 0 0 12px; }
.mk-done p { font-size: var(--text-md); line-height: var(--lh-relaxed); color: var(--ink-2); margin: 0 0 28px; }
.mk-done__card { background: var(--surface); border: 1px solid var(--line-cool); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-xs); display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 26px; }
.mk-done__card .mk-file__ic { background: var(--amber-tint); color: var(--amber-ink); }

/* signup top-right back to site link */
.mk-signup__sitelink { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: var(--w-medium); color: var(--ink-2); }
.mk-signup__sitelink:hover { color: var(--ink); }
.mk-signup__sitelink svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .mk-signup { grid-template-columns: 1fr; }
  .mk-signup__aside { padding: 26px 28px; }
  .mk-signup__asidebody { margin: 24px 0; gap: 22px; }
  .mk-stepper { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .mk-stepper__label { display: none; }
  .mk-signup__main { padding: 24px; }
}
