/*
 * Homepage v5 (templates/welcome/welcome_v5.ftl): every block below the hero.
 * Header, hero and the hero animation are inlined from templates/includes/critical_welcome_v5.ftl.
 * Loaded without blocking render, after fonts.css / site.css / menu.css (site.css still provides
 * the footer, the buttons, the API demo box, the example tiles and the "layers" corner mark).
 *
 * One markup tree per block: layouts switch with the media queries below instead of duplicated
 * mobile/desktop HTML.
 */

/* ===== shared ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
.w5-section {
    position: relative;
    padding: 64px 16px;
}
/* Section backgrounds of the previous homepage (welcome.css is not loaded here). */
.w5 .section_shell_turquoise {
    background-color: #e5f9f3;
}
.w5 .section_shell_rose {
    background-color: #f2dad3;
}
/* The "layers" mark straddles the top edge of a rose section at the right edge of the window
   (sizes and offsets: .layers_lock_right in site.css). */
.w5 .w5-section > .layers_lock_container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.w5-btn {
    font-size: 20px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 3px;
    text-decoration: none;
}
.w5-eyebrow {
    margin: 0 0 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e0485a;
}
.w5 .w5-h2 {
    margin: 0 auto 40px;
    max-width: 840px;
    overflow: visible;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #7f0052;
}
.w5 .w5-h2 + .w5-lead {
    margin-top: -24px;
}
.w5-lead {
    margin: 0 auto 48px;
    max-width: 760px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #515050;
}
.w5-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 40px;
}
.w5-link,
.w5-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: #7f0052;
}
.w5-link:hover {
    text-decoration: underline;
}
.w5-link svg {
    width: 20px;
    height: 20px;
}
@media (min-width: 768px) {
    .w5-section {
        padding: 96px 48px;
    }
    .w5 .w5-h2 {
        font-size: 42px;
    }
    .w5-lead {
        font-size: 20px;
    }
}

/* ===== proof strip ===== */
.w5-proof {
    padding: 32px 16px;
    background-color: #fff;
    border-bottom: 1px solid #f2e4df;
}
.w5-proof__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    /* top-aligned: a label that wraps to more lines must not lift its number above the others */
    align-items: start;
}
.w5-fact {
    text-align: center;
}
.w5-fact strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ff5f85;
}
.w5-fact span {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
    color: #5b5b5b;
}
@media (min-width: 960px) {
    .w5-proof__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== how it works ===== */
.w5-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.w5-step {
    padding: 32px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(131, 214, 176, 0.35);
}
.w5-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #7f0052;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.w5-step h3,
.w5-card h3 {
    margin: 20px 0 8px;
    font-size: 21px;
    color: #300224;
}
.w5-step p,
.w5-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: #515050;
}
@media (min-width: 900px) {
    .w5-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== why DynaPictures ===== */
.w5-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.w5-card {
    padding: 32px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(131, 214, 176, 0.35);
}
.w5-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff9f8f, #ff7171);
    color: #fff;
}
.w5-icon svg {
    width: 26px;
    height: 26px;
}
@media (min-width: 900px) {
    .w5-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== products ===== */
.w5-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.w5-product,
.w5-product:visited,
.w5-product:active,
.w5-product:focus {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(160, 160, 160, 0.35);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.w5-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.6em 1.6em rgba(160, 160, 160, 0.45);
}
.w5-product img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: #f7ece8;
}
.w5-product__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}
.w5-product h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #7f0052;
}
.w5-product p {
    flex-grow: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #515050;
}
.w5-more {
    margin-top: 16px;
    color: #e0485a;
}
.w5-more svg {
    width: 22px;
    height: 22px;
}
@media (min-width: 640px) {
    .w5-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .w5-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== banner strip (drifts left; two copies of one image, the track moves by one) ===== */
.w5-slider {
    overflow: hidden;
    padding: 32px 0;
    background-color: #fff;
}
.w5-slider__track {
    display: flex;
    width: max-content;
    animation: w5-banner-strip 180s linear infinite;
}
.w5-slider__track picture {
    flex-shrink: 0;
}
.w5-slider__track img {
    display: block;
    width: auto;
    height: 212px;
    max-width: none;
}
@keyframes w5-banner-strip {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}
@media (min-width: 768px) {
    .w5-slider__track {
        animation-duration: 360s;
    }
    .w5-slider__track img {
        height: 424px;
    }
}

/* ===== image generation examples (tile look: .use_case_* in site.css) ===== */
.w5-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}
.w5-example-grid .use_case_tile {
    max-width: none;
    margin: 0;
    justify-content: flex-start;
    /* the section is turquoise: same shadow as the other tiles on turquoise */
    box-shadow: 0 0.3em 1.2em rgba(131, 214, 176, 0.45);
}
.w5-example-grid .use_case_thumbnail {
    flex-grow: 0;
    width: 100%;
    max-width: 380px;
    height: auto;
}
.w5-example-grid .use_case_thumbnail picture {
    display: contents;
}
.w5-example-grid .use_case_thumbnail img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 380px;
}
.w5-example-grid .own_use_case_thumbnail {
    height: 160px;
}
@media (min-width: 700px) {
    .w5-example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* one preview box per row, so the titles of neighbouring tiles line up */
    .w5-example-grid .use_case_thumbnail {
        height: 300px;
        max-height: none;
    }
    .w5-example-grid .use_case_thumbnail img {
        max-height: 100%;
    }
}
@media (min-width: 1100px) {
    .w5-example-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== for marketers: tabs ===== */
.w5-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.w5-tabs__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.w5-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 18px;
    text-align: left;
    color: #353535;
    cursor: pointer;
}
.w5-tab svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #7f0052;
}
.w5-tab[aria-selected="true"] {
    border-color: #ff7171;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(181, 82, 15, 0.18);
}
.w5-tab:focus-visible {
    outline: 3px solid #7f0052;
    outline-offset: 2px;
}
.w5-tabs__panel img {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0.3em 1.2em rgba(160, 160, 160, 0.45);
}
.w5-integrations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 48px;
}
.w5-integrations > span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f5a64;
}
.w5-integrations img {
    display: block;
    width: auto;
    height: 28px;
    /* the logo files are white artwork (made for coloured tiles); show them as one dark row */
    filter: brightness(0);
    opacity: 0.55;
}
@media (min-width: 900px) {
    .w5-tabs {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 48px;
    }
}

/* ===== for developers: API demo (box styles come from site.css) ===== */
/* the demo's instructions, first line inside the box */
.w5-note {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.6;
    color: #515050;
}
.w5-dev .api_demo_container {
    margin-bottom: 0;
}
.w5-dev .api_demo_buttons svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.w5-dev .between svg {
    width: 24px;
    height: 24px;
    color: #000;
}
.w5-dev .api_demo_buttons {
    flex-wrap: wrap;
    row-gap: 16px;
}
.w5-dev .api_demo_visual_result {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
}
.w5-dev .api_demo_visual_result .image_link svg {
    width: 20px;
    height: 20px;
}
@media (min-width: 768px) {
    /* site.css uses 1fr 36px 1fr: the long image URL in the sample request then widens the
       request column and pushes the response column out of the box below ~1400px */
    .w5-dev .api_demo_request_container {
        grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    }
}
@media (max-width: 767.98px) {
    /* single markup: the arrow between request and response points down when stacked */
    .w5-dev .between {
        padding: 16px 0;
    }
    .w5-dev .between svg {
        transform: rotate(90deg);
    }
}
.spinner {
    z-index: 2;
    animation: w5-rotate 2s linear infinite;
}
.spinner .path {
    stroke-linecap: round;
    animation: w5-dash 1.5s ease-in-out infinite;
}
@keyframes w5-rotate {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes w5-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ===== enterprise ===== */
.w5-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.w5 .w5-split .w5-h2 {
    margin: 0 0 16px;
    text-align: left;
}
.w5-split p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #353535;
}
.w5-checks {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.w5-checks li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 36px;
    font-size: 18px;
    line-height: 1.5;
    color: #353535;
}
.w5-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f0052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
}
.w5 .w5-inxmail {
    font-size: 16px;
}
.w5-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 32px;
}
.w5-actions .btn_api_demo_secondary {
    margin-top: 0;
}
.w5-split__media img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .w5-split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 64px;
    }
}

/* ===== testimonials ===== */
.w5-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.w5-review {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(131, 214, 176, 0.35);
}
.w5-quote {
    width: 36px;
    height: 30px;
}
.w5-review blockquote {
    flex-grow: 1;
    margin: 16px 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #353535;
}
.w5-review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #515050;
}
.w5-review figcaption strong {
    display: block;
    color: #300224;
}
.w5-avatar {
    display: block;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
/* G2 rating: a regular review tile that links to the reviews */
.w5-review--g2,
.w5-review--g2:visited,
.w5-review--g2:active,
.w5-review--g2:focus {
    text-decoration: none;
    color: #353535;
}
.w5-review--g2:focus-visible {
    outline: 3px solid #7f0052;
    outline-offset: 3px;
}
.w5-stars {
    display: inline-flex;
    color: #f5b301;
}
.w5-stars svg {
    width: 110px;
    height: 20px;
}
.w5-review__title {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.35;
    color: #300224;
}
.w5-review--g2 p {
    flex-grow: 1;
    margin: 12px 0 20px;
    font-size: 16px;
    line-height: 1.6;
}
.w5-review__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #7f0052;
}
.w5-review__cta svg {
    width: 20px;
    height: 20px;
}
.w5-review--g2:hover .w5-review__cta {
    text-decoration: underline;
}
@media (min-width: 700px) {
    .w5-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .w5-review-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== intro video (full container width) ===== */
.w5-video__facade {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    aspect-ratio: 1320 / 814;
    background-color: #300224;
    box-shadow: 0 0.3em 1.2em rgba(160, 160, 160, 0.45);
    cursor: pointer;
}
.w5-video__facade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.w5-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    background-color: #ff7171;
    color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(48, 2, 36, 0.35);
    transition: transform 0.2s ease;
}
.w5-video__play svg {
    width: 40px;
    height: 40px;
    margin-left: 5px;
}
.w5-video__facade:hover .w5-video__play,
.w5-video__facade:focus-visible .w5-video__play {
    transform: scale(1.08);
}
.w5-video__facade:focus-visible {
    outline: 3px solid #7f0052;
    outline-offset: 3px;
}
.w5-video video {
    display: block;
    width: 100%;
    aspect-ratio: 1320 / 814;
    border-radius: 16px;
    background-color: #000;
}

/* ===== learn more: 3 x 2 tiles ===== */
.w5-resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.w5-resource-grid a,
.w5-resource-grid a:visited {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 28px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0.3em 1.2em rgba(160, 160, 160, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.w5-resource-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.6em 1.6em rgba(160, 160, 160, 0.45);
}
.w5-resource-grid a:focus-visible {
    outline: 3px solid #7f0052;
    outline-offset: 3px;
}
.w5-resource-grid strong {
    font-size: 20px;
    line-height: 1.3;
    color: #7f0052;
}
.w5-resource-grid .w5-icon--sm {
    align-self: flex-start;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
}
.w5-resource-grid .w5-icon--sm svg {
    width: 22px;
    height: 22px;
}
.w5-resource-grid strong + span {
    flex-grow: 1;
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #515050;
}
.w5-resource-grid a > svg {
    margin-top: 16px;
    width: 22px;
    height: 22px;
    color: #e0485a;
}
@media (min-width: 640px) {
    .w5-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1000px) {
    .w5-resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== FAQ ===== */
.w5-faq__inner {
    max-width: 880px;
}
.w5-faq__item {
    border-bottom: 1px solid #eadbd6;
}
.w5-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    list-style: none;
    font-size: 19px;
    font-weight: 500;
    color: #300224;
    cursor: pointer;
}
.w5-faq__item summary::-webkit-details-marker {
    display: none;
}
.w5-faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
    color: #e0485a;
    transition: transform 0.2s ease;
}
.w5-faq__item[open] summary::after {
    transform: rotate(45deg);
}
.w5-faq__item summary:focus-visible {
    outline: 3px solid #7f0052;
    outline-offset: 4px;
}
.w5-faq__item p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.65;
    color: #515050;
}

@media (prefers-reduced-motion: reduce) {
    .w5-slider__track {
        animation: none;
    }
    .w5-product,
    .w5-resource-grid a,
    .w5-video__play,
    .w5-faq__item summary::after {
        transition: none;
    }
}
