/* ================================================================== */
/*  Product showcase — Engineering grid (light blueprint).             */
/* ================================================================== */

.vrnt {
    max-width: var(--container-max);
    margin: 0 auto 96px;
}

/* ===================================================================
   ENGINEERING GRID (LIGHT)
   Light grey blueprint sheet with corner registration marks, dimension
   pins, monospace specs, brand-blue accents. CAD/datasheet feel.
   View area is fully transparent so the product image floats over the
   dot-grid pattern; CTA is now a solid brand-coloured button.
   =================================================================== */

/* Anchor target — land below the sticky navbar when jumped to. */
.vrnt--d {
    scroll-margin-top: 88px;
    background: var(--bg-soft);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
}

/* Title + lead, same look as the .cm-variants section header. */
.vD__intro {
    text-align: start;
    margin-bottom: 32px;
}
.vD__intro .cm-section__title { text-align: start; }
.vD__intro .cm-section__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: start;
}

/* On mobile, left-align the engineering-grid intro (title + lead).
   No negative-margin trick needed: cm-page now has zero horizontal padding
   and each cm-* section provides its own 24px padding. The vrnt section is
   inside cm-page at viewport-edge, and vrnt--d's existing 24px padding puts
   its content at the same +24px x-coordinate as every other section title. */
@media (max-width: 640px) {
    .vD__intro,
    .vD__intro .cm-section__title,
    .vD__intro .cm-section__lead {
        text-align: start;
    }
    .vD__intro .cm-section__lead {
        margin-left: 0;
        margin-right: 0;
    }
}

.vD {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 920px) { .vD { grid-template-columns: 1fr 1fr; gap: 32px; } }

.vD__sheet {
    position: relative;
    padding: 28px 28px 24px;
    background: var(--bg-soft);
    background-image:
        radial-gradient(rgba(4, 44, 113, 0.08) 1px, transparent 1.5px);
    background-size: 18px 18px;
    background-position: 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    scroll-margin-top: 88px;       /* land below sticky navbar when jumped to via #anchor */
}

.vD__corner {
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--brand);
}
.vD__corner--tl { top: 8px; left: 8px;  border-right: 0; border-bottom: 0; }
.vD__corner--br { bottom: 8px; right: 8px; border-left: 0;  border-top: 0; }

.vD__stamp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 6px 12px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-2xs);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: var(--bg-elevated);
}
.vD__stamp span:not(:last-child)::after {
    content: " ·";
    color: var(--text-muted);
}

/* Product viewport — TRANSPARENT background so the dot-grid of the
   parent sheet shows through. Only a dashed bounding rule and the
   crosshair markers remain. */
.vD__view {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 24px 36px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
}

/* Real product photo — fills the view at its natural aspect, transparent
   background of the PNG passes straight through. */
.vD__device--photo {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.vD__device--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vD__cross {
    position: absolute;
    width: 12px; height: 12px;
}
.vD__cross::before, .vD__cross::after {
    content: "";
    position: absolute;
    background: var(--brand-fill);
}
.vD__cross::before { left: 5px; top: 0;  width: 2px;  height: 12px; }
.vD__cross::after  { left: 0;   top: 5px; width: 12px; height: 2px; }
.vD__cross--tl { top: -6px; left: -6px; }
.vD__cross--tr { top: -6px; right: -6px; }
.vD__cross--bl { bottom: -6px; left: -6px; }
.vD__cross--br { bottom: -6px; right: -6px; }

.vD__title {
    margin: 0 0 8px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
    letter-spacing: -0.01em;
}
.vD__desc {
    margin: 0 0 18px;
    font-size: var(--fs-body-sm);
    color: var(--text-muted);
    line-height: var(--lh-loose);
}

.vD__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}
.vD__specs > div {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-left: 2px solid var(--brand);
    font-family: var(--font-mono);
    font-size: var(--fs-body-sm);
    color: var(--text);
}
/* RTL: brand accent rail moves to the right edge. */
[dir="rtl"] .vD__specs > div {
    border-left: 0;
    border-right: 2px solid var(--brand);
}
.vD__specs span {
    display: block;
    font-size: 9px;
    color: var(--brand);
    letter-spacing: 0.10em;
    margin-bottom: 2px;
}

/* Solid brand-blue button — much more visible than the dashed-underline
   tag we had before. */
.vD__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--brand-fill);
    color: #ffffff;
    border-radius: var(--radius-base);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-tight);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 8px 18px -10px rgba(4, 44, 113, 0.55);
    transition:
        background-color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out);
}
.vD__cta:hover {
    background: var(--brand-fill-600);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 12px 22px -10px rgba(4, 44, 113, 0.65);
}

/* ---------- Mobile compactness ---------- */
@media (max-width: 640px) {
    .vrnt { margin-bottom: 64px; }
    .vrnt--d { padding: 18px 14px; }
    .vD__sheet { padding: 22px 18px; }
    .vD__view  { margin: 18px 22px 28px; }
    .vD__cta   { width: 100%; justify-content: center; }
}
