/* ===========================================================================
   AssociateMed marketing landing (web/site/index.html). Consumes the brand
   tokens + light/dark vars from styles.css; this file is layout + components.
   Product-led: the hero shows the actual e-rack card, not stock photography.
   =========================================================================== */

.mk { background: var(--bg); }
.mk main { max-width: none; margin: 0; padding: 0; }
.mk .ic { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.mk .ic.big { width: 2.2rem; height: 2.2rem; }
.mk-section, .mk-hero, .mk-cta-band { padding-inline: 24px; }
.mk h1, .mk h2, .mk h3 { font-family: var(--font-brand); letter-spacing: -.01em; }

/* ---- buttons --------------------------------------------------------------- */
.mk-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.mk-btn.lg { padding: 14px 24px; font-size: 1.02rem; }
.mk-btn-primary { background: var(--accent); color: var(--accent-ink); }
.mk-btn-primary:hover { filter: brightness(1.07); }
.mk-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.mk-btn-ghost:hover { border-color: var(--brand-blue); color: var(--link); }
.mk-btn-light { background: #fff; color: var(--brand-navy); }
.mk-btn-light:hover { filter: brightness(.96); }

/* ---- nav ------------------------------------------------------------------- */
.mk-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px;
  padding: 14px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(8px); border-bottom: 1px solid var(--line); }
.mk-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-brand); font-weight: 700;
  font-size: 1.12rem; color: var(--brand-navy); text-decoration: none; }
[data-theme="dark"] .mk-brand { color: var(--brand-blue); }
.mk-brand img { width: 28px; height: 28px; }
.brand .logo-dark, .mk-brand .logo-dark, .mk-foot-brand .logo-dark { display: none; }
[data-theme="dark"] .mk-brand .logo-light, [data-theme="dark"] .mk-foot-brand .logo-light { display: none; }
[data-theme="dark"] .mk-brand .logo-dark, [data-theme="dark"] .mk-foot-brand .logo-dark { display: inline; }
.mk-links { display: flex; gap: 22px; margin-inline-start: 8px; flex: 1; }
.mk-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.mk-links a:hover { color: var(--link); }
.mk-nav-actions { display: flex; align-items: center; gap: 12px; }
.mk-signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.mk-signin:hover { color: var(--link); }
.theme-toggle-sm { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line);
  color: var(--ink); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.theme-toggle-sm:hover { border-color: var(--brand-blue); color: var(--link); }
.theme-toggle-sm .ic { width: 15px; height: 15px; }
.mk-burger { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); padding: 7px 9px; cursor: pointer; }
.mk-burger .ic { width: 18px; height: 18px; }

/* ---- hero ------------------------------------------------------------------ */
.mk-hero { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 54px; align-items: center; padding-block: 72px 64px; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  color: var(--link); background: color-mix(in srgb, var(--brand-blue) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, var(--surface)); border-radius: 999px; padding: 5px 13px; }
.mk-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.07; margin: 18px 0 0; }
.grad { background: linear-gradient(100deg, var(--brand-navy), var(--brand-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .grad { background: linear-gradient(100deg, #6fc1fb, var(--brand-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-lead { font-size: 1.12rem; color: var(--muted); line-height: 1.55; margin: 18px 0 26px; max-width: 36em; }
.mk-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mk-microtrust { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: 22px; }
.mk-microtrust .ic { color: var(--success); }
.mk-microtrust .ic:nth-of-type(2) { color: var(--brand-blue); }

/* ---- hero product card ----------------------------------------------------- */
.mk-hero-visual { position: relative; justify-self: center; }
.mk-card { width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 24px 60px -24px rgba(13,27,42,.4), var(--shadow); }
.mk-card-cover { position: relative; height: 76px; background: linear-gradient(120deg, var(--brand-navy), var(--brand-blue)); }
.mk-card-avatar { position: absolute; left: 24px; bottom: -28px; width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--surface); background: var(--surface-2); box-shadow: var(--shadow); }
.mk-card-body { padding: 40px 20px 16px; }
.mk-card-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.05rem; }
.mk-card-specialty { color: var(--link); font-weight: 600; font-size: .88rem; margin-top: 2px; }
.mk-card-meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.mk-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mk-card-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .72rem; color: var(--muted); }
.mk-card-bio { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 12px 0 0; }
.mk-card-videos { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--link); font-size: .8rem; font-weight: 600; }
.mk-card-foot { border-top: 1px solid var(--line); padding: 10px; text-align: center; color: var(--muted); font-size: .7rem; }
.mk-badge-float { position: absolute; display: flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 13px; font-size: .8rem; font-weight: 600; }
.mk-badge-verified { top: 30px; right: -26px; color: var(--success); }
.mk-badge-verified .ic { color: var(--success); }
.mk-badge-private { bottom: -16px; left: -28px; color: var(--link); }
.mk-badge-private .ic { color: var(--brand-blue); }

/* ---- sections -------------------------------------------------------------- */
.mk-section { max-width: 1120px; margin: 0 auto; padding-block: 64px; }
.mk-section.alt { max-width: none; background: var(--surface-2); border-block: 1px solid var(--line); }
.mk-section.alt > * { max-width: 1120px; margin-inline: auto; }
.mk-section-head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.mk-section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.mk-section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---- feature grids --------------------------------------------------------- */
.mk-grid { display: grid; gap: 18px; }
.mk-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mk-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mk-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.mk-fic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px;
  background: color-mix(in srgb, var(--brand-blue) 14%, var(--surface)); color: var(--link); margin-bottom: 14px; }
.mk-fic .ic { width: 21px; height: 21px; }
.mk-fic.neg { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.mk-feature h3 { font-size: 1.05rem; margin: 0 0 7px; }
.mk-feature p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }

/* ---- steps ----------------------------------------------------------------- */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.mk-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.mk-step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); color: #fff; font-family: var(--font-brand); font-weight: 700; margin-bottom: 14px; }
.mk-step h3 { font-size: 1.1rem; margin: 0 0 8px; }
.mk-step p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0; }

/* ---- split (video spotlight) ----------------------------------------------- */
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mk-split-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 14px 0 14px; }
.mk-split-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; margin: 0 0 14px; }
.mk-split-copy strong { color: var(--ink); }
.mk-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.mk-ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .92rem; }
.mk-ticks .ic { color: var(--success); width: 18px; height: 18px; }
.mk-videocard { display: flex; flex-direction: column; gap: 16px; }
.mk-videoframe { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 16/9; border-radius: 14px; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.mk-videoframe.mk-private { background: linear-gradient(135deg, color-mix(in srgb, var(--brand-navy) 18%, var(--surface)), var(--surface)); color: var(--link); }
.mk-videoframe.mk-public { background: var(--surface); color: var(--muted); }
.mk-videoframe .ic { color: var(--brand-blue); }

/* ---- pricing --------------------------------------------------------------- */
.mk-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; }
.mk-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.mk-plan.featured { border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue), var(--shadow); }
.mk-plan-tag { position: absolute; top: -12px; left: 28px; background: var(--brand-blue); color: #06283d; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.mk-plan-price { font-family: var(--font-brand); font-weight: 700; font-size: 2.4rem; color: var(--ink); }
.mk-plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.mk-plan-note { color: var(--muted); font-size: .85rem; margin: 2px 0 16px; }
.mk-plan .mk-ticks { margin: 0 0 22px; }
.mk-plan .mk-btn { width: 100%; justify-content: center; }

/* ---- CTA band -------------------------------------------------------------- */
.mk-cta-band { position: relative; text-align: center;
  background: linear-gradient(120deg, rgba(0,49,86,.93), rgba(10,63,102,.88) 55%, rgba(31,124,192,.86)), url('../assets/peers-montage.jpg') center/cover no-repeat;
  color: #fff; padding-block: 76px; }
.mk-cta-band > * { position: relative; }
.mk-cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 10px; color: #fff; }
.mk-cta-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin: 0 0 24px; }
.mk-cta-fine { font-size: .85rem !important; margin: 18px 0 0 !important; color: rgba(255,255,255,.7) !important; }

/* ---- footer ---------------------------------------------------------------- */
.mk-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 24px; text-align: center; }
.mk-foot-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-brand); font-weight: 700; color: var(--brand-navy); }
[data-theme="dark"] .mk-foot-brand { color: var(--brand-blue); }
.mk-foot-brand img { width: 24px; height: 24px; }
.mk-foot-tag { color: var(--muted); font-size: .9rem; margin: 10px 0 16px; }
.mk-foot-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.mk-foot-links a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.mk-foot-links a:hover { color: var(--link); }
.mk-foot-copy { color: var(--muted); font-size: .78rem; margin: 0; }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .mk-hero { grid-template-columns: 1fr; gap: 40px; padding-block: 52px 48px; }
  .mk-hero-visual { order: -1; }
  .mk-split { grid-template-columns: 1fr; gap: 30px; }
  .mk-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mk-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mk-steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mk-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mk-links.open { display: flex; }
  .mk-links a { padding: 12px 24px; }
  .mk-signin { display: none; }
  .mk-burger { display: inline-flex; }
  .mk-grid-4, .mk-grid-3, .mk-pricing { grid-template-columns: 1fr; }
  .mk-pricing { justify-content: stretch; }
  .mk-badge-float { display: none; }
}
