/* ─── DealerDMS — PUBLIC marketplace showcase (/marketplace) ─────────────────
   Layered on top of landing.css (nav, buttons, sections, footer, tokens).
   Everything here is mk- / mkc- prefixed except the shared .code-block, which
   mirrors developers.css (that sheet isn't loaded on this page). */

/* ── Brand tag next to the logo (mirrors developers' .brand-dev) ── */
.brand-mkt {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: rgba(224, 138, 30, .12); border: 1px solid rgba(224, 138, 30, .3);
  border-radius: 7px; padding: 3px 8px; margin-left: 10px; align-self: center;
}

/* ── Hero ── */
.mk-hero {
  position: relative; overflow: hidden; color: #eaf1fb;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(79, 151, 224, .3), transparent 60%),
    radial-gradient(700px 400px at 5% 20%, rgba(224, 138, 30, .16), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--ink) 65%);
}
.mk-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(700px 500px at 70% 0%, #000, transparent 75%);
}
.mk-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 0 84px; }
.mk-hero h1 { color: #fff; }
.mk-hero h1 .grad { background: linear-gradient(120deg, var(--blue-2), var(--amber-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-hero .lead { color: #b7c6dd; max-width: 40ch; margin-top: 18px; }

/* Hero "two lines of HTML" visual */
.mk-hero-demo { position: relative; z-index: 1; display: grid; gap: 16px; }
.mk-hero-demo .code-block { margin: 0; }
.mk-hero-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: #eaf1fb;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 7px 14px;
}
.mk-hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 10px rgba(55, 214, 122, .8); }

/* ── Code blocks (mirrors developers.css so this page is self-sufficient) ── */
.code-block { position: relative; margin: 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid #1c2740; box-shadow: 0 8px 26px -14px rgba(14, 26, 48, .5); }
.code-block::before { content: attr(data-lang); position: absolute; top: 0; right: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #7f92b3; background: #101a2e; border-bottom-left-radius: 8px; padding: 5px 11px; text-transform: uppercase; }
.code-block pre { margin: 0; padding: 18px 16px; background: #0d1626; overflow-x: auto; }
.code-block code { background: none; padding: 0; color: #d6e2f5; font-size: 13px; line-height: 1.7; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.code-block .c { color: #6b7f9e; }        /* comment */
.code-block .k { color: var(--amber-2); } /* key */
.code-block .host { color: var(--blue-2); }
.code-block .tag { color: #8ce0b0; }      /* <oc-*> element */

/* ── Component cards ── */
.mkc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.mkc {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.mkc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3ddec; }
.mkc.flagship { border: 2px solid var(--amber); }
.mkc .flag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #241703; background: linear-gradient(135deg, var(--amber), var(--amber-2));
  border-radius: 20px; padding: 4px 11px; box-shadow: 0 6px 16px -6px rgba(224, 138, 30, .55);
}

/* preview window at the top of each card */
.mkc-preview {
  position: relative; background: linear-gradient(160deg, #16233c, #0e1626);
  border-bottom: 1px solid var(--line); padding: 34px 18px 18px; min-height: 190px;
}
.mkc-preview::before { /* faux window dots */
  content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%;
  background: #33415c; box-shadow: 18px 0 0 #33415c, 36px 0 0 #33415c;
}
.mkc-preview-note {
  position: absolute; right: 12px; top: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #9fb2cd; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 3px 9px;
}
.mkc.flagship .mkc-preview-note { right: 100px; } /* clear the FLAGSHIP pill */

/* preview internals (pure-CSS mocks) */
.pv-search { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 9px 14px; color: #b7c6dd; font-size: 12.5px; }
.pv-search .pv-caret { display: inline-block; width: 1px; height: 13px; background: var(--amber-2); animation: pv-blink 1s steps(1) infinite; }
@keyframes pv-blink { 50% { opacity: 0; } }
.pv-cars { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.pv-car { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px; }
.pv-car .ph { height: 38px; border-radius: 6px; background: linear-gradient(135deg, var(--blue), #6ab0ef); position: relative; overflow: hidden; }
.pv-car .ph.a { background: linear-gradient(135deg, var(--amber), var(--amber-2)); }
.pv-car .ph.g { background: linear-gradient(135deg, #2c9a6c, #47c592); }
.pv-car .ph.p { background: linear-gradient(135deg, #7a5cc9, #a58ae8); }
.pv-car .ln { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin-top: 7px; }
.pv-car .ln.sm { width: 55%; background: rgba(255, 255, 255, .1); margin-top: 5px; }
.pv-price { display: inline-block; font-size: 10px; font-weight: 800; color: #0e1626; background: var(--amber-2); border-radius: 5px; padding: 1px 6px; margin-top: 6px; }

.pv-chat { display: grid; gap: 8px; }
.pv-bub { max-width: 82%; border-radius: 12px; padding: 8px 11px; font-size: 12px; line-height: 1.45; }
.pv-bub.bot { background: rgba(255, 255, 255, .09); color: #dbe6f7; border-bottom-left-radius: 4px; justify-self: start; }
.pv-bub.usr { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.pv-typing { display: inline-flex; gap: 4px; padding: 9px 12px; background: rgba(255, 255, 255, .09); border-radius: 12px; border-bottom-left-radius: 4px; justify-self: start; }
.pv-typing i { width: 5px; height: 5px; border-radius: 50%; background: #93a6c2; animation: pv-bounce 1.1s infinite ease-in-out; }
.pv-typing i:nth-child(2) { animation-delay: .16s; }
.pv-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes pv-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* card body */
.mkc-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px; }
.mkc-cat {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--blue); background: rgba(47, 111, 176, .1); border-radius: 20px; padding: 4px 11px;
}
.mkc-body h3 { margin: 12px 0 2px; font-size: 1.22rem; }
.mkc-tag { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--muted-2); }
.mkc-body > p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.mkc-feats { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.mkc-feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--text); }
.mkc-feats .tick { color: #12915f; font-weight: 800; }

/* per-card embed snippet */
.mkc-embed { margin-top: 16px; }
.mkc-embed-label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.mkc-embed .code-block { margin: 0; }
.mkc-embed .code-block code { font-size: 11.5px; line-height: 1.65; }
.mkc-copy {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: #cdd8ea; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px; padding: 4px 10px; transition: background .15s ease, color .15s ease;
}
.mkc-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.mkc-copy.ok { color: #8ce0b0; border-color: rgba(140, 224, 176, .4); }

/* card CTAs */
.mkc-cta { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mkc-cta .btn { flex: 1 1 auto; padding: 11px 12px; font-size: 13.5px; }

.mkc-note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 26px; }

/* ── How it works (3 steps) ── */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: mkstep; }
.mk-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.mk-step::before {
  counter-increment: mkstep; content: counter(mkstep);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 20px -8px var(--blue-glow);
}
.mk-step h3 { margin-bottom: 8px; }
.mk-step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.mk-step code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* ── Security band ── */
.mk-secure {
  color: #eaf1fb; border-radius: 22px; margin: 0 24px; padding: 60px 40px;
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(79, 151, 224, .3), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--ink));
  box-shadow: var(--shadow-lg);
}
.mk-secure-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.mk-secure h2 { color: #fff; }
.mk-secure .lead { color: #b7c6dd; margin-top: 14px; font-size: 1.05rem; }
.mk-secure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-lock {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 18px;
}
.mk-lock .ico { font-size: 20px; margin-bottom: 9px; }
.mk-lock h4 { margin: 0 0 6px; color: #fff; font-size: 14.5px; font-weight: 750; }
.mk-lock p { margin: 0; color: #9fb2cd; font-size: 13px; line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .mkc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mk-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 54px 0 60px; }
  .mk-steps { grid-template-columns: 1fr; }
  .mk-secure { padding: 44px 26px; }
  .mk-secure-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .mkc-grid { grid-template-columns: 1fr; }
  .mk-secure-grid { grid-template-columns: 1fr; }
}
