/* The product pages and the /products hub. Deliberately small: they
   borrow .wrap, .btn and .kicker from case-studies.css and the hero,
   crumb and prose rhythm from tools.css, so the only new rules here are
   the things those do not already have — the lead card, the honest
   status grid, and the hub's card grid.

   It was wgsone.css with wg- classes until there was a second product.
   A stylesheet named after one of the three pages that load it is a
   small lie that gets more expensive with each page added, so it was
   renamed rather than copied.

   The status grid is the reason this page exists in this shape. Everything
   else on the site earns trust by being specific about numbers; a product
   page earns it by being specific about what is not finished. */

.pr-demo {
  margin-top: 34px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.pr-demo img {
  display: block;
  width: 100%;
  height: auto;
  /* The shot is a light-UI product on a dark page. Letting it sit at full
     brightness would make it the loudest thing above the fold, which is
     right: it is the only proof on the page. */
  border-bottom: 1px solid var(--line);
}

.pr-demo-body { padding: 24px 28px 28px; }

.pr-demo-body h2 { margin: 0 0 10px; font-size: clamp(19px, 2vw, 23px); }

.pr-demo-body p {
  margin: 0 0 20px;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.65;
}

.pr-demo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pr-demo-meta {
  font-size: 13px;
  color: var(--muted);
}

/* --- status ---------------------------------------------------------- */

.pr-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pr-status-col {
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.pr-status-col h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.pr-status-col > p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.pr-status-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }

.pr-status-col li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--soft, #dbe5ff);
}

.pr-status-col li:before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

/* Mint for what runs, plain grey for what does not — not red. Nothing in
   the right-hand column is broken; it is simply not built yet, and
   colouring it like a failure would misdescribe the thing. */
.pr-works { border-color: rgba(185, 251, 192, .26); }
.pr-works li:before { content: "\2713"; color: #b9fbc0; }

.pr-pending li { color: var(--muted); }
.pr-pending li:before { content: "\2014"; color: #6b7689; }

.pr-note {
  margin: 22px 0 0;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

@media (max-width: 560px) {
  .pr-demo-body { padding: 20px 20px 24px; }
  .pr-status-col { padding: 20px; }
  .pr-demo-actions .btn { width: 100%; }
}

/* --- the /products hub ------------------------------------------------ */

/* Three cards, and room for a fourth without a new rule. auto-fit rather
   than a fixed three columns because the number of products is the one
   thing on this page certain to change. */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0 0;
}

.pr-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s ease, transform .18s ease;
}

.pr-item:hover { border-color: rgba(255, 255, 255, .26); transform: translateY(-2px); }

.pr-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}

/* Not every product has a screenshot worth showing, and a placeholder
   image would be a picture of nothing. These get a flat panel the same
   height instead, so the row of cards keeps its rhythm. */
.pr-item-blank {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(143, 211, 255, .10), rgba(185, 251, 192, .05)),
              rgba(255, 255, 255, .02);
  display: grid;
  place-items: center;
  padding: 24px;
}

.pr-item-blank span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  max-width: 30ch;
}

.pr-item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.pr-item-body h2 { margin: 0 0 4px; font-size: clamp(18px, 1.8vw, 21px); }

.pr-item-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pr-item-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

/* Pushes the link to the bottom edge of every card regardless of how much
   prose sits above it, so the three read as one row rather than three
   unrelated boxes. */
.pr-item-body .pr-item-go { margin-top: auto; }

.pr-item-go a { font-weight: 600; }

@media (max-width: 560px) {
  .pr-grid { gap: 16px; }
  .pr-item-body { padding: 20px; }
}
