/* The market page (/market): what's listed, as cards with their screens, and a card for yours that
   opens the join form. Also what Reach's page shares with it: the app icon, the name row and the
   product window around a real screen (page.css holds the phone's frame). Only tokens; the icon's
   colors are the hero's app icons. */

.mk-top {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-24);
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.head.center .kicker {
  justify-content: center;
}
/* A page heading, not a hero: one line for the claim, the quiet line under it. */
.mk-top h1 {
  margin-top: var(--space-5);
  font-size: clamp(40px, 5vw, 64px);
}
.mk-top h1 .quiet {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--size-h3);
  line-height: var(--leading-heading);
}
.mk-top .lead {
  margin-top: var(--space-6);
}
.nav-links a[aria-current="true"] {
  color: var(--text-strong);
}

/* The listings */
.mk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 960px;
  margin: var(--space-16) auto 0;
  padding: 0;
  list-style: none;
}
.mk-list > li {
  display: flex;
}
.mk-card {
  flex: 1;
  gap: var(--space-5);
  padding: var(--space-6);
  color: var(--text);
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-base) var(--ease-rise);
}
.mk-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.mk-card > p,
.mk-line {
  display: block;
  font-size: 15px;
  line-height: var(--leading-ui);
  color: var(--text-muted);
}

/* Two screens, cut at the same height, on a raised floor */
.mk-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  height: 300px;
  padding: var(--space-5) var(--space-5) 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg-raised);
  border: var(--border) solid var(--line);
}
.mk-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border: var(--border) solid var(--line-strong);
  border-bottom: 0;
}
.mk-empty {
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-style: dashed;
  font-size: var(--size-small);
  color: var(--text-subtle);
}
.mk-empty .icon {
  width: 28px;
  height: 28px;
}

/* The name row: icon, name and maker, badge */
.mk-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
}
.mk-head b {
  display: block;
  font-size: var(--size-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}
.mk-head small {
  display: block;
  font-size: var(--size-small);
  color: var(--text-muted);
}
.app-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--ic, var(--surface-3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.app-ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-yours {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.ic-yours svg {
  stroke: var(--accent-text);
}

.mk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mk-tags li {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: var(--border) solid var(--line);
  font-size: 13px;
  color: var(--text);
}
.mk-go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.mk-go .icon {
  transition: transform var(--duration-fast) var(--ease-out);
}
.mk-card:hover .mk-go .icon {
  transform: translateX(3px);
}
.mk-yours {
  border-style: dashed;
  border-color: var(--line-strong);
}
.mk-start {
  align-self: start;
  margin-top: auto;
}
.mk-notes {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  text-align: center;
}

/* A real screen on a computer: the product window */
.screen {
  display: block;
  padding: 6px;
  border-radius: var(--radius-card);
  background: var(--sun-night);
  border: var(--border) solid var(--line-strong);
  box-shadow: var(--shadow-window);
}
.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-card) - 6px);
}

@media (max-width: 720px) {
  .mk-top {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }
  .mk-list {
    grid-template-columns: 1fr;
    margin-top: var(--space-10);
  }
  .mk-shots {
    height: 240px;
  }
  .mk-card:hover {
    transform: none;
  }
}
