/* #region Tablet Layout - max 1100px */

@media (max-width: 1100px) {
    /* #region Base Scale */

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .section-grid,
    .trusted-heading,
    .hero-inner,
    .workflow-layout,
    .about-layout,
    .tutorial-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* #endregion Base Scale */

    /* #region Hero */

    .hero-inner {
        --hero-home-group-offset-y: 30px;
        grid-template-areas:
            "copy"
            "bottom"
            "visual"
            "support";
        align-content: start;
        padding-top: clamp(112px, 13vh, 136px);
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-bottom {
        justify-self: start;
        width: min(475px, 100%);
        max-width: 475px;
        margin-top: 0;
        transform: none;
        margin-left: 0;
    }

    .hero-main-support {
        position: static;
        grid-area: support;
        justify-self: start;
        margin-top: -58px;
    }

    .hero-facts {
        padding: 0;
        border-top: 0;
        border-bottom: 0;
    }

    .hero-visual {
        --hero-media-width: 100%;
        --hero-arc-offset-y: clamp(28px, 4vh, 44px);
        grid-area: visual;
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-left: 0;
        min-width: 0;
        min-height: 0;
        display: grid;
        justify-items: center;
    }

    .hero-arc-stage {
        width: 100%;
        min-height: auto;
    }

    .hero-arc-video {
        --hero-arc-offset-y: clamp(28px, 4vh, 44px);
        width: 100%;
        height: min(42svh, 360px);
        max-height: none;
    }

    .workflow-media {
        margin-top: 0;
    }

    .workflow-steps {
        height: auto;
        grid-template-rows: none;
    }

    /* #endregion Hero */

    /* #region Card Grids */

    .feature-grid,
    .project-grid,
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* #endregion Card Grids */
}

/* #endregion Tablet Layout - max 1100px */

/* #region Mobile Layout - max 768px */

@media (max-width: 768px) {
    /* #region Mobile Base */

    :root {
        --nav-height: 64px;
    }

    body {
        padding-top: 0;
    }

    h1 {
        font-size: 3.05rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .site-shell,
    .footer-shell {
        width: min(calc(100% - 32px), var(--site-width));
    }

    .section-block,
    .trusted-section,
    .workflow-section,
    .about-section,
    .tutorial-section,
    .checkout-section {
        padding: 72px 0;
    }

    .checkout-section {
        padding: 96px 0;
    }

    /* #endregion Mobile Base */

    /* #region Mobile Hero */

    .hero-section {
        min-height: auto;
        display: block;
        padding: 58px 0 0;
        background: rgb(254, 254, 254);
    }

    .hero-inner {
        --hero-home-group-offset-y: 16px;
        width: min(calc(100% - 32px), var(--site-width));
        min-height: auto;
        row-gap: 24px;
        padding: 0;
    }

    .hero-section .site-shell {
        width: min(calc(100% - 32px), var(--site-width));
    }

    #hero-title {
        font-size: clamp(1.54rem, 6.35vw, 1.82rem);
        line-height: 1.06;
        max-width: 100%;
        text-wrap: balance;
        transform: translateY(6px);
    }

    .hero-copy {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .hero-lede {
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        font-size: clamp(0.92rem, 3.5vw, 1rem);
        line-height: 1.38;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 14px;
        margin-bottom: -22px;
    }

    .hero-actions .btn {
        min-height: 40px;
        padding: 0.58rem 0.86rem;
        font-size: 0.84rem;
    }

    .hero-bottom {
        box-sizing: border-box;
        width: min(475px, calc(100vw - 56px));
        max-width: 100%;
        min-height: 0;
        padding: 0;
        margin-top: -110px;
        transform: none;
        margin-left: 0;
        background: var(--color-transparent);
        border: 0;
        border-radius: 0;
    }

    .hero-bottom::before {
        top: 9px;
        bottom: 9px;
        left: 14px;
    }

    .hero-main-support {
        display: none;
    }

    .hero-proof-heading {
        display: none;
        margin: 0;
    }

    .hero-visual {
        --hero-media-width: 100%;
        --hero-arc-offset-y: 28px;
        width: 100vw;
        max-width: none;
        margin-top: -96px;
        margin-left: calc(50% - 50vw);
        min-height: 0;
        padding: 0;
    }

    .hero-arc-stage {
        width: 100%;
        max-width: none;
        margin-left: 0;
        min-height: auto;
        padding: 0;
        background-size: auto;
    }

    .hero-arc-video {
        --hero-arc-offset-y: 28px;
        display: none;
        width: 100%;
        height: 220px;
        max-height: none;
    }

    .hero-form-media {
        display: block;
        position: relative;
        left: 50%;
        width: 100vw;
        min-width: 100vw;
        max-width: none;
        aspect-ratio: 3840 / 2124;
        height: auto;
        object-fit: fill;
        transform: translateY(-40px);
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: -40px;
        overflow: hidden;
        background: url("/images/video/BuscaDeForma-poster-720.webp?v=20260605-8") center / 100% 100% no-repeat;
        pointer-events: auto;
    }

    .hero-form-preview,
    .hero-form-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    .hero-form-video {
        opacity: 0;
        transition: opacity 0.16s ease;
    }

    .hero-form-media.hero-video-ready .hero-form-video {
        opacity: 1;
    }

    .hero-form-media.hero-video-ready .hero-form-preview {
        opacity: 0;
    }

    .hero-credit-link {
        position: absolute;
        left: 8px;
        bottom: 4px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: calc(100% - 16px);
        min-height: 21px;
        padding: 4px 7px;
        border: 1px solid var(--color-paper-72);
        border-radius: 999px;
        background: var(--color-paper-88);
        color: var(--color-ink);
        box-shadow: 0 6px 18px var(--color-ink-12);
        font-size: 0.56rem;
        font-weight: 720;
        line-height: 1;
        text-decoration: none;
        opacity: 0.72;
        pointer-events: auto;
        backdrop-filter: blur(8px);
        transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .hero-credit-link:hover,
    .hero-credit-link:focus-visible {
        color: var(--color-black);
        background: var(--color-white);
        opacity: 1;
        transform: translateY(-1px);
    }

    .hero-credit-link:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }

    .hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        max-width: none;
        padding-top: 0;
    }

    .hero-facts div {
        padding: 5px 0;
        border-left: 0;
        border-top: 0;
    }

    .hero-proof-label {
        margin-bottom: 8px;
        font-size: 0.56rem;
    }

    .hero-facts dt {
        font-size: 1.42rem;
    }

    .hero-facts dd {
        margin-top: 4px;
        font-size: 0.76rem;
    }

    /* #endregion Mobile Hero */

    /* #region Mobile Workflow */

    .workflow-media {
        gap: 0;
    }

    .workflow-media-item-desktop {
        display: none;
    }

    .workflow-media-item-mobile {
        display: block;
    }

    .workflow-credit-link {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        min-height: 21px;
        padding: 4px 7px;
        font-size: 0.56rem;
    }

    .workflow-media video.workflow-main-video-desktop {
        display: none;
    }

    .workflow-media video.workflow-media-natural-desktop {
        display: none;
    }

    .workflow-media video.workflow-media-picadeiro-mobile {
        display: block;
    }

    /* #endregion Mobile Workflow */

    /* #region Mobile Cards */

    .feature-grid,
    .project-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .project-credit-link {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        min-height: 21px;
        padding: 4px 7px;
        font-size: 0.56rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .team-card {
        min-height: 0;
        padding: 14px;
        border-radius: 8px;
        box-shadow: 0 8px 24px var(--color-ink-09);
    }

    .team-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 6 / 5;
        border-radius: 8px;
    }

    .team-photo img {
        object-position: center 18%;
    }

    .team-card:nth-child(3) .team-photo img {
        object-position: center 8%;
    }

    .team-card:nth-child(4) .team-photo img {
        object-position: center 44%;
        transform: none;
    }

    .team-info {
        min-height: 0;
        padding-top: 24px;
        grid-template-rows: auto auto auto;
    }

    .team-info::before {
        top: 11px;
        width: 28px;
        height: 2px;
    }

    .team-card h3 {
        min-height: 0;
        margin-top: 0;
        font-size: clamp(1rem, 4.5vw, 1.22rem);
        line-height: 1.08;
    }

    .team-card p {
        margin-top: 10px;
        font-size: clamp(0.86rem, 3.45vw, 1rem);
        line-height: 1.22;
    }

    .team-card span {
        margin-top: 16px;
        padding: 0;
        color: var(--color-accent);
        background: var(--color-transparent);
        font-size: 0.7rem;
        line-height: 1;
    }

    .video-responsive {
        justify-self: stretch;
        width: 100%;
    }

    /* #endregion Mobile Cards */

    /* #region Mobile Publications */

    .publication-item {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: start;
    }

    .publication-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .publication-item .text-link {
        grid-column: auto;
        justify-self: start;
        white-space: normal;
    }

    /* #endregion Mobile Publications */

    /* #region Mobile Education Carousel */

    .edu-carousel {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .edu-item {
        min-width: 126px;
        height: 68px;
        padding: 10px 14px;
    }

    .edu-arrow {
        width: 38px;
        height: 38px;
    }

    /* #endregion Mobile Education Carousel */

    /* #region Mobile Footer */

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    /* #endregion Mobile Footer */
}

/* #endregion Mobile Layout - max 768px */

/* #region Compact Mobile Layout - max 480px */

@media (max-width: 480px) {
    /* #region Compact Hero */

    #hero-title {
        font-size: clamp(1.46rem, 6.9vw, 1.68rem);
        line-height: 1.06;
    }

    .hero-lede {
        margin-top: 14px;
        font-size: clamp(0.88rem, 3.75vw, 0.96rem);
        line-height: 1.34;
    }

    .hero-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        min-height: 38px;
        padding-right: 0.62rem;
        padding-left: 0.62rem;
        font-size: 0.78rem;
    }

    .btn {
        width: 100%;
    }

    /* #endregion Compact Hero */

    /* #region Compact Publications */

    .publication-item {
        grid-template-columns: 1fr;
    }

    .publication-item img,
    .publication-item .text-link {
        width: 100%;
        grid-column: auto;
    }

    .publication-item img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* #endregion Compact Publications */
}

/* #endregion Compact Mobile Layout - max 480px */
