/* ==== HERO ==== */
.home-hero {
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    padding-block: var(--s-6) var(--s-7);
}

.home-hero__inner {
    display: grid;
    justify-items: center;
    gap: var(--s-5);
    text-align: center;
    animation: ui-fade 0.4s var(--ease) both;
}

.home-hero__trust,
.home-hero__note {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-small);
    color: var(--c-ink-2);
}

.home-hero__trust {
    margin-bottom: var(--s-2);
}

.home-hero__trust .icon,
.home-hero__note .icon {
    color: var(--c-ink);
}

.home-hero__lead {
    max-width: 640px;
}

.home-hero__form {
    max-width: 512px;
}

.home-hero__note {
    margin-top: calc(var(--s-2) * -1);
}

.home-hero__photos {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    order: 2;
    margin-top: var(--s-7);
    padding-inline: var(--gutter);
}

.home-hero__photo--1 {
    width: 28%;
    aspect-ratio: 4 / 5;
}

.home-hero__photo--2 {
    width: 34%;
    margin-top: var(--s-5);
    aspect-ratio: 3 / 2;
}

/* The phone crop is landscape; keep the balloon (upper third of the photo) in frame. */
.home-hero__photo--2 img {
    object-position: 50% 25%;
}

.home-hero__photo--3 {
    width: 25%;
    aspect-ratio: 3 / 4;
}

.home-hero__photo--4 {
    display: none;
}

.home-hero > .container {
    order: 1;
}

/* ≥768: photos sit on the section edges (fixed px on tablet, % of width from 1024). */
@media (min-width: 768px) {
    .home-hero {
        display: block;
        padding-block: 80px 100px;
    }

    .home-hero__photos {
        position: absolute;
        inset: 0;
        display: block;
        margin: 0;
        padding: 0;
        pointer-events: none;
    }

    .home-hero__photo {
        position: absolute;
        margin: 0;
    }

    .home-hero__photo--1 {
        left: 2.9%;
        top: 11.5%;
        width: 88px;
        aspect-ratio: 176 / 243;
    }

    .home-hero__photo--2 {
        left: -5.5%;
        top: 37%;
        width: 80px;
        margin-top: 0;
        aspect-ratio: 194 / 243;
    }

    .home-hero__photo--3 {
        right: -1.8%;
        top: 43%;
        width: 64px;
        aspect-ratio: 151 / 197;
    }

    .home-hero__photo--4 {
        display: block;
        right: -6.25%;
        top: 15.6%;
        width: 96px;
        aspect-ratio: 287 / 190;
    }
}

@media (min-width: 1024px) {
    .home-hero__photo--1 {
        width: 12.2%;
    }

    .home-hero__photo--2 {
        width: 13.5%;
    }

    .home-hero__photo--3 {
        width: 10.5%;
    }

    .home-hero__photo--4 {
        width: 20%;
    }
}

/* ==== TOUR ==== */
.home-tour {
    padding-block: var(--s-7) 80px;
}

.home-tour__title {
    margin-bottom: var(--s-6);
}

.home-tour__title .u-line {
    display: inline;
}

.home-tour__media img {
    width: 100%;
}

@media (max-width: 767px) {
    .home-tour__title .u-line {
        display: block;
    }
}

@media (min-width: 768px) {
    .home-tour {
        padding-block: 80px;
    }

    .home-tour__title {
        margin-bottom: 40px;
    }
}

/* ==== LOGOS ==== */
.home-logos {
    padding-block: var(--s-5);
}

.home-logos__title {
    text-align: center;
}

.home-logos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: var(--s-7) var(--grid-gap);
    margin-top: var(--s-7);
}

.home-logos__name {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--c-ink-3);
}

.home-logos__name a {
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.home-logos__name a:hover {
    color: var(--c-ink);
}

@media (min-width: 768px) {
    .home-logos {
        padding-block: var(--s-8);
    }

    .home-logos__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .home-logos__grid {
        grid-template-columns: repeat(6, 1fr);
        row-gap: 56px;
    }

    .home-logos__name {
        font-size: 1.5rem;
    }
}

/* ==== PRODUCT ILLUSTRATIONS ==== */
/* Split-pane illustrations bring their own backdrop, so they fill the media column edge to edge. */
@media (min-width: 1024px) {
    .home-product .accordion--split .accordion__media {
        padding: 0;
        background: none;
    }

    .home-product .accordion--split .accordion__media figure {
        height: 100%;
    }

    .home-product .accordion--split .accordion__media img {
        height: 100%;
        object-fit: cover;
    }
}

/* ==== OVERVIEW ==== */
.home-overview__grid {
    display: grid;
    gap: var(--s-7) var(--grid-gap);
}

/* Card images already include their backdrop and print. */
.home-overview .card__media {
    padding: 0;
}

@media (min-width: 768px) {
    .home-overview__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==== TESTIMONIALS ==== */
.home-quotes {
    padding-block: 40px;
}

.home-quotes__tabs {
    --tab-active-bg: var(--c-canvas);
}

@media (min-width: 768px) {
    .home-quotes {
        padding-block: 80px;
    }
}

/* ==== INTEGRATIONS ==== */
.home-int__inner {
    display: grid;
    gap: var(--s-7);
}

.home-int__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 126px));
    grid-auto-rows: 1fr;
    justify-content: center;
    gap: 14px 20px;
    padding-block: var(--s-5);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 80%, transparent);
}

/* Phones stack the logo above the name so narrow tiles never break words. */
.home-int__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    min-height: 56px;
    padding: var(--s-2);
    border: 1px solid var(--c-line);
    background: var(--c-canvas);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
}

.home-int__tile img {
    flex: none;
}

@media (min-width: 768px) {
    .home-int__tile {
        flex-direction: row;
        gap: var(--s-2);
    }
}

/* Tablet: the grid sits below the copy at full width, so tiles grow (768: 167×73). */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-int__grid {
        grid-template-columns: repeat(3, minmax(0, 167px));
        gap: 22px 28px;
    }

    .home-int__tile {
        min-height: 73px;
        font-size: var(--fs-body);
    }
}

@media (min-width: 1024px) {
    .home-int__inner {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        align-items: center;
        gap: 0 var(--grid-gap);
    }

    .home-int__inner > .section-head {
        grid-column: 1 / span 6;
    }

    .home-int__grid {
        grid-column: 7 / span 4;
    }
}

/* ==== PRICING ==== */
.home-pricing {
    overflow: hidden;
    padding-block: var(--s-7);
}

.home-pricing__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--c-ink) 0.8px, transparent 1.2px);
    background-size: 8px 8px;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(ellipse 46% 48% at 50% 62%, #000 40%, transparent 74%);
    mask-image: radial-gradient(ellipse 46% 48% at 50% 62%, #000 40%, transparent 74%);
    pointer-events: none;
}

.home-pricing__inner {
    position: relative;
    display: grid;
    justify-items: center;
}

.home-pricing__title {
    margin-bottom: var(--s-6);
    text-align: center;
}

.home-pricing__card,
.home-pricing__note {
    width: 100%;
    background: var(--c-chalk);
    text-align: center;
}

.home-pricing__card {
    display: grid;
    justify-items: center;
    gap: var(--s-5);
    padding: var(--s-7) var(--s-5);
}

.home-pricing__price {
    display: grid;
    justify-items: center;
    gap: var(--s-2);
}

.home-pricing__card .actions {
    justify-content: center;
    margin-top: var(--s-2);
}

.home-pricing__note {
    margin-top: var(--s-5);
    padding: var(--s-5) var(--s-6);
}

.home-pricing__note .serif {
    max-width: 52ch;
    margin-inline: auto;
}

/* Card width: 8 of the 10 content columns (≥768), 6 columns (≥1280). */
@media (min-width: 768px) {
    .home-pricing {
        padding-block: 80px;
    }

    .home-pricing__title {
        margin-bottom: var(--s-7);
    }

    .home-pricing__card,
    .home-pricing__note {
        width: calc(80% - 0.2 * var(--grid-gap));
    }

    .home-pricing__card {
        padding: var(--s-8);
    }
}

@media (min-width: 1280px) {
    .home-pricing__card,
    .home-pricing__note {
        width: calc(60% - 0.4 * var(--grid-gap));
    }
}
