/* ============================================================
   VTI Product 2026 — Figma "Product Template" (2710:28078).
   Every section root also carries `.vti-home`, so the base reset, tokens
   (--vh-*) and shared atoms (wrap, title, eyebrow, lead, head, buttons) come
   from vti-home.css. Only product-specific rules live here.
   ============================================================ */

/* Section: base */

.vti-product {
    --vp-gap: 64px;
}

/* Section heads (Section head element or the fallback from the section's
   options), always a direct child of the section's wrap.
   Figma centres the button against the title block; vti-home aligns it to the
   bottom. Desktop only: below 1100 vti-home stacks the head and stretches it. */
@media (min-width: 1100px) {
    .vti-product .vti-home__wrap > .vti-home__head:not(.vti-home__head--left, .vti-home__head--right) {
        align-items: center;
    }
}

/* No button aside: the title block takes the whole row, like the preview. */
.vti-product .vti-home__wrap > .vti-home__head > .vti-home__head-title:only-child {
    flex: 1 1 auto;
}

.vti-product .vti-home__wrap > .vti-home__head .vti-home__title {
    align-self: stretch;
    max-width: none;
}

.vti-product__btn--outline {
    background: #fff;
    color: var(--vh-ink);
    box-shadow: inset 0 0 0 1px var(--vh-gray);
    transition: box-shadow .1s linear;
}

/* Figma Button outline/hover: the fill stays white, only the border lightens. */
.vti-product__btn--outline:hover,
.vti-product__btn--outline:focus-visible {
    background: #fff;
    color: var(--vh-ink);
    box-shadow: inset 0 0 0 1px var(--vh-line-soft);
}

.vti-product__btn--sm {
    min-height: 44px;
    padding: 10px 16px;
}

/* Section: hero */

/* min-height, not height: a long title or lead grows the hero instead of
   clipping the buttons under overflow: hidden. */
.vti-product-hero {
    min-height: 700px;
    overflow: hidden;
    background: linear-gradient(153deg, #fcfdff 0%, #f1f7ff 100%);
}

.vti-product-hero__inner {
    height: 100%;
}

.vti-product-hero__content {
    position: relative;
    z-index: 1;
    width: 709px;
    max-width: 100%;
    padding: 200px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vti-product-hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vti-product-hero__title {
    font-size: 48px;
    font-weight: 500;
    line-height: 68px;
    color: var(--vh-ink);
}

.vti-product-hero__accent {
    color: var(--vh-blue);
}

.vti-product-hero__lead {
    font-size: 18px;
    line-height: 28px;
    color: var(--vh-muted);
}

.vti-product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.vti-product-hero__btn {
    min-width: 208px;
}

/* Figma frame: 8px padding, 1px #dbeafe border, radius 12, overhangs the
   container on the right (the section clips it). */
.vti-product-hero__visual {
    position: absolute;
    top: 126px;
    left: 732px;
    padding: 8px;
    border: 1px solid var(--vh-line);
    border-radius: 12px;
}

.vti-product-hero__img {
    display: block;
    width: 707px;
    max-width: none;
    height: 524px;
    object-fit: cover;
    border-radius: 12px;
}

/* The 65px overhang needs a 65px side margin: 1440 + 2×65 plus a 15px scrollbar,
   so below 1585px the picture stays inside the container. */
@media (max-width: 1584px) {
    /* The picture moves to the right edge and shrinks with the viewport; the copy
       takes what is left (picture + 8px padding ×2 + 1px border ×2 + 40px gap). */
    .vti-product-hero__content {
        width: calc(100% - min(707px, 42vw) - 58px);
    }

    .vti-product-hero__visual {
        left: auto;
        right: 0;
    }

    .vti-product-hero__img {
        width: min(707px, 42vw);
        height: auto;
        aspect-ratio: 707 / 524;
    }
}

@media (max-width: 1099px) {
    .vti-product-hero {
        min-height: 0;
    }

    .vti-product-hero__content {
        width: auto;
        padding: 160px 0 40px;
    }

    .vti-product-hero__title {
        font-size: 36px;
        line-height: 48px;
    }

    .vti-product-hero__visual {
        position: static;
        margin-bottom: 60px;
    }

    .vti-product-hero__img {
        width: 100%;
    }
}

/* Figma mobile: picture on top, then the copy; the header gap moves from the
   copy to the section. */
@media (max-width: 699px) {
    .vti-product-hero {
        padding: 120px 0 60px;
    }

    .vti-product-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .vti-product-hero__content {
        padding: 0;
    }

    .vti-product-hero__visual {
        order: -1;
        margin-bottom: 0;
    }

    .vti-product-hero__title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -.25px;
    }

    .vti-product-hero__lead {
        font-size: 14px;
        line-height: 20px;
    }

    .vti-product-hero__actions {
        flex-direction: column;
        gap: 8px;
    }

    .vti-product-hero__btn {
        width: 100%;
        font-size: 14px;
    }
}

/* Section: problems */

.vti-product-problems {
    padding: var(--vh-pad) 0;
}

.vti-product-problems__inner {
    display: flex;
    flex-direction: column;
    gap: var(--vp-gap);
}

.vti-product-problems__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vti-product-problems__item {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vti-product-problems__num {
    font-size: 48px;
    font-weight: 500;
    line-height: 68px;
    letter-spacing: -1px;
    color: #bcd1ff;
}

.vti-product-problems__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vti-product-problems__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #18181b;
}

.vti-product-problems__desc {
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

/* Marker "Icon": a problem with an icon shows it instead of its number, in the
   number's 68px row. Marker "Number" hides the icon. */
.vti-product-problems__icon {
    display: flex;
    align-items: center;
    height: 68px;
}

.vti-product-problems__icon img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Hidden lazy images are not fetched. */
.vti-product-problems:not(.vti-product-problems--marker-icon) .vti-product-problems__icon,
.vti-product-problems--marker-icon .vti-product-problems__icon + .vti-product-problems__num {
    display: none;
}

/* Separate alignments: number / icon, title, description. */
.vti-product-problems--num-center :is(.vti-product-problems__num, .vti-product-problems__icon) {
    align-self: center;
}

.vti-product-problems--num-right :is(.vti-product-problems__num, .vti-product-problems__icon) {
    align-self: flex-end;
}

.vti-product-problems--title-center .vti-product-problems__title,
.vti-product-problems--desc-center .vti-product-problems__desc {
    text-align: center;
}

.vti-product-problems--title-right .vti-product-problems__title,
.vti-product-problems--desc-right .vti-product-problems__desc {
    text-align: right;
}

@media (max-width: 1099px) {
    .vti-product-problems__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 699px) {
    .vti-product-problems {
        --vp-gap: 40px;
    }

    .vti-product-problems__list {
        gap: 20px;
    }

    .vti-product-problems__item {
        gap: 16px;
    }

    .vti-product-problems__num {
        font-size: 24px;
        line-height: 32px;
    }

    .vti-product-problems__desc {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Section: about */

.vti-product-about {
    padding: var(--vh-pad) 0;
    overflow: hidden;
}

.vti-product-about__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Figma image fill: crop 141.85% tall starting 16.29% above, layer opacity .5. */
.vti-product-about__bg img {
    position: absolute;
    left: 0;
    top: -16.29%;
    width: 100%;
    max-width: none;
    height: 141.85%;
    object-fit: fill;
    opacity: .5;
}

/* The crop above is the demo picture's; a picked picture of any ratio covers the
   section instead of being stretched. */
.vti-product-about__bg--custom img {
    top: 0;
    height: 100%;
    object-fit: cover;
}

.vti-product-about__glow {
    position: absolute;
    left: calc(50% + 74px);
    top: 405px;
    width: 993px;
    height: 658px;
    border-radius: 431px 0 0 0;
    background: rgba(222, 243, 255, .6);
    filter: blur(45px);
    pointer-events: none;
}

.vti-product-about__inner {
    display: flex;
    align-items: center;
    gap: 146px;
}

.vti-product-about__content {
    flex: 0 0 586px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--vp-gap);
}

.vti-product-about__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vti-product-about__eyebrow {
    text-transform: uppercase;
}

.vti-product-about__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.vti-product-about__list {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vti-product-about__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

.vti-product-about__check {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #fff;
}

.vti-product-about__media {
    flex: 1 1 0;
    min-width: 0;
}

.vti-product-about__img {
    display: block;
    width: 100%;
    height: 472px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 1400px) {
    .vti-product-about__inner {
        gap: 64px;
    }
}

@media (max-width: 1099px) {
    .vti-product-about__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }

    .vti-product-about__content {
        flex: none;
        gap: 40px;
    }

    .vti-product-about__img {
        height: auto;
        aspect-ratio: 708 / 472;
    }

    .vti-product-about__glow {
        display: none;
    }
}

/* Figma mobile: heading, then the picture, then the checklist. The copy column
   dissolves so its two parts can sit either side of the picture.
   display: contents drops its box: padding / background / border on
   __content do nothing here, style its children instead. */
@media (max-width: 699px) {
    .vti-product-about__inner {
        gap: 40px;
    }

    .vti-product-about__content {
        display: contents;
    }

    .vti-product-about__media {
        order: 1;
    }

    .vti-product-about__foot {
        order: 2;
    }

    .vti-product-about__item {
        font-size: 14px;
        line-height: 20px;
    }

    .vti-product-about__check {
        width: 20px;
        height: 20px;
    }
}

/* Section: audience */

.vti-product-audience {
    padding: var(--vh-pad) 0;
    overflow: hidden;
}

.vti-product-audience__shape {
    position: absolute;
    left: calc(50% + 789px);
    top: -3px;
    width: 287px;
    height: 287px;
    border-radius: 50%;
    background: rgba(21, 50, 239, .2);
    filter: blur(200px);
    pointer-events: none;
}

.vti-product-audience__inner {
    display: flex;
    flex-direction: column;
    gap: var(--vp-gap);
}

.vti-product-audience__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vti-product-audience__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 32px;
    border-radius: 8px;
    background: #f2f5fe;
}

.vti-product-audience__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
}

.vti-product-audience__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.vti-product-audience__body {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vti-product-audience__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: var(--vh-ink);
}

.vti-product-audience__desc {
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

.vti-product-audience__link {
    margin-top: -16px;
}

@media (max-width: 1099px) {
    .vti-product-audience__cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 699px) {
    .vti-product-audience__icon {
        width: 44px;
        height: 44px;
    }

    .vti-product-audience__title {
        font-size: 18px;
        line-height: 28px;
    }

    .vti-product-audience__desc {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Section: insight */

.vti-product-insight {
    padding: 0 0 var(--vh-pad);
}

.vti-product-insight__blob {
    position: absolute;
    left: calc(50% - 1143px);
    top: 340px;
    width: 365px;
    height: 316px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(21, 50, 239, .2), rgba(45, 178, 255, .1) 60%, transparent);
    filter: blur(60px);
    pointer-events: none;
}

.vti-product-insight__box {
    position: relative;
    display: flex;
    align-items: center;
    height: 340px;
    padding: 40px 122px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--vh-line);
}

/* Background picture (the editor's, or the demo wave): covers the box. */
.vti-product-insight__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

/* Three Figma fills on one layer: the diagonal blue corner, then light blue
   fading out to the right of the text, then back in at the far right edge. */
.vti-product-insight__wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(28deg, #a8d3fd 0%, rgba(168, 211, 253, 0) 32%),
        linear-gradient(90deg, #e2effd 0, #e2effd 573px, rgba(226, 239, 253, 0) 1187px),
        linear-gradient(90deg, rgba(226, 239, 253, 0) 0, rgba(226, 239, 253, 0) 1230px, #e2effd 1352px, #e2effd 100%);
}

.vti-product-insight__content {
    position: relative;
    z-index: 1;
    width: 707px;
    max-width: 100%;
    height: 258px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.vti-product-insight__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Figma Badge soft/White (3197:38385), not the shared soft-blue eyebrow.
   24px down to the title: the text gap plus this margin. */
.vti-product-insight__label {
    margin-bottom: 12px;
    border-color: var(--vh-line);
    background: #fff;
    letter-spacing: 0;
}

/* Figma Button lg (3197:38389) is 160px wide with its content centred. */
.vti-product-insight__btn {
    min-width: min(160px, 100%);
}

.vti-product-insight__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #111;
}

.vti-product-insight__desc {
    font-size: 14px;
    line-height: 20px;
    color: #777;
}

/* With a mockup: the mockup keeps its own size on the right, the text column
   takes what is left (a wide mockup narrows it), the box grows to fit. */
.vti-product-insight__box--mockup {
    height: auto;
    min-height: 340px;
    gap: 40px;
    padding-right: 40px;
}

.vti-product-insight__box--mockup .vti-product-insight__content {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.vti-product-insight__mockup {
    position: relative;
    flex: none;
    max-width: 60%;
    margin-left: auto;
}

.vti-product-insight__mockup img {
    display: block;
    /* --vp-img-w: the mockup's own width, printed by sections/insight.php. */
    width: var(--vp-img-w, auto);
    max-width: 100%;
    height: auto;
}

/* Contact form popup: the .vti-home-video shell (backdrop, close button) around
   the CTA form card (.vti-home-cta__formcard), so the form looks as on the
   Service page. */
.vti-product-form__card {
    flex: 0 1 630px;
    max-height: 100%;
    overflow: auto;
    background: #fff;
}

/* Keeps the centred form title clear of the close button. */
.vti-product-form__card .vti-home-cta__formcard-head {
    padding-inline: 44px;
}

@media (max-width: 1099px) {
    .vti-product-insight__box {
        height: auto;
        padding: 40px;
    }

    .vti-product-insight__box--mockup {
        flex-direction: column;
        align-items: stretch;
    }

    .vti-product-insight__mockup {
        align-self: flex-end;
        max-width: 100%;
    }

    .vti-product-insight__content {
        width: 100%;
        height: auto;
        gap: 32px;
    }
}

/* Demo (Figma 3245:246668): the book cover sits small above the text. The
   button spans the box (Figma 3297:307380), whatever the variant. */
@media (max-width: 699px) {
    .vti-product-insight__box {
        padding: 25px 20px;
    }

    /* Figma 3297:307371: label 12px down to the title, title 6px down to the
       description, 30px down to the button. */
    .vti-product-insight__content {
        gap: 30px;
    }

    .vti-product-insight__text {
        gap: 6px;
    }

    /* Badge size small: 55x20 (border outside, so 1px less padding). */
    .vti-product-insight__label {
        margin-bottom: 6px;
        padding: 1px 7px;
        line-height: 16px;
    }

    .vti-product-insight__title {
        font-size: 20px;
        line-height: 28px;
        color: var(--vh-ink);
    }

    .vti-product-insight__desc {
        color: var(--vh-muted);
    }

    .vti-product-insight__btn {
        align-self: stretch;
        font-size: 14px;
    }

    .vti-product-insight__box--demo {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* z-index: order -1 would also paint it under the background picture. */
    .vti-product-insight__mockup--demo {
        order: -1;
        z-index: 1;
        align-self: flex-start;
        margin-left: 0;
    }

    /* insight-cover-mobile.webp is the whole book: keep its ratio. */
    .vti-product-insight__mockup--demo img {
        width: 80px;
        height: auto;
        border-radius: 8px;
    }
}

/* Section: solutions */

/* Clipped sideways only: the glow runs past the viewport edge and down into
   Product detail (as in Figma). */
.vti-product-solutions {
    padding: 0 0 var(--vh-pad);
    overflow-x: clip;
}

/* The Insight blob runs down behind Solutions, and the Solutions glow behind
   Product detail (Figma): a white background would cut them off. Transparent
   whatever the section order, so moving sections in UX Builder keeps it. */
.vti-product.vti-product-solutions,
.vti-product.vti-product-detail {
    background: transparent;
}

/* Figma shape-ellipse (3197:38394): a 496px circle, blur 82, centred 863px
   right of the centre and 225px below the tab panel. Anchored to the panel
   (__body), so it follows the head's real height in every language. */
.vti-product-solutions__glow {
    position: absolute;
    left: calc(50% + 615px);
    top: calc(100% - 23px);
    width: 496px;
    height: 496px;
    border-radius: 50%;
    background: rgba(194, 235, 255, .3);
    filter: blur(82px);
    pointer-events: none;
}

.vti-product-solutions__inner {
    display: flex;
    flex-direction: column;
    gap: var(--vp-gap);
}

.vti-product-solutions__body {
    position: relative;
    display: flex;
    gap: 80px;
    height: 630px;
}

.vti-product-solutions__panels {
    flex: 1 1 0;
    min-width: 0;
}

.vti-product-solutions__panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    border: 1px solid var(--vh-line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfbfb 0%, #e6eeff 100%);
}

/* List + outcome on the left, picture on the right (Figma 3152:38530). */
.vti-product-solutions__main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 64px;
}

.vti-product-solutions__text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.vti-product-solutions__media {
    flex: 0 0 302px;
    overflow: hidden;
    border-radius: 12px;
}

.vti-product-solutions__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vti-product-solutions__panel[hidden] {
    display: none;
}

.vti-product-solutions__title {
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -.25px;
    color: var(--vh-ink);
}

.vti-product-solutions__list {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.vti-product-solutions__list li {
    position: relative;
    padding-left: 14px;
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

.vti-product-solutions__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vh-ink);
}

.vti-product-solutions__outcome {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    color: var(--vh-muted);
}

.vti-product-solutions__outcome-label {
    font-weight: 600;
    color: var(--vh-blue);
}

/* The list slides so the selected label sits at 136px from the top (Figma 3152:38553).
   JS sets --vp-shift to the selected tab's own offset, so labels that wrap onto
   two lines still land on the mark. The fade hides the labels below. */
.vti-product-solutions__nav {
    position: relative;
    flex: 0 0 348px;
    overflow: hidden;
}

.vti-product-solutions__nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 224px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    pointer-events: none;
}

.vti-product-solutions__tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-top: 136px;
    transform: translateY(calc(var(--vp-shift, 0px) * -1));
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

/* flex: none — Flatsome gives buttons min-width 24px, so in the phone's row
   the labels would shrink below their text. */
.vti-product-solutions__tab {
    flex: none;
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -.5px;
    color: var(--vh-gray);
    text-align: left;
    transition: color .2s;
}

.vti-product-solutions__tab[aria-selected="true"] {
    color: var(--vh-ink);
}

@media (hover: hover) {
    .vti-product-solutions__tab:hover {
        color: #98a2b3;
    }

    .vti-product-solutions__tab[aria-selected="true"]:hover {
        color: var(--vh-ink);
    }
}

/* Container below the 1440px design (viewport < 1488px): the text column would
   wrap onto a third line per bullet and overflow the fixed-height card. */
@media (max-width: 1487px) {
    .vti-product-solutions__main {
        gap: 32px;
    }

    .vti-product-solutions__media {
        flex-basis: 240px;
    }
}

@media (max-width: 1099px) {
    .vti-product-solutions__body {
        flex-direction: column-reverse;
        height: auto;
        gap: 24px;
    }

    .vti-product-solutions__nav {
        flex: none;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .vti-product-solutions__nav::after {
        display: none;
    }

    .vti-product-solutions__tabs {
        flex-direction: row;
        padding-top: 0;
        gap: 24px;
        transform: none;
    }

    /* 6px padding makes the 32px label a 44px touch target. */
    .vti-product-solutions__tab {
        padding-block: 6px;
        font-size: 24px;
        line-height: 32px;
        white-space: nowrap;
    }

    .vti-product-solutions__panel {
        height: auto;
    }

    /* The picture's own ratio: a stretched column would crop it per viewport. */
    .vti-product-solutions__media {
        align-self: flex-start;
        aspect-ratio: 302 / 453;
    }
}

@media (max-width: 699px) {
    .vti-product-solutions__glow {
        display: none;
    }

    .vti-product-solutions__main {
        flex-direction: column;
        gap: 24px;
    }

    /* Figma mobile: full width, 442px tall. */
    .vti-product-solutions__media {
        flex-basis: auto;
        align-self: stretch;
        height: 442px;
    }

    /* 12px padding makes the 20px label a 44px touch target. */
    .vti-product-solutions__tabs {
        gap: 20px;
    }

    .vti-product-solutions__tab {
        padding-block: 12px;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0;
    }

    .vti-product-solutions__tab[aria-selected="true"] {
        font-weight: 500;
    }

    /* Figma 3245:246691: no border on phones. */
    .vti-product-solutions__panel {
        padding: 24px 20px;
        border: 0;
    }

    .vti-product-solutions__title {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0;
    }

    .vti-product-solutions__list {
        gap: 16px;
    }

    .vti-product-solutions__list li,
    .vti-product-solutions__outcome {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vti-product-solutions__tabs,
    .vti-product-solutions__tab {
        transition: none;
    }
}

/* Section: detail */

.vti-product-detail {
    padding: 0 0 var(--vh-pad);
}

.vti-product-detail__inner {
    display: flex;
    flex-direction: column;
    gap: var(--vp-gap);
}

/* UX Builder only: where it renders the section's children before vti-home.js moves
   the Section head up. No box of its own, so it adds no flex gap. */
.vti-product-detail__slot {
    display: contents;
}

/* Positions the optional play button (.vti-home__play) and caption over the
   picture: the figure is as wide as the picture shown. */
.vti-product-detail__media {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

/* The video link covers the whole picture (sections/detail.php): hovering the
   picture lights the play button, a click anywhere on it plays (UAT #79568). */
.vti-product-detail__video {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
    cursor: pointer;
}

.vti-product-detail__video:hover .vti-home__play,
.vti-product-detail__video:focus-visible .vti-home__play {
    background: rgba(255, 255, 255, .7);
}

/* The link is transparent: give keyboard focus a ring around the whole picture. */
.vti-product-detail__video:focus-visible {
    outline: 3px solid var(--vh-blue);
    outline-offset: 3px;
}

/* Figma: caption on the picture's bottom edge over a black shade fading
   upwards, 36px text. The shade is the figure's own layer, at most half the
   picture's height (a % height follows the figure's height), so a low diagram
   (e.g. 1440x300) keeps most of its content clear (MR !164). Sizes: the
   section's "Caption size" option (CSS vars from sections/detail.php), else the
   design's 36 / 28 / 20px. Shade and caption let clicks through to the video
   link underneath (the caption text is therefore not selectable). */
.vti-product-detail__media--caption::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: min(50%, 180px);
    border-radius: 0 0 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.vti-product-detail__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 40px 32px;
    font-size: var(--vp-caption-size, 36px);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    pointer-events: none;
}

/* Detail pictures are diagrams and screenshots: never crop them, never upscale
   them past their own width (the 1440x649 placeholder fills the row). */
.vti-product-detail__img {
    display: block;
    width: auto;
    /* --vp-img-w: the attachment's own width, printed by sections/detail.php. */
    max-width: min(100%, var(--vp-img-w, 100%));
    height: auto;
    margin-inline: auto;
    border-radius: 12px;
}

/* Figma mobile (3245:246719): 40px under the head; the demo photo is cropped to
   a 240px band. A picked picture is a diagram: it keeps its own ratio. */
@media (max-width: 1099px) {
    .vti-product-detail__media--caption::after {
        height: min(50%, 140px);
    }

    .vti-product-detail__caption {
        padding: 0 32px 24px;
        font-size: var(--vp-caption-size-md, var(--vp-caption-size, 28px));
    }
}

@media (max-width: 699px) {
    .vti-product-detail {
        --vp-gap: 40px;
    }

    .vti-product-detail__img,
    .vti-product-detail__video {
        border-radius: 8px;
    }

    .vti-product-detail__media--caption::after {
        height: min(50%, 96px);
        border-radius: 0 0 8px 8px;
    }

    .vti-product-detail__caption {
        padding: 0 16px 16px;
        font-size: var(--vp-caption-size-sm, var(--vp-caption-size-md, var(--vp-caption-size, 20px)));
    }

    .vti-product-detail__media--demo {
        width: 100%;
    }

    .vti-product-detail__media--demo .vti-product-detail__img {
        width: 100%;
        max-width: none;
        height: 240px;
        object-fit: cover;
    }
}
