/* ============================================================================
   Zetimagine — marketplace design system
   ----------------------------------------------------------------------------
   Layout language follows Fiverr/Upwork: a sticky utility nav with an inline
   search, a scrolling category strip, a sticky filter rail beside the results,
   and horizontally-composed result cards with the price anchored bottom-right.

   Colours stay on the existing brand blue. Only the *layout* borrows from the
   marketplaces — the visual identity is Zetimagine's.

   Plain CSS rather than a Tailwind CDN: the repeated components here (cards,
   filter rail, chip rows) are long class strings in that style, and the CDN
   costs a render-blocking round trip plus a flash of unstyled markup.
   ============================================================================ */

/* ---- Design tokens ------------------------------------------------------- */

:root {
  /* Brand */
  --brand-50:  #f0f6ff;
  --brand-100: #dcecff;
  --brand-200: #bcd9ff;
  --brand-300: #8ec0ff;
  --brand-400: #599fff;
  --brand-500: #2f80f5;
  --brand-600: #0c87ea;
  --brand-700: #0155a2;
  --brand-800: #064986;

  /* Neutrals — marketplace greys, slightly cooler than pure zinc */
  --ink:        #18181b;
  --ink-2:      #3f3f46;
  --muted:      #71717a;
  --muted-2:    #a1a1aa;
  --line:       #e4e4e7;
  --line-2:     #f0f0f2;
  --surface:    #ffffff;
  --surface-2:  #f7f7f8;
  --surface-3:  #fafafa;

  /* Semantic */
  --green:      #1dbf73;
  --green-dark: #169c5c;
  --amber:      #f5a623;
  --red:        #e5484d;
  --violet:     #7c6cf6;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation — restrained; marketplace cards read as flat until hovered */
  --sh-1: 0 1px 2px rgba(24, 24, 27, .04);
  --sh-2: 0 2px 8px rgba(24, 24, 27, .06);
  --sh-3: 0 10px 30px rgba(24, 24, 27, .10);

  --nav-h: 64px;
  --wrap: 1240px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;
}

/* ---- Reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
}

p { margin: 0; }

/* Visible focus for keyboard users only — never a ring on mouse click. */
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, box-shadow .15s ease;
}

.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ---- Header -------------------------------------------------------------- */

.mk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mk-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

.mk-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mk-logo img { height: 30px; width: auto; }

.mk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mk-nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.mk-nav a:hover { background: var(--surface-2); color: var(--ink); }
.mk-nav a[aria-current='page'] { color: var(--brand-700); font-weight: 600; }

.mk-headsearch {
  flex: 1;
  min-width: 0;
  display: flex;
  position: relative;
}
.mk-headsearch input {
  width: 100%;
  height: 40px;
  padding: 0 96px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease,
              box-shadow .15s ease;
}
.mk-headsearch input::placeholder { color: var(--muted-2); }
.mk-headsearch input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.mk-headsearch button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand-600);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mk-headsearch button:hover { background: var(--brand-700); }

.mk-headeractions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mk-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

/* ---- Category strip ------------------------------------------------------ */

.mk-cats {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mk-cats__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 12px;
}
.mk-cats__scroll::-webkit-scrollbar { display: none; }

.mk-cats a {
  flex-shrink: 0;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .15s ease;
}
.mk-cats a:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}
.mk-cats a[aria-current='page'] {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* ---- Hero ---------------------------------------------------------------- */

.mk-hero {
  background:
    radial-gradient(900px 380px at 12% -10%, var(--brand-50), transparent 60%),
    radial-gradient(700px 320px at 88% 0%, #f2efff, transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 72px;
  text-align: center;
}

.mk-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  max-width: 17ch;
  margin: 0 auto 18px;
}
.mk-hero h1 em {
  font-style: normal;
  color: var(--brand-600);
}

.mk-hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}

.mk-hero__search {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 22px;
}
.mk-hero__search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px;
  box-shadow: var(--sh-2);
}
.mk-hero__search input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.mk-hero__search .btn { height: 52px; }

.mk-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.mk-hero__pills a {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: background-color .15s ease;
}
.mk-hero__pills a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---- Trust strip --------------------------------------------------------- */

.mk-trust {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mk-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.mk-trust__item {
  background: var(--surface);
  padding: 22px 20px;
  text-align: center;
}
.mk-trust__item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.mk-trust__item span {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Section heads ------------------------------------------------------- */

.mk-section { padding: 68px 0; }
.mk-section--tint { background: var(--surface-3); border-block: 1px solid var(--line); }

.mk-head { margin-bottom: 40px; }
.mk-head--center { text-align: center; }
.mk-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.mk-head p { color: var(--muted); font-size: 16px; max-width: 62ch; }
.mk-head--center p { margin-inline: auto; }

.mk-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

/* ---- Landing: three-up pillar and value panels -------------------------- */

.mk-pillars, .mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mk-pillar {
  display: block;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.mk-pillar:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}
.mk-pillar__icon { display: block; color: var(--brand-600); margin-bottom: 16px; }
.mk-pillar h3 { font-size: 16.5px; line-height: 1.4; margin-bottom: 8px; }
.mk-pillar p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-pillar__more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-700);
}

.mk-panel {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.mk-panel h3 { font-size: 16.5px; margin-bottom: 8px; }
.mk-panel p { font-size: 14px; color: var(--muted); }

.mk-more { margin-top: 26px; }

.mk-cta {
  max-width: 640px;
  text-align: center;
}
.mk-cta h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.mk-cta p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }

.mk-steps--center { max-width: 620px; margin-inline: auto; }

.mk-results__title { font-size: 26px; }
.mk-results__count { margin-bottom: 16px; font-size: 14px; color: var(--muted); }

.mk-link { color: var(--brand-700); font-weight: 600; }
.mk-link:hover { text-decoration: underline; }

.mk-prose { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.mk-prose h2 { margin-top: 0; }
.mk-prose p { color: var(--muted); font-size: 14.5px; }

.mk-formbox__title { font-size: 19px; margin-bottom: 18px; }
.mk-submit { width: 100%; }
.mk-formnote {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Honeypot: removed from the layout but still focusable by a script. */
.mk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Hero notice pill --------------------------------------------------- */

.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  background: var(--brand-50);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-700);
}
.mk-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---- Pricing ------------------------------------------------------------ */

.mk-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.mk-pricecard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.mk-pricecard--featured {
  border-color: var(--brand-600);
  box-shadow: 0 12px 36px rgba(12, 135, 234, .12);
}

.mk-pricecard__tag {
  position: absolute;
  top: -11px; left: 26px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-600);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mk-pricecard h3 { font-size: 18px; margin-bottom: 4px; }
.mk-pricecard__blurb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.mk-pricecard__amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 22px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.mk-pricecard__amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.mk-pricecard .mk-ticks { flex: 1; margin-bottom: 24px; }
.mk-pricecard .btn { width: 100%; }

/* ---- Testimonials ------------------------------------------------------- */

.mk-quote {
  margin: 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.mk-quote__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.mk-quote blockquote {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mk-quote figcaption b { display: block; font-size: 14px; }
.mk-quote figcaption span { font-size: 13px; color: var(--muted); }

/* ---- Tech stack --------------------------------------------------------- */

.mk-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.mk-stack span {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- Footer socials ----------------------------------------------------- */

.mk-social { display: flex; gap: 8px; margin-top: 18px; }
.mk-social a {
  padding: 6px 14px;
  border: 1px solid #2e2e35;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: #d4d4d8;
  transition: border-color .15s ease, color .15s ease;
}
.mk-social a:hover { border-color: #52525b; color: #fff; text-decoration: none; }

/* ---- Browse layout (filter rail + results) ------------------------------- */

.mk-browse {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px 0 72px;
}

.mk-filters {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.mk-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.mk-filters__head h2 { font-size: 15px; }
.mk-filters__clear {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
  cursor: pointer;
}
.mk-filters__clear:hover { text-decoration: underline; }

.mk-fgroup { border-bottom: 1px solid var(--line-2); }
.mk-fgroup:last-child { border-bottom: 0; }

.mk-fgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.mk-fgroup > summary::-webkit-details-marker { display: none; }
.mk-fgroup > summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.mk-fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.mk-fgroup__body { padding: 0 18px 16px; }

.mk-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.mk-check input {
  width: 16px; height: 16px;
  accent-color: var(--brand-600);
  cursor: pointer;
  flex-shrink: 0;
}
.mk-check__count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.mk-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mk-range input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
}
.mk-range input:focus { outline: none; border-color: var(--brand-400); }

/* ---- Results header ------------------------------------------------------ */

.mk-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mk-results__count { font-size: 15px; color: var(--muted); }
.mk-results__count strong { color: var(--ink); }

.mk-sort { display: flex; align-items: center; gap: 8px; }
.mk-sort select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 13.5px;
  color: var(--ink-2);
  appearance: none;
  cursor: pointer;
}
.mk-sort select:focus { outline: none; border-color: var(--brand-400); }

/* ---- Service card -------------------------------------------------------- */

.mk-list { display: flex; flex-direction: column; gap: 16px; }

.mk-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease,
              transform .16s ease;
}
.mk-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-3);
  transform: translateY(-1px);
}

.mk-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 20px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--brand-50), #f4f1ff);
  font-size: 46px;
}
.mk-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand-700);
}

.mk-card__body { padding: 18px 20px; display: flex; flex-direction: column; }

.mk-card__seller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mk-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mk-card__seller a { font-size: 13.5px; font-weight: 600; }
.mk-card__seller a:hover { color: var(--brand-700); }
.mk-dot { color: var(--muted-2); font-size: 12px; }

.mk-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.mk-stars svg { fill: var(--amber); }
.mk-stars span { color: var(--ink-2); font-weight: 600; }
.mk-stars em { font-style: normal; color: var(--muted); }

.mk-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.mk-card h3 a:hover { color: var(--brand-700); }

.mk-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mk-chip {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.mk-chip--link:hover { background: var(--brand-50); color: var(--brand-700); }

.mk-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.mk-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.mk-price { text-align: right; flex-shrink: 0; }
.mk-price strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.mk-price span { font-size: 12.5px; color: var(--muted); }

/* Sticky CTA square on the card's right edge, as on Upwork result rows. */
.mk-card__cta {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: all .16s ease;
}
.mk-card:hover .mk-card__cta {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* Empty state */
.mk-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface-3);
}
.mk-empty h3 { font-size: 17px; margin-bottom: 6px; }
.mk-empty p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---- Detail page --------------------------------------------------------- */

.mk-crumbs {
  padding: 18px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mk-crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  list-style: none; margin: 0; padding: 0;
}
.mk-crumbs li::after { content: '/'; margin-left: 7px; color: var(--muted-2); }
.mk-crumbs li:last-child::after { content: none; }
.mk-crumbs a:hover { color: var(--brand-700); text-decoration: underline; }

.mk-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 40px;
  align-items: start;
  padding: 32px 0 72px;
}

.mk-detail__title { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; }

.mk-detail__metarow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.mk-detail__metarow .mk-stars { font-size: 13.5px; }

.mk-detail h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.mk-detail h2:first-child { margin-top: 0; }
.mk-detail p { color: var(--ink-2); margin-bottom: 14px; }

.mk-overview { font-size: 16px; color: var(--ink-2); line-height: 1.65; }

.mk-ticks { list-style: none; margin: 0; padding: 0; }
.mk-ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 13px;
  color: var(--ink-2);
}
.mk-ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.5l3 3 6-6' stroke='%230c87ea' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Process timeline */
.mk-steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.mk-steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 22px 48px;
  border-left: 2px solid var(--line);
  margin-left: 13px;
}
.mk-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.mk-steps li::before {
  content: counter(step);
  position: absolute;
  left: -14px; top: -3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-600);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mk-steps strong { display: block; margin-bottom: 3px; font-size: 15px; }
.mk-steps span { font-size: 14px; color: var(--muted); }

/* FAQ accordion */
.mk-faq { border-top: 1px solid var(--line); }
.mk-faq details { border-bottom: 1px solid var(--line); }
.mk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.mk-faq details[open] summary::after { transform: rotate(-135deg); }
.mk-faq p { padding-bottom: 18px; color: var(--muted); font-size: 14.5px; }

/* ---- Sticky detail sidebar ---------------------------------------------- */

.mk-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

.mk-aside__seller {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mk-aside__seller .mk-avatar { width: 40px; height: 40px; font-size: 15px; }
.mk-aside__seller b { display: block; font-size: 15px; }
.mk-aside__seller span { font-size: 13px; color: var(--muted); }

.mk-aside__block { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mk-aside__block:last-child { border-bottom: 0; }

.mk-aside__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.mk-aside__price strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mk-aside__price span { font-size: 14px; color: var(--muted); }

.mk-aside .btn { width: 100%; margin-bottom: 10px; }

.mk-spec { display: flex; flex-direction: column; gap: 11px; }
.mk-spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
}
.mk-spec__row dt { color: var(--muted); flex-shrink: 0; }
.mk-spec__row dd { margin: 0; font-weight: 600; text-align: right; }

.mk-aside__note {
  padding: 12px 20px;
  background: var(--surface-3);
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---- Forms --------------------------------------------------------------- */

.mk-field { margin-bottom: 18px; }
.mk-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
}
.mk-field input,
.mk-field textarea,
.mk-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mk-field textarea { resize: vertical; min-height: 130px; }
.mk-field input:focus,
.mk-field textarea:focus,
.mk-field select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.mk-field input::placeholder, .mk-field textarea::placeholder { color: var(--muted-2); }
.mk-field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.mk-formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.mk-formbox {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.mk-alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 18px;
}
.mk-alert.is-visible { display: block; }
.mk-alert--ok { background: #e8f8f0; color: var(--green-dark); border: 1px solid #b7ebd3; }
.mk-alert--err { background: #fdeced; color: var(--red); border: 1px solid #f8c9cc; }

/* ---- Footer -------------------------------------------------------------- */

.mk-footer {
  background: #101014;
  color: #a1a1aa;
  padding: 56px 0 0;
  margin-top: auto;
}
.mk-footer a { color: #d4d4d8; font-size: 14px; }
.mk-footer a:hover { color: #fff; text-decoration: underline; }

.mk-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
.mk-footer__brand .mk-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
}
.mk-footer__brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 34ch;
}
.mk-footer h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mk-footer ul { list-style: none; margin: 0; padding: 0; }
.mk-footer li { margin-bottom: 10px; }

.mk-newsletter { display: flex; margin-top: 16px; max-width: 320px; }
.mk-newsletter input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #2e2e35;
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: #17171d;
  color: #fff;
  font-size: 14px;
}
.mk-newsletter input::placeholder { color: #71717a; }
.mk-newsletter input:focus { outline: none; border-color: var(--brand-500); }
.mk-newsletter button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--brand-600);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.mk-newsletter button:hover { background: var(--brand-700); }

.mk-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #232329;
  font-size: 13.5px;
}

/* ---- Page shell ---------------------------------------------------------- */

.mk-page { display: flex; flex-direction: column; min-height: 100vh; }
.mk-main { flex: 1; }

/* ---- Mobile -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .mk-browse { grid-template-columns: 232px minmax(0, 1fr); gap: 24px; }
  .mk-detail { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .mk-nav { display: none; }
}

@media (max-width: 820px) {
  .wrap { padding-inline: 18px; }
  .mk-pillars, .mk-grid-3, .mk-pricing { grid-template-columns: 1fr; }
  .mk-header__bar { gap: 12px; }
  .mk-headsearch { display: none; }
  .mk-burger { display: flex; }
  .mk-headeractions .btn-ghost { display: none; }

  .mk-hero { padding: 44px 0 52px; }
  .mk-hero__search { flex-direction: column; }
  .mk-hero__search .btn { width: 100%; }

  .mk-trust__grid { grid-template-columns: 1fr 1fr; }
  .mk-section { padding: 52px 0; }

  /* Filters collapse into a full-width block above the results. */
  .mk-browse { grid-template-columns: minmax(0, 1fr); }
  .mk-filters { position: static; max-height: none; }

  .mk-card { grid-template-columns: minmax(0, 1fr); }
  .mk-card__media {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mk-detail { grid-template-columns: minmax(0, 1fr); }
  .mk-aside { position: static; }

  .mk-formrow { grid-template-columns: 1fr; }
  .mk-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mk-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .mk-footer__top { grid-template-columns: 1fr; }
  .mk-card__foot { flex-direction: column; align-items: flex-start; }
  .mk-price { text-align: left; }
}

/* Mobile drawer — the off-canvas nav behind .mk-burger */
.mk-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: var(--surface);
  padding: 20px 18px 40px;
  overflow-y: auto;
  display: none;
}
.mk-drawer.is-open { display: block; }
.mk-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 16px;
  font-weight: 500;
}
.mk-drawer .mk-drawer__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-drawer .mk-drawer__actions .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
