/* product.html only: hero product visual + catalog card icon tiles.
   Loaded after verticle-serve.css; uses its --vs-* variables. */

/* ---------- Hero: text + a stack of three product crops ---------- */
.pc-hero { display: flex; align-items: center; gap: 48px; }
.pc-hero__text { flex: 1 1 0; min-width: 0; }
.pc-hero__visual {
    flex: 0 0 44%;
    max-width: 520px;
    position: relative;
    aspect-ratio: 520 / 400;
}
.pc-hero__visual img {
    position: absolute;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 44px rgba(3,6,20,0.55);
    background: #fff;
}
.pc-hero__visual img:nth-child(1) { left: 0; top: 0; width: 60%; }
.pc-hero__visual img:nth-child(2) { right: 0; top: 13%; width: 60%; }
.pc-hero__visual img:nth-child(3) { left: 13%; bottom: 0; width: 74%; }
@media (max-width: 991px) {
    .pc-hero { flex-direction: column; align-items: stretch; gap: 36px; }
    .pc-hero__visual { flex: none; width: 100%; max-width: 520px; }
}

/* ---------- Catalog card ----------
   Two variants share one body. --shot: a 16:10 band with a framed crop of the product's own UI.
   --icon (the product has no screenshot yet): a short, fixed tinted band with the icon tile.
   Icon cards are grouped after the screenshot cards (see the divider below), so a row is all
   one variant and the cards in it are the same height. */
.catalog-card.catalog-card--shot,
.catalog-card.catalog-card--icon { padding: 0; overflow: hidden; }
.pc-shot {
    display: block;
    flex: none;
    aspect-ratio: 16 / 10;
    background: #e8ecfa;
    border-bottom: 1px solid var(--vs-line);
    overflow: hidden;
}
.pc-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-band {
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid var(--vs-line);
    background:
        radial-gradient(rgba(74,59,209,0.13) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(135deg, #f0f3fd 0%, #e6f3fa 100%);
}
.pc-body { display: flex; flex-direction: column; flex: 1 0 auto; padding: 18px 22px 20px; }
.pc-body .catalog-card__cat { margin-bottom: 10px; }
.pc-body p { margin-bottom: 14px; }
.pc-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
}
.pc-chips li {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #39405e;
    background: var(--vs-mist);
    border: 1px solid var(--vs-line);
    border-radius: 999px;
    padding: 4px 10px;
}
/* The few cards without a screenshot are always ordered last, after a full-width divider, so they
   never share a row with screenshot cards (where their band would stretch into a hollow block).
   This holds for "All" and for every category filter; the divider hides itself when the current
   view has no icon card. */
#catalogGrid .catalog-item--icon,
#catalogGrid .catalog-break { order: 1; }
.catalog-break {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 2px 0 26px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7394;
}
.catalog-break::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--vs-line); }
#catalogGrid:not(:has(.catalog-item--icon:not(.is-hidden))) .catalog-break { display: none; }

.pc-tile {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.pc-tile--enterprise { background: #e3e0fb; color: #4a3bd1; }
.pc-tile--insurance  { background: #d5f3e8; color: #047857; }
.pc-tile--broker     { background: #dbe8fd; color: #1d4ed8; }
.pc-tile--banking    { background: #e1e5ec; color: #334155; }
.pc-tile--domain     { background: #d3f4fa; color: #0e7490; }
.pc-tile--security   { background: #fcecd0; color: #92400e; }
.pc-tile--app        { background: #131a3a; color: #7de3f4; box-shadow: none; }
.catalog-card h4 { overflow-wrap: anywhere; }
